Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SmartRulesService

Hierarchy

Index

Constructors

constructor

Methods

bulkDeactivateEnabledSources

  • Parameters

    Returns Promise<IResult<IRule>>

    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);
      })();
    

isMicroserviceAvailable

  • isMicroserviceAvailable(): Promise<boolean>
  • Returns Promise<boolean>

list

  • Parameters

    • Default value filter: object = {}

    Returns Promise<IResultList<IRule>>

listByContext

  • Parameters

    Returns Promise<IResult<IRule[]>>

    Response wrapped in IResult

    Example

    
       const id: string = '1';
    
       (async () => {
         const {data, res} = await smartRulesService.listByContext(id);
      })();
    

update

  • Parameters

    Returns Promise<IResult<IRule>>

    Response wrapped in IResult

    Example

    
       const rule: IRule = {id: '1', enabledSources: ['2', '3'],...};
       (async () => {
         const {data, res} = await smartRulesService.updateSmartRule(rule);
      })();
    

Generated using TypeDoc