-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use JsMap wrapper (JS component) (#125)
- Loading branch information
1 parent
ee1bbad
commit 63f89f0
Showing
4 changed files
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package org.hisp.dhis.rules | ||
|
||
import org.hisp.dhis.lib.expression.js.Entry | ||
import js.collections.JsMap | ||
|
||
@JsExport | ||
@OptIn(ExperimentalJsExport::class) | ||
data class RuleActionJs( | ||
val data: String?, | ||
val type: String, | ||
val values: Array<Entry<String, String>> = emptyArray() | ||
val values: JsMap<String, String> = JsMap() | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package org.hisp.dhis.rules | ||
|
||
import org.hisp.dhis.lib.expression.js.Entry | ||
import js.collections.JsMap | ||
|
||
@JsExport | ||
@OptIn(ExperimentalJsExport::class) | ||
data class RuleEngineContextJs( | ||
val rules: Array<RuleJs>, | ||
val ruleVariables: Array<RuleVariableJs>, | ||
val supplementaryData: Array<Entry<String, Array<String>>> = emptyArray(), | ||
val constantsValues: Array<Entry<String, String>> = emptyArray() | ||
val supplementaryData: JsMap<String, Array<String>> = JsMap(), | ||
val constantsValues: JsMap<String, String> = JsMap() | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters