@shieldiot/pulse-lib 1.0.397 → 1.0.400
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/DevicesMap.d.ts +1 -1
- package/dist/cjs/lib/entities/AccountDTO.d.ts +3 -3
- package/dist/cjs/lib/entities/AccountDTO.js.map +1 -1
- package/dist/cjs/lib/entities/AccountReportDTO.d.ts +1 -1
- package/dist/cjs/lib/entities/AccountReportDTO.js.map +1 -1
- package/dist/cjs/lib/entities/Alert.d.ts +3 -3
- package/dist/cjs/lib/entities/Alert.js.map +1 -1
- package/dist/cjs/lib/entities/AlertWithDevice.d.ts +6 -6
- package/dist/cjs/lib/entities/AlertWithDevice.js.map +1 -1
- package/dist/cjs/lib/entities/Device.d.ts +2 -2
- package/dist/cjs/lib/entities/Device.js.map +1 -1
- package/dist/cjs/lib/entities/DeviceWithEvents.d.ts +2 -2
- package/dist/cjs/lib/entities/DeviceWithEvents.js.map +1 -1
- package/dist/cjs/lib/entities/Event.d.ts +4 -4
- package/dist/cjs/lib/entities/Event.js.map +1 -1
- package/dist/cjs/lib/entities/EventWithDevice.d.ts +6 -6
- package/dist/cjs/lib/entities/EventWithDevice.js.map +1 -1
- package/dist/cjs/lib/entities/FeaturesGroup.d.ts +1 -1
- package/dist/cjs/lib/entities/FeaturesGroup.js.map +1 -1
- package/dist/cjs/lib/entities/IdsRule.d.ts +1 -1
- 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/Integration.d.ts +1 -1
- package/dist/cjs/lib/entities/Integration.js.map +1 -1
- package/dist/cjs/lib/entities/NotificationMessage.d.ts +8 -0
- package/dist/cjs/lib/entities/NotificationMessage.js +9 -0
- package/dist/cjs/lib/entities/NotificationMessage.js.map +1 -0
- package/dist/cjs/lib/entities/NotificationMessageDTO.d.ts +11 -0
- package/dist/cjs/lib/entities/NotificationMessageDTO.js +9 -0
- package/dist/cjs/lib/entities/NotificationMessageDTO.js.map +1 -0
- package/dist/cjs/lib/entities/NotificationMessageStats.d.ts +5 -0
- package/dist/cjs/lib/entities/NotificationMessageStats.js +16 -0
- package/dist/cjs/lib/entities/NotificationMessageStats.js.map +1 -0
- 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 +2 -2
- 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/Stream.d.ts +1 -1
- package/dist/cjs/lib/entities/Stream.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 +5 -5
- package/dist/cjs/lib/entities/TimeSeriesOfDeviceReport.d.ts +1 -1
- package/dist/cjs/lib/entities/UserNotificationMessage.d.ts +6 -0
- package/dist/cjs/lib/entities/UserNotificationMessage.js +9 -0
- package/dist/cjs/lib/entities/UserNotificationMessage.js.map +1 -0
- package/dist/cjs/lib/entities/index.d.ts +4 -0
- package/dist/cjs/lib/entities/index.js +4 -0
- package/dist/cjs/lib/entities/index.js.map +1 -1
- package/dist/cjs/lib/enums/NotificationTypeCode.d.ts +10 -0
- package/dist/cjs/lib/enums/NotificationTypeCode.js +35 -0
- package/dist/cjs/lib/enums/NotificationTypeCode.js.map +1 -0
- package/dist/cjs/lib/enums/index.d.ts +1 -0
- package/dist/cjs/lib/enums/index.js +1 -0
- package/dist/cjs/lib/enums/index.js.map +1 -1
- package/dist/cjs/lib/pulse-client.d.ts +2 -0
- package/dist/cjs/lib/pulse-client.js +25 -23
- 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 +1 -1
- package/dist/cjs/lib/services/sysFeaturesService.d.ts +1 -1
- 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 +9 -9
- package/dist/cjs/lib/services/usrDevicesService.d.ts +9 -9
- package/dist/cjs/lib/services/usrEventsService.d.ts +7 -7
- package/dist/cjs/lib/services/usrNetworkService.d.ts +2 -2
- package/dist/cjs/lib/services/usrNotificationMessageService.d.ts +29 -0
- package/dist/cjs/lib/services/usrNotificationMessageService.js +61 -0
- package/dist/cjs/lib/services/usrNotificationMessageService.js.map +1 -0
- package/dist/cjs/lib/services/usrReportsInstanceService.d.ts +1 -1
- package/dist/cjs/lib/services/usrUserService.d.ts +5 -5
- package/dist/esm/lib/common/DevicesMap.d.ts +1 -1
- package/dist/esm/lib/entities/AccountDTO.d.ts +3 -3
- package/dist/esm/lib/entities/AccountDTO.js.map +1 -1
- package/dist/esm/lib/entities/AccountReportDTO.d.ts +1 -1
- package/dist/esm/lib/entities/AccountReportDTO.js.map +1 -1
- package/dist/esm/lib/entities/Alert.d.ts +3 -3
- package/dist/esm/lib/entities/Alert.js.map +1 -1
- package/dist/esm/lib/entities/AlertWithDevice.d.ts +6 -6
- package/dist/esm/lib/entities/AlertWithDevice.js.map +1 -1
- package/dist/esm/lib/entities/Device.d.ts +2 -2
- package/dist/esm/lib/entities/Device.js.map +1 -1
- package/dist/esm/lib/entities/DeviceWithEvents.d.ts +2 -2
- package/dist/esm/lib/entities/DeviceWithEvents.js.map +1 -1
- package/dist/esm/lib/entities/Event.d.ts +4 -4
- package/dist/esm/lib/entities/Event.js.map +1 -1
- package/dist/esm/lib/entities/EventWithDevice.d.ts +6 -6
- package/dist/esm/lib/entities/EventWithDevice.js.map +1 -1
- package/dist/esm/lib/entities/FeaturesGroup.d.ts +1 -1
- package/dist/esm/lib/entities/FeaturesGroup.js.map +1 -1
- package/dist/esm/lib/entities/IdsRule.d.ts +1 -1
- 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/Integration.d.ts +1 -1
- package/dist/esm/lib/entities/Integration.js.map +1 -1
- package/dist/esm/lib/entities/NotificationMessage.d.ts +8 -0
- package/dist/esm/lib/entities/NotificationMessage.js +5 -0
- package/dist/esm/lib/entities/NotificationMessage.js.map +1 -0
- package/dist/esm/lib/entities/NotificationMessageDTO.d.ts +11 -0
- package/dist/esm/lib/entities/NotificationMessageDTO.js +5 -0
- package/dist/esm/lib/entities/NotificationMessageDTO.js.map +1 -0
- package/dist/esm/lib/entities/NotificationMessageStats.d.ts +5 -0
- package/dist/esm/lib/entities/NotificationMessageStats.js +12 -0
- package/dist/esm/lib/entities/NotificationMessageStats.js.map +1 -0
- 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 +2 -2
- 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/Stream.d.ts +1 -1
- package/dist/esm/lib/entities/Stream.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 +5 -5
- package/dist/esm/lib/entities/TimeSeriesOfDeviceReport.d.ts +1 -1
- package/dist/esm/lib/entities/UserNotificationMessage.d.ts +6 -0
- package/dist/esm/lib/entities/UserNotificationMessage.js +5 -0
- package/dist/esm/lib/entities/UserNotificationMessage.js.map +1 -0
- package/dist/esm/lib/entities/index.d.ts +4 -0
- package/dist/esm/lib/entities/index.js +4 -0
- package/dist/esm/lib/entities/index.js.map +1 -1
- package/dist/esm/lib/enums/NotificationTypeCode.d.ts +10 -0
- package/dist/esm/lib/enums/NotificationTypeCode.js +31 -0
- package/dist/esm/lib/enums/NotificationTypeCode.js.map +1 -0
- package/dist/esm/lib/enums/index.d.ts +1 -0
- package/dist/esm/lib/enums/index.js +1 -0
- package/dist/esm/lib/enums/index.js.map +1 -1
- package/dist/esm/lib/pulse-client.d.ts +2 -0
- package/dist/esm/lib/pulse-client.js +2 -0
- 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 +1 -1
- package/dist/esm/lib/services/sysFeaturesService.d.ts +1 -1
- 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 +9 -9
- package/dist/esm/lib/services/usrDevicesService.d.ts +9 -9
- package/dist/esm/lib/services/usrEventsService.d.ts +7 -7
- package/dist/esm/lib/services/usrNetworkService.d.ts +2 -2
- package/dist/esm/lib/services/usrNotificationMessageService.d.ts +29 -0
- package/dist/esm/lib/services/usrNotificationMessageService.js +57 -0
- package/dist/esm/lib/services/usrNotificationMessageService.js.map +1 -0
- package/dist/esm/lib/services/usrReportsInstanceService.d.ts +1 -1
- package/dist/esm/lib/services/usrUserService.d.ts +5 -5
- package/dist/types/lib/common/DevicesMap.d.ts +1 -1
- package/dist/types/lib/entities/AccountDTO.d.ts +3 -3
- package/dist/types/lib/entities/AccountReportDTO.d.ts +1 -1
- package/dist/types/lib/entities/Alert.d.ts +3 -3
- package/dist/types/lib/entities/AlertWithDevice.d.ts +6 -6
- package/dist/types/lib/entities/Device.d.ts +2 -2
- package/dist/types/lib/entities/DeviceWithEvents.d.ts +2 -2
- package/dist/types/lib/entities/Event.d.ts +4 -4
- package/dist/types/lib/entities/EventWithDevice.d.ts +6 -6
- package/dist/types/lib/entities/FeaturesGroup.d.ts +1 -1
- package/dist/types/lib/entities/IdsRule.d.ts +1 -1
- package/dist/types/lib/entities/Insight.d.ts +3 -3
- package/dist/types/lib/entities/Integration.d.ts +1 -1
- package/dist/types/lib/entities/NotificationMessage.d.ts +8 -0
- package/dist/types/lib/entities/NotificationMessageDTO.d.ts +11 -0
- package/dist/types/lib/entities/NotificationMessageStats.d.ts +5 -0
- package/dist/types/lib/entities/ReportInstance.d.ts +1 -1
- package/dist/types/lib/entities/Rule.d.ts +2 -2
- package/dist/types/lib/entities/RuleTemplate.d.ts +1 -1
- package/dist/types/lib/entities/Stream.d.ts +1 -1
- package/dist/types/lib/entities/StreamAnalyticsConfig.d.ts +2 -2
- package/dist/types/lib/entities/StreamConfig.d.ts +5 -5
- package/dist/types/lib/entities/TimeSeriesOfDeviceReport.d.ts +1 -1
- package/dist/types/lib/entities/UserNotificationMessage.d.ts +6 -0
- package/dist/types/lib/entities/index.d.ts +4 -0
- package/dist/types/lib/enums/NotificationTypeCode.d.ts +10 -0
- package/dist/types/lib/enums/index.d.ts +1 -0
- package/dist/types/lib/pulse-client.d.ts +2 -0
- 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 +1 -1
- package/dist/types/lib/services/sysFeaturesService.d.ts +1 -1
- 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 +9 -9
- package/dist/types/lib/services/usrDevicesService.d.ts +9 -9
- package/dist/types/lib/services/usrEventsService.d.ts +7 -7
- package/dist/types/lib/services/usrNetworkService.d.ts +2 -2
- package/dist/types/lib/services/usrNotificationMessageService.d.ts +29 -0
- package/dist/types/lib/services/usrReportsInstanceService.d.ts +1 -1
- package/dist/types/lib/services/usrUserService.d.ts +5 -5
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
|
@@ -31,6 +31,7 @@ const services_24 = require("./services");
|
|
|
31
31
|
const services_25 = require("./services");
|
|
32
32
|
const services_26 = require("./services");
|
|
33
33
|
const services_27 = require("./services");
|
|
34
|
+
const services_28 = require("./services");
|
|
34
35
|
// PulseClient is the main entry point of the client library.
|
|
35
36
|
// Create a single global instance of PulseClient in your application and use
|
|
36
37
|
// Factory methods to get service endpoints
|
|
@@ -55,29 +56,30 @@ class PulseClient {
|
|
|
55
56
|
this.UsrDevicesService = new services_2.UsrDevicesService(apiUrl, this.restSvc);
|
|
56
57
|
this.UsrEventsService = new services_3.UsrEventsService(apiUrl, this.restSvc);
|
|
57
58
|
this.UsrNetworkService = new services_4.UsrNetworkService(apiUrl, this.restSvc);
|
|
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.
|
|
79
|
-
this.
|
|
80
|
-
this.
|
|
59
|
+
this.UsrNotificationMessageService = new services_5.UsrNotificationMessageService(apiUrl, this.restSvc);
|
|
60
|
+
this.UsrReportsInstanceService = new services_6.UsrReportsInstanceService(apiUrl, this.restSvc);
|
|
61
|
+
this.UsrReportsService = new services_7.UsrReportsService(apiUrl, this.restSvc);
|
|
62
|
+
this.UsrRulesService = new services_8.UsrRulesService(apiUrl, this.restSvc);
|
|
63
|
+
this.SupportStreamAnalyticsConfig = new services_9.SupportStreamAnalyticsConfig(apiUrl, this.restSvc);
|
|
64
|
+
this.SysAccountsService = new services_10.SysAccountsService(apiUrl, this.restSvc);
|
|
65
|
+
this.SysAuditLogService = new services_11.SysAuditLogService(apiUrl, this.restSvc);
|
|
66
|
+
this.SysCheckpointsService = new services_12.SysCheckpointsService(apiUrl, this.restSvc);
|
|
67
|
+
this.SysConfigService = new services_13.SysConfigService(apiUrl, this.restSvc);
|
|
68
|
+
this.SysFeaturesService = new services_14.SysFeaturesService(apiUrl, this.restSvc);
|
|
69
|
+
this.SysGroupsService = new services_15.SysGroupsService(apiUrl, this.restSvc);
|
|
70
|
+
this.SysIdsRulesService = new services_16.SysIdsRulesService(apiUrl, this.restSvc);
|
|
71
|
+
this.SysInsightsService = new services_17.SysInsightsService(apiUrl, this.restSvc);
|
|
72
|
+
this.SysKeysService = new services_18.SysKeysService(apiUrl, this.restSvc);
|
|
73
|
+
this.SysMembersService = new services_19.SysMembersService(apiUrl, this.restSvc);
|
|
74
|
+
this.SysRuleTemplatesService = new services_20.SysRuleTemplatesService(apiUrl, this.restSvc);
|
|
75
|
+
this.SysRulesService = new services_21.SysRulesService(apiUrl, this.restSvc);
|
|
76
|
+
this.SysStatisticsService = new services_22.SysStatisticsService(apiUrl, this.restSvc);
|
|
77
|
+
this.SysStreamsService = new services_23.SysStreamsService(apiUrl, this.restSvc);
|
|
78
|
+
this.SysUsersService = new services_24.SysUsersService(apiUrl, this.restSvc);
|
|
79
|
+
this.UsrInsightsService = new services_25.UsrInsightsService(apiUrl, this.restSvc);
|
|
80
|
+
this.UsrIntegrationsService = new services_26.UsrIntegrationsService(apiUrl, this.restSvc);
|
|
81
|
+
this.UsrMembersService = new services_27.UsrMembersService(apiUrl, this.restSvc);
|
|
82
|
+
this.UsrUserService = new services_28.UsrUserService(apiUrl, this.restSvc);
|
|
81
83
|
}
|
|
82
84
|
}
|
|
83
85
|
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,yCAA8C;AAC9C,yCAA+C;AAC/C,yCAA8C;AAC9C,yCAA+C;AAC/C,yCAAuD;AACvD,yCAA+C;AAC/C,yCAA6C;AAC7C,yCAA0D;AAC1D,
|
|
1
|
+
{"version":3,"file":"pulse-client.js","sourceRoot":"","sources":["../../../src/lib/pulse-client.ts"],"names":[],"mappings":";;;;AAAA,0DAAiE;AACjE,oCAAoC;AAEpC,yCAA8C;AAC9C,yCAA+C;AAC/C,yCAA8C;AAC9C,yCAA+C;AAC/C,yCAA2D;AAC3D,yCAAuD;AACvD,yCAA+C;AAC/C,yCAA6C;AAC7C,yCAA0D;AAC1D,0CAAgD;AAChD,0CAAgD;AAChD,0CAAmD;AACnD,0CAA8C;AAC9C,0CAAgD;AAChD,0CAA8C;AAC9C,0CAAgD;AAChD,0CAAgD;AAChD,0CAA4C;AAC5C,0CAA+C;AAC/C,0CAAqD;AACrD,0CAA6C;AAC7C,0CAAkD;AAClD,0CAA+C;AAC/C,0CAA6C;AAC7C,0CAAgD;AAChD,0CAAoD;AACpD,0CAA+C;AAC/C,0CAA4C;AAG5C,6DAA6D;AAC7D,6EAA6E;AAC7E,2CAA2C;AAC3C,MAAa,WAAW;IAKpB,cAAc;IACd,YAAY,MAAc,EAAE,MAAe,EAAE,WAAoB;QAE7D,mBAAmB;QACnB,IAAI,yBAAyB,GAAuB;YAChD,OAAO,EAAE,MAAM;YACf,YAAY,EAAE,MAAM;YACpB,OAAO,EAAE;gBACL,cAAc,EAAE,kBAAkB;gBAClC,WAAW,EAAE,MAAM;gBACnB,gBAAgB,EAAE,WAAW;aAChC;SACJ,CAAC;QACF,qBAAqB;QACrB,IAAI,CAAC,SAAS,GAAG,eAAK,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC;QACzD,IAAI,CAAC,OAAO,GAAG,IAAI,gBAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAE5C,sBAAsB;QACtB,IAAI,CAAC,gBAAgB,GAAG,IAAI,2BAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,IAAI,CAAC,iBAAiB,GAAG,IAAI,4BAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACrE,IAAI,CAAC,gBAAgB,GAAG,IAAI,2BAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,IAAI,CAAC,iBAAiB,GAAG,IAAI,4BAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACrE,IAAI,CAAC,6BAA6B,GAAG,IAAI,wCAA6B,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7F,IAAI,CAAC,yBAAyB,GAAG,IAAI,oCAAyB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACrF,IAAI,CAAC,iBAAiB,GAAG,IAAI,4BAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACrE,IAAI,CAAC,eAAe,GAAG,IAAI,0BAAe,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACjE,IAAI,CAAC,4BAA4B,GAAG,IAAI,uCAA4B,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3F,IAAI,CAAC,kBAAkB,GAAG,IAAI,8BAAkB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACvE,IAAI,CAAC,kBAAkB,GAAG,IAAI,8BAAkB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACvE,IAAI,CAAC,qBAAqB,GAAG,IAAI,iCAAqB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,IAAI,CAAC,gBAAgB,GAAG,IAAI,4BAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,IAAI,CAAC,kBAAkB,GAAG,IAAI,8BAAkB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACvE,IAAI,CAAC,gBAAgB,GAAG,IAAI,4BAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,IAAI,CAAC,kBAAkB,GAAG,IAAI,8BAAkB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACvE,IAAI,CAAC,kBAAkB,GAAG,IAAI,8BAAkB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACvE,IAAI,CAAC,cAAc,GAAG,IAAI,0BAAc,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/D,IAAI,CAAC,iBAAiB,GAAG,IAAI,6BAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACrE,IAAI,CAAC,uBAAuB,GAAG,IAAI,mCAAuB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACjF,IAAI,CAAC,eAAe,GAAG,IAAI,2BAAe,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACjE,IAAI,CAAC,oBAAoB,GAAG,IAAI,gCAAoB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3E,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;QACjE,IAAI,CAAC,kBAAkB,GAAG,IAAI,8BAAkB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACvE,IAAI,CAAC,sBAAsB,GAAG,IAAI,kCAAsB,CAAC,MAAM,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;IAEnE,CAAC;CAgCJ;AApFD,kCAoFC"}
|
|
@@ -22,6 +22,7 @@ export * from './usrInsightsService';
|
|
|
22
22
|
export * from './usrIntegrationsService';
|
|
23
23
|
export * from './usrMembersService';
|
|
24
24
|
export * from './usrNetworkService';
|
|
25
|
+
export * from './usrNotificationMessageService';
|
|
25
26
|
export * from './usrReportsInstanceService';
|
|
26
27
|
export * from './usrReportsService';
|
|
27
28
|
export * from './usrRulesService';
|
|
@@ -25,6 +25,7 @@ tslib_1.__exportStar(require("./usrInsightsService"), exports);
|
|
|
25
25
|
tslib_1.__exportStar(require("./usrIntegrationsService"), exports);
|
|
26
26
|
tslib_1.__exportStar(require("./usrMembersService"), exports);
|
|
27
27
|
tslib_1.__exportStar(require("./usrNetworkService"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./usrNotificationMessageService"), exports);
|
|
28
29
|
tslib_1.__exportStar(require("./usrReportsInstanceService"), exports);
|
|
29
30
|
tslib_1.__exportStar(require("./usrReportsService"), exports);
|
|
30
31
|
tslib_1.__exportStar(require("./usrRulesService"), 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,+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,0EAAgD;AAChD,sEAA4C;AAC5C,8DAAoC;AACpC,4DAAkC;AAClC,2DAAiC"}
|
|
@@ -22,7 +22,8 @@ import { UsrAlertsService } from './usrAlertsService';
|
|
|
22
22
|
import { UsrDevicesService } from './usrDevicesService';
|
|
23
23
|
import { UsrEventsService } from './usrEventsService';
|
|
24
24
|
import { UsrNetworkService } from './usrNetworkService';
|
|
25
|
+
import { UsrNotificationMessageService } from './usrNotificationMessageService';
|
|
25
26
|
import { UsrReportsInstanceService } from './usrReportsInstanceService';
|
|
26
27
|
import { UsrReportsService } from './usrReportsService';
|
|
27
28
|
import { UsrRulesService } from './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)[];
|
|
29
|
+
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 UsrNotificationMessageService | typeof UsrReportsInstanceService | typeof UsrReportsService | typeof UsrRulesService)[];
|
|
@@ -25,6 +25,7 @@ const usrAlertsService_1 = require("./usrAlertsService");
|
|
|
25
25
|
const usrDevicesService_1 = require("./usrDevicesService");
|
|
26
26
|
const usrEventsService_1 = require("./usrEventsService");
|
|
27
27
|
const usrNetworkService_1 = require("./usrNetworkService");
|
|
28
|
+
const usrNotificationMessageService_1 = require("./usrNotificationMessageService");
|
|
28
29
|
const usrReportsInstanceService_1 = require("./usrReportsInstanceService");
|
|
29
30
|
const usrReportsService_1 = require("./usrReportsService");
|
|
30
31
|
const usrRulesService_1 = require("./usrRulesService");
|
|
@@ -53,6 +54,7 @@ exports.Services = [
|
|
|
53
54
|
usrDevicesService_1.UsrDevicesService,
|
|
54
55
|
usrEventsService_1.UsrEventsService,
|
|
55
56
|
usrNetworkService_1.UsrNetworkService,
|
|
57
|
+
usrNotificationMessageService_1.UsrNotificationMessageService,
|
|
56
58
|
usrReportsInstanceService_1.UsrReportsInstanceService,
|
|
57
59
|
usrReportsService_1.UsrReportsService,
|
|
58
60
|
usrRulesService_1.UsrRulesService,
|
|
@@ -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,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
|
+
{"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,mFAAgF;AAChF,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,6DAA6B;IAC7B,qDAAyB;IACzB,qCAAiB;IACjB,iCAAe;CAElB,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
+
import { AccountTypeCode } from '../enums';
|
|
2
3
|
import { AccountStatusCode } from '../enums';
|
|
3
4
|
import { Image } from '../entities';
|
|
4
5
|
import { AccountReportDTO } from '../entities';
|
|
5
6
|
import { Account } from '../entities';
|
|
6
7
|
import { AccountSettings } from '../entities';
|
|
7
|
-
import { AccountTypeCode } from '../enums';
|
|
8
8
|
export declare class SysAccountsService {
|
|
9
9
|
private apiUrl;
|
|
10
10
|
private rest;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
-
import { FeaturesGroup } from '../entities';
|
|
3
2
|
import { Feature } from '../entities';
|
|
3
|
+
import { FeaturesGroup } from '../entities';
|
|
4
4
|
export declare class SysFeaturesService {
|
|
5
5
|
private apiUrl;
|
|
6
6
|
private rest;
|
|
@@ -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 { UserMemberships } from '../entities';
|
|
2
3
|
import { User } from '../entities';
|
|
3
4
|
import { UserTypeCode } from '../enums';
|
|
4
5
|
import { UserStatusCode } from '../enums';
|
|
5
|
-
import { UserMemberships } from '../entities';
|
|
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
|
+
import { Alert } from '../entities';
|
|
3
|
+
import { EventTypeCode } from '../enums';
|
|
4
|
+
import { EventCategoryCode } from '../enums';
|
|
5
|
+
import { IntDistribution } from '../entities';
|
|
6
|
+
import { DeviceActionCode } from '../enums';
|
|
7
|
+
import { StringKeyValue } from '../common';
|
|
8
|
+
import { SeverityTypeCode } from '../enums';
|
|
2
9
|
import { EventStatusCode } from '../enums';
|
|
3
10
|
import { RuleTypeCode } from '../enums';
|
|
11
|
+
import { AlertWithDevice } from '../entities';
|
|
12
|
+
import { MaliciousIPCard } from '../common';
|
|
4
13
|
import { MaliciousIPData } from '../common';
|
|
5
14
|
import { TimeSeriesOf2D } from '../common';
|
|
6
|
-
import { MaliciousIPCard } from '../common';
|
|
7
|
-
import { EventTypeCode } from '../enums';
|
|
8
|
-
import { StringKeyValue } from '../common';
|
|
9
15
|
import { TimeSeriesOfFloat } from '../common';
|
|
10
|
-
import { AlertWithDevice } from '../entities';
|
|
11
|
-
import { DeviceActionCode } from '../enums';
|
|
12
|
-
import { SeverityTypeCode } from '../enums';
|
|
13
|
-
import { EventCategoryCode } from '../enums';
|
|
14
|
-
import { IntDistribution } from '../entities';
|
|
15
|
-
import { Alert } from '../entities';
|
|
16
16
|
export declare class UsrAlertsService {
|
|
17
17
|
private apiUrl;
|
|
18
18
|
private rest;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
+
import { DeviceWithEvents } from '../entities';
|
|
3
|
+
import { TimeSeriesOfDeviceReport } from '../entities';
|
|
4
|
+
import { TimeSeriesOfDataConsumption } from '../common';
|
|
5
|
+
import { Device } from '../entities';
|
|
6
|
+
import { BulkDevices } from '../entities';
|
|
7
|
+
import { DeviceStatusCode } from '../enums';
|
|
8
|
+
import { MapBounds } from '../common';
|
|
2
9
|
import { NetworkMapTypeCode } from '../enums';
|
|
3
10
|
import { NetworkMap } from '../common';
|
|
4
11
|
import { DeviceReport } from '../entities';
|
|
5
|
-
import { DeviceStatusCode } from '../enums';
|
|
6
12
|
import { SeverityTypeCode } from '../enums';
|
|
7
|
-
import { DeviceWithEvents } from '../entities';
|
|
8
|
-
import { MapBounds } from '../common';
|
|
9
|
-
import { BulkDevices } from '../entities';
|
|
10
|
-
import { DeviceTypeCode } from '../enums';
|
|
11
|
-
import { DeviceActionCode } from '../enums';
|
|
12
13
|
import { IntDistribution } from '../entities';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { Device } from '../entities';
|
|
14
|
+
import { DeviceActionCode } from '../enums';
|
|
15
|
+
import { DeviceTypeCode } from '../enums';
|
|
16
16
|
import { DevicesMap } from '../common';
|
|
17
17
|
export declare class UsrDevicesService {
|
|
18
18
|
private apiUrl;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
-
import {
|
|
2
|
+
import { IntDistribution } from '../entities';
|
|
3
3
|
import { TimeSeriesOf2D } from '../common';
|
|
4
4
|
import { TimeSeriesOfFloat } from '../common';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { EventStatusCode } from '../enums';
|
|
5
|
+
import { Event } from '../entities';
|
|
6
|
+
import { MaliciousIPData } from '../common';
|
|
8
7
|
import { EventCategoryCode } from '../enums';
|
|
8
|
+
import { EventStatusCode } from '../enums';
|
|
9
|
+
import { RuleTypeCode } from '../enums';
|
|
9
10
|
import { EventWithDevice } from '../entities';
|
|
10
|
-
import { MaliciousIPData } from '../common';
|
|
11
|
-
import { IntDistribution } from '../entities';
|
|
12
11
|
import { MaliciousIPCard } from '../common';
|
|
13
|
-
import {
|
|
12
|
+
import { StringKeyValue } from '../common';
|
|
14
13
|
import { EventTypeCode } from '../enums';
|
|
14
|
+
import { SeverityTypeCode } from '../enums';
|
|
15
15
|
export declare class UsrEventsService {
|
|
16
16
|
private apiUrl;
|
|
17
17
|
private rest;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse } from '../../utils';
|
|
2
|
+
import { UsageRecord } from '../entities';
|
|
3
|
+
import { SessionRecord } from '../entities';
|
|
2
4
|
import { IntDistribution } from '../entities';
|
|
3
5
|
import { Distribution } from '../entities';
|
|
4
6
|
import { FlowRecord } from '../entities';
|
|
5
|
-
import { UsageRecord } from '../entities';
|
|
6
|
-
import { SessionRecord } from '../entities';
|
|
7
7
|
export declare class UsrNetworkService {
|
|
8
8
|
private apiUrl;
|
|
9
9
|
private rest;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
+
import { NotificationMessageStats } from '../entities';
|
|
3
|
+
import { NotificationMessageDTO } from '../entities';
|
|
4
|
+
export declare class UsrNotificationMessageService {
|
|
5
|
+
private apiUrl;
|
|
6
|
+
private rest;
|
|
7
|
+
private baseUrl;
|
|
8
|
+
constructor(apiUrl: string, rest: RestUtil);
|
|
9
|
+
/**
|
|
10
|
+
* Find list of user notifications
|
|
11
|
+
*/
|
|
12
|
+
find(isRead?: boolean, sort?: string, page?: number, size?: number): import("rxjs").Observable<EntitiesResponse<NotificationMessageDTO>>;
|
|
13
|
+
/**
|
|
14
|
+
* Get single notification message by id
|
|
15
|
+
*/
|
|
16
|
+
get(id?: string): import("rxjs").Observable<EntityResponse<NotificationMessageDTO>>;
|
|
17
|
+
/**
|
|
18
|
+
* Get notification statistics (unread count and total count)
|
|
19
|
+
*/
|
|
20
|
+
getStats(): import("rxjs").Observable<EntityResponse<NotificationMessageStats>>;
|
|
21
|
+
/**
|
|
22
|
+
* Mark a specific notification as read
|
|
23
|
+
*/
|
|
24
|
+
markAsRead(id?: string): import("rxjs").Observable<ActionResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Mark all notifications as read for the current user
|
|
27
|
+
*/
|
|
28
|
+
narkAllAsRead(): import("rxjs").Observable<ActionResponse>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UsrNotificationMessageService = void 0;
|
|
4
|
+
// List of notification messages related actions for the user
|
|
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 UsrNotificationMessageService {
|
|
8
|
+
// Class constructor
|
|
9
|
+
constructor(apiUrl, rest) {
|
|
10
|
+
this.apiUrl = apiUrl;
|
|
11
|
+
this.rest = rest;
|
|
12
|
+
// URL to web api
|
|
13
|
+
this.baseUrl = '/notification-messages';
|
|
14
|
+
this.baseUrl = apiUrl + this.baseUrl;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Find list of user notifications
|
|
18
|
+
*/
|
|
19
|
+
find(isRead, sort, page, size) {
|
|
20
|
+
const params = [];
|
|
21
|
+
if (isRead != null) {
|
|
22
|
+
params.push(`isRead=${isRead}`);
|
|
23
|
+
}
|
|
24
|
+
if (sort != null) {
|
|
25
|
+
params.push(`sort=${sort}`);
|
|
26
|
+
}
|
|
27
|
+
if (page != null) {
|
|
28
|
+
params.push(`page=${page}`);
|
|
29
|
+
}
|
|
30
|
+
if (size != null) {
|
|
31
|
+
params.push(`size=${size}`);
|
|
32
|
+
}
|
|
33
|
+
return this.rest.get(`${this.baseUrl}`, ...params);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Get single notification message by id
|
|
37
|
+
*/
|
|
38
|
+
get(id) {
|
|
39
|
+
return this.rest.get(`${this.baseUrl}/${id}`);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Get notification statistics (unread count and total count)
|
|
43
|
+
*/
|
|
44
|
+
getStats() {
|
|
45
|
+
return this.rest.get(`${this.baseUrl}/stats`);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Mark a specific notification as read
|
|
49
|
+
*/
|
|
50
|
+
markAsRead(id) {
|
|
51
|
+
return this.rest.patch(`${this.baseUrl}/${id}/read`, '');
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Mark all notifications as read for the current user
|
|
55
|
+
*/
|
|
56
|
+
narkAllAsRead() {
|
|
57
|
+
return this.rest.patch(`${this.baseUrl}/mark-all-read`, '');
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.UsrNotificationMessageService = UsrNotificationMessageService;
|
|
61
|
+
//# sourceMappingURL=usrNotificationMessageService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usrNotificationMessageService.js","sourceRoot":"","sources":["../../../../src/lib/services/usrNotificationMessageService.ts"],"names":[],"mappings":";;;AAOA,8DAA8D;AAC9D,0EAA0E;AAC1E,0EAA0E;AAC1E,MAAa,6BAA6B;IAKxC,oBAAoB;IACpB,YAAoB,MAAc,EAAU,IAAc;QAAtC,WAAM,GAAN,MAAM,CAAQ;QAAU,SAAI,GAAJ,IAAI,CAAU;QAJ1D,iBAAiB;QACT,YAAO,GAAG,wBAAwB,CAAC;QAIzC,IAAI,CAAC,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC;IACvC,CAAC;IAGD;;OAEG;IACH,IAAI,CAAC,MAAgB,EAAE,IAAa,EAAE,IAAa,EAAE,IAAa;QAChE,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,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,CAA2C,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,GAAG,MAAM,CAAC,CAAC;IAC7F,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,EAAW;QACb,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAyC,GAAG,IAAI,CAAC,OAAO,IAAI,EAAE,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAA2C,GAAG,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAC;IAC1F,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,EAAW;QACpB,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAiB,GAAG,IAAI,CAAC,OAAO,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAiB,GAAG,IAAI,CAAC,OAAO,gBAAgB,EAAE,EAAE,CAAC,CAAC;IAC9E,CAAC;CAEF;AApDD,sEAoDC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
-
import { ReportInstance } from '../entities';
|
|
3
2
|
import { ReportSourceCode } from '../enums';
|
|
3
|
+
import { ReportInstance } from '../entities';
|
|
4
4
|
export declare class UsrReportsInstanceService {
|
|
5
5
|
private apiUrl;
|
|
6
6
|
private rest;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Image } from '../entities';
|
|
3
|
+
import { Stream } from '../entities';
|
|
4
4
|
import { UserMemberships } from '../entities';
|
|
5
|
-
import { FeatureCode } from '../enums';
|
|
6
5
|
import { LoginParams } from '../common';
|
|
6
|
+
import { User } from '../entities';
|
|
7
|
+
import { AccountDTO } from '../entities';
|
|
7
8
|
import { Feature } from '../entities';
|
|
8
|
-
import {
|
|
9
|
+
import { FeatureCode } from '../enums';
|
|
9
10
|
import { ConfigParam } from '../entities';
|
|
10
|
-
import { Image } from '../entities';
|
|
11
11
|
export declare class UsrUserService {
|
|
12
12
|
private apiUrl;
|
|
13
13
|
private rest;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { StringKeyValue } from '../common';
|
|
2
|
-
import { AccountSettings } from '../entities';
|
|
3
|
-
import { BaseEntity } from '../base';
|
|
4
1
|
import { AccountTypeCode } from '../enums';
|
|
5
2
|
import { AccountStatusCode } from '../enums';
|
|
6
3
|
import { FeatureCode } from '../enums';
|
|
4
|
+
import { StringKeyValue } from '../common';
|
|
5
|
+
import { AccountSettings } from '../entities';
|
|
6
|
+
import { BaseEntity } from '../base';
|
|
7
7
|
export declare class AccountDTO extends BaseEntity {
|
|
8
8
|
name: string;
|
|
9
9
|
externalId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountDTO.js","sourceRoot":"","sources":["../../../../src/lib/entities/AccountDTO.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AccountDTO.js","sourceRoot":"","sources":["../../../../src/lib/entities/AccountDTO.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIrC,kDAAkD;AAClD,MAAM,OAAO,UAAW,SAAQ,UAAU;CAoCzC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { AccountStatusCode } from '../enums';
|
|
1
2
|
import { StringKeyValue } from '../common';
|
|
2
3
|
import { AccountSettings } from '../entities';
|
|
3
4
|
import { DeviceReport } from '../entities';
|
|
4
5
|
import { IntDistribution } from '../entities';
|
|
5
6
|
import { BaseEntity } from '../base';
|
|
6
7
|
import { AccountTypeCode } from '../enums';
|
|
7
|
-
import { AccountStatusCode } from '../enums';
|
|
8
8
|
export declare class AccountReportDTO extends BaseEntity {
|
|
9
9
|
name: string;
|
|
10
10
|
externalId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountReportDTO.js","sourceRoot":"","sources":["../../../../src/lib/entities/AccountReportDTO.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AccountReportDTO.js","sourceRoot":"","sources":["../../../../src/lib/entities/AccountReportDTO.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAKrC,2EAA2E;AAC3E,MAAM,OAAO,gBAAiB,SAAQ,UAAU;CA6C/C"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventStatusCode } from '../enums';
|
|
2
2
|
import { GeoData } from '../common';
|
|
3
|
+
import { TrafficDirectionCode } from '../enums';
|
|
3
4
|
import { EventCategoryCode } from '../enums';
|
|
4
5
|
import { BaseEntity } from '../base';
|
|
5
6
|
import { EventTypeCode } from '../enums';
|
|
6
|
-
import {
|
|
7
|
+
import { SeverityTypeCode } from '../enums';
|
|
7
8
|
import { RuleTypeCode } from '../enums';
|
|
8
9
|
import { StringKeyValue } from '../common';
|
|
9
|
-
import { TrafficDirectionCode } from '../enums';
|
|
10
10
|
export declare class Alert extends BaseEntity {
|
|
11
11
|
accountId: string;
|
|
12
12
|
streamId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../../src/lib/entities/Alert.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../../src/lib/entities/Alert.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAQrC,qBAAqB;AACrB,sMAAsM;AACtM,qNAAqN;AACrN,kNAAkN;AAClN,MAAM,OAAO,KAAM,SAAQ,UAAU;CAwEpC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { EventTypeCode } from '../enums';
|
|
2
|
-
import { EventStatusCode } from '../enums';
|
|
3
|
-
import { GeoData } from '../common';
|
|
4
|
-
import { Device } from '../entities';
|
|
5
1
|
import { SeverityTypeCode } from '../enums';
|
|
2
|
+
import { TrafficDirectionCode } from '../enums';
|
|
3
|
+
import { Device } from '../entities';
|
|
4
|
+
import { BaseEntity } from '../base';
|
|
5
|
+
import { EventTypeCode } from '../enums';
|
|
6
6
|
import { RuleTypeCode } from '../enums';
|
|
7
|
+
import { GeoData } from '../common';
|
|
7
8
|
import { StringKeyValue } from '../common';
|
|
8
9
|
import { EventCategoryCode } from '../enums';
|
|
9
|
-
import {
|
|
10
|
-
import { BaseEntity } from '../base';
|
|
10
|
+
import { EventStatusCode } from '../enums';
|
|
11
11
|
export declare class AlertWithDevice extends BaseEntity {
|
|
12
12
|
accountId: string;
|
|
13
13
|
streamId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertWithDevice.js","sourceRoot":"","sources":["../../../../src/lib/entities/AlertWithDevice.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AlertWithDevice.js","sourceRoot":"","sources":["../../../../src/lib/entities/AlertWithDevice.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAUrC,oFAAoF;AACpF,MAAM,OAAO,eAAgB,SAAQ,UAAU;CA2E9C"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DeviceActionCode } from '../enums';
|
|
2
|
-
import { SIM } from '../entities';
|
|
3
1
|
import { GeoData } from '../common';
|
|
4
2
|
import { BaseEntity } from '../base';
|
|
5
3
|
import { DeviceTypeCode } from '../enums';
|
|
6
4
|
import { DeviceStatusCode } from '../enums';
|
|
7
5
|
import { StringKeyValue } from '../common';
|
|
6
|
+
import { DeviceActionCode } from '../enums';
|
|
7
|
+
import { SIM } from '../entities';
|
|
8
8
|
export declare class Device extends BaseEntity {
|
|
9
9
|
accountId: string;
|
|
10
10
|
streamId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Device.js","sourceRoot":"","sources":["../../../../src/lib/entities/Device.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Device.js","sourceRoot":"","sources":["../../../../src/lib/entities/Device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AASrC,0EAA0E;AAC1E,MAAM,OAAO,MAAO,SAAQ,UAAU;CAwErC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { DeviceStatusCode } from '../enums';
|
|
2
|
-
import { StringKeyValue } from '../common';
|
|
3
1
|
import { DeviceActionCode } from '../enums';
|
|
4
2
|
import { SIM } from '../entities';
|
|
5
3
|
import { Event } from '../entities';
|
|
6
4
|
import { GeoData } from '../common';
|
|
7
5
|
import { BaseEntity } from '../base';
|
|
8
6
|
import { DeviceTypeCode } from '../enums';
|
|
7
|
+
import { DeviceStatusCode } from '../enums';
|
|
8
|
+
import { StringKeyValue } from '../common';
|
|
9
9
|
export declare class DeviceWithEvents extends BaseEntity {
|
|
10
10
|
accountId: string;
|
|
11
11
|
streamId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceWithEvents.js","sourceRoot":"","sources":["../../../../src/lib/entities/DeviceWithEvents.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeviceWithEvents.js","sourceRoot":"","sources":["../../../../src/lib/entities/DeviceWithEvents.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAOrC,iFAAiF;AACjF,MAAM,OAAO,gBAAiB,SAAQ,UAAU;CA2E/C"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Indicator } from '../common';
|
|
2
2
|
import { RuleTypeCode } from '../enums';
|
|
3
|
-
import { GeoData } from '../common';
|
|
4
|
-
import { EventCategoryCode } from '../enums';
|
|
5
3
|
import { TrafficDirectionCode } from '../enums';
|
|
4
|
+
import { StringKeyValue } from '../common';
|
|
5
|
+
import { EventCategoryCode } from '../enums';
|
|
6
|
+
import { EventOccurrence } from '../entities';
|
|
6
7
|
import { BaseEntity } from '../base';
|
|
7
8
|
import { EventTypeCode } from '../enums';
|
|
8
9
|
import { SeverityTypeCode } from '../enums';
|
|
9
|
-
import { EventOccurrence } from '../entities';
|
|
10
10
|
import { EventStatusCode } from '../enums';
|
|
11
|
-
import {
|
|
11
|
+
import { GeoData } from '../common';
|
|
12
12
|
export declare class Event extends BaseEntity {
|
|
13
13
|
accountId: string;
|
|
14
14
|
streamId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Event.js","sourceRoot":"","sources":["../../../../src/lib/entities/Event.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Event.js","sourceRoot":"","sources":["../../../../src/lib/entities/Event.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAQrC,eAAe;AACf,8IAA8I;AAC9I,8HAA8H;AAC9H,MAAM,OAAO,KAAM,SAAQ,UAAU;CA8EpC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { TrafficDirectionCode } from '../enums';
|
|
2
|
-
import { Device } from '../entities';
|
|
3
|
-
import { EventTypeCode } from '../enums';
|
|
4
1
|
import { SeverityTypeCode } from '../enums';
|
|
5
2
|
import { EventStatusCode } from '../enums';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { RuleTypeCode } from '../enums';
|
|
4
|
+
import { Device } from '../entities';
|
|
5
|
+
import { TrafficDirectionCode } from '../enums';
|
|
8
6
|
import { BaseEntity } from '../base';
|
|
7
|
+
import { EventTypeCode } from '../enums';
|
|
9
8
|
import { Indicator } from '../common';
|
|
10
|
-
import { RuleTypeCode } from '../enums';
|
|
11
9
|
import { GeoData } from '../common';
|
|
12
10
|
import { StringKeyValue } from '../common';
|
|
11
|
+
import { EventCategoryCode } from '../enums';
|
|
12
|
+
import { EventOccurrence } from '../entities';
|
|
13
13
|
export declare class EventWithDevice extends BaseEntity {
|
|
14
14
|
accountId: string;
|
|
15
15
|
streamId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventWithDevice.js","sourceRoot":"","sources":["../../../../src/lib/entities/EventWithDevice.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EventWithDevice.js","sourceRoot":"","sources":["../../../../src/lib/entities/EventWithDevice.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAUrC,oFAAoF;AACpF,MAAM,OAAO,eAAgB,SAAQ,UAAU;CA8E9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeaturesGroup.js","sourceRoot":"","sources":["../../../../src/lib/entities/FeaturesGroup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FeaturesGroup.js","sourceRoot":"","sources":["../../../../src/lib/entities/FeaturesGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAKrC,+FAA+F;AAC/F,MAAM,OAAO,aAAc,SAAQ,UAAU;CAS5C"}
|