Date process funcs (#8441)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2025-04-03 00:22:53 +07:00
committed by GitHub
parent 241d08fd89
commit 073017ae67
48 changed files with 798 additions and 195 deletions
+5 -1
View File
@@ -39,7 +39,11 @@ export default plugin(serverProcessId, {
Random: '' as Resource<TransformFunc>,
UpperCase: '' as Resource<TransformFunc>,
LowerCase: '' as Resource<TransformFunc>,
Trim: '' as Resource<TransformFunc>
Trim: '' as Resource<TransformFunc>,
Add: '' as Resource<TransformFunc>,
Subtract: '' as Resource<TransformFunc>,
Offset: '' as Resource<TransformFunc>,
FirstWorkingDayAfter: '' as Resource<TransformFunc>
},
trigger: {
OnExecutionCreate: '' as Resource<TriggerFunc>,
+6 -1
View File
@@ -13,4 +13,9 @@ export interface ExecuteResult {
rollback: Tx[] | undefined
}
export type TransformFunc = (value: any) => any
export type TransformFunc = (
value: any,
props: Record<string, any>,
control: TriggerControl,
execution: Execution
) => Promise<any>