@iapps/dhis2-program-rule-engine
Advanced tools
Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.6
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1773
0
2680326