Skip to content

Commit

Permalink
chore: creates functions inputs jsons
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielraeder committed Apr 15, 2024
1 parent d9f6062 commit 5eb1ffb
Show file tree
Hide file tree
Showing 8 changed files with 282 additions and 0 deletions.
18 changes: 18 additions & 0 deletions visual-kpi-docs/static/data/tables/functions/inputs/Constants.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"Constant": "PI",
"Value": "3.141592654"
},
{
"Constant": "E",
"Value": "2.718281828"
},
{
"Constant": "TRUE",
"Value": "1"
},
{
"Constant": "FALSE",
"Value": "0"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[
{
"Constant": "dtYear",
"Numeric Value": "0",
"String Expression": "yyyy"
},
{
"Constant": "dtQuarter",
"Numeric Value": "1",
"String Expression": "q"
},
{
"Constant": "dtMonth",
"Numeric Value": "2",
"String Expression": "m"
},
{
"Constant": "dtDayOfYear",
"Numeric Value": "3",
"String Expression": "y"
},
{
"Constant": "dtDay",
"Numeric Value": "4",
"String Expression": "d"
},
{
"Constant": "dtWeekOfYear",
"Numeric Value": "5",
"String Expression": "ww"
},
{
"Constant": "dtWeekday",
"Numeric Value": "6",
"String Expression": "w"
},
{
"Constant": "dtHour",
"Numeric Value": "7",
"String Expression": "h"
},
{
"Constant": "dtMinute",
"Numeric Value": "8",
"String Expression": "n"
},
{
"Constant": "dtSecond",
"Numeric Value": "9",
"String Expression": "s"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[
{
"Constant": "dtSystem",
"Numeric Value": "0"
},
{
"Constant": "dtSunday",
"Numeric Value": "1"
},
{
"Constant": "dtMonday",
"Numeric Value": "2"
},
{
"Constant": "dtTuesday",
"Numeric Value": "3"
},
{
"Constant": "dtWednesday",
"Numeric Value": "4"
},
{
"Constant": "dtThursday",
"Numeric Value": "5"
},
{
"Constant": "dtFriday",
"Numeric Value": "6"
},
{
"Constant": "dtSaturday",
"Numeric Value": "7"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"Constant": "dtSystem",
"Numeric Value": "0"
},
{
"Constant": "dtJan1",
"Numeric Value": "1"
},
{
"Constant": "dtFirstFourDays",
"Numeric Value": "2"
},
{
"Constant": "dtFirstFullWeek",
"Numeric Value": "3"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[
{
"Operator": "plus(+)",
"Num": "yes",
"Date": "",
"Str": "yes",
"Bool": "",
"Description": "Positive sign or arithmetic addition"
},
{
"Operator": "\u2013",
"Num": "yes",
"Date": "",
"Str": "",
"Bool": "",
"Description": "Negative sign or arithmetic subtraction"
},
{
"Operator": "*",
"Num": "yes",
"Date": "",
"Str": "",
"Bool": "",
"Description": "Multiplication"
},
{
"Operator": "/",
"Num": "yes",
"Date": "",
"Str": "",
"Bool": "",
"Description": "Division"
},
{
"Operator": "%",
"Num": "yes",
"Date": "",
"Str": "",
"Bool": "",
"Description": "Remainder (modulus) obtained by dividing one numeric expression into another"
},
{
"Operator": "^",
"Num": "yes",
"Date": "",
"Str": "",
"Bool": "",
"Description": "Power"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[
{
"Operator": "&",
"Num": "yes",
"Date": "",
"Str": "",
"Bool": "",
"Description": "Bitwise AND operator."
},
{
"Operator": "|",
"Num": "yes",
"Date": "",
"Str": "",
"Bool": "",
"Description": "Bitwise OR operator."
},
{
"Operator": "!&",
"Num": "yes",
"Date": "",
"Str": "",
"Bool": "",
"Description": "Bitwise exclusive-OR operator."
},
{
"Operator": "~",
"Num": "yes",
"Date": "",
"Str": "",
"Bool": "",
"Description": "Bitwise complement operator."
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[
{
"Operator": "<",
"Num": "yes",
"Date": "yes",
"Str": "yes",
"Bool": "",
"Description": "Less than"
},
{
"Operator": ">",
"Num": "yes",
"Date": "yes",
"Str": "yes",
"Bool": "",
"Description": "Greater than"
},
{
"Operator": "<=",
"Num": "yes",
"Date": "yes",
"Str": "yes",
"Bool": "",
"Description": "Less than or equal"
},
{
"Operator": ">=",
"Num": "yes",
"Date": "yes",
"Str": "yes",
"Bool": "",
"Description": "Greater than or equal"
},
{
"Operator": "equals (== or =)",
"Num": "yes",
"Date": "yes",
"Str": "yes",
"Bool": "yes",
"Description": "Equality"
},
{
"Operator": "!= or <>",
"Num": "yes",
"Date": "yes",
"Str": "yes",
"Bool": "yes",
"Description": "Inequality"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"Operator": "AND &&",
"Num": "",
"Date": "",
"Str": "",
"Bool": "yes",
"Description": "Logical AND"
},
{
"Operator": "OR ||",
"Num": "",
"Date": "",
"Str": "",
"Bool": "yes",
"Description": "Logical OR"
},
{
"Operator": "NOT !",
"Num": "",
"Date": "",
"Str": "",
"Bool": "yes",
"Description": "Logical Negation"
}
]

0 comments on commit 5eb1ffb

Please sign in to comment.