@itentialopensource/adapter-sevone 2.2.4 → 2.4.0
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/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +169 -0
- package/CHANGELOG.md +59 -89
- package/CODE_OF_CONDUCT.md +12 -17
- package/CONTRIBUTING.md +88 -74
- package/ENHANCE.md +69 -0
- package/PROPERTIES.md +641 -0
- package/README.md +225 -502
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +18786 -55
- package/adapterBase.js +1021 -245
- package/entities/.generic/action.json +110 -5
- package/entities/.generic/schema.json +6 -1
- package/entities/ApiKeys/action.json +206 -0
- package/entities/ApiKeys/mockdatafiles/createApiKey-default.json +7 -0
- package/entities/ApiKeys/mockdatafiles/createApiKeyForUser-default.json +7 -0
- package/entities/ApiKeys/mockdatafiles/getApiKeys-default.json +9 -0
- package/entities/ApiKeys/mockdatafiles/getApiKeysForUser-default.json +23 -0
- package/entities/ApiKeys/mockdatafiles/updateApiKey-default.json +7 -0
- package/entities/ApiKeys/mockdatafiles/updateApiKeyForUser-default.json +7 -0
- package/entities/ApiKeys/schema.json +28 -0
- package/entities/Application/action.json +66 -0
- package/entities/Application/mockdatafiles/getVersion-default.json +6 -0
- package/entities/Application/mockdatafiles/postLoggingLevel-default.json +5 -0
- package/entities/Application/schema.json +21 -0
- package/entities/Authentication/action.json +126 -0
- package/entities/Authentication/mockdatafiles/getActiveSessions-default.json +26 -0
- package/entities/Authentication/mockdatafiles/signIn-default.json +3 -0
- package/entities/Authentication/schema.json +24 -0
- package/entities/CountriesAndTimezones/action.json +25 -0
- package/entities/CountriesAndTimezones/mockdatafiles/getTimezonesByCountries-default.json +30 -0
- package/entities/CountriesAndTimezones/schema.json +19 -0
- package/entities/DeviceComponent/action.json +24 -0
- package/entities/DeviceComponent/mockdatafiles/partiallyUpdateObjectById-default.json +193 -0
- package/entities/DeviceComponent/schema.json +19 -0
- package/entities/DeviceComponentGroup/action.json +24 -0
- package/entities/DeviceComponentGroup/mockdatafiles/partiallyUpdateObjectGroupById-default.json +1227 -0
- package/entities/DeviceComponentGroup/schema.json +19 -0
- package/entities/DeviceGroup/action.json +45 -0
- package/entities/DeviceGroup/mockdatafiles/getDeviceTagsById-default.json +5 -0
- package/entities/DeviceGroup/mockdatafiles/partiallyUpdateDeviceGroupById-default.json +1352 -0
- package/entities/DeviceGroup/schema.json +20 -0
- package/entities/DeviceGroupRules/action.json +127 -0
- package/entities/DeviceGroupRules/mockdatafiles/createDeviceGroupRule-default.json +16 -0
- package/entities/DeviceGroupRules/mockdatafiles/deleteDeviceGroupRule-default.json +5 -0
- package/entities/DeviceGroupRules/mockdatafiles/getDeviceGroupRule-default.json +16 -0
- package/entities/DeviceGroupRules/mockdatafiles/getDeviceGroupRules-default.json +88 -0
- package/entities/DeviceGroupRules/mockdatafiles/getDeviceGroupsRules-default.json +168 -0
- package/entities/DeviceGroupRules/mockdatafiles/updateDeviceGroupRule-default.json +16 -0
- package/entities/DeviceGroupRules/schema.json +24 -0
- package/entities/DeviceTypes/action.json +147 -0
- package/entities/DeviceTypes/mockdatafiles/createDeviceType-default.json +446 -0
- package/entities/DeviceTypes/mockdatafiles/deleteDeviceTypeById-default.json +5 -0
- package/entities/DeviceTypes/mockdatafiles/deleteDeviceTypeMemberById-default.json +5 -0
- package/entities/DeviceTypes/mockdatafiles/getDeviceTypeById-default.json +1350 -0
- package/entities/DeviceTypes/mockdatafiles/getDeviceTypeForDeviceById-default.json +22 -0
- package/entities/DeviceTypes/mockdatafiles/getDeviceTypes-default.json +4274 -0
- package/entities/DeviceTypes/schema.json +25 -0
- package/entities/Discovery/action.json +86 -0
- package/entities/Discovery/mockdatafiles/filterDevicesInDiscovery-default.json +442 -0
- package/entities/Discovery/mockdatafiles/getDeviceStatusById-default.json +224 -0
- package/entities/Discovery/mockdatafiles/getDevicesInDiscovery-default.json +1826 -0
- package/entities/Discovery/mockdatafiles/updateDevicePriority-default.json +100 -0
- package/entities/Discovery/schema.json +22 -0
- package/entities/DynamicPlugin/action.json +44 -0
- package/entities/DynamicPlugin/mockdatafiles/registerDynamicPlugin-default.json +42 -0
- package/entities/DynamicPlugin/mockdatafiles/registerDynamicPluginManager-default.json +6 -0
- package/entities/DynamicPlugin/schema.json +20 -0
- package/entities/ObjectGroupRules/action.json +147 -0
- package/entities/ObjectGroupRules/mockdatafiles/applyObjectGroupRules-default.json +5 -0
- package/entities/ObjectGroupRules/mockdatafiles/createObjectGroupRule-default.json +14 -0
- package/entities/ObjectGroupRules/mockdatafiles/deleteObjectGroupRule-default.json +5 -0
- package/entities/ObjectGroupRules/mockdatafiles/getObjectGroupRule-default.json +14 -0
- package/entities/ObjectGroupRules/mockdatafiles/getObjectGroupRules-default.json +148 -0
- package/entities/ObjectGroupRules/mockdatafiles/getObjectGroupsRules-default.json +36 -0
- package/entities/ObjectGroupRules/mockdatafiles/updateObjectGroupRule-default.json +14 -0
- package/entities/ObjectGroupRules/schema.json +25 -0
- package/entities/Peers/action.json +150 -0
- package/entities/Peers/mockdatafiles/editIncorporateModeUsingPATCH-default.json +5 -0
- package/entities/Peers/mockdatafiles/getCurrentPeerUsingGET-default.json +27 -0
- package/entities/Peers/mockdatafiles/getIncorporateModeUsingGET-default.json +5 -0
- package/entities/Peers/mockdatafiles/getPeerUsingGET-default.json +27 -0
- package/entities/Peers/mockdatafiles/getPeersUsingGET-default.json +197 -0
- package/entities/Peers/schema.json +25 -0
- package/entities/Plugins/action.json +292 -0
- package/entities/Plugins/mockdatafiles/createPluginIndicatorType-default.json +16 -0
- package/entities/Plugins/mockdatafiles/createPluginObjectType-default.json +9 -0
- package/entities/Plugins/mockdatafiles/filterPluginIndicatorTypes-default.json +88 -0
- package/entities/Plugins/mockdatafiles/filterPluginObjectTypes-default.json +98 -0
- package/entities/Plugins/mockdatafiles/getAllPluginIndicatorTypes-default.json +72 -0
- package/entities/Plugins/mockdatafiles/getAllPluginObjectTypes-default.json +35 -0
- package/entities/Plugins/mockdatafiles/getAllPlugins-default.json +29 -0
- package/entities/Plugins/mockdatafiles/updatePluginIndicatorType-default.json +16 -0
- package/entities/Plugins/mockdatafiles/updatePluginObjectType-default.json +9 -0
- package/entities/Plugins/schema.json +32 -0
- package/entities/Policies/action.json +370 -0
- package/entities/Policies/mockdatafiles/createPolicy-default.json +298 -0
- package/entities/Policies/mockdatafiles/createPolicyCondition-default.json +14 -0
- package/entities/Policies/mockdatafiles/createPolicyFolder-default.json +5 -0
- package/entities/Policies/mockdatafiles/deletePolicyActionById-default.json +5 -0
- package/entities/Policies/mockdatafiles/deletePolicyById-default.json +5 -0
- package/entities/Policies/mockdatafiles/deletePolicyConditionById-default.json +5 -0
- package/entities/Policies/mockdatafiles/deletePolicyFolderById-default.json +5 -0
- package/entities/Policies/mockdatafiles/filterPolicies-default.json +1709 -0
- package/entities/Policies/mockdatafiles/findAllUsingGET-default.json +106 -0
- package/entities/Policies/mockdatafiles/getActionsUsingGET-default.json +53 -0
- package/entities/Policies/mockdatafiles/getPolicies-default.json +1318 -0
- package/entities/Policies/mockdatafiles/getPolicy-default.json +73 -0
- package/entities/Policies/mockdatafiles/getPolicyConditionById-default.json +14 -0
- package/entities/Policies/mockdatafiles/getPolicyFolders-default.json +13 -0
- package/entities/Policies/mockdatafiles/updatePolicy-default.json +97 -0
- package/entities/Policies/mockdatafiles/updatePolicyAction-default.json +41 -0
- package/entities/Policies/mockdatafiles/updatePolicyCondition-default.json +14 -0
- package/entities/Policies/mockdatafiles/updatePolicyFolder-default.json +5 -0
- package/entities/Policies/schema.json +36 -0
- package/entities/ReportAttachments/action.json +107 -0
- package/entities/ReportAttachments/mockdatafiles/deleteReportAttachment-default.json +5 -0
- package/entities/ReportAttachments/mockdatafiles/getAllReportAttachments-default.json +26 -0
- package/entities/ReportAttachments/mockdatafiles/getReportAttachment-default.json +3 -0
- package/entities/ReportAttachments/mockdatafiles/updateReportAttachmentById-default.json +3 -0
- package/entities/ReportAttachments/schema.json +23 -0
- package/entities/ReportAttachmentsAlerts/action.json +311 -0
- package/entities/ReportAttachmentsAlerts/mockdatafiles/createAlertAttachment-default.json +122 -0
- package/entities/ReportAttachmentsAlerts/mockdatafiles/getAlertAttachmentAggregation-default.json +3 -0
- package/entities/ReportAttachmentsAlerts/mockdatafiles/getAlertAttachmentFilterSchema-default.json +218 -0
- package/entities/ReportAttachmentsAlerts/mockdatafiles/getAlertAttachmentFilters-default.json +17 -0
- package/entities/ReportAttachmentsAlerts/mockdatafiles/getAlertAttachmentResource-default.json +15 -0
- package/entities/ReportAttachmentsAlerts/mockdatafiles/getAlertAttachmentSettings-default.json +67 -0
- package/entities/ReportAttachmentsAlerts/mockdatafiles/getAlertAttachmentTimeSettings-default.json +8 -0
- package/entities/ReportAttachmentsAlerts/mockdatafiles/getAlertAttachmentVisualizationSettings-default.json +59 -0
- package/entities/ReportAttachmentsAlerts/mockdatafiles/partiallyUpdateAlertAttachmentVisualizationSettings-default.json +65 -0
- package/entities/ReportAttachmentsAlerts/mockdatafiles/updateAlertAttachmentAggregation-default.json +3 -0
- package/entities/ReportAttachmentsAlerts/mockdatafiles/updateAlertAttachmentFilters-default.json +102 -0
- package/entities/ReportAttachmentsAlerts/mockdatafiles/updateAlertAttachmentResource-default.json +10 -0
- package/entities/ReportAttachmentsAlerts/mockdatafiles/updateAlertAttachmentSettings-default.json +52 -0
- package/entities/ReportAttachmentsAlerts/mockdatafiles/updateAlertAttachmentTimeSettings-default.json +8 -0
- package/entities/ReportAttachmentsAlerts/mockdatafiles/updateAlertAttachmentVisualizationSettings-default.json +65 -0
- package/entities/ReportAttachmentsAlerts/schema.json +33 -0
- package/entities/ReportAttachmentsDeviceGroups/action.json +106 -0
- package/entities/ReportAttachmentsDeviceGroups/mockdatafiles/createDeviceGroupsAttachment-default.json +46 -0
- package/entities/ReportAttachmentsDeviceGroups/mockdatafiles/getDeviceGroupsAttachment-default.json +12 -0
- package/entities/ReportAttachmentsDeviceGroups/mockdatafiles/getDeviceGroupsAttachmentVisualization-default.json +28 -0
- package/entities/ReportAttachmentsDeviceGroups/mockdatafiles/updateDeviceGroupsAttachment-default.json +9 -0
- package/entities/ReportAttachmentsDeviceGroups/mockdatafiles/updateDeviceGroupsAttachmentVisualization-default.json +38 -0
- package/entities/ReportAttachmentsDeviceGroups/schema.json +23 -0
- package/entities/ReportAttachmentsDevices/action.json +209 -0
- package/entities/ReportAttachmentsDevices/mockdatafiles/createDeviceAttachment-default.json +81 -0
- package/entities/ReportAttachmentsDevices/mockdatafiles/getDeviceAttachment-default.json +12 -0
- package/entities/ReportAttachmentsDevices/mockdatafiles/getDeviceAttachmentFilterSchema-default.json +4 -0
- package/entities/ReportAttachmentsDevices/mockdatafiles/getDeviceAttachmentFilters-default.json +90 -0
- package/entities/ReportAttachmentsDevices/mockdatafiles/getDeviceAttachmentSettings-default.json +72 -0
- package/entities/ReportAttachmentsDevices/mockdatafiles/getDeviceAttachmentVisualization-default.json +36 -0
- package/entities/ReportAttachmentsDevices/mockdatafiles/updateDeviceAttachment-default.json +6 -0
- package/entities/ReportAttachmentsDevices/mockdatafiles/updateDeviceAttachmentFilters-default.json +36 -0
- package/entities/ReportAttachmentsDevices/mockdatafiles/updateDeviceAttachmentSettings-default.json +56 -0
- package/entities/ReportAttachmentsDevices/mockdatafiles/updateDeviceAttachmentVisualization-default.json +39 -0
- package/entities/ReportAttachmentsDevices/schema.json +28 -0
- package/entities/ReportAttachmentsFlowFalcon/action.json +290 -0
- package/entities/ReportAttachmentsFlowFalcon/mockdatafiles/createFlowFalconAttachment-default.json +243 -0
- package/entities/ReportAttachmentsFlowFalcon/mockdatafiles/getFlowFalconAttachmentFilterSchema-default.json +4 -0
- package/entities/ReportAttachmentsFlowFalcon/mockdatafiles/getFlowFalconAttachmentFilters-default.json +138 -0
- package/entities/ReportAttachmentsFlowFalcon/mockdatafiles/getFlowFalconAttachmentResources-default.json +64 -0
- package/entities/ReportAttachmentsFlowFalcon/mockdatafiles/getFlowFalconAttachmentSettings-default.json +80 -0
- package/entities/ReportAttachmentsFlowFalcon/mockdatafiles/getFlowFalconAttachmentTimeSettings-default.json +8 -0
- package/entities/ReportAttachmentsFlowFalcon/mockdatafiles/getFlowFalconAttachmentVisualizationSettings-default.json +71 -0
- package/entities/ReportAttachmentsFlowFalcon/mockdatafiles/partiallyUpdateFlowFalconAttachmentSettings-default.json +48 -0
- package/entities/ReportAttachmentsFlowFalcon/mockdatafiles/partiallyUpdateFlowFalconAttachmentVisualizationSettings-default.json +67 -0
- package/entities/ReportAttachmentsFlowFalcon/mockdatafiles/updateFlowFalconAttachmentFilters-default.json +58 -0
- package/entities/ReportAttachmentsFlowFalcon/mockdatafiles/updateFlowFalconAttachmentResources-default.json +52 -0
- package/entities/ReportAttachmentsFlowFalcon/mockdatafiles/updateFlowFalconAttachmentSettings-default.json +71 -0
- package/entities/ReportAttachmentsFlowFalcon/mockdatafiles/updateFlowFalconAttachmentTimeSettings-default.json +8 -0
- package/entities/ReportAttachmentsFlowFalcon/mockdatafiles/updateFlowFalconAttachmentVisualizationSettings-default.json +56 -0
- package/entities/ReportAttachmentsFlowFalcon/schema.json +32 -0
- package/entities/ReportAttachmentsGroupMetrics/action.json +188 -0
- package/entities/ReportAttachmentsGroupMetrics/mockdatafiles/createGroupMetricsAttachment-default.json +208 -0
- package/entities/ReportAttachmentsGroupMetrics/mockdatafiles/getGroupMetricsAttachment-default.json +172 -0
- package/entities/ReportAttachmentsGroupMetrics/mockdatafiles/getGroupMetricsAttachmentSettings-default.json +47 -0
- package/entities/ReportAttachmentsGroupMetrics/mockdatafiles/getGroupMetricsAttachmentTimeSettings-default.json +8 -0
- package/entities/ReportAttachmentsGroupMetrics/mockdatafiles/getGroupMetricsAttachmentVisualization-default.json +34 -0
- package/entities/ReportAttachmentsGroupMetrics/mockdatafiles/updateGroupMetricsAttachment-default.json +207 -0
- package/entities/ReportAttachmentsGroupMetrics/mockdatafiles/updateGroupMetricsAttachmentSettings-default.json +62 -0
- package/entities/ReportAttachmentsGroupMetrics/mockdatafiles/updateGroupMetricsAttachmentTimeSettings-default.json +8 -0
- package/entities/ReportAttachmentsGroupMetrics/mockdatafiles/updateGroupMetricsAttachmentVisualization-default.json +30 -0
- package/entities/ReportAttachmentsGroupMetrics/schema.json +27 -0
- package/entities/ReportAttachmentsMetadata/action.json +126 -0
- package/entities/ReportAttachmentsMetadata/mockdatafiles/createMetadataAttachment-default.json +41 -0
- package/entities/ReportAttachmentsMetadata/mockdatafiles/getMetadataAttachmentResources-default.json +12 -0
- package/entities/ReportAttachmentsMetadata/mockdatafiles/getMetadataAttachmentVisualizationSettings-default.json +33 -0
- package/entities/ReportAttachmentsMetadata/mockdatafiles/partiallyUpdateMetadataAttachmentVisualizationSettings-default.json +27 -0
- package/entities/ReportAttachmentsMetadata/mockdatafiles/updateMetadataAttachmentResources-default.json +9 -0
- package/entities/ReportAttachmentsMetadata/mockdatafiles/updateMetadataAttachmentVisualizationSettings-default.json +33 -0
- package/entities/ReportAttachmentsMetadata/schema.json +24 -0
- package/entities/ReportAttachmentsObjectGroups/action.json +126 -0
- package/entities/ReportAttachmentsObjectGroups/mockdatafiles/createObjectGroupAttachment-default.json +54 -0
- package/entities/ReportAttachmentsObjectGroups/mockdatafiles/getObjectGroupAttachmentResources-default.json +11 -0
- package/entities/ReportAttachmentsObjectGroups/mockdatafiles/getObjectGroupAttachmentVisualizationSettings-default.json +41 -0
- package/entities/ReportAttachmentsObjectGroups/mockdatafiles/partiallyUpdateObjectGroupAttachmentVisualizationSettings-default.json +35 -0
- package/entities/ReportAttachmentsObjectGroups/mockdatafiles/updateObjectGroupAttachmentResources-default.json +16 -0
- package/entities/ReportAttachmentsObjectGroups/mockdatafiles/updateObjectGroupAttachmentVisualizationSettings-default.json +36 -0
- package/entities/ReportAttachmentsObjectGroups/schema.json +24 -0
- package/entities/ReportAttachmentsObjects/action.json +167 -0
- package/entities/ReportAttachmentsObjects/mockdatafiles/createObjectAttachment-default.json +51 -0
- package/entities/ReportAttachmentsObjects/mockdatafiles/getObjectAttachmentResources-default.json +10 -0
- package/entities/ReportAttachmentsObjects/mockdatafiles/getObjectAttachmentSettings-default.json +5 -0
- package/entities/ReportAttachmentsObjects/mockdatafiles/getObjectAttachmentVisualizationSettings-default.json +32 -0
- package/entities/ReportAttachmentsObjects/mockdatafiles/partiallyUpdateObjectAttachmentVisualizationSettings-default.json +31 -0
- package/entities/ReportAttachmentsObjects/mockdatafiles/updateObjectAttachmentResources-default.json +10 -0
- package/entities/ReportAttachmentsObjects/mockdatafiles/updateObjectAttachmentSettings-default.json +5 -0
- package/entities/ReportAttachmentsObjects/mockdatafiles/updateObjectAttachmentVisualizationSettings-default.json +35 -0
- package/entities/ReportAttachmentsObjects/schema.json +26 -0
- package/entities/ReportAttachmentsPerformanceMetrics/action.json +228 -0
- package/entities/ReportAttachmentsPerformanceMetrics/mockdatafiles/createPerformanceMetricsAttachment-default.json +275 -0
- package/entities/ReportAttachmentsPerformanceMetrics/mockdatafiles/getPerformanceMetricsAttachmentResources-default.json +53 -0
- package/entities/ReportAttachmentsPerformanceMetrics/mockdatafiles/getPerformanceMetricsAttachmentSettings-default.json +92 -0
- package/entities/ReportAttachmentsPerformanceMetrics/mockdatafiles/getPerformanceMetricsAttachmentTimeSettings-default.json +8 -0
- package/entities/ReportAttachmentsPerformanceMetrics/mockdatafiles/getPerformanceMetricsAttachmentVisualizationSettings-default.json +124 -0
- package/entities/ReportAttachmentsPerformanceMetrics/mockdatafiles/partiallyUpdatePerformanceMetricsAttachmentSettings-default.json +81 -0
- package/entities/ReportAttachmentsPerformanceMetrics/mockdatafiles/partiallyUpdatePerformanceMetricsAttachmentVisualizationSettings-default.json +126 -0
- package/entities/ReportAttachmentsPerformanceMetrics/mockdatafiles/updatePerformanceMetricsAttachmentResources-default.json +46 -0
- package/entities/ReportAttachmentsPerformanceMetrics/mockdatafiles/updatePerformanceMetricsAttachmentSettings-default.json +139 -0
- package/entities/ReportAttachmentsPerformanceMetrics/mockdatafiles/updatePerformanceMetricsAttachmentTimeSettings-default.json +8 -0
- package/entities/ReportAttachmentsPerformanceMetrics/mockdatafiles/updatePerformanceMetricsAttachmentVisualizationSettings-default.json +122 -0
- package/entities/ReportAttachmentsPerformanceMetrics/schema.json +29 -0
- package/entities/ReportAttachmentsStatusMap/action.json +65 -0
- package/entities/ReportAttachmentsStatusMap/mockdatafiles/createStatusMapAttachment-default.json +9 -0
- package/entities/ReportAttachmentsStatusMap/mockdatafiles/getStatusMapAttachmentResources-default.json +3 -0
- package/entities/ReportAttachmentsStatusMap/mockdatafiles/updateStatusMapAttachmentResources-default.json +3 -0
- package/entities/ReportAttachmentsStatusMap/schema.json +21 -0
- package/entities/ReportAttachmentsTelephony/action.json +188 -0
- package/entities/ReportAttachmentsTelephony/mockdatafiles/createTelephonyAttachment-default.json +57 -0
- package/entities/ReportAttachmentsTelephony/mockdatafiles/getTelephonyAttachmentAggregation-default.json +3 -0
- package/entities/ReportAttachmentsTelephony/mockdatafiles/getTelephonyAttachmentSettings-default.json +9 -0
- package/entities/ReportAttachmentsTelephony/mockdatafiles/getTelephonyAttachmentTimeSettings-default.json +8 -0
- package/entities/ReportAttachmentsTelephony/mockdatafiles/getTelephonyAttachmentVisualizationSettings-default.json +35 -0
- package/entities/ReportAttachmentsTelephony/mockdatafiles/updateTelephonyAttachmentAggregation-default.json +3 -0
- package/entities/ReportAttachmentsTelephony/mockdatafiles/updateTelephonyAttachmentSettings-default.json +9 -0
- package/entities/ReportAttachmentsTelephony/mockdatafiles/updateTelephonyAttachmentTimeSettings-default.json +8 -0
- package/entities/ReportAttachmentsTelephony/mockdatafiles/updateTelephonyAttachmentVisualizationSettings-default.json +33 -0
- package/entities/ReportAttachmentsTelephony/schema.json +27 -0
- package/entities/ReportAttachmentsTopN/action.json +228 -0
- package/entities/ReportAttachmentsTopN/mockdatafiles/createTopNAttachment-default.json +111 -0
- package/entities/ReportAttachmentsTopN/mockdatafiles/getTopNAttachmentResources-default.json +8 -0
- package/entities/ReportAttachmentsTopN/mockdatafiles/getTopNAttachmentSettings-default.json +129 -0
- package/entities/ReportAttachmentsTopN/mockdatafiles/getTopNAttachmentTimeSettings-default.json +8 -0
- package/entities/ReportAttachmentsTopN/mockdatafiles/getTopNAttachmentVisualizationSettings-default.json +44 -0
- package/entities/ReportAttachmentsTopN/mockdatafiles/partiallyUpdateTopNAttachmentSettings-default.json +140 -0
- package/entities/ReportAttachmentsTopN/mockdatafiles/partiallyUpdateTopNAttachmentVisualizationSettings-default.json +47 -0
- package/entities/ReportAttachmentsTopN/mockdatafiles/updateTopNAttachmentResources-default.json +13 -0
- package/entities/ReportAttachmentsTopN/mockdatafiles/updateTopNAttachmentSettings-default.json +39 -0
- package/entities/ReportAttachmentsTopN/mockdatafiles/updateTopNAttachmentTimeSettings-default.json +8 -0
- package/entities/ReportAttachmentsTopN/mockdatafiles/updateTopNAttachmentVisualizationSettings-default.json +51 -0
- package/entities/ReportAttachmentsTopN/schema.json +29 -0
- package/entities/Reports/action.json +187 -0
- package/entities/Reports/mockdatafiles/createReport-default.json +24 -0
- package/entities/Reports/mockdatafiles/createReportFolder-default.json +5 -0
- package/entities/Reports/mockdatafiles/deleteReportById-default.json +5 -0
- package/entities/Reports/mockdatafiles/deleteReportFolderById-default.json +5 -0
- package/entities/Reports/mockdatafiles/getAllReportFolders-default.json +48 -0
- package/entities/Reports/mockdatafiles/getAllReports-default.json +32 -0
- package/entities/Reports/mockdatafiles/getReport-default.json +24 -0
- package/entities/Reports/mockdatafiles/updateReportById-default.json +24 -0
- package/entities/Reports/mockdatafiles/updateReportFolderById-default.json +5 -0
- package/entities/Reports/schema.json +27 -0
- package/entities/StatusMapImages/action.json +46 -0
- package/entities/StatusMapImages/mockdatafiles/getMapImages-default.json +14 -0
- package/entities/StatusMapImages/schema.json +20 -0
- package/entities/Users/action.json +25 -0
- package/entities/Users/mockdatafiles/getCurrentUser-default.json +26 -0
- package/entities/Users/schema.json +19 -0
- package/entities/alert/action.json +81 -0
- package/entities/alert/mockdatafiles/createAlertForced-default.json +27 -0
- package/entities/alert/mockdatafiles/getFlowFalconDeviceAlerts-default.json +48 -0
- package/entities/alert/mockdatafiles/getMaxSeverityAlertForObjects-default.json +14 -0
- package/entities/alert/mockdatafiles/patchAlert-default.json +36 -0
- package/entities/alert/schema.json +8 -2
- package/entities/device/action.json +20 -0
- package/entities/device/mockdatafiles/getdeviceerror.json +1 -58
- package/entities/device/mockdatafiles/partiallyUpdateDeviceById-default.json +103 -0
- package/entities/device/schema.json +2 -1
- package/entities/map/action.json +20 -0
- package/entities/map/mockdatafiles/partiallyUpdateStatusMapById-default.json +534 -0
- package/entities/map/schema.json +2 -1
- package/error.json +12 -0
- package/package.json +20 -13
- package/pronghorn.json +34868 -2005
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +436 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +10 -0
- package/report/updateReport1653680202971.json +120 -0
- package/sampleProperties.json +94 -2
- package/test/integration/adapterTestBasicGet.js +2 -2
- package/test/integration/adapterTestIntegration.js +8011 -105
- package/test/unit/adapterBaseTestUnit.js +35 -27
- package/test/unit/adapterTestUnit.js +7948 -145
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/basicGet.js +1 -14
- package/utils/entitiesToDB.js +179 -0
- package/utils/modify.js +1 -1
- package/utils/packModificationScript.js +1 -1
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +3 -0
- package/utils/removeHooks.js +20 -0
- package/utils/tbScript.js +43 -22
- package/utils/tbUtils.js +126 -29
- package/utils/testRunner.js +16 -16
- package/utils/troubleshootingAdapter.js +2 -26
|
@@ -61,7 +61,10 @@ global.pronghornProps = {
|
|
|
61
61
|
token_cache: 'local',
|
|
62
62
|
auth_field: 'header.headers.Authorization',
|
|
63
63
|
auth_field_format: 'Basic {b64}{username}:{password}{/b64}',
|
|
64
|
-
auth_logging: false
|
|
64
|
+
auth_logging: false,
|
|
65
|
+
client_id: '',
|
|
66
|
+
client_secret: '',
|
|
67
|
+
grant_type: ''
|
|
65
68
|
},
|
|
66
69
|
healthcheck: {
|
|
67
70
|
type: 'none',
|
|
@@ -194,7 +197,7 @@ function runErrorAsserts(data, error, code, origin, displayStr) {
|
|
|
194
197
|
}
|
|
195
198
|
|
|
196
199
|
// require the adapter that we are going to be using
|
|
197
|
-
const AdapterBase = require('../../adapterBase
|
|
200
|
+
const AdapterBase = require('../../adapterBase');
|
|
198
201
|
|
|
199
202
|
// delete the .DS_Store directory in entities -- otherwise this will cause errors
|
|
200
203
|
const dirPath = path.join(__dirname, '../../entities/.DS_Store');
|
|
@@ -314,8 +317,10 @@ describe('[unit] Adapter Base Test', () => {
|
|
|
314
317
|
});
|
|
315
318
|
it('should return a list of functions', (done) => {
|
|
316
319
|
const returnedFunctions = ['addEntityCache', 'capabilityResults', 'checkActionFiles', 'checkProperties', 'connect', 'encryptProperty',
|
|
317
|
-
'entityInList', '
|
|
318
|
-
'
|
|
320
|
+
'entityInList', 'getAllCapabilities', 'getAllFunctions', 'getConfig', 'getDevice', 'getDevicesFiltered', 'hasDevices', 'hasEntities',
|
|
321
|
+
'healthCheck', 'iapFindAdapterPath', 'iapGetAdapterQueue', 'iapGetAdapterWorkflowFunctions', 'iapGetDeviceCount', 'iapMakeBrokerCall',
|
|
322
|
+
'iapMoveAdapterEntitiesToDB', 'iapRunAdapterBasicGet', 'iapRunAdapterConnectivity', 'iapRunAdapterHealthcheck', 'iapSuspendAdapter',
|
|
323
|
+
'iapTroubleshootAdapter', 'iapUnsuspendAdapter', 'iapUpdateAdapterConfiguration', 'isAlive', 'refreshProperties', 'addListener',
|
|
319
324
|
'emit', 'eventNames', 'getMaxListeners', 'listenerCount', 'listeners', 'off', 'on', 'once', 'prependListener',
|
|
320
325
|
'prependOnceListener', 'rawListeners', 'removeAllListeners', 'removeListener', 'setMaxListeners'];
|
|
321
326
|
try {
|
|
@@ -334,10 +339,10 @@ describe('[unit] Adapter Base Test', () => {
|
|
|
334
339
|
}).timeout(attemptTimeout);
|
|
335
340
|
});
|
|
336
341
|
|
|
337
|
-
describe('#
|
|
338
|
-
it('should have a
|
|
342
|
+
describe('#iapGetAdapterWorkflowFunctions', () => {
|
|
343
|
+
it('should have a iapGetAdapterWorkflowFunctions function', (done) => {
|
|
339
344
|
try {
|
|
340
|
-
assert.equal(true, typeof a.
|
|
345
|
+
assert.equal(true, typeof a.iapGetAdapterWorkflowFunctions === 'function');
|
|
341
346
|
done();
|
|
342
347
|
} catch (error) {
|
|
343
348
|
log.error(`Test Failure: ${error}`);
|
|
@@ -346,7 +351,7 @@ describe('[unit] Adapter Base Test', () => {
|
|
|
346
351
|
});
|
|
347
352
|
it('should retrieve workflow functions', (done) => {
|
|
348
353
|
try {
|
|
349
|
-
const expectedFunctions = a.
|
|
354
|
+
const expectedFunctions = a.iapGetAdapterWorkflowFunctions([]);
|
|
350
355
|
try {
|
|
351
356
|
assert.equal(0, expectedFunctions.length);
|
|
352
357
|
done();
|
|
@@ -423,10 +428,10 @@ describe('[unit] Adapter Base Test', () => {
|
|
|
423
428
|
}).timeout(attemptTimeout);
|
|
424
429
|
});
|
|
425
430
|
|
|
426
|
-
describe('#
|
|
427
|
-
it('should have a
|
|
431
|
+
describe('#iapGetAdapterQueue', () => {
|
|
432
|
+
it('should have a iapGetAdapterQueue function', (done) => {
|
|
428
433
|
try {
|
|
429
|
-
assert.equal(true, typeof a.
|
|
434
|
+
assert.equal(true, typeof a.iapGetAdapterQueue === 'function');
|
|
430
435
|
done();
|
|
431
436
|
} catch (error) {
|
|
432
437
|
log.error(`Test Failure: ${error}`);
|
|
@@ -435,7 +440,7 @@ describe('[unit] Adapter Base Test', () => {
|
|
|
435
440
|
});
|
|
436
441
|
it('should get information for all of the requests currently in the queue', (done) => {
|
|
437
442
|
try {
|
|
438
|
-
const expectedFunctions = a.
|
|
443
|
+
const expectedFunctions = a.iapGetAdapterQueue();
|
|
439
444
|
try {
|
|
440
445
|
assert.equal(0, expectedFunctions.length);
|
|
441
446
|
done();
|
|
@@ -814,12 +819,17 @@ describe('[unit] Adapter Base Test', () => {
|
|
|
814
819
|
try {
|
|
815
820
|
assert.notEqual(0, expectedCapabilities.length);
|
|
816
821
|
assert.equal('.generic', expectedCapabilities[0].entity);
|
|
817
|
-
assert.equal(
|
|
822
|
+
assert.equal(10, expectedCapabilities[0].actions.length);
|
|
818
823
|
assert.equal('getGenerics', expectedCapabilities[0].actions[0]);
|
|
819
824
|
assert.equal('createGeneric', expectedCapabilities[0].actions[1]);
|
|
820
825
|
assert.equal('updateGeneric', expectedCapabilities[0].actions[2]);
|
|
821
826
|
assert.equal('patchGeneric', expectedCapabilities[0].actions[3]);
|
|
822
827
|
assert.equal('deleteGeneric', expectedCapabilities[0].actions[4]);
|
|
828
|
+
assert.equal('getGenericsNoBase', expectedCapabilities[0].actions[5]);
|
|
829
|
+
assert.equal('createGenericNoBase', expectedCapabilities[0].actions[6]);
|
|
830
|
+
assert.equal('updateGenericNoBase', expectedCapabilities[0].actions[7]);
|
|
831
|
+
assert.equal('patchGenericNoBase', expectedCapabilities[0].actions[8]);
|
|
832
|
+
assert.equal('deleteGenericNoBase', expectedCapabilities[0].actions[9]);
|
|
823
833
|
assert.equal('.system', expectedCapabilities[1].entity);
|
|
824
834
|
assert.equal(2, expectedCapabilities[1].actions.length);
|
|
825
835
|
assert.equal('getToken', expectedCapabilities[1].actions[0]);
|
|
@@ -840,12 +850,10 @@ describe('[unit] Adapter Base Test', () => {
|
|
|
840
850
|
}).timeout(attemptTimeout);
|
|
841
851
|
});
|
|
842
852
|
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
describe('#updateAdapterConfiguration', () => {
|
|
846
|
-
it('should have a updateAdapterConfiguration function', (done) => {
|
|
853
|
+
describe('#iapUpdateAdapterConfiguration', () => {
|
|
854
|
+
it('should have a iapUpdateAdapterConfiguration function', (done) => {
|
|
847
855
|
try {
|
|
848
|
-
assert.equal(true, typeof a.
|
|
856
|
+
assert.equal(true, typeof a.iapUpdateAdapterConfiguration === 'function');
|
|
849
857
|
done();
|
|
850
858
|
} catch (error) {
|
|
851
859
|
log.error(`Test Failure: ${error}`);
|
|
@@ -854,7 +862,7 @@ describe('[unit] Adapter Base Test', () => {
|
|
|
854
862
|
});
|
|
855
863
|
it('should return no updated if no changes are provided', (done) => {
|
|
856
864
|
try {
|
|
857
|
-
a.
|
|
865
|
+
a.iapUpdateAdapterConfiguration(null, null, null, null, null, (data, error) => {
|
|
858
866
|
try {
|
|
859
867
|
assert.equal('No configuration updates to make', data.response);
|
|
860
868
|
done();
|
|
@@ -870,10 +878,10 @@ describe('[unit] Adapter Base Test', () => {
|
|
|
870
878
|
}).timeout(attemptTimeout);
|
|
871
879
|
it('should throw an error if missing configuration file', (done) => {
|
|
872
880
|
try {
|
|
873
|
-
a.
|
|
881
|
+
a.iapUpdateAdapterConfiguration(null, { name: 'fakeChange' }, null, null, null, (data, error) => {
|
|
874
882
|
try {
|
|
875
883
|
const displayE = 'configFile is required';
|
|
876
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-Base-adapterBase-
|
|
884
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-Base-adapterBase-iapUpdateAdapterConfiguration', displayE);
|
|
877
885
|
done();
|
|
878
886
|
} catch (err) {
|
|
879
887
|
log.error(`Test Failure: ${err}`);
|
|
@@ -887,10 +895,10 @@ describe('[unit] Adapter Base Test', () => {
|
|
|
887
895
|
}).timeout(attemptTimeout);
|
|
888
896
|
it('if not package.json, entity is required', (done) => {
|
|
889
897
|
try {
|
|
890
|
-
a.
|
|
898
|
+
a.iapUpdateAdapterConfiguration('notPackage', { name: 'fakeChange' }, null, null, null, (data, error) => {
|
|
891
899
|
try {
|
|
892
900
|
const displayE = 'Unsupported Configuration Change or Missing Entity';
|
|
893
|
-
runErrorAsserts(data, error, 'AD.999', 'Test-Base-adapterBase-
|
|
901
|
+
runErrorAsserts(data, error, 'AD.999', 'Test-Base-adapterBase-iapUpdateAdapterConfiguration', displayE);
|
|
894
902
|
done();
|
|
895
903
|
} catch (err) {
|
|
896
904
|
log.error(`Test Failure: ${err}`);
|
|
@@ -904,10 +912,10 @@ describe('[unit] Adapter Base Test', () => {
|
|
|
904
912
|
}).timeout(attemptTimeout);
|
|
905
913
|
it('if not package.json, type is required', (done) => {
|
|
906
914
|
try {
|
|
907
|
-
a.
|
|
915
|
+
a.iapUpdateAdapterConfiguration('notPackage', { name: 'fakeChange' }, 'entity', null, null, (data, error) => {
|
|
908
916
|
try {
|
|
909
917
|
const displayE = 'type is required';
|
|
910
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-Base-adapterBase-
|
|
918
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-Base-adapterBase-iapUpdateAdapterConfiguration', displayE);
|
|
911
919
|
done();
|
|
912
920
|
} catch (err) {
|
|
913
921
|
log.error(`Test Failure: ${err}`);
|
|
@@ -921,10 +929,10 @@ describe('[unit] Adapter Base Test', () => {
|
|
|
921
929
|
}).timeout(attemptTimeout);
|
|
922
930
|
it('if not package.json, entity must be valid', (done) => {
|
|
923
931
|
try {
|
|
924
|
-
a.
|
|
932
|
+
a.iapUpdateAdapterConfiguration('notPackage', { name: 'fakeChange' }, 'fakeEntity', 'fakeType', null, (data, error) => {
|
|
925
933
|
try {
|
|
926
934
|
const displayE = 'Incomplete Configuration Change: Invalid Entity - fakeEntity';
|
|
927
|
-
runErrorAsserts(data, error, 'AD.999', 'Test-Base-adapterBase-
|
|
935
|
+
runErrorAsserts(data, error, 'AD.999', 'Test-Base-adapterBase-iapUpdateAdapterConfiguration', displayE);
|
|
928
936
|
done();
|
|
929
937
|
} catch (err) {
|
|
930
938
|
log.error(`Test Failure: ${err}`);
|