Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@iapps/dhis2-program-rule-engine

Package Overview
Dependencies
Maintainers
15
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iapps/dhis2-program-rule-engine - npm Package Compare versions

Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.6

4

lib/src/index.d.ts

@@ -1,2 +0,2 @@

export { execute } from './services/engine.service';
export { ProgramRule, EventData, DataElements, ProgramRuleVariable, OptionSets, } from './interfaces/rules-engine.types';
export { execute, executeWithAction } from './services/engine.service';
export { ProgramRule, EventData, DataElements, ProgramRuleVariable, ProgramRuleAction, OptionSets, } from './interfaces/rules-engine.types';

@@ -16,13 +16,46 @@ export interface ProgramRuleEffect {

export interface ProgramRuleAction {
created?: string;
lastUpdated?: string;
id: string;
programRuleActionType?: string;
data?: string;
lastUpdatedBy?: {
id: string;
};
trackedEntityAttribute?: {
id: string;
};
programRule?: {
id: string;
};
dataElement?: {
id: string;
};
content?: string;
data?: string;
optionGroup?: {
id: string;
};
templateUid?: string;
location?: string;
programRuleActionType?: string;
dataElementId?: string;
dataElement?: any;
programStageId?: string;
programStageSectionId?: string;
trackedEntityAttributeId?: string;
programStageSection?: {
id: string;
};
programStage?: {
id: string;
};
}
export declare enum ProgramRuleActionType {
Assign = "ASSIGN",
Displaykeyvaluepair = "DISPLAYKEYVALUEPAIR",
Displaytext = "DISPLAYTEXT",
Hidefield = "HIDEFIELD",
Hideoptiongroup = "HIDEOPTIONGROUP",
Hideprogramstage = "HIDEPROGRAMSTAGE",
Hidesection = "HIDESECTION",
Schedulemessage = "SCHEDULEMESSAGE",
Sendmessage = "SENDMESSAGE",
Showerror = "SHOWERROR",
Showwarning = "SHOWWARNING",
Warningoncomplete = "WARNINGONCOMPLETE"
}
export interface User {

@@ -29,0 +62,0 @@ id: string;

@@ -1,2 +0,3 @@

import { EventData, ProgramRule, ProgramRuleVariable, DataElements, OptionSets } from '../interfaces/rules-engine.types';
import { EventData, ProgramRule, ProgramRuleVariable, DataElements, OptionSets, ProgramRuleAction } from '../interfaces/rules-engine.types';
export declare const execute: (eventData: EventData, dataElements: DataElements, programRules: ProgramRule[], programRuleVariables: ProgramRuleVariable[], optionSets: OptionSets) => EventData;
export declare const executeWithAction: (eventData: EventData, dataElements: DataElements, programRules: ProgramRule[], programRuleVariables: ProgramRuleVariable[], programRuleActions: ProgramRuleAction[], optionSets: OptionSets) => ProgramRuleAction[];

@@ -1,2 +0,3 @@

import { ProgramRule, ProgramRuleVariable, EventData, DataElements, OptionSets } from '../interfaces/rules-engine.types';
import { ProgramRule, ProgramRuleVariable, ProgramRuleAction, EventData, DataElements, OptionSets } from '../interfaces/rules-engine.types';
export declare const ruleExcutionService: (eventData: EventData, dataElements: DataElements, programRules: ProgramRule[], programRuleVariables: ProgramRuleVariable[], optionSets: OptionSets) => EventData;
export declare const ruleExcutionWithActionService: (eventData: EventData, dataElements: DataElements, programRules: ProgramRule[], programRuleVariables: ProgramRuleVariable[], allProgramRuleActions: ProgramRuleAction[], optionSets: OptionSets) => ProgramRuleAction[];
{
"name": "@iapps/dhis2-program-rule-engine",
"version": "1.0.0-alpha.5",
"version": "1.0.0-alpha.6",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc