@shieldiot/ngx-pulseiot-lib 2.18.1206 → 2.18.1208
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/esm2022/lib/services/SysIntegrationTemplatesService.mjs +74 -0
- package/esm2022/lib/services/index.mjs +2 -1
- package/fesm2022/shieldiot-ngx-pulseiot-lib.mjs +70 -1
- package/fesm2022/shieldiot-ngx-pulseiot-lib.mjs.map +1 -1
- package/lib/services/SysIntegrationTemplatesService.d.ts +35 -0
- package/lib/services/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Injectable, Inject } from '@angular/core';
|
|
2
|
+
import { APP_CONFIG } from '../../config';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../../rest-utils";
|
|
5
|
+
import * as i2 from "../../config";
|
|
6
|
+
// SysIntegrationTemplatesEndPoint manages system-level CRUD for IntegrationTemplate entities.
|
|
7
|
+
export class SysIntegrationTemplatesService {
|
|
8
|
+
// Class constructor
|
|
9
|
+
constructor(config, rest) {
|
|
10
|
+
this.config = config;
|
|
11
|
+
this.rest = rest;
|
|
12
|
+
// URL to web api
|
|
13
|
+
this.baseUrl = '/sys/integration-templates';
|
|
14
|
+
this.baseUrl = this.config.api + this.baseUrl;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Create a new integration template.
|
|
18
|
+
*/
|
|
19
|
+
create(body) {
|
|
20
|
+
return this.rest.put(`${this.baseUrl}`, typeof body === 'object' ? JSON.stringify(body) : body);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Update an existing integration template.
|
|
24
|
+
*/
|
|
25
|
+
update(body) {
|
|
26
|
+
return this.rest.patch(`${this.baseUrl}`, typeof body === 'object' ? JSON.stringify(body) : body);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Delete an integration template by id.
|
|
30
|
+
*/
|
|
31
|
+
delete(id) {
|
|
32
|
+
return this.rest.delete(`${this.baseUrl}/${id}`);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get a single integration template by id.
|
|
36
|
+
*/
|
|
37
|
+
get(id) {
|
|
38
|
+
return this.rest.get(`${this.baseUrl}/${id}`);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Find integration templates by query.
|
|
42
|
+
*/
|
|
43
|
+
find(search, trigger, sort, page, size) {
|
|
44
|
+
const params = [];
|
|
45
|
+
if (search != null) {
|
|
46
|
+
params.push(`search=${search}`);
|
|
47
|
+
}
|
|
48
|
+
if (trigger != null) {
|
|
49
|
+
params.push(`trigger=${trigger}`);
|
|
50
|
+
}
|
|
51
|
+
if (sort != null) {
|
|
52
|
+
params.push(`sort=${sort}`);
|
|
53
|
+
}
|
|
54
|
+
if (page != null) {
|
|
55
|
+
params.push(`page=${page}`);
|
|
56
|
+
}
|
|
57
|
+
if (size != null) {
|
|
58
|
+
params.push(`size=${size}`);
|
|
59
|
+
}
|
|
60
|
+
return this.rest.get(`${this.baseUrl}`, ...params);
|
|
61
|
+
}
|
|
62
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: SysIntegrationTemplatesService, deps: [{ token: APP_CONFIG }, { token: i1.RestUtils }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
63
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: SysIntegrationTemplatesService, providedIn: 'root' }); }
|
|
64
|
+
}
|
|
65
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: SysIntegrationTemplatesService, decorators: [{
|
|
66
|
+
type: Injectable,
|
|
67
|
+
args: [{
|
|
68
|
+
providedIn: 'root'
|
|
69
|
+
}]
|
|
70
|
+
}], ctorParameters: () => [{ type: i2.AppConfig, decorators: [{
|
|
71
|
+
type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hcmFtcy5wdXNoKGB0cmlnZ2VyPSR7dHJpZ2dlcn1gKTsgfVxuICAgIGlmIChzb3J0ICE9IG51bGwpIHsgcGFyYW1zLnB1c2goYHNvcnQ9JHtzb3J0fWApOyB9XG4gICAgaWYgKHBhZ2UgIT0gbnVsbCkgeyBwYXJhbXMucHVzaChgcGFnZT0ke3BhZ2V9YCk7IH1cbiAgICBpZiAoc2l6ZSAhPSBudWxsKSB7IHBhcmFtcy5wdXNoKGBzaXplPSR7c2l6ZX1gKTsgfVxuXG5cdFx0cmV0dXJuIHRoaXMucmVzdC5nZXQ8RW50aXRpZXNSZXNwb25zZTxJbnRlZ3JhdGlvblRlbXBsYXRlPj4oYCR7dGhpcy5iYXNlVXJsfWAsIC4uLnBhcmFtcyk7XG4gIH1cblxufVxuIl19
|
|
@@ -25,6 +25,7 @@ export * from './SysFeaturesService';
|
|
|
25
25
|
export * from './McpToolsService';
|
|
26
26
|
export * from './SysInsightsService';
|
|
27
27
|
export * from './SysRuleTemplatesService';
|
|
28
|
+
export * from './SysIntegrationTemplatesService';
|
|
28
29
|
export * from './SysUsersService';
|
|
29
30
|
export * from './UsrReportsInstanceService';
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtcHVsc2Vpb3QtbGliL3NyYy9saWIvc2VydmljZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLHNCQUFzQixDQUFDO0FBQ3JDLGNBQWMseUJBQXlCLENBQUM7QUFDeEMsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMsMEJBQTBC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VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL1N5c1J1bGVUZW1wbGF0ZXNTZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vU3lzSW50ZWdyYXRpb25UZW1wbGF0ZXNTZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vU3lzVXNlcnNTZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vVXNyUmVwb3J0c0luc3RhbmNlU2VydmljZSc7XG5cblxuIl19
|
|
@@ -8704,6 +8704,75 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImpor
|
|
|
8704
8704
|
args: [APP_CONFIG]
|
|
8705
8705
|
}] }, { type: RestUtils }] });
|
|
8706
8706
|
|
|
8707
|
+
// SysIntegrationTemplatesEndPoint manages system-level CRUD for IntegrationTemplate entities.
|
|
8708
|
+
class SysIntegrationTemplatesService {
|
|
8709
|
+
// Class constructor
|
|
8710
|
+
constructor(config, rest) {
|
|
8711
|
+
this.config = config;
|
|
8712
|
+
this.rest = rest;
|
|
8713
|
+
// URL to web api
|
|
8714
|
+
this.baseUrl = '/sys/integration-templates';
|
|
8715
|
+
this.baseUrl = this.config.api + this.baseUrl;
|
|
8716
|
+
}
|
|
8717
|
+
/**
|
|
8718
|
+
* Create a new integration template.
|
|
8719
|
+
*/
|
|
8720
|
+
create(body) {
|
|
8721
|
+
return this.rest.put(`${this.baseUrl}`, typeof body === 'object' ? JSON.stringify(body) : body);
|
|
8722
|
+
}
|
|
8723
|
+
/**
|
|
8724
|
+
* Update an existing integration template.
|
|
8725
|
+
*/
|
|
8726
|
+
update(body) {
|
|
8727
|
+
return this.rest.patch(`${this.baseUrl}`, typeof body === 'object' ? JSON.stringify(body) : body);
|
|
8728
|
+
}
|
|
8729
|
+
/**
|
|
8730
|
+
* Delete an integration template by id.
|
|
8731
|
+
*/
|
|
8732
|
+
delete(id) {
|
|
8733
|
+
return this.rest.delete(`${this.baseUrl}/${id}`);
|
|
8734
|
+
}
|
|
8735
|
+
/**
|
|
8736
|
+
* Get a single integration template by id.
|
|
8737
|
+
*/
|
|
8738
|
+
get(id) {
|
|
8739
|
+
return this.rest.get(`${this.baseUrl}/${id}`);
|
|
8740
|
+
}
|
|
8741
|
+
/**
|
|
8742
|
+
* Find integration templates by query.
|
|
8743
|
+
*/
|
|
8744
|
+
find(search, trigger, sort, page, size) {
|
|
8745
|
+
const params = [];
|
|
8746
|
+
if (search != null) {
|
|
8747
|
+
params.push(`search=${search}`);
|
|
8748
|
+
}
|
|
8749
|
+
if (trigger != null) {
|
|
8750
|
+
params.push(`trigger=${trigger}`);
|
|
8751
|
+
}
|
|
8752
|
+
if (sort != null) {
|
|
8753
|
+
params.push(`sort=${sort}`);
|
|
8754
|
+
}
|
|
8755
|
+
if (page != null) {
|
|
8756
|
+
params.push(`page=${page}`);
|
|
8757
|
+
}
|
|
8758
|
+
if (size != null) {
|
|
8759
|
+
params.push(`size=${size}`);
|
|
8760
|
+
}
|
|
8761
|
+
return this.rest.get(`${this.baseUrl}`, ...params);
|
|
8762
|
+
}
|
|
8763
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: SysIntegrationTemplatesService, deps: [{ token: APP_CONFIG }, { token: RestUtils }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8764
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: SysIntegrationTemplatesService, providedIn: 'root' }); }
|
|
8765
|
+
}
|
|
8766
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: SysIntegrationTemplatesService, decorators: [{
|
|
8767
|
+
type: Injectable,
|
|
8768
|
+
args: [{
|
|
8769
|
+
providedIn: 'root'
|
|
8770
|
+
}]
|
|
8771
|
+
}], ctorParameters: () => [{ type: AppConfig, decorators: [{
|
|
8772
|
+
type: Inject,
|
|
8773
|
+
args: [APP_CONFIG]
|
|
8774
|
+
}] }, { type: RestUtils }] });
|
|
8775
|
+
|
|
8707
8776
|
// SysUsersEndPoint is a list of users related actions for system administrator only
|
|
8708
8777
|
class SysUsersService {
|
|
8709
8778
|
// Class constructor
|
|
@@ -8908,5 +8977,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImpor
|
|
|
8908
8977
|
* Generated bundle index. Do not edit.
|
|
8909
8978
|
*/
|
|
8910
8979
|
|
|
8911
|
-
export { AICheckpoint, AITasksCode, APP_CONFIG, Account, AccountDTO, AccountInfo, AccountReportDTO, AccountRole, AccountSettings, AccountStatusCode, AccountTypeCode, Action, ActionResponse, Alert, AlertWithDevice, ApiKey, AppConfig, AuditLog, BaseEntity, BaseEntityEx, BaseMessage, BaseRestResponse, BoolTypeCode, CheckPointStateCode, Checkpoint, ColumnDef, ConditionDescription, ConfigParam, ConfigParams, ConsumptionDataPoint, DNSRecord, DataIngestion, DataSourceCode, DeploymentInfo, Device, DeviceActionCode, DeviceConfig, DeviceCreationCode, DeviceIdentityCode, DeviceNode, DeviceReport, DeviceScoreConfig, DeviceStatusCode, DeviceTypeCode, DeviceWithEvents, DevicesAtRiskConfig, DevicesMap, DirectionContextCode, Distribution, Entities, EntitiesRequest, EntitiesResponse, EntityAction, EntityMessage, EntityRequest, EntityResponse, Event, EventCategoryCode, EventOccurrence, EventSeverityConfig, EventStatusCode, EventTypeCode, EventWithDevice, Feature, FeatureCode, FeaturesGroup, FloatInterval, FlowRecord, GeoData, GetAICheckpointColumnsDef, GetAITasksCodes, GetAccountColumnsDef, GetAccountDTOColumnsDef, GetAccountInfoColumnsDef, GetAccountReportDTOColumnsDef, GetAccountStatusCodes, GetAccountTypeCodes, GetActionColumnsDef, GetActionResponseColumnsDef, GetAlertColumnsDef, GetAlertWithDeviceColumnsDef, GetApiKeyColumnsDef, GetAuditLogColumnsDef, GetBoolTypeCodes, GetCheckPointStateCodes, GetCheckpointColumnsDef, GetConfigParamColumnsDef, GetConfigParamsColumnsDef, GetDNSRecordColumnsDef, GetDataSourceCodes, GetDeploymentInfoColumnsDef, GetDeviceActionCodes, GetDeviceColumnsDef, GetDeviceCreationCodes, GetDeviceIdentityCodes, GetDeviceReportColumnsDef, GetDeviceStatusCodes, GetDeviceTypeCodes, GetDeviceWithEventsColumnsDef, GetDirectionContextCodes, GetEntitiesResponseColumnsDef, GetEntityMessageColumnsDef, GetEntityResponseColumnsDef, GetEventCategoryCodes, GetEventColumnsDef, GetEventStatusCodes, GetEventTypeCodes, GetEventWithDeviceColumnsDef, GetFeatureCodes, GetFeatureColumnsDef, GetFeaturesGroupColumnsDef, GetGroupColumnsDef, GetHomePageViewCodes, GetHttpMethodCodes, GetIdsRuleColumnsDef, GetImageColumnsDef, GetInsightColumnsDef, GetInsightQueryColumnsDef, GetInsightSourceCodes, GetInsightSpecColumnsDef, GetInsightStatusCodes, GetInsightTypeCodes, GetIntegrationColumnsDef, GetIntegrationTemplateColumnsDef, GetIntegrationTriggerCodes, GetIntegrationTypeCodes, GetLlmPromptColumnsDef, GetMemberColumnsDef, GetMemberRoleCodes, GetMessageColumnsDef, GetNetworkMapTypeCodes, GetNetworkTopologyColumnsDef, GetNetworkTopologyReportColumnsDef, GetNotificationColumnsDef, GetNotificationMessageColumnsDef, GetNotificationMessageDTOColumnsDef, GetNotificationTypeCodes, GetOperatorCodes, GetParserTaskCompletionStatuss, GetPermissionCodes, GetRadiusColumnsDef, GetReportColumnsDef, GetReportInstanceColumnsDef, GetReportSourceCodes, GetReportTypeCodes, GetRuleActivityStatusCodes, GetRuleColumnsDef, GetRuleTemplateColumnsDef, GetRuleTypeCodes, GetRuleWithSQLColumnsDef, GetServiceStatusColumnsDef, GetSessionRecordColumnsDef, GetSeverityTypeCodes, GetShieldexColumnsDef, GetStreamAnalyticsConfigColumnsDef, GetStreamColumnsDef, GetTimePeriodCodes, GetTrafficDirectionCodes, GetUsageRecordColumnsDef, GetUserColumnsDef, GetUserMembershipColumnsDef, GetUserMembershipsColumnsDef, GetUserNotificationMessageColumnsDef, GetUserStatusCodes, GetUserTypeCodes, GetWSOpCodes, GraphSeries, Group, HomePageViewCode, HttpMethodCode, IdsConfig, IdsList, IdsRule, Image, Indicator, Insight, InsightQuery, InsightSourceCode, InsightSpec, InsightStatusCode, InsightTypeCode, IntFloatValue, IntKeyValue, Integration, IntegrationContext, IntegrationTemplate, IntegrationTriggerCode, IntegrationTypeCode, Interval, Json, JsonDoc, Link, LlmPrompt, LocalTime, Location, LoginParams, MaliciousIPData, MaliciousIpCard, MapAITasksCodes, MapAccountStatusCodes, MapAccountTypeCodes, MapBoolTypeCodes, MapBounds, MapCheckPointStateCodes, MapDataSourceCodes, MapDeviceActionCodes, MapDeviceCreationCodes, MapDeviceIdentityCodes, MapDeviceStatusCodes, MapDeviceTypeCodes, MapDirectionContextCodes, MapEventCategoryCodes, MapEventStatusCodes, MapEventTypeCodes, MapFeatureCodes, MapHomePageViewCodes, MapHttpMethodCodes, MapInsightSourceCodes, MapInsightStatusCodes, MapInsightTypeCodes, MapIntegrationTriggerCodes, MapIntegrationTypeCodes, MapMemberRoleCodes, MapNetworkMapTypeCodes, MapNotificationTypeCodes, MapOperatorCodes, MapParserTaskCompletionStatuss, MapPermissionCodes, MapReportSourceCodes, MapReportTypeCodes, MapRuleActivityStatusCodes, MapRuleTypeCodes, MapSeverityTypeCodes, MapTimePeriodCodes, MapTrafficDirectionCodes, MapUserStatusCodes, MapUserTypeCodes, MapWSOpCodes, McpToolsService, Member, MemberRoleCode, Message, MitreAttackCategory, NetworkEndpoint, NetworkMap, NetworkMapTypeCode, NetworkTopology, NetworkTopologyRecord, NetworkTopologyReport, NetworkTopologyReportKPIs, NetworkTopologyReportParams, NgxPulseiotLibModule, Node, Notification, NotificationMessage, NotificationMessageDTO, NotificationMessageStats, NotificationQueuePayload, NotificationTypeCode, OperatorCode, ParserTaskCompletionStatus, PermissionCode, Radius, RegulatoryViolation, Report, ReportInstance, ReportSourceCode, ReportTypeCode, ResponseExtraction, Rule, RuleActivityStatusCode, RuleBasedSeverityConditionConfig, RuleCountThresholdConfig, RuleTemplate, RuleTypeCode, RuleWithSQL, SIM, SeriesData, ServiceStatus, SessionRecord, SessionTransform, SeverityConditionConfig, SeverityIntervalTuple, SeverityTypeCode, Shieldex, ShieldexConfig, SimpleEntity, Stream, StreamAnalyticsConfig, StreamConfig, StringIntValue, StringKeyValue, SupportStreamAnalyticsConfigService, SysAccountsService, SysAuditLogService, SysCheckpointsService, SysConfigService, SysFeaturesService, SysGroupsService, SysIdsRulesService, SysInsightsService, SysKeysService, SysMembersService, SysRuleTemplatesService, SysRulesService, SysStatisticsService, SysStreamsService, SysUsersService, TemplateParameter, TemplateStep, Thresholds, TimeDataPoint, TimeFrame, TimePeriodCode, TimeSeries, TimeSeriesConsumption, Timestamp, TokenData, TrafficDirectionCode, Tuple, UsageRecord, UsageTransform, User, UserMembership, UserMemberships, UserNotificationMessage, UserStatusCode, UserTypeCode, UsrAlertsService, UsrDevicesService, UsrEventsService, UsrInsightsService, UsrIntegrationsService, UsrMembersService, UsrNetworkService, UsrNotificationMessagesService, UsrReportsInstanceService, UsrReportsService, UsrRulesService, UsrUserService, WSOpCode, ZScore, errorStruct, provideClientLib };
|
|
8980
|
+
export { AICheckpoint, AITasksCode, APP_CONFIG, Account, AccountDTO, AccountInfo, AccountReportDTO, AccountRole, AccountSettings, AccountStatusCode, AccountTypeCode, Action, ActionResponse, Alert, AlertWithDevice, ApiKey, AppConfig, AuditLog, BaseEntity, BaseEntityEx, BaseMessage, BaseRestResponse, BoolTypeCode, CheckPointStateCode, Checkpoint, ColumnDef, ConditionDescription, ConfigParam, ConfigParams, ConsumptionDataPoint, DNSRecord, DataIngestion, DataSourceCode, DeploymentInfo, Device, DeviceActionCode, DeviceConfig, DeviceCreationCode, DeviceIdentityCode, DeviceNode, DeviceReport, DeviceScoreConfig, DeviceStatusCode, DeviceTypeCode, DeviceWithEvents, DevicesAtRiskConfig, DevicesMap, DirectionContextCode, Distribution, Entities, EntitiesRequest, EntitiesResponse, EntityAction, EntityMessage, EntityRequest, EntityResponse, Event, EventCategoryCode, EventOccurrence, EventSeverityConfig, EventStatusCode, EventTypeCode, EventWithDevice, Feature, FeatureCode, FeaturesGroup, FloatInterval, FlowRecord, GeoData, GetAICheckpointColumnsDef, GetAITasksCodes, GetAccountColumnsDef, GetAccountDTOColumnsDef, GetAccountInfoColumnsDef, GetAccountReportDTOColumnsDef, GetAccountStatusCodes, GetAccountTypeCodes, GetActionColumnsDef, GetActionResponseColumnsDef, GetAlertColumnsDef, GetAlertWithDeviceColumnsDef, GetApiKeyColumnsDef, GetAuditLogColumnsDef, GetBoolTypeCodes, GetCheckPointStateCodes, GetCheckpointColumnsDef, GetConfigParamColumnsDef, GetConfigParamsColumnsDef, GetDNSRecordColumnsDef, GetDataSourceCodes, GetDeploymentInfoColumnsDef, GetDeviceActionCodes, GetDeviceColumnsDef, GetDeviceCreationCodes, GetDeviceIdentityCodes, GetDeviceReportColumnsDef, GetDeviceStatusCodes, GetDeviceTypeCodes, GetDeviceWithEventsColumnsDef, GetDirectionContextCodes, GetEntitiesResponseColumnsDef, GetEntityMessageColumnsDef, GetEntityResponseColumnsDef, GetEventCategoryCodes, GetEventColumnsDef, GetEventStatusCodes, GetEventTypeCodes, GetEventWithDeviceColumnsDef, GetFeatureCodes, GetFeatureColumnsDef, GetFeaturesGroupColumnsDef, GetGroupColumnsDef, GetHomePageViewCodes, GetHttpMethodCodes, GetIdsRuleColumnsDef, GetImageColumnsDef, GetInsightColumnsDef, GetInsightQueryColumnsDef, GetInsightSourceCodes, GetInsightSpecColumnsDef, GetInsightStatusCodes, GetInsightTypeCodes, GetIntegrationColumnsDef, GetIntegrationTemplateColumnsDef, GetIntegrationTriggerCodes, GetIntegrationTypeCodes, GetLlmPromptColumnsDef, GetMemberColumnsDef, GetMemberRoleCodes, GetMessageColumnsDef, GetNetworkMapTypeCodes, GetNetworkTopologyColumnsDef, GetNetworkTopologyReportColumnsDef, GetNotificationColumnsDef, GetNotificationMessageColumnsDef, GetNotificationMessageDTOColumnsDef, GetNotificationTypeCodes, GetOperatorCodes, GetParserTaskCompletionStatuss, GetPermissionCodes, GetRadiusColumnsDef, GetReportColumnsDef, GetReportInstanceColumnsDef, GetReportSourceCodes, GetReportTypeCodes, GetRuleActivityStatusCodes, GetRuleColumnsDef, GetRuleTemplateColumnsDef, GetRuleTypeCodes, GetRuleWithSQLColumnsDef, GetServiceStatusColumnsDef, GetSessionRecordColumnsDef, GetSeverityTypeCodes, GetShieldexColumnsDef, GetStreamAnalyticsConfigColumnsDef, GetStreamColumnsDef, GetTimePeriodCodes, GetTrafficDirectionCodes, GetUsageRecordColumnsDef, GetUserColumnsDef, GetUserMembershipColumnsDef, GetUserMembershipsColumnsDef, GetUserNotificationMessageColumnsDef, GetUserStatusCodes, GetUserTypeCodes, GetWSOpCodes, GraphSeries, Group, HomePageViewCode, HttpMethodCode, IdsConfig, IdsList, IdsRule, Image, Indicator, Insight, InsightQuery, InsightSourceCode, InsightSpec, InsightStatusCode, InsightTypeCode, IntFloatValue, IntKeyValue, Integration, IntegrationContext, IntegrationTemplate, IntegrationTriggerCode, IntegrationTypeCode, Interval, Json, JsonDoc, Link, LlmPrompt, LocalTime, Location, LoginParams, MaliciousIPData, MaliciousIpCard, MapAITasksCodes, MapAccountStatusCodes, MapAccountTypeCodes, MapBoolTypeCodes, MapBounds, MapCheckPointStateCodes, MapDataSourceCodes, MapDeviceActionCodes, MapDeviceCreationCodes, MapDeviceIdentityCodes, MapDeviceStatusCodes, MapDeviceTypeCodes, MapDirectionContextCodes, MapEventCategoryCodes, MapEventStatusCodes, MapEventTypeCodes, MapFeatureCodes, MapHomePageViewCodes, MapHttpMethodCodes, MapInsightSourceCodes, MapInsightStatusCodes, MapInsightTypeCodes, MapIntegrationTriggerCodes, MapIntegrationTypeCodes, MapMemberRoleCodes, MapNetworkMapTypeCodes, MapNotificationTypeCodes, MapOperatorCodes, MapParserTaskCompletionStatuss, MapPermissionCodes, MapReportSourceCodes, MapReportTypeCodes, MapRuleActivityStatusCodes, MapRuleTypeCodes, MapSeverityTypeCodes, MapTimePeriodCodes, MapTrafficDirectionCodes, MapUserStatusCodes, MapUserTypeCodes, MapWSOpCodes, McpToolsService, Member, MemberRoleCode, Message, MitreAttackCategory, NetworkEndpoint, NetworkMap, NetworkMapTypeCode, NetworkTopology, NetworkTopologyRecord, NetworkTopologyReport, NetworkTopologyReportKPIs, NetworkTopologyReportParams, NgxPulseiotLibModule, Node, Notification, NotificationMessage, NotificationMessageDTO, NotificationMessageStats, NotificationQueuePayload, NotificationTypeCode, OperatorCode, ParserTaskCompletionStatus, PermissionCode, Radius, RegulatoryViolation, Report, ReportInstance, ReportSourceCode, ReportTypeCode, ResponseExtraction, Rule, RuleActivityStatusCode, RuleBasedSeverityConditionConfig, RuleCountThresholdConfig, RuleTemplate, RuleTypeCode, RuleWithSQL, SIM, SeriesData, ServiceStatus, SessionRecord, SessionTransform, SeverityConditionConfig, SeverityIntervalTuple, SeverityTypeCode, Shieldex, ShieldexConfig, SimpleEntity, Stream, StreamAnalyticsConfig, StreamConfig, StringIntValue, StringKeyValue, SupportStreamAnalyticsConfigService, SysAccountsService, SysAuditLogService, SysCheckpointsService, SysConfigService, SysFeaturesService, SysGroupsService, SysIdsRulesService, SysInsightsService, SysIntegrationTemplatesService, SysKeysService, SysMembersService, SysRuleTemplatesService, SysRulesService, SysStatisticsService, SysStreamsService, SysUsersService, TemplateParameter, TemplateStep, Thresholds, TimeDataPoint, TimeFrame, TimePeriodCode, TimeSeries, TimeSeriesConsumption, Timestamp, TokenData, TrafficDirectionCode, Tuple, UsageRecord, UsageTransform, User, UserMembership, UserMemberships, UserNotificationMessage, UserStatusCode, UserTypeCode, UsrAlertsService, UsrDevicesService, UsrEventsService, UsrInsightsService, UsrIntegrationsService, UsrMembersService, UsrNetworkService, UsrNotificationMessagesService, UsrReportsInstanceService, UsrReportsService, UsrRulesService, UsrUserService, WSOpCode, ZScore, errorStruct, provideClientLib };
|
|
8912
8981
|
//# sourceMappingURL=shieldiot-ngx-pulseiot-lib.mjs.map
|