@shieldiot/pulse-lib 1.0.10 → 1.0.12
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/README.md +14 -26
- package/dist/cjs/index.js +17 -3
- package/dist/cjs/lib/base/BaseEntity.js +18 -0
- package/dist/cjs/lib/base/index.js +17 -0
- package/dist/cjs/lib/common/AccountRole.js +18 -0
- package/dist/cjs/lib/common/ConsumptionData.js +18 -0
- package/dist/cjs/lib/common/ConsumptionTimeDataPoint.js +15 -0
- package/dist/cjs/lib/common/DeviceConfig.js +15 -0
- package/dist/cjs/lib/common/DeviceScoreConfig.js +60 -0
- package/dist/cjs/lib/common/DevicesAtRiskConfig.js +12 -0
- package/dist/cjs/lib/common/EventSeverityConfig.js +12 -0
- package/dist/cjs/lib/common/FloatKeyValue.js +15 -0
- package/dist/cjs/lib/common/GeoData.js +28 -0
- package/dist/cjs/lib/common/GraphSeries.js +15 -0
- package/dist/cjs/lib/common/Indicator.js +24 -0
- package/dist/cjs/lib/common/IntKeySeriesDataValue.js +15 -0
- package/dist/cjs/lib/common/IntKeyValue.js +15 -0
- package/dist/cjs/lib/common/Interval.js +15 -0
- package/dist/cjs/lib/common/Link.js +30 -0
- package/dist/cjs/lib/common/Location.js +15 -0
- package/dist/cjs/lib/common/LoginParams.js +18 -0
- package/dist/cjs/lib/common/MaliciousIPCard.js +33 -0
- package/dist/cjs/lib/common/MaliciousIPData.js +21 -0
- package/dist/cjs/lib/common/NetworkMap.js +15 -0
- package/dist/cjs/lib/common/Node.js +39 -0
- package/dist/cjs/lib/common/RuleBasedSeverityConditionConfig.js +21 -0
- package/dist/cjs/lib/common/RuleCountThresholdConfig.js +15 -0
- package/dist/cjs/lib/common/SeriesData.js +15 -0
- package/dist/cjs/lib/common/SessionTransform.js +21 -0
- package/dist/cjs/lib/common/SeverityConditionConfig.js +24 -0
- package/dist/cjs/lib/common/SeverityIntervalTuple.js +15 -0
- package/dist/cjs/lib/common/ShieldexConfig.js +27 -0
- package/dist/cjs/lib/common/StringIntValue.js +15 -0
- package/dist/cjs/lib/common/StringKeyIntValue.js +15 -0
- package/dist/cjs/lib/common/StringKeyValue.js +15 -0
- package/dist/cjs/lib/common/Thresholds.js +12 -0
- package/dist/cjs/lib/common/TimeDataPoint.js +15 -0
- package/dist/cjs/lib/common/TimeDataPoint2D.js +15 -0
- package/dist/cjs/lib/common/TimeDataPointFloat.js +15 -0
- package/dist/cjs/lib/common/TimeFrame.js +15 -0
- package/dist/cjs/lib/common/TimeSeries.js +18 -0
- package/dist/cjs/lib/common/TimeSeriesOf2D.js +18 -0
- package/dist/cjs/lib/common/TimeSeriesOfDataConsumption.js +18 -0
- package/dist/cjs/lib/common/TimeSeriesOfFloat.js +18 -0
- package/dist/cjs/lib/common/TokenData.js +27 -0
- package/dist/cjs/lib/common/Tuple.js +15 -0
- package/dist/cjs/lib/common/UsageTransform.js +27 -0
- package/dist/cjs/lib/common/ZScore.js +15 -0
- package/dist/cjs/lib/common/index.js +60 -0
- package/dist/cjs/lib/entities/Account.js +8 -0
- package/dist/cjs/lib/entities/AccountDTO.js +8 -0
- package/dist/cjs/lib/entities/AccountSettings.js +21 -0
- package/dist/cjs/lib/entities/Action.js +8 -0
- package/dist/cjs/lib/entities/Alert.js +11 -0
- package/dist/cjs/lib/entities/AlertWithDevice.js +8 -0
- package/dist/cjs/lib/entities/ApiKey.js +8 -0
- package/dist/cjs/lib/entities/AuditLog.js +8 -0
- package/dist/cjs/lib/entities/BulkDevices.js +12 -0
- package/dist/cjs/lib/entities/Checkpoint.js +8 -0
- package/dist/cjs/lib/entities/ComplianceReportSettings.js +21 -0
- package/dist/cjs/lib/entities/Condition.js +20 -0
- package/dist/cjs/lib/entities/ConfigParam.js +9 -0
- package/dist/cjs/lib/entities/ConfigParams.js +8 -0
- package/dist/cjs/lib/entities/DNSRecord.js +10 -0
- package/dist/cjs/lib/entities/DataIngestion.js +45 -0
- package/dist/cjs/lib/entities/DataPointOfDeviceReport.js +15 -0
- package/dist/cjs/lib/entities/Device.js +8 -0
- package/dist/cjs/lib/entities/DeviceReport.js +8 -0
- package/dist/cjs/lib/entities/DeviceWithEvents.js +8 -0
- package/dist/cjs/lib/entities/Distribution.js +18 -0
- package/dist/cjs/lib/entities/Event.js +10 -0
- package/dist/cjs/lib/entities/EventOccurrence.js +24 -0
- package/dist/cjs/lib/entities/EventWithDevice.js +8 -0
- package/dist/cjs/lib/entities/Feature.js +8 -0
- package/dist/cjs/lib/entities/FeaturesGroup.js +8 -0
- package/dist/cjs/lib/entities/Group.js +8 -0
- package/dist/cjs/lib/entities/Image.js +9 -0
- package/dist/cjs/lib/entities/Insight.js +9 -0
- package/dist/cjs/lib/entities/InsightQuery.js +9 -0
- package/dist/cjs/lib/entities/InsightSpec.js +9 -0
- package/dist/cjs/lib/entities/IntDistribution.js +18 -0
- package/dist/cjs/lib/entities/Integration.js +8 -0
- package/dist/cjs/lib/entities/Member.js +9 -0
- package/dist/cjs/lib/entities/Radius.js +8 -0
- package/dist/cjs/lib/entities/Report.js +8 -0
- package/dist/cjs/lib/entities/Rule.js +8 -0
- package/dist/cjs/lib/entities/RuleTemplate.js +8 -0
- package/dist/cjs/lib/entities/SIM.js +24 -0
- package/dist/cjs/lib/entities/ServiceStatus.js +8 -0
- package/dist/cjs/lib/entities/SessionRecord.js +11 -0
- package/dist/cjs/lib/entities/Shieldex.js +8 -0
- package/dist/cjs/lib/entities/Stream.js +8 -0
- package/dist/cjs/lib/entities/StreamAnalyticsConfig.js +8 -0
- package/dist/cjs/lib/entities/StreamConfig.js +33 -0
- package/dist/cjs/lib/entities/TeaserPopUpSettings.js +18 -0
- package/dist/cjs/lib/entities/TimeSeriesOfDeviceReport.js +18 -0
- package/dist/cjs/lib/entities/UsageRecord.js +11 -0
- package/dist/cjs/lib/entities/User.js +9 -0
- package/dist/cjs/lib/entities/UserMembership.js +8 -0
- package/dist/cjs/lib/entities/UserMemberships.js +8 -0
- package/dist/cjs/lib/entities/index.js +67 -0
- package/dist/cjs/lib/enums/AccountStatusCode.js +25 -0
- package/dist/cjs/lib/enums/AccountTypeCode.js +28 -0
- package/dist/cjs/lib/enums/DataSourceCode.js +25 -0
- package/dist/cjs/lib/enums/DeviceActionCode.js +28 -0
- package/dist/cjs/lib/enums/DeviceCreationCode.js +28 -0
- package/dist/cjs/lib/enums/DeviceIdentityCode.js +37 -0
- package/dist/cjs/lib/enums/DeviceStatusCode.js +28 -0
- package/dist/cjs/lib/enums/DeviceTypeCode.js +58 -0
- package/dist/cjs/lib/enums/DirectionContextCode.js +28 -0
- package/dist/cjs/lib/enums/EventCategoryCode.js +22 -0
- package/dist/cjs/lib/enums/EventStatusCode.js +28 -0
- package/dist/cjs/lib/enums/EventTypeCode.js +73 -0
- package/dist/cjs/lib/enums/FeatureCode.js +46 -0
- package/dist/cjs/lib/enums/HomePageViewCode.js +25 -0
- package/dist/cjs/lib/enums/HttpMethodCode.js +31 -0
- package/dist/cjs/lib/enums/InsightStatusCode.js +25 -0
- package/dist/cjs/lib/enums/InsightTypeCode.js +22 -0
- package/dist/cjs/lib/enums/IntegrationTriggerCode.js +22 -0
- package/dist/cjs/lib/enums/IntegrationTypeCode.js +28 -0
- package/dist/cjs/lib/enums/MemberRoleCode.js +28 -0
- package/dist/cjs/lib/enums/NetworkMapTypeCode.js +25 -0
- package/dist/cjs/lib/enums/OperatorCode.js +49 -0
- package/dist/cjs/lib/enums/PermissionCode.js +31 -0
- package/dist/cjs/lib/enums/ReportTypeCode.js +25 -0
- package/dist/cjs/lib/enums/RuleActivityStatusCode.js +19 -0
- package/dist/cjs/lib/enums/RuleTypeCode.js +25 -0
- package/dist/cjs/lib/enums/SeverityTypeCode.js +28 -0
- package/dist/cjs/lib/enums/TrafficDirectionCode.js +25 -0
- package/dist/cjs/lib/enums/UserStatusCode.js +28 -0
- package/dist/cjs/lib/enums/UserTypeCode.js +28 -0
- package/dist/cjs/lib/enums/index.js +46 -0
- package/dist/cjs/lib/index.js +21 -0
- package/dist/cjs/lib/pulse-client.js +81 -0
- package/dist/cjs/lib/services/index.js +42 -0
- package/dist/cjs/lib/services/services.export.js +55 -0
- package/dist/cjs/lib/services/supportStreamAnalyticsConfig.js +60 -0
- package/dist/cjs/lib/services/sysAccountsService.js +84 -0
- package/dist/cjs/lib/services/sysAuditLogService.js +109 -0
- package/dist/cjs/lib/services/sysCheckpointsService.js +79 -0
- package/dist/cjs/lib/services/sysConfigService.js +85 -0
- package/dist/cjs/lib/services/sysFeaturesService.js +79 -0
- package/dist/cjs/lib/services/sysGroupsService.js +78 -0
- package/dist/cjs/lib/services/sysInsightsService.js +134 -0
- package/dist/cjs/lib/services/sysKeysService.js +66 -0
- package/dist/cjs/lib/services/sysMembersService.js +66 -0
- package/dist/cjs/lib/services/sysRuleTemplatesService.js +60 -0
- package/dist/cjs/lib/services/sysRulesService.js +85 -0
- package/dist/cjs/lib/services/sysStatisticsService.js +41 -0
- package/dist/cjs/lib/services/sysStreamsService.js +63 -0
- package/dist/cjs/lib/services/sysUsersService.js +84 -0
- package/dist/cjs/lib/services/usrAlertsService.js +658 -0
- package/dist/cjs/lib/services/usrDevicesService.js +476 -0
- package/dist/cjs/lib/services/usrEventsService.js +640 -0
- package/dist/cjs/lib/services/usrInsightsService.js +23 -0
- package/dist/cjs/lib/services/usrIntegrationsService.js +78 -0
- package/dist/cjs/lib/services/usrMembersService.js +79 -0
- package/dist/cjs/lib/services/usrNetworkService.js +85 -0
- package/dist/cjs/lib/services/usrReportsService.js +146 -0
- package/dist/cjs/lib/services/usrRulesService.js +180 -0
- package/dist/cjs/lib/services/usrUserService.js +91 -0
- package/dist/cjs/utils/ActionResponse.js +15 -0
- package/dist/cjs/utils/BaseRestResponse.js +13 -0
- package/dist/cjs/utils/EntitiesResponse.js +21 -0
- package/dist/cjs/utils/EntityResponse.js +19 -0
- package/dist/cjs/utils/index.js +21 -0
- package/dist/cjs/utils/rest-axios-setup.js +12 -0
- package/dist/cjs/utils/rest-util.js +103 -0
- package/dist/esm/index.js +3 -2
- package/dist/esm/lib/base/BaseEntity.js +14 -0
- package/dist/esm/lib/base/index.js +1 -0
- package/dist/esm/lib/common/AccountRole.js +14 -0
- package/dist/esm/lib/common/ConsumptionData.js +14 -0
- package/dist/esm/lib/common/ConsumptionTimeDataPoint.js +11 -0
- package/dist/esm/lib/common/DeviceConfig.js +11 -0
- package/dist/esm/lib/common/DeviceScoreConfig.js +56 -0
- package/dist/esm/lib/common/DevicesAtRiskConfig.js +8 -0
- package/dist/esm/lib/common/EventSeverityConfig.js +8 -0
- package/dist/esm/lib/common/FloatKeyValue.js +11 -0
- package/dist/esm/lib/common/GeoData.js +24 -0
- package/dist/esm/lib/common/GraphSeries.js +11 -0
- package/dist/esm/lib/common/Indicator.js +20 -0
- package/dist/esm/lib/common/IntKeySeriesDataValue.js +11 -0
- package/dist/esm/lib/common/IntKeyValue.js +11 -0
- package/dist/esm/lib/common/Interval.js +11 -0
- package/dist/esm/lib/common/Link.js +26 -0
- package/dist/esm/lib/common/Location.js +11 -0
- package/dist/esm/lib/common/LoginParams.js +14 -0
- package/dist/esm/lib/common/MaliciousIPCard.js +29 -0
- package/dist/esm/lib/common/MaliciousIPData.js +17 -0
- package/dist/esm/lib/common/NetworkMap.js +11 -0
- package/dist/esm/lib/common/Node.js +35 -0
- package/dist/esm/lib/common/RuleBasedSeverityConditionConfig.js +17 -0
- package/dist/esm/lib/common/RuleCountThresholdConfig.js +11 -0
- package/dist/esm/lib/common/SeriesData.js +11 -0
- package/dist/esm/lib/common/SessionTransform.js +17 -0
- package/dist/esm/lib/common/SeverityConditionConfig.js +20 -0
- package/dist/esm/lib/common/SeverityIntervalTuple.js +11 -0
- package/dist/esm/lib/common/ShieldexConfig.js +23 -0
- package/dist/esm/lib/common/StringIntValue.js +11 -0
- package/dist/esm/lib/common/StringKeyIntValue.js +11 -0
- package/dist/esm/lib/common/StringKeyValue.js +11 -0
- package/dist/esm/lib/common/Thresholds.js +8 -0
- package/dist/esm/lib/common/TimeDataPoint.js +11 -0
- package/dist/esm/lib/common/TimeDataPoint2D.js +11 -0
- package/dist/esm/lib/common/TimeDataPointFloat.js +11 -0
- package/dist/esm/lib/common/TimeFrame.js +11 -0
- package/dist/esm/lib/common/TimeSeries.js +14 -0
- package/dist/esm/lib/common/TimeSeriesOf2D.js +14 -0
- package/dist/esm/lib/common/TimeSeriesOfDataConsumption.js +14 -0
- package/dist/esm/lib/common/TimeSeriesOfFloat.js +14 -0
- package/dist/esm/lib/common/TokenData.js +23 -0
- package/dist/esm/lib/common/Tuple.js +11 -0
- package/dist/esm/lib/common/UsageTransform.js +23 -0
- package/dist/esm/lib/common/ZScore.js +11 -0
- package/dist/esm/lib/common/index.js +44 -0
- package/dist/esm/lib/entities/Account.js +4 -0
- package/dist/esm/lib/entities/AccountDTO.js +4 -0
- package/dist/esm/lib/entities/AccountSettings.js +17 -0
- package/dist/esm/lib/entities/Action.js +4 -0
- package/dist/esm/lib/entities/Alert.js +7 -0
- package/dist/esm/lib/entities/AlertWithDevice.js +4 -0
- package/dist/esm/lib/entities/ApiKey.js +4 -0
- package/dist/esm/lib/entities/AuditLog.js +4 -0
- package/dist/esm/lib/entities/BulkDevices.js +8 -0
- package/dist/esm/lib/entities/Checkpoint.js +4 -0
- package/dist/esm/lib/entities/ComplianceReportSettings.js +17 -0
- package/dist/esm/lib/entities/Condition.js +16 -0
- package/dist/esm/lib/entities/ConfigParam.js +5 -0
- package/dist/esm/lib/entities/ConfigParams.js +4 -0
- package/dist/esm/lib/entities/DNSRecord.js +6 -0
- package/dist/esm/lib/entities/DataIngestion.js +41 -0
- package/dist/esm/lib/entities/DataPointOfDeviceReport.js +11 -0
- package/dist/esm/lib/entities/Device.js +4 -0
- package/dist/esm/lib/entities/DeviceReport.js +4 -0
- package/dist/esm/lib/entities/DeviceWithEvents.js +4 -0
- package/dist/esm/lib/entities/Distribution.js +14 -0
- package/dist/esm/lib/entities/Event.js +6 -0
- package/dist/esm/lib/entities/EventOccurrence.js +20 -0
- package/dist/esm/lib/entities/EventWithDevice.js +4 -0
- package/dist/esm/lib/entities/Feature.js +4 -0
- package/dist/esm/lib/entities/FeaturesGroup.js +4 -0
- package/dist/esm/lib/entities/Group.js +4 -0
- package/dist/esm/lib/entities/Image.js +5 -0
- package/dist/esm/lib/entities/Insight.js +5 -0
- package/dist/esm/lib/entities/InsightQuery.js +5 -0
- package/dist/esm/lib/entities/InsightSpec.js +5 -0
- package/dist/esm/lib/entities/IntDistribution.js +14 -0
- package/dist/esm/lib/entities/Integration.js +4 -0
- package/dist/esm/lib/entities/Member.js +5 -0
- package/dist/esm/lib/entities/Radius.js +4 -0
- package/dist/esm/lib/entities/Report.js +4 -0
- package/dist/esm/lib/entities/Rule.js +4 -0
- package/dist/esm/lib/entities/RuleTemplate.js +4 -0
- package/dist/esm/lib/entities/SIM.js +20 -0
- package/dist/esm/lib/entities/ServiceStatus.js +4 -0
- package/dist/esm/lib/entities/SessionRecord.js +7 -0
- package/dist/esm/lib/entities/Shieldex.js +4 -0
- package/dist/esm/lib/entities/Stream.js +4 -0
- package/dist/esm/lib/entities/StreamAnalyticsConfig.js +4 -0
- package/dist/esm/lib/entities/StreamConfig.js +29 -0
- package/dist/esm/lib/entities/TeaserPopUpSettings.js +14 -0
- package/dist/esm/lib/entities/TimeSeriesOfDeviceReport.js +14 -0
- package/dist/esm/lib/entities/UsageRecord.js +7 -0
- package/dist/esm/lib/entities/User.js +5 -0
- package/dist/esm/lib/entities/UserMembership.js +4 -0
- package/dist/esm/lib/entities/UserMemberships.js +4 -0
- package/dist/esm/lib/entities/index.js +51 -0
- package/dist/esm/lib/enums/AccountStatusCode.js +21 -0
- package/dist/esm/lib/enums/AccountTypeCode.js +24 -0
- package/dist/esm/lib/enums/DataSourceCode.js +21 -0
- package/dist/esm/lib/enums/DeviceActionCode.js +24 -0
- package/dist/esm/lib/enums/DeviceCreationCode.js +24 -0
- package/dist/esm/lib/enums/DeviceIdentityCode.js +33 -0
- package/dist/esm/lib/enums/DeviceStatusCode.js +24 -0
- package/dist/esm/lib/enums/DeviceTypeCode.js +54 -0
- package/dist/esm/lib/enums/DirectionContextCode.js +24 -0
- package/dist/esm/lib/enums/EventCategoryCode.js +18 -0
- package/dist/esm/lib/enums/EventStatusCode.js +24 -0
- package/dist/esm/lib/enums/EventTypeCode.js +69 -0
- package/dist/esm/lib/enums/FeatureCode.js +42 -0
- package/dist/esm/lib/enums/HomePageViewCode.js +21 -0
- package/dist/esm/lib/enums/HttpMethodCode.js +27 -0
- package/dist/esm/lib/enums/InsightStatusCode.js +21 -0
- package/dist/esm/lib/enums/InsightTypeCode.js +18 -0
- package/dist/esm/lib/enums/IntegrationTriggerCode.js +18 -0
- package/dist/esm/lib/enums/IntegrationTypeCode.js +24 -0
- package/dist/esm/lib/enums/MemberRoleCode.js +24 -0
- package/dist/esm/lib/enums/NetworkMapTypeCode.js +21 -0
- package/dist/esm/lib/enums/OperatorCode.js +45 -0
- package/dist/esm/lib/enums/PermissionCode.js +27 -0
- package/dist/esm/lib/enums/ReportTypeCode.js +21 -0
- package/dist/esm/lib/enums/RuleActivityStatusCode.js +15 -0
- package/dist/esm/lib/enums/RuleTypeCode.js +21 -0
- package/dist/esm/lib/enums/SeverityTypeCode.js +24 -0
- package/dist/esm/lib/enums/TrafficDirectionCode.js +21 -0
- package/dist/esm/lib/enums/UserStatusCode.js +24 -0
- package/dist/esm/lib/enums/UserTypeCode.js +24 -0
- package/dist/esm/lib/enums/index.js +30 -0
- package/dist/esm/lib/index.js +5 -0
- package/dist/esm/lib/pulse-client.js +74 -0
- package/dist/esm/lib/services/index.js +26 -0
- package/dist/esm/lib/services/services.export.js +52 -0
- package/dist/esm/lib/services/supportStreamAnalyticsConfig.js +56 -0
- package/dist/esm/lib/services/sysAccountsService.js +80 -0
- package/dist/esm/lib/services/sysAuditLogService.js +105 -0
- package/dist/esm/lib/services/sysCheckpointsService.js +75 -0
- package/dist/esm/lib/services/sysConfigService.js +81 -0
- package/dist/esm/lib/services/sysFeaturesService.js +75 -0
- package/dist/esm/lib/services/sysGroupsService.js +74 -0
- package/dist/esm/lib/services/sysInsightsService.js +130 -0
- package/dist/esm/lib/services/sysKeysService.js +62 -0
- package/dist/esm/lib/services/sysMembersService.js +62 -0
- package/dist/esm/lib/services/sysRuleTemplatesService.js +56 -0
- package/dist/esm/lib/services/sysRulesService.js +81 -0
- package/dist/esm/lib/services/sysStatisticsService.js +37 -0
- package/dist/esm/lib/services/sysStreamsService.js +59 -0
- package/dist/esm/lib/services/sysUsersService.js +80 -0
- package/dist/esm/lib/services/usrAlertsService.js +654 -0
- package/dist/esm/lib/services/usrDevicesService.js +472 -0
- package/dist/esm/lib/services/usrEventsService.js +636 -0
- package/dist/esm/lib/services/usrInsightsService.js +19 -0
- package/dist/esm/lib/services/usrIntegrationsService.js +74 -0
- package/dist/esm/lib/services/usrMembersService.js +75 -0
- package/dist/esm/lib/services/usrNetworkService.js +81 -0
- package/dist/esm/lib/services/usrReportsService.js +142 -0
- package/dist/esm/lib/services/usrRulesService.js +176 -0
- package/dist/esm/lib/services/usrUserService.js +87 -0
- package/dist/esm/utils/ActionResponse.js +11 -0
- package/dist/esm/utils/BaseRestResponse.js +9 -0
- package/dist/esm/utils/EntitiesResponse.js +17 -0
- package/dist/esm/utils/EntityResponse.js +15 -0
- package/dist/esm/utils/index.js +5 -0
- package/dist/esm/utils/rest-axios-setup.js +7 -0
- package/dist/esm/utils/rest-util.js +99 -0
- package/dist/types/index.d.ts +3 -2
- package/dist/types/lib/base/BaseEntity.d.ts +6 -0
- package/dist/types/lib/base/index.d.ts +1 -0
- package/dist/types/lib/common/AccountRole.d.ts +7 -0
- package/dist/types/lib/common/ConsumptionData.d.ts +6 -0
- package/dist/types/lib/common/ConsumptionTimeDataPoint.d.ts +6 -0
- package/dist/types/lib/common/DeviceConfig.d.ts +7 -0
- package/dist/types/lib/common/DeviceScoreConfig.d.ts +24 -0
- package/dist/types/lib/common/DevicesAtRiskConfig.d.ts +4 -0
- package/dist/types/lib/common/EventSeverityConfig.d.ts +5 -0
- package/dist/types/lib/common/FloatKeyValue.d.ts +5 -0
- package/dist/types/lib/common/GeoData.d.ts +10 -0
- package/dist/types/lib/common/GraphSeries.d.ts +6 -0
- package/dist/types/lib/common/Indicator.d.ts +8 -0
- package/dist/types/lib/common/IntKeySeriesDataValue.d.ts +6 -0
- package/dist/types/lib/common/IntKeyValue.d.ts +5 -0
- package/dist/types/lib/common/Interval.d.ts +5 -0
- package/dist/types/lib/common/Link.d.ts +11 -0
- package/dist/types/lib/common/Location.d.ts +5 -0
- package/dist/types/lib/common/LoginParams.d.ts +6 -0
- package/dist/types/lib/common/MaliciousIPCard.d.ts +12 -0
- package/dist/types/lib/common/MaliciousIPData.d.ts +7 -0
- package/dist/types/lib/common/NetworkMap.d.ts +7 -0
- package/dist/types/lib/common/Node.d.ts +15 -0
- package/dist/types/lib/common/RuleBasedSeverityConditionConfig.d.ts +9 -0
- package/dist/types/lib/common/RuleCountThresholdConfig.d.ts +6 -0
- package/dist/types/lib/common/SeriesData.d.ts +7 -0
- package/dist/types/lib/common/SessionTransform.d.ts +8 -0
- package/dist/types/lib/common/SeverityConditionConfig.d.ts +10 -0
- package/dist/types/lib/common/SeverityIntervalTuple.d.ts +7 -0
- package/dist/types/lib/common/ShieldexConfig.d.ts +9 -0
- package/dist/types/lib/common/StringIntValue.d.ts +5 -0
- package/dist/types/lib/common/StringKeyIntValue.d.ts +5 -0
- package/dist/types/lib/common/StringKeyValue.d.ts +5 -0
- package/dist/types/lib/common/Thresholds.d.ts +4 -0
- package/dist/types/lib/common/TimeDataPoint.d.ts +5 -0
- package/dist/types/lib/common/TimeDataPoint2D.d.ts +6 -0
- package/dist/types/lib/common/TimeDataPointFloat.d.ts +5 -0
- package/dist/types/lib/common/TimeFrame.d.ts +5 -0
- package/dist/types/lib/common/TimeSeries.d.ts +8 -0
- package/dist/types/lib/common/TimeSeriesOf2D.d.ts +8 -0
- package/dist/types/lib/common/TimeSeriesOfDataConsumption.d.ts +8 -0
- package/dist/types/lib/common/TimeSeriesOfFloat.d.ts +8 -0
- package/dist/types/lib/common/TokenData.d.ts +12 -0
- package/dist/types/lib/common/Tuple.d.ts +5 -0
- package/dist/types/lib/common/UsageTransform.d.ts +10 -0
- package/dist/types/lib/common/ZScore.d.ts +5 -0
- package/dist/types/lib/common/index.d.ts +44 -0
- package/dist/types/lib/entities/Account.d.ts +17 -0
- package/dist/types/lib/entities/AccountDTO.d.ts +19 -0
- package/dist/types/lib/entities/AccountSettings.d.ts +10 -0
- package/dist/types/lib/entities/Action.d.ts +10 -0
- package/dist/types/lib/entities/Alert.d.ts +34 -0
- package/dist/types/lib/entities/AlertWithDevice.d.ts +36 -0
- package/dist/types/lib/entities/ApiKey.d.ts +11 -0
- package/dist/types/lib/entities/AuditLog.d.ts +13 -0
- package/dist/types/lib/entities/BulkDevices.d.ts +5 -0
- package/dist/types/lib/entities/Checkpoint.d.ts +23 -0
- package/dist/types/lib/entities/ComplianceReportSettings.d.ts +7 -0
- package/dist/types/lib/entities/Condition.d.ts +8 -0
- package/dist/types/lib/entities/ConfigParam.d.ts +6 -0
- package/dist/types/lib/entities/ConfigParams.d.ts +5 -0
- package/dist/types/lib/entities/DNSRecord.d.ts +12 -0
- package/dist/types/lib/entities/DataIngestion.d.ts +18 -0
- package/dist/types/lib/entities/DataPointOfDeviceReport.d.ts +6 -0
- package/dist/types/lib/entities/Device.d.ts +30 -0
- package/dist/types/lib/entities/DeviceReport.d.ts +9 -0
- package/dist/types/lib/entities/DeviceWithEvents.d.ts +32 -0
- package/dist/types/lib/entities/Distribution.d.ts +7 -0
- package/dist/types/lib/entities/Event.d.ts +38 -0
- package/dist/types/lib/entities/EventOccurrence.d.ts +10 -0
- package/dist/types/lib/entities/EventWithDevice.d.ts +39 -0
- package/dist/types/lib/entities/Feature.d.ts +6 -0
- package/dist/types/lib/entities/FeaturesGroup.d.ts +6 -0
- package/dist/types/lib/entities/Group.d.ts +8 -0
- package/dist/types/lib/entities/Image.d.ts +5 -0
- package/dist/types/lib/entities/Insight.d.ts +18 -0
- package/dist/types/lib/entities/InsightQuery.d.ts +10 -0
- package/dist/types/lib/entities/InsightSpec.d.ts +9 -0
- package/dist/types/lib/entities/IntDistribution.d.ts +7 -0
- package/dist/types/lib/entities/Integration.d.ts +31 -0
- package/dist/types/lib/entities/Member.d.ts +7 -0
- package/dist/types/lib/entities/Radius.d.ts +15 -0
- package/dist/types/lib/entities/Report.d.ts +13 -0
- package/dist/types/lib/entities/Rule.d.ts +27 -0
- package/dist/types/lib/entities/RuleTemplate.d.ts +14 -0
- package/dist/types/lib/entities/SIM.d.ts +8 -0
- package/dist/types/lib/entities/ServiceStatus.d.ts +8 -0
- package/dist/types/lib/entities/SessionRecord.d.ts +22 -0
- package/dist/types/lib/entities/Shieldex.d.ts +7 -0
- package/dist/types/lib/entities/Stream.d.ts +11 -0
- package/dist/types/lib/entities/StreamAnalyticsConfig.d.ts +12 -0
- package/dist/types/lib/entities/StreamConfig.d.ts +19 -0
- package/dist/types/lib/entities/TeaserPopUpSettings.d.ts +6 -0
- package/dist/types/lib/entities/TimeSeriesOfDeviceReport.d.ts +8 -0
- package/dist/types/lib/entities/UsageRecord.d.ts +32 -0
- package/dist/types/lib/entities/User.d.ts +16 -0
- package/dist/types/lib/entities/UserMembership.d.ts +14 -0
- package/dist/types/lib/entities/UserMemberships.d.ts +14 -0
- package/dist/types/lib/entities/index.d.ts +51 -0
- package/dist/types/lib/enums/AccountStatusCode.d.ts +7 -0
- package/dist/types/lib/enums/AccountTypeCode.d.ts +8 -0
- package/dist/types/lib/enums/DataSourceCode.d.ts +7 -0
- package/dist/types/lib/enums/DeviceActionCode.d.ts +8 -0
- package/dist/types/lib/enums/DeviceCreationCode.d.ts +8 -0
- package/dist/types/lib/enums/DeviceIdentityCode.d.ts +11 -0
- package/dist/types/lib/enums/DeviceStatusCode.d.ts +8 -0
- package/dist/types/lib/enums/DeviceTypeCode.d.ts +18 -0
- package/dist/types/lib/enums/DirectionContextCode.d.ts +8 -0
- package/dist/types/lib/enums/EventCategoryCode.d.ts +6 -0
- package/dist/types/lib/enums/EventStatusCode.d.ts +8 -0
- package/dist/types/lib/enums/EventTypeCode.d.ts +23 -0
- package/dist/types/lib/enums/FeatureCode.d.ts +14 -0
- package/dist/types/lib/enums/HomePageViewCode.d.ts +7 -0
- package/dist/types/lib/enums/HttpMethodCode.d.ts +9 -0
- package/dist/types/lib/enums/InsightStatusCode.d.ts +7 -0
- package/dist/types/lib/enums/InsightTypeCode.d.ts +6 -0
- package/dist/types/lib/enums/IntegrationTriggerCode.d.ts +6 -0
- package/dist/types/lib/enums/IntegrationTypeCode.d.ts +8 -0
- package/dist/types/lib/enums/MemberRoleCode.d.ts +8 -0
- package/dist/types/lib/enums/NetworkMapTypeCode.d.ts +7 -0
- package/dist/types/lib/enums/OperatorCode.d.ts +15 -0
- package/dist/types/lib/enums/PermissionCode.d.ts +9 -0
- package/dist/types/lib/enums/ReportTypeCode.d.ts +7 -0
- package/dist/types/lib/enums/RuleActivityStatusCode.d.ts +5 -0
- package/dist/types/lib/enums/RuleTypeCode.d.ts +7 -0
- package/dist/types/lib/enums/SeverityTypeCode.d.ts +8 -0
- package/dist/types/lib/enums/TrafficDirectionCode.d.ts +7 -0
- package/dist/types/lib/enums/UserStatusCode.d.ts +8 -0
- package/dist/types/lib/enums/UserTypeCode.d.ts +8 -0
- package/dist/types/lib/enums/index.d.ts +30 -0
- package/dist/types/lib/index.d.ts +5 -0
- package/dist/types/lib/pulse-client.d.ts +55 -0
- package/dist/types/lib/services/index.d.ts +26 -0
- package/dist/types/lib/services/services.export.d.ts +26 -0
- package/dist/types/lib/services/supportStreamAnalyticsConfig.d.ts +28 -0
- package/dist/types/lib/services/sysAccountsService.d.ts +44 -0
- package/dist/types/lib/services/sysAuditLogService.d.ts +21 -0
- package/dist/types/lib/services/sysCheckpointsService.d.ts +21 -0
- package/dist/types/lib/services/sysConfigService.d.ts +37 -0
- package/dist/types/lib/services/sysFeaturesService.d.ts +33 -0
- package/dist/types/lib/services/sysGroupsService.d.ts +41 -0
- package/dist/types/lib/services/sysInsightsService.d.ts +53 -0
- package/dist/types/lib/services/sysKeysService.d.ts +33 -0
- package/dist/types/lib/services/sysMembersService.d.ts +29 -0
- package/dist/types/lib/services/sysRuleTemplatesService.d.ts +28 -0
- package/dist/types/lib/services/sysRulesService.d.ts +33 -0
- package/dist/types/lib/services/sysStatisticsService.d.ts +24 -0
- package/dist/types/lib/services/sysStreamsService.d.ts +28 -0
- package/dist/types/lib/services/sysUsersService.d.ts +43 -0
- package/dist/types/lib/services/usrAlertsService.d.ts +109 -0
- package/dist/types/lib/services/usrDevicesService.d.ts +108 -0
- package/dist/types/lib/services/usrEventsService.d.ts +92 -0
- package/dist/types/lib/services/usrInsightsService.d.ts +12 -0
- package/dist/types/lib/services/usrIntegrationsService.d.ts +36 -0
- package/dist/types/lib/services/usrMembersService.d.ts +33 -0
- package/dist/types/lib/services/usrNetworkService.d.ts +17 -0
- package/dist/types/lib/services/usrReportsService.d.ts +50 -0
- package/dist/types/lib/services/usrRulesService.d.ts +46 -0
- package/dist/types/lib/services/usrUserService.d.ts +64 -0
- package/dist/types/utils/ActionResponse.d.ts +5 -0
- package/dist/types/utils/BaseRestResponse.d.ts +4 -0
- package/dist/types/utils/EntitiesResponse.d.ts +8 -0
- package/dist/types/utils/EntityResponse.d.ts +8 -0
- package/dist/types/utils/index.d.ts +5 -0
- package/dist/types/utils/rest-axios-setup.d.ts +3 -0
- package/dist/types/utils/rest-util.d.ts +15 -0
- package/dist/umd/index.js +1 -1
- package/package.json +8 -19
- package/dist/cjs/Num.js +0 -174
- package/dist/esm/Num.js +0 -171
- package/dist/types/Num.d.ts +0 -15
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SysAccountsService = void 0;
|
|
4
|
+
// List of account 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 SysAccountsService {
|
|
8
|
+
// Class constructor
|
|
9
|
+
constructor(apiUrl, rest) {
|
|
10
|
+
this.apiUrl = apiUrl;
|
|
11
|
+
this.rest = rest;
|
|
12
|
+
// URL to web api
|
|
13
|
+
this.baseUrl = '/sys/accounts';
|
|
14
|
+
this.baseUrl = apiUrl + this.baseUrl;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Create new account
|
|
18
|
+
*/
|
|
19
|
+
create(body) {
|
|
20
|
+
return this.rest.put(`${this.baseUrl}`, typeof body === 'object' ? JSON.stringify(body) : body);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Update existing account in the system
|
|
24
|
+
*/
|
|
25
|
+
update(body) {
|
|
26
|
+
return this.rest.patch(`${this.baseUrl}`, typeof body === 'object' ? JSON.stringify(body) : body);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Update existing account settings in the system
|
|
30
|
+
*/
|
|
31
|
+
updateSettings(body) {
|
|
32
|
+
return this.rest.patch(`${this.baseUrl}/{id}`, typeof body === 'object' ? JSON.stringify(body) : body);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Delete account from the system and all its related content
|
|
36
|
+
*/
|
|
37
|
+
delete(id) {
|
|
38
|
+
return this.rest.delete(`${this.baseUrl}/${id}`);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Get single account by id
|
|
42
|
+
*/
|
|
43
|
+
get(id) {
|
|
44
|
+
return this.rest.get(`${this.baseUrl}/${id}`);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Find list of accounts by query
|
|
48
|
+
*/
|
|
49
|
+
find(search, type, status, sort, page, size) {
|
|
50
|
+
const params = [];
|
|
51
|
+
if (search != null) {
|
|
52
|
+
params.push(`search=${search}`);
|
|
53
|
+
}
|
|
54
|
+
if (type != null) {
|
|
55
|
+
params.push(`type=${type}`);
|
|
56
|
+
}
|
|
57
|
+
if (status != null) {
|
|
58
|
+
params.push(`status=${status}`);
|
|
59
|
+
}
|
|
60
|
+
if (sort != null) {
|
|
61
|
+
params.push(`sort=${sort}`);
|
|
62
|
+
}
|
|
63
|
+
if (page != null) {
|
|
64
|
+
params.push(`page=${page}`);
|
|
65
|
+
}
|
|
66
|
+
if (size != null) {
|
|
67
|
+
params.push(`size=${size}`);
|
|
68
|
+
}
|
|
69
|
+
return this.rest.get(`${this.baseUrl}`, ...params);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Save account's logo image
|
|
73
|
+
*/
|
|
74
|
+
saveLogo() {
|
|
75
|
+
return this.rest.patch(`${this.baseUrl}/logo`, '');
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Get account's logo image
|
|
79
|
+
*/
|
|
80
|
+
getLogo(id) {
|
|
81
|
+
return this.rest.get(`${this.baseUrl}/logo`);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.SysAccountsService = SysAccountsService;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SysAuditLogService = void 0;
|
|
4
|
+
// List of audit log queries 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 SysAuditLogService {
|
|
8
|
+
// Class constructor
|
|
9
|
+
constructor(apiUrl, rest) {
|
|
10
|
+
this.apiUrl = apiUrl;
|
|
11
|
+
this.rest = rest;
|
|
12
|
+
// URL to web api
|
|
13
|
+
this.baseUrl = '/sys/audit-log';
|
|
14
|
+
this.baseUrl = apiUrl + this.baseUrl;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Get single log entry by id
|
|
18
|
+
*/
|
|
19
|
+
get(id) {
|
|
20
|
+
return this.rest.get(`${this.baseUrl}/${id}`);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Find list of log entries by query
|
|
24
|
+
*/
|
|
25
|
+
find(from, to, accountId, userId, action, itemType, itemId, itemName, search, sort, page, size) {
|
|
26
|
+
const params = [];
|
|
27
|
+
if (from != null) {
|
|
28
|
+
params.push(`from=${from}`);
|
|
29
|
+
}
|
|
30
|
+
if (to != null) {
|
|
31
|
+
params.push(`to=${to}`);
|
|
32
|
+
}
|
|
33
|
+
if (accountId != null) {
|
|
34
|
+
params.push(`accountId=${accountId}`);
|
|
35
|
+
}
|
|
36
|
+
if (userId != null) {
|
|
37
|
+
params.push(`userId=${userId}`);
|
|
38
|
+
}
|
|
39
|
+
if (action != null) {
|
|
40
|
+
params.push(`action=${action}`);
|
|
41
|
+
}
|
|
42
|
+
if (itemType != null) {
|
|
43
|
+
params.push(`itemType=${itemType}`);
|
|
44
|
+
}
|
|
45
|
+
if (itemId != null) {
|
|
46
|
+
params.push(`itemId=${itemId}`);
|
|
47
|
+
}
|
|
48
|
+
if (itemName != null) {
|
|
49
|
+
params.push(`itemName=${itemName}`);
|
|
50
|
+
}
|
|
51
|
+
if (search != null) {
|
|
52
|
+
params.push(`search=${search}`);
|
|
53
|
+
}
|
|
54
|
+
if (sort != null) {
|
|
55
|
+
params.push(`sort=${sort}`);
|
|
56
|
+
}
|
|
57
|
+
if (page != null) {
|
|
58
|
+
params.push(`page=${page}`);
|
|
59
|
+
}
|
|
60
|
+
if (size != null) {
|
|
61
|
+
params.push(`size=${size}`);
|
|
62
|
+
}
|
|
63
|
+
return this.rest.get(`${this.baseUrl}`, ...params);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Get histogram of audit log entries over time
|
|
67
|
+
*/
|
|
68
|
+
getTimeline(from, to, accountId, userId, action, itemType, itemId, itemName, search, sort, page, size) {
|
|
69
|
+
const params = [];
|
|
70
|
+
if (from != null) {
|
|
71
|
+
params.push(`from=${from}`);
|
|
72
|
+
}
|
|
73
|
+
if (to != null) {
|
|
74
|
+
params.push(`to=${to}`);
|
|
75
|
+
}
|
|
76
|
+
if (accountId != null) {
|
|
77
|
+
params.push(`accountId=${accountId}`);
|
|
78
|
+
}
|
|
79
|
+
if (userId != null) {
|
|
80
|
+
params.push(`userId=${userId}`);
|
|
81
|
+
}
|
|
82
|
+
if (action != null) {
|
|
83
|
+
params.push(`action=${action}`);
|
|
84
|
+
}
|
|
85
|
+
if (itemType != null) {
|
|
86
|
+
params.push(`itemType=${itemType}`);
|
|
87
|
+
}
|
|
88
|
+
if (itemId != null) {
|
|
89
|
+
params.push(`itemId=${itemId}`);
|
|
90
|
+
}
|
|
91
|
+
if (itemName != null) {
|
|
92
|
+
params.push(`itemName=${itemName}`);
|
|
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}/timeline`, ...params);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.SysAuditLogService = SysAuditLogService;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SysCheckpointsService = void 0;
|
|
4
|
+
// List of checkpoints queries 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 SysCheckpointsService {
|
|
8
|
+
// Class constructor
|
|
9
|
+
constructor(apiUrl, rest) {
|
|
10
|
+
this.apiUrl = apiUrl;
|
|
11
|
+
this.rest = rest;
|
|
12
|
+
// URL to web api
|
|
13
|
+
this.baseUrl = '/sys/checkpoints';
|
|
14
|
+
this.baseUrl = apiUrl + this.baseUrl;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Get a single checkpoint entry by id
|
|
18
|
+
*/
|
|
19
|
+
get(id) {
|
|
20
|
+
return this.rest.get(`${this.baseUrl}/${id}`);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Find a list of checkpoint entries by query
|
|
24
|
+
*/
|
|
25
|
+
find(from, to, accountId, streamId, search, sort, page, size) {
|
|
26
|
+
const params = [];
|
|
27
|
+
if (from != null) {
|
|
28
|
+
params.push(`from=${from}`);
|
|
29
|
+
}
|
|
30
|
+
if (to != null) {
|
|
31
|
+
params.push(`to=${to}`);
|
|
32
|
+
}
|
|
33
|
+
if (accountId != null) {
|
|
34
|
+
params.push(`accountId=${accountId}`);
|
|
35
|
+
}
|
|
36
|
+
if (streamId != null) {
|
|
37
|
+
params.push(`streamId=${streamId}`);
|
|
38
|
+
}
|
|
39
|
+
if (search != null) {
|
|
40
|
+
params.push(`search=${search}`);
|
|
41
|
+
}
|
|
42
|
+
if (sort != null) {
|
|
43
|
+
params.push(`sort=${sort}`);
|
|
44
|
+
}
|
|
45
|
+
if (page != null) {
|
|
46
|
+
params.push(`page=${page}`);
|
|
47
|
+
}
|
|
48
|
+
if (size != null) {
|
|
49
|
+
params.push(`size=${size}`);
|
|
50
|
+
}
|
|
51
|
+
return this.rest.get(`${this.baseUrl}`, ...params);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Get histogram of checkpoints over time
|
|
55
|
+
*/
|
|
56
|
+
checkpointsTimeline(from, to, accountId, streamId, field, timeField) {
|
|
57
|
+
const params = [];
|
|
58
|
+
if (from != null) {
|
|
59
|
+
params.push(`from=${from}`);
|
|
60
|
+
}
|
|
61
|
+
if (to != null) {
|
|
62
|
+
params.push(`to=${to}`);
|
|
63
|
+
}
|
|
64
|
+
if (accountId != null) {
|
|
65
|
+
params.push(`accountId=${accountId}`);
|
|
66
|
+
}
|
|
67
|
+
if (streamId != null) {
|
|
68
|
+
params.push(`streamId=${streamId}`);
|
|
69
|
+
}
|
|
70
|
+
if (field != null) {
|
|
71
|
+
params.push(`field=${field}`);
|
|
72
|
+
}
|
|
73
|
+
if (timeField != null) {
|
|
74
|
+
params.push(`timeField=${timeField}`);
|
|
75
|
+
}
|
|
76
|
+
return this.rest.get(`${this.baseUrl}/timeline`, ...params);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.SysCheckpointsService = SysCheckpointsService;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SysConfigService = void 0;
|
|
4
|
+
// List of system configuration parameters 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 SysConfigService {
|
|
8
|
+
// Class constructor
|
|
9
|
+
constructor(apiUrl, rest) {
|
|
10
|
+
this.apiUrl = apiUrl;
|
|
11
|
+
this.rest = rest;
|
|
12
|
+
// URL to web api
|
|
13
|
+
this.baseUrl = '/sys/config';
|
|
14
|
+
this.baseUrl = apiUrl + this.baseUrl;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Create new configuration parameter
|
|
18
|
+
*/
|
|
19
|
+
create(body) {
|
|
20
|
+
return this.rest.put(`${this.baseUrl}`, typeof body === 'object' ? JSON.stringify(body) : body);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Update existing configuration parameter in the system
|
|
24
|
+
*/
|
|
25
|
+
update(body) {
|
|
26
|
+
return this.rest.patch(`${this.baseUrl}`, typeof body === 'object' ? JSON.stringify(body) : body);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Update group of configuration parameters in the system in a bulk
|
|
30
|
+
*/
|
|
31
|
+
updateGroup(body) {
|
|
32
|
+
return this.rest.patch(`${this.baseUrl}/update-group`, typeof body === 'object' ? JSON.stringify(body) : body);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Delete a configuration parameter from the system
|
|
36
|
+
*/
|
|
37
|
+
delete(id) {
|
|
38
|
+
return this.rest.delete(`${this.baseUrl}/${id}`);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Get single configuration parameter by id
|
|
42
|
+
*/
|
|
43
|
+
get(id) {
|
|
44
|
+
return this.rest.get(`${this.baseUrl}/${id}`);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Get list of configuration parameters keys and their description
|
|
48
|
+
*/
|
|
49
|
+
keys(search, sort, page, size) {
|
|
50
|
+
const params = [];
|
|
51
|
+
if (search != null) {
|
|
52
|
+
params.push(`search=${search}`);
|
|
53
|
+
}
|
|
54
|
+
if (sort != null) {
|
|
55
|
+
params.push(`sort=${sort}`);
|
|
56
|
+
}
|
|
57
|
+
if (page != null) {
|
|
58
|
+
params.push(`page=${page}`);
|
|
59
|
+
}
|
|
60
|
+
if (size != null) {
|
|
61
|
+
params.push(`size=${size}`);
|
|
62
|
+
}
|
|
63
|
+
return this.rest.get(`${this.baseUrl}/keys`, ...params);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Find list of configuration parameters by query
|
|
67
|
+
*/
|
|
68
|
+
find(search, sort, page, size) {
|
|
69
|
+
const params = [];
|
|
70
|
+
if (search != null) {
|
|
71
|
+
params.push(`search=${search}`);
|
|
72
|
+
}
|
|
73
|
+
if (sort != null) {
|
|
74
|
+
params.push(`sort=${sort}`);
|
|
75
|
+
}
|
|
76
|
+
if (page != null) {
|
|
77
|
+
params.push(`page=${page}`);
|
|
78
|
+
}
|
|
79
|
+
if (size != null) {
|
|
80
|
+
params.push(`size=${size}`);
|
|
81
|
+
}
|
|
82
|
+
return this.rest.get(`${this.baseUrl}`, ...params);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.SysConfigService = SysConfigService;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SysFeaturesService = void 0;
|
|
4
|
+
// List of features 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 SysFeaturesService {
|
|
8
|
+
// Class constructor
|
|
9
|
+
constructor(apiUrl, rest) {
|
|
10
|
+
this.apiUrl = apiUrl;
|
|
11
|
+
this.rest = rest;
|
|
12
|
+
// URL to web api
|
|
13
|
+
this.baseUrl = '/sys/features';
|
|
14
|
+
this.baseUrl = apiUrl + this.baseUrl;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Find list of feature
|
|
18
|
+
*/
|
|
19
|
+
findFeatures(search, sort, page, size) {
|
|
20
|
+
const params = [];
|
|
21
|
+
if (search != null) {
|
|
22
|
+
params.push(`search=${search}`);
|
|
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
|
+
* Create new features group
|
|
37
|
+
*/
|
|
38
|
+
createFeaturesGroup(body) {
|
|
39
|
+
return this.rest.put(`${this.baseUrl}/groups`, typeof body === 'object' ? JSON.stringify(body) : body);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Update existing features group
|
|
43
|
+
*/
|
|
44
|
+
updateFeaturesGroup(body) {
|
|
45
|
+
return this.rest.patch(`${this.baseUrl}/groups`, typeof body === 'object' ? JSON.stringify(body) : body);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Delete features group from the system
|
|
49
|
+
*/
|
|
50
|
+
deleteFeaturesGroup(id) {
|
|
51
|
+
return this.rest.delete(`${this.baseUrl}/groups/${id}`);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Get single features group by id
|
|
55
|
+
*/
|
|
56
|
+
getFeaturesGroup(id) {
|
|
57
|
+
return this.rest.get(`${this.baseUrl}/groups/${id}`);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Find list of features groups
|
|
61
|
+
*/
|
|
62
|
+
findFeaturesGroups(search, sort, page, size) {
|
|
63
|
+
const params = [];
|
|
64
|
+
if (search != null) {
|
|
65
|
+
params.push(`search=${search}`);
|
|
66
|
+
}
|
|
67
|
+
if (sort != null) {
|
|
68
|
+
params.push(`sort=${sort}`);
|
|
69
|
+
}
|
|
70
|
+
if (page != null) {
|
|
71
|
+
params.push(`page=${page}`);
|
|
72
|
+
}
|
|
73
|
+
if (size != null) {
|
|
74
|
+
params.push(`size=${size}`);
|
|
75
|
+
}
|
|
76
|
+
return this.rest.get(`${this.baseUrl}/groups`, ...params);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.SysFeaturesService = SysFeaturesService;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SysGroupsService = void 0;
|
|
4
|
+
// List of groups 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 SysGroupsService {
|
|
8
|
+
// Class constructor
|
|
9
|
+
constructor(apiUrl, rest) {
|
|
10
|
+
this.apiUrl = apiUrl;
|
|
11
|
+
this.rest = rest;
|
|
12
|
+
// URL to web api
|
|
13
|
+
this.baseUrl = '/sys/groups';
|
|
14
|
+
this.baseUrl = apiUrl + this.baseUrl;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Create new groups
|
|
18
|
+
*/
|
|
19
|
+
create(body) {
|
|
20
|
+
return this.rest.put(`${this.baseUrl}`, typeof body === 'object' ? JSON.stringify(body) : body);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Update existing group in the system
|
|
24
|
+
*/
|
|
25
|
+
update(body) {
|
|
26
|
+
return this.rest.patch(`${this.baseUrl}`, typeof body === 'object' ? JSON.stringify(body) : body);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Delete a group from the system
|
|
30
|
+
*/
|
|
31
|
+
delete(id) {
|
|
32
|
+
return this.rest.delete(`${this.baseUrl}/${id}`);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get single group by id
|
|
36
|
+
*/
|
|
37
|
+
get(id) {
|
|
38
|
+
return this.rest.get(`${this.baseUrl}/${id}`);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Find list of groups by query
|
|
42
|
+
*/
|
|
43
|
+
find(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}`, ...params);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get list of all users in the group
|
|
61
|
+
*/
|
|
62
|
+
getUsers(id) {
|
|
63
|
+
return this.rest.get(`${this.baseUrl}/${id}/users`);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Add user to the group
|
|
67
|
+
*/
|
|
68
|
+
setDefaultAccount(id, userId) {
|
|
69
|
+
return this.rest.put(`${this.baseUrl}/${id}/users/${userId}`, '');
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Remove user from the group
|
|
73
|
+
*/
|
|
74
|
+
getAccessToken(id, userId) {
|
|
75
|
+
return this.rest.delete(`${this.baseUrl}/${id}/users/${userId}`);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.SysGroupsService = SysGroupsService;
|
|
@@ -0,0 +1,134 @@
|
|
|
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;
|