@shieldiot/pulse-lib 1.0.378 → 1.0.380
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/cjs/lib/common/DeviceConfig.d.ts +1 -1
- package/dist/cjs/lib/common/DeviceNode.d.ts +1 -1
- package/dist/cjs/lib/common/DeviceScoreConfig.d.ts +2 -2
- package/dist/cjs/lib/common/RuleBasedSeverityConditionConfig.d.ts +1 -1
- package/dist/cjs/lib/common/SeriesData.d.ts +1 -1
- package/dist/cjs/lib/common/SeverityConditionConfig.d.ts +1 -1
- package/dist/cjs/lib/common/TokenData.d.ts +1 -1
- package/dist/cjs/lib/entities/Account.d.ts +1 -1
- package/dist/cjs/lib/entities/Account.js.map +1 -1
- package/dist/cjs/lib/entities/AccountDTO.d.ts +1 -1
- package/dist/cjs/lib/entities/AccountDTO.js.map +1 -1
- package/dist/cjs/lib/entities/AccountReportDTO.d.ts +2 -2
- package/dist/cjs/lib/entities/AccountReportDTO.js.map +1 -1
- package/dist/cjs/lib/entities/Alert.d.ts +6 -6
- package/dist/cjs/lib/entities/Alert.js.map +1 -1
- package/dist/cjs/lib/entities/AlertWithDevice.d.ts +4 -4
- package/dist/cjs/lib/entities/AlertWithDevice.js.map +1 -1
- package/dist/cjs/lib/entities/ConfigParams.d.ts +1 -1
- package/dist/cjs/lib/entities/ConfigParams.js.map +1 -1
- package/dist/cjs/lib/entities/DataIngestion.d.ts +1 -1
- package/dist/cjs/lib/entities/Device.d.ts +3 -3
- package/dist/cjs/lib/entities/Device.js.map +1 -1
- package/dist/cjs/lib/entities/DeviceWithEvents.d.ts +4 -4
- package/dist/cjs/lib/entities/DeviceWithEvents.js.map +1 -1
- package/dist/cjs/lib/entities/Event.d.ts +6 -6
- package/dist/cjs/lib/entities/Event.js.map +1 -1
- package/dist/cjs/lib/entities/EventOccurrence.d.ts +1 -1
- package/dist/cjs/lib/entities/EventWithDevice.d.ts +5 -5
- package/dist/cjs/lib/entities/EventWithDevice.js.map +1 -1
- package/dist/cjs/lib/entities/IdsRule.d.ts +2 -2
- package/dist/cjs/lib/entities/IdsRule.js.map +1 -1
- package/dist/cjs/lib/entities/Insight.d.ts +3 -3
- package/dist/cjs/lib/entities/Insight.js.map +1 -1
- package/dist/cjs/lib/entities/InsightQuery.d.ts +1 -1
- package/dist/cjs/lib/entities/InsightQuery.js.map +1 -1
- package/dist/cjs/lib/entities/Integration.d.ts +3 -3
- package/dist/cjs/lib/entities/Integration.js.map +1 -1
- package/dist/cjs/lib/entities/Member.d.ts +1 -1
- package/dist/cjs/lib/entities/Member.js.map +1 -1
- package/dist/cjs/lib/entities/Radius.d.ts +1 -1
- package/dist/cjs/lib/entities/Radius.js.map +1 -1
- package/dist/cjs/lib/entities/Report.d.ts +1 -1
- package/dist/cjs/lib/entities/Report.js.map +1 -1
- package/dist/cjs/lib/entities/ReportInstance.d.ts +1 -1
- package/dist/cjs/lib/entities/ReportInstance.js.map +1 -1
- package/dist/cjs/lib/entities/Rule.d.ts +3 -3
- package/dist/cjs/lib/entities/Rule.js.map +1 -1
- package/dist/cjs/lib/entities/RuleTemplate.d.ts +1 -1
- package/dist/cjs/lib/entities/RuleTemplate.js.map +1 -1
- package/dist/cjs/lib/entities/StreamAnalyticsConfig.d.ts +2 -2
- package/dist/cjs/lib/entities/StreamAnalyticsConfig.js.map +1 -1
- package/dist/cjs/lib/entities/StreamConfig.d.ts +4 -4
- package/dist/cjs/lib/entities/TimeSeriesOfDeviceReport.d.ts +1 -1
- package/dist/cjs/lib/entities/User.d.ts +2 -2
- package/dist/cjs/lib/entities/User.js.map +1 -1
- package/dist/cjs/lib/entities/UserMembership.d.ts +1 -1
- package/dist/cjs/lib/entities/UserMembership.js.map +1 -1
- package/dist/cjs/lib/entities/UserMemberships.d.ts +2 -2
- package/dist/cjs/lib/entities/UserMemberships.js.map +1 -1
- package/dist/cjs/lib/pulse-client.d.ts +16 -14
- package/dist/cjs/lib/pulse-client.js +28 -26
- package/dist/cjs/lib/pulse-client.js.map +1 -1
- package/dist/cjs/lib/services/index.d.ts +1 -0
- package/dist/cjs/lib/services/index.js +1 -0
- package/dist/cjs/lib/services/index.js.map +1 -1
- package/dist/cjs/lib/services/services.export.d.ts +2 -1
- package/dist/cjs/lib/services/services.export.js +2 -0
- package/dist/cjs/lib/services/services.export.js.map +1 -1
- package/dist/cjs/lib/services/sysAccountsService.d.ts +2 -2
- package/dist/cjs/lib/services/sysIdsRulesService.d.ts +2 -2
- package/dist/cjs/lib/services/sysInsightsService.d.ts +53 -0
- package/dist/cjs/lib/services/sysInsightsService.js +135 -0
- package/dist/cjs/lib/services/sysInsightsService.js.map +1 -0
- package/dist/cjs/lib/services/sysKeysService.d.ts +1 -1
- package/dist/cjs/lib/services/sysUsersService.d.ts +1 -1
- package/dist/cjs/lib/services/usrAlertsService.d.ts +16 -16
- package/dist/cjs/lib/services/usrAlertsService.js +21 -21
- package/dist/cjs/lib/services/usrDevicesService.d.ts +15 -15
- package/dist/cjs/lib/services/usrDevicesService.js +18 -18
- package/dist/cjs/lib/services/usrEventsService.d.ts +7 -7
- package/dist/cjs/lib/services/usrInsightsService.d.ts +1 -1
- package/dist/cjs/lib/services/usrReportsInstanceService.d.ts +1 -1
- package/dist/cjs/lib/services/usrRulesService.d.ts +2 -2
- package/dist/cjs/lib/services/usrUserService.d.ts +5 -5
- package/dist/esm/lib/common/DeviceConfig.d.ts +1 -1
- package/dist/esm/lib/common/DeviceNode.d.ts +1 -1
- package/dist/esm/lib/common/DeviceScoreConfig.d.ts +2 -2
- package/dist/esm/lib/common/RuleBasedSeverityConditionConfig.d.ts +1 -1
- package/dist/esm/lib/common/SeriesData.d.ts +1 -1
- package/dist/esm/lib/common/SeverityConditionConfig.d.ts +1 -1
- package/dist/esm/lib/common/TokenData.d.ts +1 -1
- package/dist/esm/lib/entities/Account.d.ts +1 -1
- package/dist/esm/lib/entities/Account.js.map +1 -1
- package/dist/esm/lib/entities/AccountDTO.d.ts +1 -1
- package/dist/esm/lib/entities/AccountDTO.js.map +1 -1
- package/dist/esm/lib/entities/AccountReportDTO.d.ts +2 -2
- package/dist/esm/lib/entities/AccountReportDTO.js.map +1 -1
- package/dist/esm/lib/entities/Alert.d.ts +6 -6
- package/dist/esm/lib/entities/Alert.js.map +1 -1
- package/dist/esm/lib/entities/AlertWithDevice.d.ts +4 -4
- package/dist/esm/lib/entities/AlertWithDevice.js.map +1 -1
- package/dist/esm/lib/entities/ConfigParams.d.ts +1 -1
- package/dist/esm/lib/entities/ConfigParams.js.map +1 -1
- package/dist/esm/lib/entities/DataIngestion.d.ts +1 -1
- package/dist/esm/lib/entities/Device.d.ts +3 -3
- package/dist/esm/lib/entities/Device.js.map +1 -1
- package/dist/esm/lib/entities/DeviceWithEvents.d.ts +4 -4
- package/dist/esm/lib/entities/DeviceWithEvents.js.map +1 -1
- package/dist/esm/lib/entities/Event.d.ts +6 -6
- package/dist/esm/lib/entities/Event.js.map +1 -1
- package/dist/esm/lib/entities/EventOccurrence.d.ts +1 -1
- package/dist/esm/lib/entities/EventWithDevice.d.ts +5 -5
- package/dist/esm/lib/entities/EventWithDevice.js.map +1 -1
- package/dist/esm/lib/entities/IdsRule.d.ts +2 -2
- package/dist/esm/lib/entities/IdsRule.js.map +1 -1
- package/dist/esm/lib/entities/Insight.d.ts +3 -3
- package/dist/esm/lib/entities/Insight.js.map +1 -1
- package/dist/esm/lib/entities/InsightQuery.d.ts +1 -1
- package/dist/esm/lib/entities/InsightQuery.js.map +1 -1
- package/dist/esm/lib/entities/Integration.d.ts +3 -3
- package/dist/esm/lib/entities/Integration.js.map +1 -1
- package/dist/esm/lib/entities/Member.d.ts +1 -1
- package/dist/esm/lib/entities/Member.js.map +1 -1
- package/dist/esm/lib/entities/Radius.d.ts +1 -1
- package/dist/esm/lib/entities/Radius.js.map +1 -1
- package/dist/esm/lib/entities/Report.d.ts +1 -1
- package/dist/esm/lib/entities/Report.js.map +1 -1
- package/dist/esm/lib/entities/ReportInstance.d.ts +1 -1
- package/dist/esm/lib/entities/ReportInstance.js.map +1 -1
- package/dist/esm/lib/entities/Rule.d.ts +3 -3
- package/dist/esm/lib/entities/Rule.js.map +1 -1
- package/dist/esm/lib/entities/RuleTemplate.d.ts +1 -1
- package/dist/esm/lib/entities/RuleTemplate.js.map +1 -1
- package/dist/esm/lib/entities/StreamAnalyticsConfig.d.ts +2 -2
- package/dist/esm/lib/entities/StreamAnalyticsConfig.js.map +1 -1
- package/dist/esm/lib/entities/StreamConfig.d.ts +4 -4
- package/dist/esm/lib/entities/TimeSeriesOfDeviceReport.d.ts +1 -1
- package/dist/esm/lib/entities/User.d.ts +2 -2
- package/dist/esm/lib/entities/User.js.map +1 -1
- package/dist/esm/lib/entities/UserMembership.d.ts +1 -1
- package/dist/esm/lib/entities/UserMembership.js.map +1 -1
- package/dist/esm/lib/entities/UserMemberships.d.ts +2 -2
- package/dist/esm/lib/entities/UserMemberships.js.map +1 -1
- package/dist/esm/lib/pulse-client.d.ts +16 -14
- package/dist/esm/lib/pulse-client.js +16 -14
- package/dist/esm/lib/pulse-client.js.map +1 -1
- package/dist/esm/lib/services/index.d.ts +1 -0
- package/dist/esm/lib/services/index.js +1 -0
- package/dist/esm/lib/services/index.js.map +1 -1
- package/dist/esm/lib/services/services.export.d.ts +2 -1
- package/dist/esm/lib/services/services.export.js +2 -0
- package/dist/esm/lib/services/services.export.js.map +1 -1
- package/dist/esm/lib/services/sysAccountsService.d.ts +2 -2
- package/dist/esm/lib/services/sysIdsRulesService.d.ts +2 -2
- package/dist/esm/lib/services/sysInsightsService.d.ts +53 -0
- package/dist/esm/lib/services/sysInsightsService.js +131 -0
- package/dist/esm/lib/services/sysInsightsService.js.map +1 -0
- package/dist/esm/lib/services/sysKeysService.d.ts +1 -1
- package/dist/esm/lib/services/sysUsersService.d.ts +1 -1
- package/dist/esm/lib/services/usrAlertsService.d.ts +16 -16
- package/dist/esm/lib/services/usrAlertsService.js +21 -21
- package/dist/esm/lib/services/usrDevicesService.d.ts +15 -15
- package/dist/esm/lib/services/usrDevicesService.js +18 -18
- package/dist/esm/lib/services/usrEventsService.d.ts +7 -7
- package/dist/esm/lib/services/usrInsightsService.d.ts +1 -1
- package/dist/esm/lib/services/usrReportsInstanceService.d.ts +1 -1
- package/dist/esm/lib/services/usrRulesService.d.ts +2 -2
- package/dist/esm/lib/services/usrUserService.d.ts +5 -5
- package/dist/types/lib/common/DeviceConfig.d.ts +1 -1
- package/dist/types/lib/common/DeviceNode.d.ts +1 -1
- package/dist/types/lib/common/DeviceScoreConfig.d.ts +2 -2
- package/dist/types/lib/common/RuleBasedSeverityConditionConfig.d.ts +1 -1
- package/dist/types/lib/common/SeriesData.d.ts +1 -1
- package/dist/types/lib/common/SeverityConditionConfig.d.ts +1 -1
- package/dist/types/lib/common/TokenData.d.ts +1 -1
- package/dist/types/lib/entities/Account.d.ts +1 -1
- package/dist/types/lib/entities/AccountDTO.d.ts +1 -1
- package/dist/types/lib/entities/AccountReportDTO.d.ts +2 -2
- package/dist/types/lib/entities/Alert.d.ts +6 -6
- package/dist/types/lib/entities/AlertWithDevice.d.ts +4 -4
- package/dist/types/lib/entities/ConfigParams.d.ts +1 -1
- package/dist/types/lib/entities/DataIngestion.d.ts +1 -1
- package/dist/types/lib/entities/Device.d.ts +3 -3
- package/dist/types/lib/entities/DeviceWithEvents.d.ts +4 -4
- package/dist/types/lib/entities/Event.d.ts +6 -6
- package/dist/types/lib/entities/EventOccurrence.d.ts +1 -1
- package/dist/types/lib/entities/EventWithDevice.d.ts +5 -5
- package/dist/types/lib/entities/IdsRule.d.ts +2 -2
- package/dist/types/lib/entities/Insight.d.ts +3 -3
- package/dist/types/lib/entities/InsightQuery.d.ts +1 -1
- package/dist/types/lib/entities/Integration.d.ts +3 -3
- package/dist/types/lib/entities/Member.d.ts +1 -1
- package/dist/types/lib/entities/Radius.d.ts +1 -1
- package/dist/types/lib/entities/Report.d.ts +1 -1
- package/dist/types/lib/entities/ReportInstance.d.ts +1 -1
- package/dist/types/lib/entities/Rule.d.ts +3 -3
- package/dist/types/lib/entities/RuleTemplate.d.ts +1 -1
- package/dist/types/lib/entities/StreamAnalyticsConfig.d.ts +2 -2
- package/dist/types/lib/entities/StreamConfig.d.ts +4 -4
- package/dist/types/lib/entities/TimeSeriesOfDeviceReport.d.ts +1 -1
- package/dist/types/lib/entities/User.d.ts +2 -2
- package/dist/types/lib/entities/UserMembership.d.ts +1 -1
- package/dist/types/lib/entities/UserMemberships.d.ts +2 -2
- package/dist/types/lib/pulse-client.d.ts +16 -14
- package/dist/types/lib/services/index.d.ts +1 -0
- package/dist/types/lib/services/services.export.d.ts +2 -1
- package/dist/types/lib/services/sysAccountsService.d.ts +2 -2
- package/dist/types/lib/services/sysIdsRulesService.d.ts +2 -2
- package/dist/types/lib/services/sysInsightsService.d.ts +53 -0
- package/dist/types/lib/services/sysKeysService.d.ts +1 -1
- package/dist/types/lib/services/sysUsersService.d.ts +1 -1
- package/dist/types/lib/services/usrAlertsService.d.ts +16 -16
- package/dist/types/lib/services/usrDevicesService.d.ts +15 -15
- package/dist/types/lib/services/usrEventsService.d.ts +7 -7
- package/dist/types/lib/services/usrInsightsService.d.ts +1 -1
- package/dist/types/lib/services/usrReportsInstanceService.d.ts +1 -1
- package/dist/types/lib/services/usrRulesService.d.ts +2 -2
- package/dist/types/lib/services/usrUserService.d.ts +5 -5
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
|
@@ -30,6 +30,7 @@ const services_23 = require("./services");
|
|
|
30
30
|
const services_24 = require("./services");
|
|
31
31
|
const services_25 = require("./services");
|
|
32
32
|
const services_26 = require("./services");
|
|
33
|
+
const services_27 = require("./services");
|
|
33
34
|
// PulseClient is the main entry point of the client library.
|
|
34
35
|
// Create a single global instance of PulseClient in your application and use
|
|
35
36
|
// Factory methods to get service endpoints
|
|
@@ -50,32 +51,33 @@ class PulseClient {
|
|
|
50
51
|
this.axiosInst = axios_1.default.create(axiosRequestConfiguration);
|
|
51
52
|
this.restSvc = new utils_1.RestUtil(this.axiosInst);
|
|
52
53
|
// initialize services
|
|
53
|
-
this.
|
|
54
|
-
this.
|
|
55
|
-
this.
|
|
56
|
-
this.
|
|
57
|
-
this.
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
64
|
-
this.
|
|
65
|
-
this.
|
|
66
|
-
this.
|
|
67
|
-
this.
|
|
68
|
-
this.
|
|
69
|
-
this.
|
|
70
|
-
this.
|
|
71
|
-
this.
|
|
72
|
-
this.
|
|
73
|
-
this.
|
|
74
|
-
this.
|
|
75
|
-
this.
|
|
76
|
-
this.
|
|
77
|
-
this.
|
|
78
|
-
this.
|
|
54
|
+
this.SupportStreamAnalyticsConfig = new services_1.SupportStreamAnalyticsConfig(apiUrl, this.restSvc);
|
|
55
|
+
this.SysAccountsService = new services_2.SysAccountsService(apiUrl, this.restSvc);
|
|
56
|
+
this.SysAuditLogService = new services_3.SysAuditLogService(apiUrl, this.restSvc);
|
|
57
|
+
this.SysCheckpointsService = new services_4.SysCheckpointsService(apiUrl, this.restSvc);
|
|
58
|
+
this.SysConfigService = new services_5.SysConfigService(apiUrl, this.restSvc);
|
|
59
|
+
this.SysFeaturesService = new services_6.SysFeaturesService(apiUrl, this.restSvc);
|
|
60
|
+
this.SysGroupsService = new services_7.SysGroupsService(apiUrl, this.restSvc);
|
|
61
|
+
this.SysIdsRulesService = new services_8.SysIdsRulesService(apiUrl, this.restSvc);
|
|
62
|
+
this.SysInsightsService = new services_9.SysInsightsService(apiUrl, this.restSvc);
|
|
63
|
+
this.SysKeysService = new services_10.SysKeysService(apiUrl, this.restSvc);
|
|
64
|
+
this.SysMembersService = new services_11.SysMembersService(apiUrl, this.restSvc);
|
|
65
|
+
this.SysRuleTemplatesService = new services_12.SysRuleTemplatesService(apiUrl, this.restSvc);
|
|
66
|
+
this.SysRulesService = new services_13.SysRulesService(apiUrl, this.restSvc);
|
|
67
|
+
this.SysStatisticsService = new services_14.SysStatisticsService(apiUrl, this.restSvc);
|
|
68
|
+
this.SysStreamsService = new services_15.SysStreamsService(apiUrl, this.restSvc);
|
|
69
|
+
this.SysUsersService = new services_16.SysUsersService(apiUrl, this.restSvc);
|
|
70
|
+
this.UsrInsightsService = new services_17.UsrInsightsService(apiUrl, this.restSvc);
|
|
71
|
+
this.UsrIntegrationsService = new services_18.UsrIntegrationsService(apiUrl, this.restSvc);
|
|
72
|
+
this.UsrMembersService = new services_19.UsrMembersService(apiUrl, this.restSvc);
|
|
73
|
+
this.UsrUserService = new services_20.UsrUserService(apiUrl, this.restSvc);
|
|
74
|
+
this.UsrAlertsService = new services_21.UsrAlertsService(apiUrl, this.restSvc);
|
|
75
|
+
this.UsrDevicesService = new services_22.UsrDevicesService(apiUrl, this.restSvc);
|
|
76
|
+
this.UsrEventsService = new services_23.UsrEventsService(apiUrl, this.restSvc);
|
|
77
|
+
this.UsrNetworkService = new services_24.UsrNetworkService(apiUrl, this.restSvc);
|
|
78
|
+
this.UsrReportsInstanceService = new services_25.UsrReportsInstanceService(apiUrl, this.restSvc);
|
|
79
|
+
this.UsrReportsService = new services_26.UsrReportsService(apiUrl, this.restSvc);
|
|
80
|
+
this.UsrRulesService = new services_27.UsrRulesService(apiUrl, this.restSvc);
|
|
79
81
|
}
|
|
80
82
|
}
|
|
81
83
|
exports.PulseClient = PulseClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pulse-client.js","sourceRoot":"","sources":["../../../src/lib/pulse-client.ts"],"names":[],"mappings":";;;;AAAA,0DAAiE;AACjE,oCAAoC;AAEpC,
|
|
1
|
+
{"version":3,"file":"pulse-client.js","sourceRoot":"","sources":["../../../src/lib/pulse-client.ts"],"names":[],"mappings":";;;;AAAA,0DAAiE;AACjE,oCAAoC;AAEpC,yCAA0D;AAC1D,yCAAgD;AAChD,yCAAgD;AAChD,yCAAmD;AACnD,yCAA8C;AAC9C,yCAAgD;AAChD,yCAA8C;AAC9C,yCAAgD;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AAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/E,IAAI,CAAC,iBAAiB,GAAG,IAAI,6BAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACrE,IAAI,CAAC,cAAc,GAAG,IAAI,0BAAc,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/D,IAAI,CAAC,gBAAgB,GAAG,IAAI,4BAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,IAAI,CAAC,iBAAiB,GAAG,IAAI,6BAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACrE,IAAI,CAAC,gBAAgB,GAAG,IAAI,4BAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,IAAI,CAAC,iBAAiB,GAAG,IAAI,6BAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACrE,IAAI,CAAC,yBAAyB,GAAG,IAAI,qCAAyB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACrF,IAAI,CAAC,iBAAiB,GAAG,IAAI,6BAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACrE,IAAI,CAAC,eAAe,GAAG,IAAI,2BAAe,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAErE,CAAC;CA+BJ;AAlFD,kCAkFC"}
|
|
@@ -7,6 +7,7 @@ export * from './sysConfigService';
|
|
|
7
7
|
export * from './sysFeaturesService';
|
|
8
8
|
export * from './sysGroupsService';
|
|
9
9
|
export * from './sysIdsRulesService';
|
|
10
|
+
export * from './sysInsightsService';
|
|
10
11
|
export * from './sysKeysService';
|
|
11
12
|
export * from './sysMembersService';
|
|
12
13
|
export * from './sysRuleTemplatesService';
|
|
@@ -10,6 +10,7 @@ tslib_1.__exportStar(require("./sysConfigService"), exports);
|
|
|
10
10
|
tslib_1.__exportStar(require("./sysFeaturesService"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./sysGroupsService"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./sysIdsRulesService"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./sysInsightsService"), exports);
|
|
13
14
|
tslib_1.__exportStar(require("./sysKeysService"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./sysMembersService"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./sysRuleTemplatesService"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/services/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,yEAA+C;AAC/C,+DAAqC;AACrC,+DAAqC;AACrC,kEAAwC;AACxC,6DAAmC;AACnC,+DAAqC;AACrC,6DAAmC;AACnC,+DAAqC;AACrC,2DAAiC;AACjC,8DAAoC;AACpC,oEAA0C;AAC1C,4DAAkC;AAClC,iEAAuC;AACvC,8DAAoC;AACpC,4DAAkC;AAClC,6DAAmC;AACnC,8DAAoC;AACpC,6DAAmC;AACnC,+DAAqC;AACrC,mEAAyC;AACzC,8DAAoC;AACpC,8DAAoC;AACpC,sEAA4C;AAC5C,8DAAoC;AACpC,4DAAkC;AAClC,2DAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/services/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,yEAA+C;AAC/C,+DAAqC;AACrC,+DAAqC;AACrC,kEAAwC;AACxC,6DAAmC;AACnC,+DAAqC;AACrC,6DAAmC;AACnC,+DAAqC;AACrC,+DAAqC;AACrC,2DAAiC;AACjC,8DAAoC;AACpC,oEAA0C;AAC1C,4DAAkC;AAClC,iEAAuC;AACvC,8DAAoC;AACpC,4DAAkC;AAClC,6DAAmC;AACnC,8DAAoC;AACpC,6DAAmC;AACnC,+DAAqC;AACrC,mEAAyC;AACzC,8DAAoC;AACpC,8DAAoC;AACpC,sEAA4C;AAC5C,8DAAoC;AACpC,4DAAkC;AAClC,2DAAiC"}
|
|
@@ -6,6 +6,7 @@ import { SysConfigService } from './sysConfigService';
|
|
|
6
6
|
import { SysFeaturesService } from './sysFeaturesService';
|
|
7
7
|
import { SysGroupsService } from './sysGroupsService';
|
|
8
8
|
import { SysIdsRulesService } from './sysIdsRulesService';
|
|
9
|
+
import { SysInsightsService } from './sysInsightsService';
|
|
9
10
|
import { SysKeysService } from './sysKeysService';
|
|
10
11
|
import { SysMembersService } from './sysMembersService';
|
|
11
12
|
import { SysRuleTemplatesService } from './sysRuleTemplatesService';
|
|
@@ -24,4 +25,4 @@ import { UsrNetworkService } from './usrNetworkService';
|
|
|
24
25
|
import { UsrReportsInstanceService } from './usrReportsInstanceService';
|
|
25
26
|
import { UsrReportsService } from './usrReportsService';
|
|
26
27
|
import { UsrRulesService } from './usrRulesService';
|
|
27
|
-
export declare const Services: (typeof SupportStreamAnalyticsConfig | typeof SysAccountsService | typeof SysAuditLogService | typeof SysCheckpointsService | typeof SysConfigService | typeof SysFeaturesService | typeof SysGroupsService | typeof SysIdsRulesService | typeof SysKeysService | typeof SysMembersService | typeof SysRuleTemplatesService | typeof SysRulesService | typeof SysStatisticsService | typeof SysStreamsService | typeof SysUsersService | typeof UsrInsightsService | typeof UsrIntegrationsService | typeof UsrMembersService | typeof UsrUserService | typeof UsrAlertsService | typeof UsrDevicesService | typeof UsrEventsService | typeof UsrNetworkService | typeof UsrReportsInstanceService | typeof UsrReportsService | typeof UsrRulesService)[];
|
|
28
|
+
export declare const Services: (typeof SupportStreamAnalyticsConfig | typeof SysAccountsService | typeof SysAuditLogService | typeof SysCheckpointsService | typeof SysConfigService | typeof SysFeaturesService | typeof SysGroupsService | typeof SysIdsRulesService | typeof SysInsightsService | typeof SysKeysService | typeof SysMembersService | typeof SysRuleTemplatesService | typeof SysRulesService | typeof SysStatisticsService | typeof SysStreamsService | typeof SysUsersService | typeof UsrInsightsService | typeof UsrIntegrationsService | typeof UsrMembersService | typeof UsrUserService | typeof UsrAlertsService | typeof UsrDevicesService | typeof UsrEventsService | typeof UsrNetworkService | typeof UsrReportsInstanceService | typeof UsrReportsService | typeof UsrRulesService)[];
|
|
@@ -9,6 +9,7 @@ const sysConfigService_1 = require("./sysConfigService");
|
|
|
9
9
|
const sysFeaturesService_1 = require("./sysFeaturesService");
|
|
10
10
|
const sysGroupsService_1 = require("./sysGroupsService");
|
|
11
11
|
const sysIdsRulesService_1 = require("./sysIdsRulesService");
|
|
12
|
+
const sysInsightsService_1 = require("./sysInsightsService");
|
|
12
13
|
const sysKeysService_1 = require("./sysKeysService");
|
|
13
14
|
const sysMembersService_1 = require("./sysMembersService");
|
|
14
15
|
const sysRuleTemplatesService_1 = require("./sysRuleTemplatesService");
|
|
@@ -36,6 +37,7 @@ exports.Services = [
|
|
|
36
37
|
sysFeaturesService_1.SysFeaturesService,
|
|
37
38
|
sysGroupsService_1.SysGroupsService,
|
|
38
39
|
sysIdsRulesService_1.SysIdsRulesService,
|
|
40
|
+
sysInsightsService_1.SysInsightsService,
|
|
39
41
|
sysKeysService_1.SysKeysService,
|
|
40
42
|
sysMembersService_1.SysMembersService,
|
|
41
43
|
sysRuleTemplatesService_1.SysRuleTemplatesService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.export.js","sourceRoot":"","sources":["../../../../src/lib/services/services.export.ts"],"names":[],"mappings":";;;AAAA,iFAA8E;AAC9E,6DAA0D;AAC1D,6DAA0D;AAC1D,mEAAgE;AAChE,yDAAsD;AACtD,6DAA0D;AAC1D,yDAAsD;AACtD,6DAA0D;AAC1D,qDAAkD;AAClD,2DAAwD;AACxD,uEAAoE;AACpE,uDAAoD;AACpD,iEAA8D;AAC9D,2DAAwD;AACxD,uDAAoD;AACpD,6DAA0D;AAC1D,qEAAkE;AAClE,2DAAwD;AACxD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,2DAAwD;AACxD,2EAAwE;AACxE,2DAAwD;AACxD,uDAAoD;AAEvC,QAAA,QAAQ,GAAG;IACpB,2DAA4B;IAC5B,uCAAkB;IAClB,uCAAkB;IAClB,6CAAqB;IACrB,mCAAgB;IAChB,uCAAkB;IAClB,mCAAgB;IAChB,uCAAkB;IAClB,+BAAc;IACd,qCAAiB;IACjB,iDAAuB;IACvB,iCAAe;IACf,2CAAoB;IACpB,qCAAiB;IACjB,iCAAe;IACf,uCAAkB;IAClB,+CAAsB;IACtB,qCAAiB;IACjB,+BAAc;IACd,mCAAgB;IAChB,qCAAiB;IACjB,mCAAgB;IAChB,qCAAiB;IACjB,qDAAyB;IACzB,qCAAiB;IACjB,iCAAe;CAElB,CAAA"}
|
|
1
|
+
{"version":3,"file":"services.export.js","sourceRoot":"","sources":["../../../../src/lib/services/services.export.ts"],"names":[],"mappings":";;;AAAA,iFAA8E;AAC9E,6DAA0D;AAC1D,6DAA0D;AAC1D,mEAAgE;AAChE,yDAAsD;AACtD,6DAA0D;AAC1D,yDAAsD;AACtD,6DAA0D;AAC1D,6DAA0D;AAC1D,qDAAkD;AAClD,2DAAwD;AACxD,uEAAoE;AACpE,uDAAoD;AACpD,iEAA8D;AAC9D,2DAAwD;AACxD,uDAAoD;AACpD,6DAA0D;AAC1D,qEAAkE;AAClE,2DAAwD;AACxD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,2DAAwD;AACxD,2EAAwE;AACxE,2DAAwD;AACxD,uDAAoD;AAEvC,QAAA,QAAQ,GAAG;IACpB,2DAA4B;IAC5B,uCAAkB;IAClB,uCAAkB;IAClB,6CAAqB;IACrB,mCAAgB;IAChB,uCAAkB;IAClB,mCAAgB;IAChB,uCAAkB;IAClB,uCAAkB;IAClB,+BAAc;IACd,qCAAiB;IACjB,iDAAuB;IACvB,iCAAe;IACf,2CAAoB;IACpB,qCAAiB;IACjB,iCAAe;IACf,uCAAkB;IAClB,+CAAsB;IACtB,qCAAiB;IACjB,+BAAc;IACd,mCAAgB;IAChB,qCAAiB;IACjB,mCAAgB;IAChB,qCAAiB;IACjB,qDAAyB;IACzB,qCAAiB;IACjB,iCAAe;CAElB,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
+
import { AccountSettings } from '../entities';
|
|
3
|
+
import { AccountTypeCode } from '../enums';
|
|
2
4
|
import { AccountStatusCode } from '../enums';
|
|
3
5
|
import { Image } from '../entities';
|
|
4
6
|
import { AccountReportDTO } from '../entities';
|
|
5
7
|
import { Account } from '../entities';
|
|
6
|
-
import { AccountSettings } from '../entities';
|
|
7
|
-
import { AccountTypeCode } from '../enums';
|
|
8
8
|
export declare class SysAccountsService {
|
|
9
9
|
private apiUrl;
|
|
10
10
|
private rest;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
+
import { Rule } from '../entities';
|
|
3
|
+
import { IdsRule } from '../entities';
|
|
2
4
|
import { SeverityTypeCode } from '../enums';
|
|
3
5
|
import { RuleActivityStatusCode } from '../enums';
|
|
4
6
|
import { EventTypeCode } from '../enums';
|
|
5
|
-
import { Rule } from '../entities';
|
|
6
|
-
import { IdsRule } from '../entities';
|
|
7
7
|
export declare class SysIdsRulesService {
|
|
8
8
|
private apiUrl;
|
|
9
9
|
private rest;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
+
import { InsightQuery } from '../entities';
|
|
3
|
+
import { InsightSpec } from '../entities';
|
|
4
|
+
export declare class SysInsightsService {
|
|
5
|
+
private apiUrl;
|
|
6
|
+
private rest;
|
|
7
|
+
private baseUrl;
|
|
8
|
+
constructor(apiUrl: string, rest: RestUtil);
|
|
9
|
+
/**
|
|
10
|
+
* Create new insight query
|
|
11
|
+
*/
|
|
12
|
+
createQuery(body?: InsightQuery): import("rxjs").Observable<EntityResponse<InsightQuery>>;
|
|
13
|
+
/**
|
|
14
|
+
* Update existing insight query
|
|
15
|
+
*/
|
|
16
|
+
updateQuery(body?: InsightQuery): import("rxjs").Observable<EntityResponse<InsightQuery>>;
|
|
17
|
+
/**
|
|
18
|
+
* Delete insight query from the system
|
|
19
|
+
*/
|
|
20
|
+
deleteQuery(id?: string): import("rxjs").Observable<ActionResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Get single insight query by id
|
|
23
|
+
*/
|
|
24
|
+
getQuery(id?: string): import("rxjs").Observable<EntityResponse<InsightQuery>>;
|
|
25
|
+
/**
|
|
26
|
+
* Find list of insight queries
|
|
27
|
+
*/
|
|
28
|
+
findQueries(search?: string, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<InsightQuery>>;
|
|
29
|
+
/**
|
|
30
|
+
* Create new insight spec
|
|
31
|
+
*/
|
|
32
|
+
createSpec(body?: InsightSpec): import("rxjs").Observable<EntityResponse<InsightSpec>>;
|
|
33
|
+
/**
|
|
34
|
+
* Update existing insight spec
|
|
35
|
+
*/
|
|
36
|
+
updateSpec(body?: InsightSpec): import("rxjs").Observable<EntityResponse<InsightSpec>>;
|
|
37
|
+
/**
|
|
38
|
+
* Delete insight spec from the system
|
|
39
|
+
*/
|
|
40
|
+
deleteSpec(id?: string): import("rxjs").Observable<ActionResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* Get single insight spec by id
|
|
43
|
+
*/
|
|
44
|
+
getSpec(id?: string): import("rxjs").Observable<EntityResponse<InsightSpec>>;
|
|
45
|
+
/**
|
|
46
|
+
* Find list of insight specs
|
|
47
|
+
*/
|
|
48
|
+
findSpecs(accountId?: string, streamId?: string, search?: string, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<InsightSpec>>;
|
|
49
|
+
/**
|
|
50
|
+
* Find list of insight specs
|
|
51
|
+
*/
|
|
52
|
+
findSpecsQueries(accountId?: string, streamId?: string, search?: string, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<InsightQuery>>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SysInsightsService = void 0;
|
|
4
|
+
// List of insight queries related actions for system administrator only
|
|
5
|
+
// @RequestHeader X-API-KEY The key to identify the application (console)
|
|
6
|
+
// @RequestHeader X-ACCESS-TOKEN The token to identify the logged-in user
|
|
7
|
+
class SysInsightsService {
|
|
8
|
+
// Class constructor
|
|
9
|
+
constructor(apiUrl, rest) {
|
|
10
|
+
this.apiUrl = apiUrl;
|
|
11
|
+
this.rest = rest;
|
|
12
|
+
// URL to web api
|
|
13
|
+
this.baseUrl = '/sys/insights';
|
|
14
|
+
this.baseUrl = apiUrl + this.baseUrl;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Create new insight query
|
|
18
|
+
*/
|
|
19
|
+
createQuery(body) {
|
|
20
|
+
return this.rest.put(`${this.baseUrl}/query`, typeof body === 'object' ? JSON.stringify(body) : body);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Update existing insight query
|
|
24
|
+
*/
|
|
25
|
+
updateQuery(body) {
|
|
26
|
+
return this.rest.patch(`${this.baseUrl}/query`, typeof body === 'object' ? JSON.stringify(body) : body);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Delete insight query from the system
|
|
30
|
+
*/
|
|
31
|
+
deleteQuery(id) {
|
|
32
|
+
return this.rest.delete(`${this.baseUrl}/query/${id}`);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get single insight query by id
|
|
36
|
+
*/
|
|
37
|
+
getQuery(id) {
|
|
38
|
+
return this.rest.get(`${this.baseUrl}/query/${id}`);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Find list of insight queries
|
|
42
|
+
*/
|
|
43
|
+
findQueries(search, sort, page, size) {
|
|
44
|
+
const params = [];
|
|
45
|
+
if (search != null) {
|
|
46
|
+
params.push(`search=${search}`);
|
|
47
|
+
}
|
|
48
|
+
if (sort != null) {
|
|
49
|
+
params.push(`sort=${sort}`);
|
|
50
|
+
}
|
|
51
|
+
if (page != null) {
|
|
52
|
+
params.push(`page=${page}`);
|
|
53
|
+
}
|
|
54
|
+
if (size != null) {
|
|
55
|
+
params.push(`size=${size}`);
|
|
56
|
+
}
|
|
57
|
+
return this.rest.get(`${this.baseUrl}/query`, ...params);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Create new insight spec
|
|
61
|
+
*/
|
|
62
|
+
createSpec(body) {
|
|
63
|
+
return this.rest.put(`${this.baseUrl}/spec`, typeof body === 'object' ? JSON.stringify(body) : body);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Update existing insight spec
|
|
67
|
+
*/
|
|
68
|
+
updateSpec(body) {
|
|
69
|
+
return this.rest.patch(`${this.baseUrl}/spec`, typeof body === 'object' ? JSON.stringify(body) : body);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Delete insight spec from the system
|
|
73
|
+
*/
|
|
74
|
+
deleteSpec(id) {
|
|
75
|
+
return this.rest.delete(`${this.baseUrl}/spec/${id}`);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Get single insight spec by id
|
|
79
|
+
*/
|
|
80
|
+
getSpec(id) {
|
|
81
|
+
return this.rest.get(`${this.baseUrl}/spec/${id}`);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Find list of insight specs
|
|
85
|
+
*/
|
|
86
|
+
findSpecs(accountId, streamId, search, sort, page, size) {
|
|
87
|
+
const params = [];
|
|
88
|
+
if (accountId != null) {
|
|
89
|
+
params.push(`accountId=${accountId}`);
|
|
90
|
+
}
|
|
91
|
+
if (streamId != null) {
|
|
92
|
+
params.push(`streamId=${streamId}`);
|
|
93
|
+
}
|
|
94
|
+
if (search != null) {
|
|
95
|
+
params.push(`search=${search}`);
|
|
96
|
+
}
|
|
97
|
+
if (sort != null) {
|
|
98
|
+
params.push(`sort=${sort}`);
|
|
99
|
+
}
|
|
100
|
+
if (page != null) {
|
|
101
|
+
params.push(`page=${page}`);
|
|
102
|
+
}
|
|
103
|
+
if (size != null) {
|
|
104
|
+
params.push(`size=${size}`);
|
|
105
|
+
}
|
|
106
|
+
return this.rest.get(`${this.baseUrl}/spec`, ...params);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Find list of insight specs
|
|
110
|
+
*/
|
|
111
|
+
findSpecsQueries(accountId, streamId, search, sort, page, size) {
|
|
112
|
+
const params = [];
|
|
113
|
+
if (accountId != null) {
|
|
114
|
+
params.push(`accountId=${accountId}`);
|
|
115
|
+
}
|
|
116
|
+
if (streamId != null) {
|
|
117
|
+
params.push(`streamId=${streamId}`);
|
|
118
|
+
}
|
|
119
|
+
if (search != null) {
|
|
120
|
+
params.push(`search=${search}`);
|
|
121
|
+
}
|
|
122
|
+
if (sort != null) {
|
|
123
|
+
params.push(`sort=${sort}`);
|
|
124
|
+
}
|
|
125
|
+
if (page != null) {
|
|
126
|
+
params.push(`page=${page}`);
|
|
127
|
+
}
|
|
128
|
+
if (size != null) {
|
|
129
|
+
params.push(`size=${size}`);
|
|
130
|
+
}
|
|
131
|
+
return this.rest.get(`${this.baseUrl}/spec-queries`, ...params);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.SysInsightsService = SysInsightsService;
|
|
135
|
+
//# sourceMappingURL=sysInsightsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sysInsightsService.js","sourceRoot":"","sources":["../../../../src/lib/services/sysInsightsService.ts"],"names":[],"mappings":";;;AAOA,yEAAyE;AACzE,0EAA0E;AAC1E,0EAA0E;AAC1E,MAAa,kBAAkB;IAK7B,oBAAoB;IACpB,YAAoB,MAAc,EAAU,IAA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,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,CAAC,IAAI,CAAC,YAAY,QAAQ,EAAE,CAAC,CAAC;QAAC,CAAC;QAC9D,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,CAAC,IAAI,CAAC,UAAU,MAAM,EAAE,CAAC,CAAC;QAAC,CAAC;QACxD,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;QAAC,CAAC;QAClD,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;QAAC,CAAC;QAClD,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;YAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;QAAC,CAAC;QAEpD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAiC,GAAG,IAAI,CAAC,OAAO,eAAe,EAAE,GAAG,MAAM,CAAC,CAAC;IAChG,CAAC;CAEF;AA9GD,gDA8GC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
-
import { ApiKey } from '../entities';
|
|
3
2
|
import { StringIntValue } from '../common';
|
|
3
|
+
import { ApiKey } from '../entities';
|
|
4
4
|
export declare class SysKeysService {
|
|
5
5
|
private apiUrl;
|
|
6
6
|
private rest;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
+
import { UserStatusCode } from '../enums';
|
|
2
3
|
import { UserMemberships } from '../entities';
|
|
3
4
|
import { User } from '../entities';
|
|
4
5
|
import { UserTypeCode } from '../enums';
|
|
5
|
-
import { UserStatusCode } from '../enums';
|
|
6
6
|
export declare class SysUsersService {
|
|
7
7
|
private apiUrl;
|
|
8
8
|
private rest;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
2
|
import { EventTypeCode } from '../enums';
|
|
3
|
-
import {
|
|
4
|
-
import { AlertWithDevice } from '../entities';
|
|
5
|
-
import { IntDistribution } from '../entities';
|
|
6
|
-
import { Alert } from '../entities';
|
|
7
|
-
import { SeverityTypeCode } from '../enums';
|
|
3
|
+
import { MaliciousIPCard } from '../common';
|
|
8
4
|
import { RuleTypeCode } from '../enums';
|
|
9
|
-
import { StringKeyValue } from '../common';
|
|
10
5
|
import { MaliciousIPData } from '../common';
|
|
11
|
-
import {
|
|
12
|
-
import { EventStatusCode } from '../enums';
|
|
13
|
-
import { DeviceActionCode } from '../enums';
|
|
6
|
+
import { IntDistribution } from '../entities';
|
|
14
7
|
import { TimeSeriesOf2D } from '../common';
|
|
15
8
|
import { TimeSeriesOfFloat } from '../common';
|
|
9
|
+
import { DeviceActionCode } from '../enums';
|
|
10
|
+
import { StringKeyValue } from '../common';
|
|
11
|
+
import { Alert } from '../entities';
|
|
12
|
+
import { SeverityTypeCode } from '../enums';
|
|
13
|
+
import { EventCategoryCode } from '../enums';
|
|
14
|
+
import { EventStatusCode } from '../enums';
|
|
15
|
+
import { AlertWithDevice } from '../entities';
|
|
16
16
|
export declare class UsrAlertsService {
|
|
17
17
|
private apiUrl;
|
|
18
18
|
private rest;
|
|
@@ -25,7 +25,7 @@ export declare class UsrAlertsService {
|
|
|
25
25
|
/**
|
|
26
26
|
* Find list of alerts by query
|
|
27
27
|
*/
|
|
28
|
-
find(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[], sort?: string, page?: number, size?: number, withoutOccurrences?: boolean,
|
|
28
|
+
find(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[], sort?: string, page?: number, size?: number, withoutOccurrences?: boolean, ids?: string[]): import("rxjs").Observable<EntitiesResponse<Alert>>;
|
|
29
29
|
/**
|
|
30
30
|
* Export list of alerts by query to a file with the specified format
|
|
31
31
|
*/
|
|
@@ -33,7 +33,7 @@ export declare class UsrAlertsService {
|
|
|
33
33
|
/**
|
|
34
34
|
* Find top 10 alerts by their severity filter by query
|
|
35
35
|
*/
|
|
36
|
-
getTop(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[], sort?: string, page?: number, size?: number, withoutOccurrences?: boolean,
|
|
36
|
+
getTop(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[], sort?: string, page?: number, size?: number, withoutOccurrences?: boolean, ids?: string[]): import("rxjs").Observable<EntitiesResponse<AlertWithDevice>>;
|
|
37
37
|
/**
|
|
38
38
|
* Get top malicious IPs
|
|
39
39
|
*/
|
|
@@ -41,23 +41,23 @@ export declare class UsrAlertsService {
|
|
|
41
41
|
/**
|
|
42
42
|
* Find alerts distribution by type filtered by query
|
|
43
43
|
*/
|
|
44
|
-
countByType(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[], sort?: string, page?: number, size?: number, withoutOccurrences?: boolean,
|
|
44
|
+
countByType(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[], sort?: string, page?: number, size?: number, withoutOccurrences?: boolean, ids?: string[]): import("rxjs").Observable<EntityResponse<IntDistribution>>;
|
|
45
45
|
/**
|
|
46
46
|
* Find alerts distribution by status filtered by query
|
|
47
47
|
*/
|
|
48
|
-
countByStatus(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[], sort?: string, page?: number, size?: number, withoutOccurrences?: boolean,
|
|
48
|
+
countByStatus(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[], sort?: string, page?: number, size?: number, withoutOccurrences?: boolean, ids?: string[]): import("rxjs").Observable<EntityResponse<IntDistribution>>;
|
|
49
49
|
/**
|
|
50
50
|
* Find alerts distribution by severity filtered by query
|
|
51
51
|
*/
|
|
52
|
-
countBySeverity(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[], sort?: string, page?: number, size?: number, withoutOccurrences?: boolean,
|
|
52
|
+
countBySeverity(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[], sort?: string, page?: number, size?: number, withoutOccurrences?: boolean, ids?: string[]): import("rxjs").Observable<EntityResponse<IntDistribution>>;
|
|
53
53
|
/**
|
|
54
54
|
* Find alerts distribution by rule filtered by query
|
|
55
55
|
*/
|
|
56
|
-
countByRule(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[], sort?: string, page?: number, size?: number, withoutOccurrences?: boolean,
|
|
56
|
+
countByRule(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[], sort?: string, page?: number, size?: number, withoutOccurrences?: boolean, ids?: string[]): import("rxjs").Observable<EntityResponse<IntDistribution>>;
|
|
57
57
|
/**
|
|
58
58
|
* Find alerts distribution by category filtered by query
|
|
59
59
|
*/
|
|
60
|
-
countByCategory(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[], sort?: string, page?: number, size?: number, withoutOccurrences?: boolean,
|
|
60
|
+
countByCategory(streamId?: string, deviceId?: string, search?: string, from?: number, to?: number, type?: EventTypeCode[], severity?: SeverityTypeCode[], category?: EventCategoryCode[], status?: EventStatusCode[], ruleId?: string[], targetIp?: string, ruleType?: RuleTypeCode[], sort?: string, page?: number, size?: number, withoutOccurrences?: boolean, ids?: string[]): import("rxjs").Observable<EntityResponse<IntDistribution>>;
|
|
61
61
|
/**
|
|
62
62
|
* Add tag to an alert
|
|
63
63
|
*/
|
|
@@ -22,7 +22,7 @@ class UsrAlertsService {
|
|
|
22
22
|
/**
|
|
23
23
|
* Find list of alerts by query
|
|
24
24
|
*/
|
|
25
|
-
find(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType, sort, page, size, withoutOccurrences,
|
|
25
|
+
find(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType, sort, page, size, withoutOccurrences, ids) {
|
|
26
26
|
const params = [];
|
|
27
27
|
if (streamId != null) {
|
|
28
28
|
params.push(`streamId=${streamId}`);
|
|
@@ -72,8 +72,8 @@ class UsrAlertsService {
|
|
|
72
72
|
if (withoutOccurrences != null) {
|
|
73
73
|
params.push(`withoutOccurrences=${withoutOccurrences}`);
|
|
74
74
|
}
|
|
75
|
-
if (
|
|
76
|
-
params.push(`
|
|
75
|
+
if (ids != null) {
|
|
76
|
+
params.push(`ids=${ids}`);
|
|
77
77
|
}
|
|
78
78
|
return this.rest.get(`${this.baseUrl}`, ...params);
|
|
79
79
|
}
|
|
@@ -132,7 +132,7 @@ class UsrAlertsService {
|
|
|
132
132
|
/**
|
|
133
133
|
* Find top 10 alerts by their severity filter by query
|
|
134
134
|
*/
|
|
135
|
-
getTop(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType, sort, page, size, withoutOccurrences,
|
|
135
|
+
getTop(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType, sort, page, size, withoutOccurrences, ids) {
|
|
136
136
|
const params = [];
|
|
137
137
|
if (streamId != null) {
|
|
138
138
|
params.push(`streamId=${streamId}`);
|
|
@@ -182,8 +182,8 @@ class UsrAlertsService {
|
|
|
182
182
|
if (withoutOccurrences != null) {
|
|
183
183
|
params.push(`withoutOccurrences=${withoutOccurrences}`);
|
|
184
184
|
}
|
|
185
|
-
if (
|
|
186
|
-
params.push(`
|
|
185
|
+
if (ids != null) {
|
|
186
|
+
params.push(`ids=${ids}`);
|
|
187
187
|
}
|
|
188
188
|
return this.rest.get(`${this.baseUrl}/top`, ...params);
|
|
189
189
|
}
|
|
@@ -209,7 +209,7 @@ class UsrAlertsService {
|
|
|
209
209
|
/**
|
|
210
210
|
* Find alerts distribution by type filtered by query
|
|
211
211
|
*/
|
|
212
|
-
countByType(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType, sort, page, size, withoutOccurrences,
|
|
212
|
+
countByType(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType, sort, page, size, withoutOccurrences, ids) {
|
|
213
213
|
const params = [];
|
|
214
214
|
if (streamId != null) {
|
|
215
215
|
params.push(`streamId=${streamId}`);
|
|
@@ -259,15 +259,15 @@ class UsrAlertsService {
|
|
|
259
259
|
if (withoutOccurrences != null) {
|
|
260
260
|
params.push(`withoutOccurrences=${withoutOccurrences}`);
|
|
261
261
|
}
|
|
262
|
-
if (
|
|
263
|
-
params.push(`
|
|
262
|
+
if (ids != null) {
|
|
263
|
+
params.push(`ids=${ids}`);
|
|
264
264
|
}
|
|
265
265
|
return this.rest.get(`${this.baseUrl}/count/by-type`, ...params);
|
|
266
266
|
}
|
|
267
267
|
/**
|
|
268
268
|
* Find alerts distribution by status filtered by query
|
|
269
269
|
*/
|
|
270
|
-
countByStatus(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType, sort, page, size, withoutOccurrences,
|
|
270
|
+
countByStatus(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType, sort, page, size, withoutOccurrences, ids) {
|
|
271
271
|
const params = [];
|
|
272
272
|
if (streamId != null) {
|
|
273
273
|
params.push(`streamId=${streamId}`);
|
|
@@ -317,15 +317,15 @@ class UsrAlertsService {
|
|
|
317
317
|
if (withoutOccurrences != null) {
|
|
318
318
|
params.push(`withoutOccurrences=${withoutOccurrences}`);
|
|
319
319
|
}
|
|
320
|
-
if (
|
|
321
|
-
params.push(`
|
|
320
|
+
if (ids != null) {
|
|
321
|
+
params.push(`ids=${ids}`);
|
|
322
322
|
}
|
|
323
323
|
return this.rest.get(`${this.baseUrl}/count/by-status`, ...params);
|
|
324
324
|
}
|
|
325
325
|
/**
|
|
326
326
|
* Find alerts distribution by severity filtered by query
|
|
327
327
|
*/
|
|
328
|
-
countBySeverity(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType, sort, page, size, withoutOccurrences,
|
|
328
|
+
countBySeverity(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType, sort, page, size, withoutOccurrences, ids) {
|
|
329
329
|
const params = [];
|
|
330
330
|
if (streamId != null) {
|
|
331
331
|
params.push(`streamId=${streamId}`);
|
|
@@ -375,15 +375,15 @@ class UsrAlertsService {
|
|
|
375
375
|
if (withoutOccurrences != null) {
|
|
376
376
|
params.push(`withoutOccurrences=${withoutOccurrences}`);
|
|
377
377
|
}
|
|
378
|
-
if (
|
|
379
|
-
params.push(`
|
|
378
|
+
if (ids != null) {
|
|
379
|
+
params.push(`ids=${ids}`);
|
|
380
380
|
}
|
|
381
381
|
return this.rest.get(`${this.baseUrl}/count/by-severity`, ...params);
|
|
382
382
|
}
|
|
383
383
|
/**
|
|
384
384
|
* Find alerts distribution by rule filtered by query
|
|
385
385
|
*/
|
|
386
|
-
countByRule(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType, sort, page, size, withoutOccurrences,
|
|
386
|
+
countByRule(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType, sort, page, size, withoutOccurrences, ids) {
|
|
387
387
|
const params = [];
|
|
388
388
|
if (streamId != null) {
|
|
389
389
|
params.push(`streamId=${streamId}`);
|
|
@@ -433,15 +433,15 @@ class UsrAlertsService {
|
|
|
433
433
|
if (withoutOccurrences != null) {
|
|
434
434
|
params.push(`withoutOccurrences=${withoutOccurrences}`);
|
|
435
435
|
}
|
|
436
|
-
if (
|
|
437
|
-
params.push(`
|
|
436
|
+
if (ids != null) {
|
|
437
|
+
params.push(`ids=${ids}`);
|
|
438
438
|
}
|
|
439
439
|
return this.rest.get(`${this.baseUrl}/count/by-rule`, ...params);
|
|
440
440
|
}
|
|
441
441
|
/**
|
|
442
442
|
* Find alerts distribution by category filtered by query
|
|
443
443
|
*/
|
|
444
|
-
countByCategory(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType, sort, page, size, withoutOccurrences,
|
|
444
|
+
countByCategory(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType, sort, page, size, withoutOccurrences, ids) {
|
|
445
445
|
const params = [];
|
|
446
446
|
if (streamId != null) {
|
|
447
447
|
params.push(`streamId=${streamId}`);
|
|
@@ -491,8 +491,8 @@ class UsrAlertsService {
|
|
|
491
491
|
if (withoutOccurrences != null) {
|
|
492
492
|
params.push(`withoutOccurrences=${withoutOccurrences}`);
|
|
493
493
|
}
|
|
494
|
-
if (
|
|
495
|
-
params.push(`
|
|
494
|
+
if (ids != null) {
|
|
495
|
+
params.push(`ids=${ids}`);
|
|
496
496
|
}
|
|
497
497
|
return this.rest.get(`${this.baseUrl}/count/by-category`, ...params);
|
|
498
498
|
}
|