Skip to content
Permalink
Browse files

feat(api): HZN-1357 expose FeedbackDAO

  • Loading branch information...
smith-opennms committed Aug 17, 2018
1 parent 2c7506e commit d354040a6a702e8816719ba7e4ef66a8a1ce3c7e
Showing with 12 additions and 0 deletions.
  1. +6 −0 src/API.ts
  2. +6 −0 src/Client.ts
@@ -19,6 +19,7 @@ import {TicketerConfig} from './api/TicketerConfig';
import {AlarmDAO} from './dao/AlarmDAO';
import {EventDAO} from './dao/EventDAO';
import {NodeDAO} from './dao/NodeDAO';
import {SituationFeedbackDAO} from './dao/SituationFeedbackDAO';
import {V1FilterProcessor} from './dao/V1FilterProcessor';
import {V2FilterProcessor} from './dao/V2FilterProcessor';

@@ -40,6 +41,8 @@ import {OnmsPrimaryType, PrimaryTypes} from './model/OnmsPrimaryType';
import {OnmsServiceStatusType, ServiceStatusTypes} from './model/OnmsServiceStatusType';
import {OnmsServiceType, ServiceTypes} from './model/OnmsServiceType';
import {OnmsSeverity, Severities} from './model/OnmsSeverity';
import {OnmsSituationFeedback} from './model/OnmsSituationFeedback';
import {OnmsSituationFeedbackType} from './model/OnmsSituationFeedbackType';
import {OnmsSnmpInterface} from './model/OnmsSnmpInterface';
import {OnmsSnmpStatusType, SnmpStatusTypes} from './model/OnmsSnmpStatusType';
import {OnmsTroubleTicketState, TroubleTicketStates} from './model/OnmsTroubleTicketState';
@@ -87,6 +90,7 @@ const DAO = Object.freeze({
AlarmDAO,
EventDAO,
NodeDAO,
SituationFeedbackDAO,
V1FilterProcessor,
V2FilterProcessor,
});
@@ -120,6 +124,8 @@ const Model = Object.freeze({
ServiceTypes,
OnmsSeverity,
Severities,
OnmsSituationFeedback,
OnmsSituationFeedbackType,
OnmsSnmpInterface,
OnmsSnmpStatusType,
SnmpStatusTypes,
@@ -21,6 +21,7 @@ import {AlarmDAO} from './dao/AlarmDAO';
import {EventDAO} from './dao/EventDAO';
import {FlowDAO} from './dao/FlowDAO';
import {NodeDAO} from './dao/NodeDAO';
import {SituationFeedbackDAO} from './dao/SituationFeedbackDAO';

import {AxiosHTTP} from './rest/AxiosHTTP';

@@ -165,4 +166,9 @@ export class Client implements IHasHTTP {
public flows() {
return new FlowDAO(this);
}

/** Get a situationFeedback DAO for submitting and querying correlation feedback. */
public situationfeedback() {
return new SituationFeedbackDAO(this);
}
}

0 comments on commit d354040

Please sign in to comment.
You can’t perform that action at this time.