Smart rule managed object.
List of entities or Id of the ManagedObjects.
Response wrapped in [[IResult]]
Example
const rule: IRule = {id: '1', enabledSources: ['2', '3'],...};
const entityOrIdList: IdReference[] = ['2'];
(async () => {
const {data, res} = await smartRulesService.bulkDeactivateEnabledSources(rule, entityOrIdList);
})();
Gets a list of smart rules for given managed object.
Entity or Id of the ManagedObject.
Response wrapped in [[IResult]]
Example
const id: string = '1';
(async () => {
const {data, res} = await smartRulesService.listByContext(id);
})();
Updates smart rule.
Smart rule managed object.
Response wrapped in [[IResult]]
Example
const rule: IRule = {id: '1', enabledSources: ['2', '3'],...};
(async () => {
const {data, res} = await smartRulesService.updateSmartRule(rule);
})();
Deactivates smart rule for given entities list.