@nocobase/plugin-workflow 0.11.1-alpha.5 → 0.12.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.d.ts +2 -3
- package/client.js +1 -1
- package/dist/client/index.js +7802 -0
- package/{lib → dist}/client/nodes/aggregate.d.ts +1 -5
- package/{lib → dist}/client/nodes/create.d.ts +1 -2
- package/{lib → dist}/client/nodes/destroy.d.ts +1 -1
- package/{lib → dist}/client/nodes/query.d.ts +1 -2
- package/{lib → dist}/client/nodes/request.d.ts +1 -2
- package/{lib → dist}/client/nodes/update.d.ts +1 -1
- package/{lib → dist}/client/schemas/collection.d.ts +1 -2
- package/{lib → dist}/client/triggers/collection.d.ts +6 -7
- package/{lib → dist}/index.d.ts +1 -0
- package/dist/index.js +18 -0
- package/dist/locale/en-US.js +133 -0
- package/{lib → dist}/locale/es-ES.js +51 -54
- package/dist/locale/fr-FR.js +133 -0
- package/dist/locale/ja-JP.js +91 -0
- package/dist/locale/pt-BR.js +133 -0
- package/dist/locale/ru-RU.js +91 -0
- package/dist/locale/tr-TR.js +91 -0
- package/dist/locale/zh-CN.js +216 -0
- package/dist/node_modules/cron-parser/.eslintrc.json +15 -0
- package/dist/node_modules/cron-parser/.travis.yml +7 -0
- package/dist/node_modules/cron-parser/LICENSE +21 -0
- package/dist/node_modules/cron-parser/component.json +11 -0
- package/dist/node_modules/cron-parser/index.d.ts +1 -0
- package/dist/node_modules/cron-parser/lib/date.js +252 -0
- package/dist/node_modules/cron-parser/lib/expression.js +983 -0
- package/dist/node_modules/cron-parser/lib/field_compactor.js +70 -0
- package/dist/node_modules/cron-parser/lib/field_stringify.js +38 -0
- package/dist/node_modules/cron-parser/lib/parser.js +1 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/build/amd/luxon.js +8489 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/build/cjs-browser/luxon.js +8487 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/build/global/luxon.js +8490 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/build/global/luxon.min.js +1 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/build/node/luxon.js +7522 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/package.json +96 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/datetime.js +2169 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/duration.js +880 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/errors.js +61 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/conversions.js +157 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/diff.js +80 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/digits.js +76 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/english.js +233 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/formats.js +191 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/formatter.js +386 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/invalid.js +14 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/locale.js +482 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/regexParser.js +335 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/tokenParser.js +424 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/util.js +292 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/zoneUtil.js +36 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/info.js +193 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/interval.js +602 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/luxon.js +26 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/luxonFilled.js +13 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/settings.js +137 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/zone.js +88 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/zones/IANAZone.js +191 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/zones/fixedOffsetZone.js +94 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/zones/invalidZone.js +53 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/zones/localZone.js +63 -0
- package/dist/node_modules/cron-parser/package.json +1 -0
- package/dist/node_modules/cron-parser/test/31_of_month.js +17 -0
- package/dist/node_modules/cron-parser/test/bug.js +29 -0
- package/dist/node_modules/cron-parser/test/crondate.js +16 -0
- package/dist/node_modules/cron-parser/test/crontab.example +7 -0
- package/dist/node_modules/cron-parser/test/empty_around_comma.js +22 -0
- package/dist/node_modules/cron-parser/test/expression.js +1489 -0
- package/dist/node_modules/cron-parser/test/field_compactor.js +250 -0
- package/dist/node_modules/cron-parser/test/field_stringify.js +84 -0
- package/dist/node_modules/cron-parser/test/fields.js +32 -0
- package/dist/node_modules/cron-parser/test/increment_on_first_iteration.js +22 -0
- package/dist/node_modules/cron-parser/test/index-ts3.test-d.ts +133 -0
- package/dist/node_modules/cron-parser/test/index.test-d.ts +138 -0
- package/dist/node_modules/cron-parser/test/leap_year.js +17 -0
- package/dist/node_modules/cron-parser/test/parser.js +46 -0
- package/dist/node_modules/cron-parser/test/parser_crondate_formats.js +145 -0
- package/dist/node_modules/cron-parser/test/parser_day_of_month.js +169 -0
- package/dist/node_modules/cron-parser/test/prev_date.js +32 -0
- package/dist/node_modules/cron-parser/test/stringify.js +402 -0
- package/dist/node_modules/cron-parser/test/timezone.js +422 -0
- package/dist/node_modules/cron-parser/types/common.d.ts +131 -0
- package/dist/node_modules/cron-parser/types/index.d.ts +45 -0
- package/dist/node_modules/cron-parser/types/ts3/index.d.ts +28 -0
- package/dist/node_modules/lru-cache/index-cjs.d.ts +7 -0
- package/dist/node_modules/lru-cache/index-cjs.js +1 -0
- package/dist/node_modules/lru-cache/index.d.ts +807 -0
- package/dist/node_modules/lru-cache/index.js +1334 -0
- package/dist/node_modules/lru-cache/index.min.js +2 -0
- package/dist/node_modules/lru-cache/package.json +1 -0
- package/dist/server/Plugin.js +297 -0
- package/{src/server/Processor.ts → dist/server/Processor.js} +80 -147
- package/dist/server/actions/index.js +49 -0
- package/{src/server/actions/nodes.ts → dist/server/actions/nodes.js} +55 -81
- package/{src/server/actions/workflows.ts → dist/server/actions/workflows.js} +60 -72
- package/dist/server/collections/executions.js +37 -0
- package/dist/server/collections/flow_nodes.js +56 -0
- package/dist/server/collections/jobs.js +33 -0
- package/dist/server/collections/workflows.js +90 -0
- package/{lib → dist}/server/constants.js +5 -8
- package/dist/server/fields/expression-field.js +11 -0
- package/dist/server/fields/index.js +11 -0
- package/dist/server/functions/index.js +13 -0
- package/dist/server/index.js +41 -0
- package/dist/server/instructions/aggregate.js +37 -0
- package/dist/server/instructions/calculation.js +34 -0
- package/dist/server/instructions/condition.js +123 -0
- package/{src/server/instructions/create.ts → dist/server/instructions/create.js} +17 -17
- package/dist/server/instructions/delay.js +87 -0
- package/dist/server/instructions/destroy.js +24 -0
- package/dist/server/instructions/index.js +40 -0
- package/{src/server/instructions/loop.ts → dist/server/instructions/loop.js} +21 -43
- package/{src/server/instructions/manual/actions.ts → dist/server/instructions/manual/actions.js} +18 -44
- package/dist/server/instructions/manual/collecions/jobs.js +21 -0
- package/dist/server/instructions/manual/collecions/users.js +19 -0
- package/dist/server/instructions/manual/collecions/users_jobs.js +52 -0
- package/{src/server/instructions/manual/forms/create.ts → dist/server/instructions/manual/forms/create.js} +8 -8
- package/dist/server/instructions/manual/forms/index.js +16 -0
- package/{src/server/instructions/manual/forms/update.ts → dist/server/instructions/manual/forms/update.js} +8 -8
- package/dist/server/instructions/manual/index.js +160 -0
- package/dist/server/instructions/parallel.js +105 -0
- package/dist/server/instructions/query.js +36 -0
- package/dist/server/instructions/request.js +69 -0
- package/dist/server/instructions/sql.js +26 -0
- package/dist/server/instructions/update.js +24 -0
- package/{src/server/migrations/20221129153547-calculation-variables.ts → dist/server/migrations/20221129153547-calculation-variables.js} +20 -19
- package/dist/server/migrations/20230221032941-change-request-body-type.js +71 -0
- package/dist/server/migrations/20230221071831-calculation-expression.js +94 -0
- package/dist/server/migrations/20230221121203-condition-calculation.js +41 -0
- package/dist/server/migrations/20230221162902-jsonb-to-json.js +52 -0
- package/dist/server/migrations/20230411034722-manual-multi-form.js +252 -0
- package/dist/server/migrations/20230612021134-manual-collection-block.js +126 -0
- package/dist/server/migrations/20230710115902-manual-action-values.js +74 -0
- package/{src/server/triggers/collection.ts → dist/server/triggers/collection.js} +34 -64
- package/dist/server/triggers/index.js +27 -0
- package/{src/server/triggers/schedule.ts → dist/server/triggers/schedule.js} +108 -220
- package/dist/server/types/Execution.js +8 -0
- package/dist/server/types/FlowNode.js +8 -0
- package/dist/server/types/Job.js +8 -0
- package/dist/server/types/Workflow.js +8 -0
- package/dist/server/types/index.js +2 -0
- package/{lib → dist}/server/utils.js +6 -8
- package/package.json +26 -37
- package/server.d.ts +2 -3
- package/server.js +1 -1
- package/lib/client/AddButton.js +0 -161
- package/lib/client/Branch.js +0 -50
- package/lib/client/CanvasContent.js +0 -51
- package/lib/client/ExecutionCanvas.js +0 -218
- package/lib/client/ExecutionLink.js +0 -48
- package/lib/client/ExecutionPage.js +0 -68
- package/lib/client/ExecutionResourceProvider.js +0 -48
- package/lib/client/FlowContext.js +0 -21
- package/lib/client/WorkflowCanvas.js +0 -300
- package/lib/client/WorkflowLink.js +0 -48
- package/lib/client/WorkflowPage.js +0 -70
- package/lib/client/WorkflowProvider.js +0 -100
- package/lib/client/components/CollectionBlockInitializer.js +0 -103
- package/lib/client/components/CollectionFieldset.js +0 -198
- package/lib/client/components/Duration.js +0 -72
- package/lib/client/components/DynamicExpression.js +0 -117
- package/lib/client/components/FieldsSelect.js +0 -72
- package/lib/client/components/FilterDynamicComponent.js +0 -34
- package/lib/client/components/NodeDescription.js +0 -73
- package/lib/client/components/NullRender.js +0 -9
- package/lib/client/components/OpenDrawer.js +0 -68
- package/lib/client/components/RadioWithTooltip.js +0 -65
- package/lib/client/components/ValueBlock.js +0 -103
- package/lib/client/components/renderEngineReference.js +0 -49
- package/lib/client/constants.js +0 -126
- package/lib/client/index.js +0 -121
- package/lib/client/interfaces/expression.js +0 -38
- package/lib/client/locale/index.js +0 -42
- package/lib/client/nodes/aggregate.js +0 -353
- package/lib/client/nodes/calculation.js +0 -292
- package/lib/client/nodes/condition.js +0 -531
- package/lib/client/nodes/create.js +0 -110
- package/lib/client/nodes/delay.js +0 -47
- package/lib/client/nodes/destroy.js +0 -49
- package/lib/client/nodes/index.js +0 -550
- package/lib/client/nodes/loop.js +0 -171
- package/lib/client/nodes/manual/AssigneesSelect.js +0 -56
- package/lib/client/nodes/manual/DetailsBlockProvider.js +0 -106
- package/lib/client/nodes/manual/FormBlockInitializer.js +0 -107
- package/lib/client/nodes/manual/FormBlockProvider.js +0 -113
- package/lib/client/nodes/manual/ModeConfig.js +0 -126
- package/lib/client/nodes/manual/SchemaConfig.js +0 -468
- package/lib/client/nodes/manual/WorkflowTodo.js +0 -642
- package/lib/client/nodes/manual/WorkflowTodoBlockInitializer.js +0 -60
- package/lib/client/nodes/manual/forms/create.js +0 -111
- package/lib/client/nodes/manual/forms/custom.js +0 -428
- package/lib/client/nodes/manual/forms/update.js +0 -168
- package/lib/client/nodes/manual/index.js +0 -168
- package/lib/client/nodes/manual/utils.js +0 -31
- package/lib/client/nodes/parallel.js +0 -162
- package/lib/client/nodes/query.js +0 -112
- package/lib/client/nodes/request.js +0 -225
- package/lib/client/nodes/sql.js +0 -61
- package/lib/client/nodes/update.js +0 -127
- package/lib/client/schemas/collection.js +0 -93
- package/lib/client/schemas/executions.js +0 -190
- package/lib/client/schemas/workflows.js +0 -397
- package/lib/client/style.js +0 -350
- package/lib/client/triggers/collection.js +0 -188
- package/lib/client/triggers/index.js +0 -356
- package/lib/client/triggers/schedule/EndsByField.js +0 -71
- package/lib/client/triggers/schedule/OnField.js +0 -117
- package/lib/client/triggers/schedule/RepeatField.js +0 -155
- package/lib/client/triggers/schedule/ScheduleConfig.js +0 -251
- package/lib/client/triggers/schedule/constants.js +0 -11
- package/lib/client/triggers/schedule/index.js +0 -101
- package/lib/client/triggers/schedule/locale/Cron.zh-CN.js +0 -48
- package/lib/client/utils.js +0 -59
- package/lib/client/variable.js +0 -319
- package/lib/index.js +0 -13
- package/lib/locale/en-US.js +0 -136
- package/lib/locale/fr-FR.js +0 -136
- package/lib/locale/ja-JP.js +0 -94
- package/lib/locale/pt-BR.js +0 -136
- package/lib/locale/ru-RU.js +0 -94
- package/lib/locale/tr-TR.js +0 -94
- package/lib/locale/zh-CN.js +0 -219
- package/lib/server/Plugin.js +0 -382
- package/lib/server/Processor.js +0 -394
- package/lib/server/actions/index.js +0 -30
- package/lib/server/actions/nodes.js +0 -269
- package/lib/server/actions/workflows.js +0 -273
- package/lib/server/collections/executions.js +0 -33
- package/lib/server/collections/flow_nodes.js +0 -53
- package/lib/server/collections/jobs.js +0 -30
- package/lib/server/collections/workflows.js +0 -76
- package/lib/server/fields/expression-field.js +0 -19
- package/lib/server/fields/index.js +0 -12
- package/lib/server/functions/index.js +0 -26
- package/lib/server/index.js +0 -55
- package/lib/server/instructions/aggregate.js +0 -57
- package/lib/server/instructions/calculation.js +0 -59
- package/lib/server/instructions/condition.js +0 -150
- package/lib/server/instructions/create.js +0 -60
- package/lib/server/instructions/delay.js +0 -118
- package/lib/server/instructions/destroy.js +0 -37
- package/lib/server/instructions/index.js +0 -44
- package/lib/server/instructions/loop.js +0 -107
- package/lib/server/instructions/manual/actions.js +0 -99
- package/lib/server/instructions/manual/collecions/jobs.js +0 -21
- package/lib/server/instructions/manual/collecions/users.js +0 -19
- package/lib/server/instructions/manual/collecions/users_jobs.js +0 -46
- package/lib/server/instructions/manual/forms/create.js +0 -52
- package/lib/server/instructions/manual/forms/index.js +0 -15
- package/lib/server/instructions/manual/forms/update.js +0 -53
- package/lib/server/instructions/manual/index.js +0 -174
- package/lib/server/instructions/parallel.js +0 -128
- package/lib/server/instructions/query.js +0 -53
- package/lib/server/instructions/request.js +0 -99
- package/lib/server/instructions/sql.js +0 -34
- package/lib/server/instructions/update.js +0 -38
- package/lib/server/migrations/20221129153547-calculation-variables.js +0 -92
- package/lib/server/migrations/20230221032941-change-request-body-type.js +0 -90
- package/lib/server/migrations/20230221071831-calculation-expression.js +0 -111
- package/lib/server/migrations/20230221121203-condition-calculation.js +0 -103
- package/lib/server/migrations/20230221162902-jsonb-to-json.js +0 -64
- package/lib/server/migrations/20230411034722-manual-multi-form.js +0 -297
- package/lib/server/migrations/20230612021134-manual-collection-block.js +0 -155
- package/lib/server/migrations/20230710115902-manual-action-values.js +0 -97
- package/lib/server/triggers/collection.js +0 -175
- package/lib/server/triggers/index.js +0 -46
- package/lib/server/triggers/schedule.js +0 -582
- package/lib/server/types/Execution.js +0 -15
- package/lib/server/types/FlowNode.js +0 -15
- package/lib/server/types/Job.js +0 -15
- package/lib/server/types/Workflow.js +0 -15
- package/lib/server/types/index.js +0 -5
- package/src/client/AddButton.tsx +0 -111
- package/src/client/Branch.tsx +0 -37
- package/src/client/CanvasContent.tsx +0 -25
- package/src/client/ExecutionCanvas.tsx +0 -166
- package/src/client/ExecutionLink.tsx +0 -16
- package/src/client/ExecutionPage.tsx +0 -45
- package/src/client/ExecutionResourceProvider.tsx +0 -21
- package/src/client/FlowContext.ts +0 -7
- package/src/client/WorkflowCanvas.tsx +0 -221
- package/src/client/WorkflowLink.tsx +0 -16
- package/src/client/WorkflowPage.tsx +0 -52
- package/src/client/WorkflowProvider.tsx +0 -84
- package/src/client/components/CollectionBlockInitializer.tsx +0 -71
- package/src/client/components/CollectionFieldset.tsx +0 -152
- package/src/client/components/Duration.tsx +0 -45
- package/src/client/components/DynamicExpression.tsx +0 -57
- package/src/client/components/FieldsSelect.tsx +0 -32
- package/src/client/components/FilterDynamicComponent.tsx +0 -15
- package/src/client/components/NodeDescription.tsx +0 -51
- package/src/client/components/NullRender.tsx +0 -3
- package/src/client/components/OpenDrawer.tsx +0 -24
- package/src/client/components/RadioWithTooltip.tsx +0 -38
- package/src/client/components/ValueBlock.tsx +0 -67
- package/src/client/components/renderEngineReference.tsx +0 -30
- package/src/client/constants.tsx +0 -91
- package/src/client/index.tsx +0 -51
- package/src/client/interfaces/expression.tsx +0 -25
- package/src/client/locale/index.ts +0 -18
- package/src/client/nodes/aggregate.tsx +0 -327
- package/src/client/nodes/calculation.tsx +0 -216
- package/src/client/nodes/condition.tsx +0 -463
- package/src/client/nodes/create.tsx +0 -85
- package/src/client/nodes/delay.tsx +0 -37
- package/src/client/nodes/destroy.tsx +0 -34
- package/src/client/nodes/index.tsx +0 -500
- package/src/client/nodes/loop.tsx +0 -144
- package/src/client/nodes/manual/AssigneesSelect.tsx +0 -33
- package/src/client/nodes/manual/DetailsBlockProvider.tsx +0 -80
- package/src/client/nodes/manual/FormBlockInitializer.tsx +0 -69
- package/src/client/nodes/manual/FormBlockProvider.tsx +0 -75
- package/src/client/nodes/manual/ModeConfig.tsx +0 -84
- package/src/client/nodes/manual/SchemaConfig.tsx +0 -509
- package/src/client/nodes/manual/WorkflowTodo.tsx +0 -607
- package/src/client/nodes/manual/WorkflowTodoBlockInitializer.tsx +0 -28
- package/src/client/nodes/manual/forms/create.tsx +0 -92
- package/src/client/nodes/manual/forms/custom.tsx +0 -392
- package/src/client/nodes/manual/forms/update.tsx +0 -134
- package/src/client/nodes/manual/index.tsx +0 -162
- package/src/client/nodes/manual/utils.ts +0 -28
- package/src/client/nodes/parallel.tsx +0 -138
- package/src/client/nodes/query.tsx +0 -88
- package/src/client/nodes/request.tsx +0 -185
- package/src/client/nodes/sql.tsx +0 -37
- package/src/client/nodes/update.tsx +0 -100
- package/src/client/schemas/collection.ts +0 -75
- package/src/client/schemas/executions.tsx +0 -169
- package/src/client/schemas/workflows.ts +0 -364
- package/src/client/style.tsx +0 -350
- package/src/client/triggers/collection.tsx +0 -190
- package/src/client/triggers/index.tsx +0 -311
- package/src/client/triggers/schedule/EndsByField.tsx +0 -40
- package/src/client/triggers/schedule/OnField.tsx +0 -64
- package/src/client/triggers/schedule/RepeatField.tsx +0 -116
- package/src/client/triggers/schedule/ScheduleConfig.tsx +0 -227
- package/src/client/triggers/schedule/constants.ts +0 -4
- package/src/client/triggers/schedule/index.tsx +0 -78
- package/src/client/triggers/schedule/locale/Cron.zh-CN.ts +0 -79
- package/src/client/utils.ts +0 -36
- package/src/client/variable.tsx +0 -318
- package/src/index.ts +0 -1
- package/src/locale/en-US.ts +0 -136
- package/src/locale/es-ES.ts +0 -129
- package/src/locale/fr-FR.ts +0 -137
- package/src/locale/ja-JP.ts +0 -90
- package/src/locale/pt-BR.ts +0 -136
- package/src/locale/ru-RU.ts +0 -90
- package/src/locale/tr-TR.ts +0 -90
- package/src/locale/zh-CN.ts +0 -248
- package/src/server/Plugin.ts +0 -355
- package/src/server/__tests__/Plugin.test.ts +0 -398
- package/src/server/__tests__/Processor.test.ts +0 -474
- package/src/server/__tests__/actions/workflows.test.ts +0 -419
- package/src/server/__tests__/collections/categories.ts +0 -27
- package/src/server/__tests__/collections/comments.ts +0 -24
- package/src/server/__tests__/collections/posts.ts +0 -42
- package/src/server/__tests__/collections/replies.ts +0 -9
- package/src/server/__tests__/collections/tags.ts +0 -15
- package/src/server/__tests__/index.ts +0 -89
- package/src/server/__tests__/instructions/aggregate.test.ts +0 -294
- package/src/server/__tests__/instructions/calculation.test.ts +0 -265
- package/src/server/__tests__/instructions/condition.test.ts +0 -434
- package/src/server/__tests__/instructions/create.test.ts +0 -129
- package/src/server/__tests__/instructions/delay.test.ts +0 -182
- package/src/server/__tests__/instructions/destroy.test.ts +0 -58
- package/src/server/__tests__/instructions/loop.test.ts +0 -331
- package/src/server/__tests__/instructions/manual.test.ts +0 -1173
- package/src/server/__tests__/instructions/parallel.test.ts +0 -445
- package/src/server/__tests__/instructions/query.test.ts +0 -359
- package/src/server/__tests__/instructions/request.test.ts +0 -247
- package/src/server/__tests__/instructions/sql.test.ts +0 -162
- package/src/server/__tests__/instructions/update.test.ts +0 -189
- package/src/server/__tests__/triggers/collection.test.ts +0 -333
- package/src/server/__tests__/triggers/schedule.test.ts +0 -369
- package/src/server/actions/index.ts +0 -25
- package/src/server/collections/executions.ts +0 -35
- package/src/server/collections/flow_nodes.ts +0 -54
- package/src/server/collections/jobs.ts +0 -31
- package/src/server/collections/workflows.ts +0 -88
- package/src/server/constants.ts +0 -26
- package/src/server/fields/expression-field.ts +0 -11
- package/src/server/fields/index.ts +0 -7
- package/src/server/functions/index.ts +0 -16
- package/src/server/index.ts +0 -6
- package/src/server/instructions/aggregate.ts +0 -42
- package/src/server/instructions/calculation.ts +0 -41
- package/src/server/instructions/condition.ts +0 -172
- package/src/server/instructions/delay.ts +0 -105
- package/src/server/instructions/destroy.ts +0 -23
- package/src/server/instructions/index.ts +0 -64
- package/src/server/instructions/manual/collecions/jobs.ts +0 -17
- package/src/server/instructions/manual/collecions/users.ts +0 -15
- package/src/server/instructions/manual/collecions/users_jobs.ts +0 -50
- package/src/server/instructions/manual/forms/index.ts +0 -12
- package/src/server/instructions/manual/index.ts +0 -184
- package/src/server/instructions/parallel.ts +0 -121
- package/src/server/instructions/query.ts +0 -42
- package/src/server/instructions/request.ts +0 -88
- package/src/server/instructions/sql.ts +0 -25
- package/src/server/instructions/update.ts +0 -24
- package/src/server/migrations/20230221032941-change-request-body-type.ts +0 -76
- package/src/server/migrations/20230221071831-calculation-expression.ts +0 -102
- package/src/server/migrations/20230221121203-condition-calculation.ts +0 -82
- package/src/server/migrations/20230221162902-jsonb-to-json.ts +0 -51
- package/src/server/migrations/20230411034722-manual-multi-form.ts +0 -282
- package/src/server/migrations/20230612021134-manual-collection-block.ts +0 -138
- package/src/server/migrations/20230710115902-manual-action-values.ts +0 -78
- package/src/server/triggers/index.ts +0 -22
- package/src/server/types/Execution.ts +0 -26
- package/src/server/types/FlowNode.ts +0 -21
- package/src/server/types/Job.ts +0 -18
- package/src/server/types/Workflow.ts +0 -36
- package/src/server/types/index.ts +0 -4
- package/src/server/utils.ts +0 -17
- /package/{lib → dist}/client/AddButton.d.ts +0 -0
- /package/{lib → dist}/client/Branch.d.ts +0 -0
- /package/{lib → dist}/client/CanvasContent.d.ts +0 -0
- /package/{lib → dist}/client/ExecutionCanvas.d.ts +0 -0
- /package/{lib → dist}/client/ExecutionLink.d.ts +0 -0
- /package/{lib → dist}/client/ExecutionPage.d.ts +0 -0
- /package/{lib → dist}/client/ExecutionResourceProvider.d.ts +0 -0
- /package/{lib → dist}/client/FlowContext.d.ts +0 -0
- /package/{lib → dist}/client/WorkflowCanvas.d.ts +0 -0
- /package/{lib → dist}/client/WorkflowLink.d.ts +0 -0
- /package/{lib → dist}/client/WorkflowPage.d.ts +0 -0
- /package/{lib → dist}/client/WorkflowProvider.d.ts +0 -0
- /package/{lib → dist}/client/components/CollectionBlockInitializer.d.ts +0 -0
- /package/{lib → dist}/client/components/CollectionFieldset.d.ts +0 -0
- /package/{lib → dist}/client/components/Duration.d.ts +0 -0
- /package/{lib → dist}/client/components/DynamicExpression.d.ts +0 -0
- /package/{lib → dist}/client/components/FieldsSelect.d.ts +0 -0
- /package/{lib → dist}/client/components/FilterDynamicComponent.d.ts +0 -0
- /package/{lib → dist}/client/components/NodeDescription.d.ts +0 -0
- /package/{lib → dist}/client/components/NullRender.d.ts +0 -0
- /package/{lib → dist}/client/components/OpenDrawer.d.ts +0 -0
- /package/{lib → dist}/client/components/RadioWithTooltip.d.ts +0 -0
- /package/{lib → dist}/client/components/ValueBlock.d.ts +0 -0
- /package/{lib → dist}/client/components/renderEngineReference.d.ts +0 -0
- /package/{lib → dist}/client/constants.d.ts +0 -0
- /package/{lib → dist}/client/index.d.ts +0 -0
- /package/{lib → dist}/client/interfaces/expression.d.ts +0 -0
- /package/{lib → dist}/client/locale/index.d.ts +0 -0
- /package/{lib → dist}/client/nodes/calculation.d.ts +0 -0
- /package/{lib → dist}/client/nodes/condition.d.ts +0 -0
- /package/{lib → dist}/client/nodes/delay.d.ts +0 -0
- /package/{lib → dist}/client/nodes/index.d.ts +0 -0
- /package/{lib → dist}/client/nodes/loop.d.ts +0 -0
- /package/{lib → dist}/client/nodes/manual/AssigneesSelect.d.ts +0 -0
- /package/{lib → dist}/client/nodes/manual/DetailsBlockProvider.d.ts +0 -0
- /package/{lib → dist}/client/nodes/manual/FormBlockInitializer.d.ts +0 -0
- /package/{lib → dist}/client/nodes/manual/FormBlockProvider.d.ts +0 -0
- /package/{lib → dist}/client/nodes/manual/ModeConfig.d.ts +0 -0
- /package/{lib → dist}/client/nodes/manual/SchemaConfig.d.ts +0 -0
- /package/{lib → dist}/client/nodes/manual/WorkflowTodo.d.ts +0 -0
- /package/{lib → dist}/client/nodes/manual/WorkflowTodoBlockInitializer.d.ts +0 -0
- /package/{lib → dist}/client/nodes/manual/forms/create.d.ts +0 -0
- /package/{lib → dist}/client/nodes/manual/forms/custom.d.ts +0 -0
- /package/{lib → dist}/client/nodes/manual/forms/update.d.ts +0 -0
- /package/{lib → dist}/client/nodes/manual/index.d.ts +0 -0
- /package/{lib → dist}/client/nodes/manual/utils.d.ts +0 -0
- /package/{lib → dist}/client/nodes/parallel.d.ts +0 -0
- /package/{lib → dist}/client/nodes/sql.d.ts +0 -0
- /package/{lib → dist}/client/schemas/executions.d.ts +0 -0
- /package/{lib → dist}/client/schemas/workflows.d.ts +0 -0
- /package/{lib → dist}/client/style.d.ts +0 -0
- /package/{lib → dist}/client/triggers/index.d.ts +0 -0
- /package/{lib → dist}/client/triggers/schedule/EndsByField.d.ts +0 -0
- /package/{lib → dist}/client/triggers/schedule/OnField.d.ts +0 -0
- /package/{lib → dist}/client/triggers/schedule/RepeatField.d.ts +0 -0
- /package/{lib → dist}/client/triggers/schedule/ScheduleConfig.d.ts +0 -0
- /package/{lib → dist}/client/triggers/schedule/constants.d.ts +0 -0
- /package/{lib → dist}/client/triggers/schedule/index.d.ts +0 -0
- /package/{lib → dist}/client/triggers/schedule/locale/Cron.zh-CN.d.ts +0 -0
- /package/{lib → dist}/client/utils.d.ts +0 -0
- /package/{lib → dist}/client/variable.d.ts +0 -0
- /package/{lib → dist}/locale/en-US.d.ts +0 -0
- /package/{lib → dist}/locale/es-ES.d.ts +0 -0
- /package/{lib → dist}/locale/fr-FR.d.ts +0 -0
- /package/{lib → dist}/locale/ja-JP.d.ts +0 -0
- /package/{lib → dist}/locale/pt-BR.d.ts +0 -0
- /package/{lib → dist}/locale/ru-RU.d.ts +0 -0
- /package/{lib → dist}/locale/tr-TR.d.ts +0 -0
- /package/{lib → dist}/locale/zh-CN.d.ts +0 -0
- /package/{lib → dist}/server/Plugin.d.ts +0 -0
- /package/{lib → dist}/server/Processor.d.ts +0 -0
- /package/{lib → dist}/server/actions/index.d.ts +0 -0
- /package/{lib → dist}/server/actions/nodes.d.ts +0 -0
- /package/{lib → dist}/server/actions/workflows.d.ts +0 -0
- /package/{lib → dist}/server/collections/executions.d.ts +0 -0
- /package/{lib → dist}/server/collections/flow_nodes.d.ts +0 -0
- /package/{lib → dist}/server/collections/jobs.d.ts +0 -0
- /package/{lib → dist}/server/collections/workflows.d.ts +0 -0
- /package/{lib → dist}/server/constants.d.ts +0 -0
- /package/{lib → dist}/server/fields/expression-field.d.ts +0 -0
- /package/{lib → dist}/server/fields/index.d.ts +0 -0
- /package/{lib → dist}/server/functions/index.d.ts +0 -0
- /package/{lib → dist}/server/index.d.ts +0 -0
- /package/{lib → dist}/server/instructions/aggregate.d.ts +0 -0
- /package/{lib → dist}/server/instructions/calculation.d.ts +0 -0
- /package/{lib → dist}/server/instructions/condition.d.ts +0 -0
- /package/{lib → dist}/server/instructions/create.d.ts +0 -0
- /package/{lib → dist}/server/instructions/delay.d.ts +0 -0
- /package/{lib → dist}/server/instructions/destroy.d.ts +0 -0
- /package/{lib → dist}/server/instructions/index.d.ts +0 -0
- /package/{lib → dist}/server/instructions/loop.d.ts +0 -0
- /package/{lib → dist}/server/instructions/manual/actions.d.ts +0 -0
- /package/{lib → dist}/server/instructions/manual/collecions/jobs.d.ts +0 -0
- /package/{lib → dist}/server/instructions/manual/collecions/users.d.ts +0 -0
- /package/{lib → dist}/server/instructions/manual/collecions/users_jobs.d.ts +0 -0
- /package/{lib → dist}/server/instructions/manual/forms/create.d.ts +0 -0
- /package/{lib → dist}/server/instructions/manual/forms/index.d.ts +0 -0
- /package/{lib → dist}/server/instructions/manual/forms/update.d.ts +0 -0
- /package/{lib → dist}/server/instructions/manual/index.d.ts +0 -0
- /package/{lib → dist}/server/instructions/parallel.d.ts +0 -0
- /package/{lib → dist}/server/instructions/query.d.ts +0 -0
- /package/{lib → dist}/server/instructions/request.d.ts +0 -0
- /package/{lib → dist}/server/instructions/sql.d.ts +0 -0
- /package/{lib → dist}/server/instructions/update.d.ts +0 -0
- /package/{lib → dist}/server/migrations/20221129153547-calculation-variables.d.ts +0 -0
- /package/{lib → dist}/server/migrations/20230221032941-change-request-body-type.d.ts +0 -0
- /package/{lib → dist}/server/migrations/20230221071831-calculation-expression.d.ts +0 -0
- /package/{lib → dist}/server/migrations/20230221121203-condition-calculation.d.ts +0 -0
- /package/{lib → dist}/server/migrations/20230221162902-jsonb-to-json.d.ts +0 -0
- /package/{lib → dist}/server/migrations/20230411034722-manual-multi-form.d.ts +0 -0
- /package/{lib → dist}/server/migrations/20230612021134-manual-collection-block.d.ts +0 -0
- /package/{lib → dist}/server/migrations/20230710115902-manual-action-values.d.ts +0 -0
- /package/{lib → dist}/server/triggers/collection.d.ts +0 -0
- /package/{lib → dist}/server/triggers/index.d.ts +0 -0
- /package/{lib → dist}/server/triggers/schedule.d.ts +0 -0
- /package/{lib → dist}/server/types/Execution.d.ts +0 -0
- /package/{lib → dist}/server/types/FlowNode.d.ts +0 -0
- /package/{lib → dist}/server/types/Job.d.ts +0 -0
- /package/{lib → dist}/server/types/Workflow.d.ts +0 -0
- /package/{lib → dist}/server/types/index.d.ts +0 -0
- /package/{lib → dist}/server/utils.d.ts +0 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var zh_CN_default = {
|
|
4
|
+
Workflow: "\u5DE5\u4F5C\u6D41",
|
|
5
|
+
"Execution history": "\u6267\u884C\u5386\u53F2",
|
|
6
|
+
Executed: "\u5DF2\u6267\u884C",
|
|
7
|
+
"Trigger type": "\u89E6\u53D1\u65B9\u5F0F",
|
|
8
|
+
Status: "\u72B6\u6001",
|
|
9
|
+
On: "\u542F\u7528",
|
|
10
|
+
Off: "\u505C\u7528",
|
|
11
|
+
Version: "\u7248\u672C",
|
|
12
|
+
"Copy to new version": "\u590D\u5236\u5230\u65B0\u7248\u672C",
|
|
13
|
+
Duplicate: "\u590D\u5236",
|
|
14
|
+
"Delete a main version will cause all other revisions to be deleted too.": "\u5220\u9664\u4E3B\u7248\u672C\u5C06\u5BFC\u81F4\u5176\u4ED6\u7248\u672C\u4E00\u5E76\u88AB\u5220\u9664\u3002",
|
|
15
|
+
Loading: "\u52A0\u8F7D\u4E2D",
|
|
16
|
+
"Load failed": "\u52A0\u8F7D\u5931\u8D25",
|
|
17
|
+
Trigger: "\u89E6\u53D1\u5668",
|
|
18
|
+
"Trigger variables": "\u89E6\u53D1\u5668\u53D8\u91CF",
|
|
19
|
+
"Trigger data": "\u89E6\u53D1\u6570\u636E",
|
|
20
|
+
"Trigger time": "\u89E6\u53D1\u65F6\u95F4",
|
|
21
|
+
"Triggered at": "\u89E6\u53D1\u65F6\u95F4",
|
|
22
|
+
"Collection event": "\u6570\u636E\u8868\u4E8B\u4EF6",
|
|
23
|
+
"Trigger on": "\u89E6\u53D1\u65F6\u673A",
|
|
24
|
+
"After record added": "\u65B0\u589E\u6570\u636E\u540E",
|
|
25
|
+
"After record updated": "\u66F4\u65B0\u6570\u636E\u540E",
|
|
26
|
+
"After record added or updated": "\u65B0\u589E\u6216\u66F4\u65B0\u6570\u636E\u540E",
|
|
27
|
+
"After record deleted": "\u5220\u9664\u6570\u636E\u540E",
|
|
28
|
+
"Changed fields": "\u53D1\u751F\u53D8\u52A8\u7684\u5B57\u6BB5",
|
|
29
|
+
"Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.": "\u53EA\u6709\u88AB\u9009\u4E2D\u7684\u67D0\u4E2A\u5B57\u6BB5\u53D1\u751F\u53D8\u52A8\u65F6\u624D\u4F1A\u89E6\u53D1\u3002\u5982\u679C\u4E0D\u9009\u62E9\uFF0C\u5219\u8868\u793A\u4EFB\u4F55\u5B57\u6BB5\u53D8\u52A8\u65F6\u90FD\u4F1A\u89E6\u53D1\u3002\u65B0\u589E\u6216\u5220\u9664\u6570\u636E\u65F6\uFF0C\u4EFB\u610F\u5B57\u6BB5\u90FD\u88AB\u8BA4\u4E3A\u53D1\u751F\u53D8\u52A8\u3002",
|
|
30
|
+
"Only triggers when match conditions": "\u6EE1\u8DB3\u4EE5\u4E0B\u6761\u4EF6\u624D\u89E6\u53D1",
|
|
31
|
+
"Preload associations": "\u9884\u52A0\u8F7D\u5173\u8054\u6570\u636E",
|
|
32
|
+
"Please select the associated fields that need to be accessed in subsequent nodes. With more than two levels of to-many associations may cause performance issue, please use with caution.": "\u8BF7\u9009\u4E2D\u9700\u8981\u5728\u540E\u7EED\u8282\u70B9\u4E2D\u88AB\u8BBF\u95EE\u7684\u5173\u7CFB\u5B57\u6BB5\u3002\u8D85\u8FC7\u4E24\u5C42\u7684\u5BF9\u591A\u5173\u8054\u53EF\u80FD\u4F1A\u5BFC\u81F4\u6027\u80FD\u95EE\u9898\uFF0C\u8BF7\u8C28\u614E\u4F7F\u7528\u3002",
|
|
33
|
+
"Schedule event": "\u5B9A\u65F6\u4EFB\u52A1",
|
|
34
|
+
"Trigger mode": "\u89E6\u53D1\u6A21\u5F0F",
|
|
35
|
+
"Based on certain date": "\u81EA\u5B9A\u4E49\u65F6\u95F4",
|
|
36
|
+
"Based on date field of collection": "\u6839\u636E\u6570\u636E\u8868\u65F6\u95F4\u5B57\u6BB5",
|
|
37
|
+
"Starts on": "\u5F00\u59CB\u4E8E",
|
|
38
|
+
"Ends on": "\u7ED3\u675F\u4E8E",
|
|
39
|
+
"No end": "\u4E0D\u7ED3\u675F",
|
|
40
|
+
"Exactly at": "\u5F53\u65F6",
|
|
41
|
+
"Repeat mode": "\u91CD\u590D\u6A21\u5F0F",
|
|
42
|
+
"Repeat limit": "\u91CD\u590D\u6B21\u6570",
|
|
43
|
+
"No limit": "\u4E0D\u9650",
|
|
44
|
+
Seconds: "\u79D2",
|
|
45
|
+
Minutes: "\u5206\u949F",
|
|
46
|
+
Hours: "\u5C0F\u65F6",
|
|
47
|
+
Days: "\u5929",
|
|
48
|
+
Weeks: "\u5468",
|
|
49
|
+
Months: "\u6708",
|
|
50
|
+
"No repeat": "\u4E0D\u91CD\u590D",
|
|
51
|
+
Every: "\u6BCF",
|
|
52
|
+
"By minute": "\u6309\u5206\u949F",
|
|
53
|
+
"By hour": "\u6309\u5C0F\u65F6",
|
|
54
|
+
"By day": "\u6309\u5929",
|
|
55
|
+
"By week": "\u6309\u5468",
|
|
56
|
+
"By month": "\u6309\u6708",
|
|
57
|
+
"By field": "\u6570\u636E\u8868\u5B57\u6BB5",
|
|
58
|
+
"By custom date": "\u81EA\u5B9A\u4E49\u65F6\u95F4",
|
|
59
|
+
Advanced: "\u9AD8\u7EA7\u6A21\u5F0F",
|
|
60
|
+
End: "\u7ED3\u675F",
|
|
61
|
+
"Node result": "\u8282\u70B9\u6570\u636E",
|
|
62
|
+
Calculator: "\u8FD0\u7B97",
|
|
63
|
+
"Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression can be static or dynamic one from an expression collections.": "\u57FA\u4E8E\u8BA1\u7B97\u5F15\u64CE\u5BF9\u4E00\u4E2A\u8868\u8FBE\u5F0F\u8FDB\u884C\u8BA1\u7B97\uFF0C\u5E76\u83B7\u5F97\u4E00\u4E2A\u503C\u4F5C\u4E3A\u7ED3\u679C\u3002\u8868\u8FBE\u5F0F\u4E2D\u53EF\u4EE5\u4F7F\u7528\u4E0A\u6E38\u8282\u70B9\u91CC\u7684\u53D8\u91CF\u3002\u8868\u8FBE\u5F0F\u53EF\u4EE5\u662F\u9759\u6001\u7684\uFF0C\u4E5F\u53EF\u4EE5\u662F\u8868\u8FBE\u5F0F\u8868\u4E2D\u7684\u52A8\u6001\u8868\u8FBE\u5F0F\u3002",
|
|
64
|
+
"String operation": "\u5B57\u7B26\u4E32",
|
|
65
|
+
"System variables": "\u7CFB\u7EDF\u53D8\u91CF",
|
|
66
|
+
"System time": "\u7CFB\u7EDF\u65F6\u95F4",
|
|
67
|
+
"Date variables": "\u65E5\u671F\u53D8\u91CF",
|
|
68
|
+
"Executed at": "\u6267\u884C\u4E8E",
|
|
69
|
+
Queueing: "\u961F\u5217\u4E2D",
|
|
70
|
+
"On going": "\u8FDB\u884C\u4E2D",
|
|
71
|
+
Resolved: "\u5B8C\u6210",
|
|
72
|
+
Pending: "\u5F85\u5904\u7406",
|
|
73
|
+
Failed: "\u5931\u8D25",
|
|
74
|
+
Error: "\u51FA\u9519",
|
|
75
|
+
Aborted: "\u5DF2\u7EC8\u6B62",
|
|
76
|
+
Canceled: "\u5DF2\u53D6\u6D88",
|
|
77
|
+
Rejected: "\u5DF2\u62D2\u7EDD",
|
|
78
|
+
"Continue the process": "\u7EE7\u7EED\u6D41\u7A0B",
|
|
79
|
+
"Terminate the process": "\u7EC8\u6B62\u6D41\u7A0B",
|
|
80
|
+
"Save temporarily": "\u6682\u5B58",
|
|
81
|
+
Operations: "\u64CD\u4F5C",
|
|
82
|
+
"This node contains branches, deleting will also be preformed to them, are you sure?": "\u8282\u70B9\u5305\u542B\u5206\u652F\uFF0C\u5C06\u540C\u65F6\u5220\u9664\u5176\u6240\u6709\u5206\u652F\u4E0B\u7684\u5B50\u8282\u70B9\uFF0C\u786E\u5B9A\u7EE7\u7EED\uFF1F",
|
|
83
|
+
Control: "\u6D41\u7A0B\u63A7\u5236",
|
|
84
|
+
"Collection operations": "\u6570\u636E\u8868\u64CD\u4F5C",
|
|
85
|
+
Manual: "\u4EBA\u5DE5\u5904\u7406",
|
|
86
|
+
"Could be used for manually submitting data, and determine whether to continue or exit. Workflow will generate a todo item for assigned user when it reaches a manual node, and continue processing after user submits the form.": "\u53EF\u7528\u4E8E\u4EBA\u5DE5\u63D0\u4EA4\u6570\u636E\uFF0C\u5E76\u51B3\u5B9A\u662F\u5426\u7EE7\u7EED\u6216\u9000\u51FA\u6D41\u7A0B\u3002\u5DE5\u4F5C\u6D41\u5728\u6267\u884C\u5230\u4EBA\u5DE5\u8282\u70B9\u65F6\u4F1A\u4E3A\u88AB\u6307\u6D3E\u7684\u7528\u6237\u751F\u6210\u5F85\u529E\u4E8B\u9879\uFF0C\u76F4\u5230\u7528\u6237\u63D0\u4EA4\u5BF9\u5E94\u8868\u5355\u540E\u7EE7\u7EED\u5904\u7406\u8BE5\u6D41\u7A0B\u3002",
|
|
87
|
+
"Values preset in this form will override user submitted ones when continue or reject.": "\u8868\u5355\u4E2D\u9884\u8BBE\u7684\u5B57\u6BB5\u503C\u4F1A\u5728\u7528\u6237\u63D0\u4EA4\u7EE7\u7EED\u6216\u62D2\u7EDD\u65F6\u8986\u76D6\u76F8\u5E94\u5B57\u6BB5\u7684\u503C\u3002",
|
|
88
|
+
"Extended types": "\u6269\u5C55\u7C7B\u578B",
|
|
89
|
+
"Node type": "\u8282\u70B9\u7C7B\u578B",
|
|
90
|
+
Calculation: "\u8FD0\u7B97",
|
|
91
|
+
"Expression type": "\u8868\u8FBE\u5F0F\u7C7B\u578B",
|
|
92
|
+
Static: "\u9759\u6001",
|
|
93
|
+
Dynamic: "\u52A8\u6001",
|
|
94
|
+
"Select dynamic expression": "\u9009\u62E9\u52A8\u6001\u8868\u8FBE\u5F0F",
|
|
95
|
+
"Select the dynamic expression queried from the upstream node. You need to query it from an expression collection.": "\u4ECE\u4E0A\u6E38\u8282\u70B9\u4E2D\u9009\u62E9\u67E5\u8BE2\u51FA\u6765\u7684\u52A8\u6001\u8868\u8FBE\u5F0F\u3002\u4F60\u9700\u8981\u4ECE\u52A8\u6001\u8868\u8FBE\u5F0F\u7C7B\u578B\u7684\u6570\u636E\u8868\u4E2D\u67E5\u8BE2\u3002",
|
|
96
|
+
"Variable datasource": "\u53D8\u91CF\u6570\u636E\u6E90",
|
|
97
|
+
"Calculation engine": "\u8FD0\u7B97\u5F15\u64CE",
|
|
98
|
+
Basic: "\u57FA\u7840",
|
|
99
|
+
"Calculation expression": "\u8FD0\u7B97\u8868\u8FBE\u5F0F",
|
|
100
|
+
"Expression syntax error": "\u8868\u8FBE\u5F0F\u8BED\u6CD5\u9519\u8BEF",
|
|
101
|
+
"Syntax references: ": "\u8BED\u6CD5\u53C2\u8003\uFF1A",
|
|
102
|
+
"Calculation result": "\u8FD0\u7B97\u7ED3\u679C",
|
|
103
|
+
True: "\u771F",
|
|
104
|
+
False: "\u5047",
|
|
105
|
+
concat: "\u8FDE\u63A5",
|
|
106
|
+
Condition: "\u6761\u4EF6\u5224\u65AD",
|
|
107
|
+
'Based on boolean result of the calculation to determine whether to "continue" or "exit" the process, or continue on different branches of "yes" and "no".': "\u57FA\u4E8E\u8FD0\u7B97\u7ED3\u679C\u7684\u771F\u5047\u6765\u51B3\u5B9A\u201C\u7EE7\u7EED\u201D\u6216\u201C\u9000\u51FA\u201D\u6D41\u7A0B\uFF0C\u6216\u8005\u5728\u201C\u662F\u201D\u4E0E\u201C\u5426\u201D\u7684\u5206\u652F\u4E0A\u5206\u522B\u7EE7\u7EED\u3002",
|
|
108
|
+
Mode: "\u6A21\u5F0F",
|
|
109
|
+
'Continue when "Yes"': "\u201C\u662F\u201D\u5219\u7EE7\u7EED",
|
|
110
|
+
'Branch into "Yes" and "No"': "\u201C\u662F\u201D\u548C\u201C\u5426\u201D\u5206\u522B\u7EE7\u7EED",
|
|
111
|
+
"Condition expression": "\u6761\u4EF6\u8868\u8FBE\u5F0F",
|
|
112
|
+
"Parallel branch": "\u5206\u652F",
|
|
113
|
+
"Run multiple branch processes in parallel.": "\u5E76\u884C\u8FD0\u884C\u591A\u4E2A\u5206\u652F\u6D41\u7A0B\u3002",
|
|
114
|
+
"Add branch": "\u589E\u52A0\u5206\u652F",
|
|
115
|
+
"All succeeded": "\u5168\u90E8\u6210\u529F",
|
|
116
|
+
"Any succeeded": "\u4EFB\u610F\u6210\u529F",
|
|
117
|
+
"Any succeeded or failed": "\u4EFB\u610F\u6210\u529F\u6216\u5931\u8D25",
|
|
118
|
+
"Continue after all branches succeeded": "\u5168\u90E8\u5206\u652F\u90FD\u6210\u529F\u540E\u624D\u80FD\u7EE7\u7EED",
|
|
119
|
+
"Continue after any branch succeeded": "\u4EFB\u610F\u5206\u652F\u6210\u529F\u540E\u5C31\u7EE7\u7EED",
|
|
120
|
+
"Continue after any branch succeeded, or exit after any branch failed.": "\u4EFB\u610F\u5206\u652F\u6210\u529F\u5C31\u7EE7\u7EED\u6D41\u7A0B\uFF0C\u6216\u8005\u4EFB\u610F\u5206\u652F\u5931\u8D25\u5C31\u9000\u51FA\u6D41\u7A0B\u3002",
|
|
121
|
+
Loop: "\u5FAA\u73AF",
|
|
122
|
+
"Loop target": "\u5FAA\u73AF\u5BF9\u8C61",
|
|
123
|
+
"Loop index": "\u5F53\u524D\u7D22\u5F15",
|
|
124
|
+
"Loop length": "\u5FAA\u73AF\u957F\u5EA6",
|
|
125
|
+
"By using a loop node, you can perform the same operation on multiple sets of data. The source of these sets can be either multiple records from a query node or multiple associated records of a single record. Loop node can also be used for iterating a certain number of times or for looping through each character in a string. However, excessive looping may cause performance issues, so use with caution.": "\u4F7F\u7528\u5FAA\u73AF\u8282\u70B9\u53EF\u4EE5\u5BF9\u591A\u6761\u6570\u636E\u8FDB\u884C\u540C\u6837\u7684\u64CD\u4F5C\uFF0C\u591A\u6761\u6570\u636E\u7684\u6765\u6E90\u53EF\u4EE5\u662F\u67E5\u8BE2\u8282\u70B9\u7684\u591A\u6761\u7ED3\u679C\uFF0C\u6216\u8005\u4E00\u6761\u6570\u636E\u7684\u591A\u6761\u5173\u7CFB\u6570\u636E\u3002\u4E5F\u53EF\u4EE5\u7528\u4E8E\u4E00\u5B9A\u6B21\u6570\u7684\u5FAA\u73AF\uFF0C\u6216\u8005\u5BF9\u5B57\u7B26\u4E32\u4E2D\u6BCF\u4E00\u4E2A\u5B57\u7B26\u7684\u5FAA\u73AF\u5904\u7406\u3002\u5FAA\u73AF\u6B21\u6570\u8FC7\u9AD8\u53EF\u80FD\u5F15\u8D77\u6027\u80FD\u95EE\u9898\uFF0C\u8BF7\u8C28\u614E\u4F7F\u7528\u3002",
|
|
126
|
+
"Scope variables": "\u5C40\u57DF\u53D8\u91CF",
|
|
127
|
+
"A single number will be treated as a loop count, a single string will be treated as an array of characters, and other non-array values will be converted to arrays. The loop node ends when the loop count is reached, or when the array loop is completed. You can also add condition nodes to the loop to terminate it.": "\u5355\u4E00\u6570\u5B57\u503C\u5C06\u88AB\u89C6\u4E3A\u5FAA\u73AF\u6B21\u6570\uFF0C\u5355\u4E00\u5B57\u7B26\u4E32\u503C\u5C06\u88AB\u89C6\u4E3A\u5B57\u7B26\u6570\u7EC4\uFF0C\u5176\u4ED6\u975E\u6570\u7EC4\u503C\u5C06\u88AB\u8F6C\u6362\u4E3A\u6570\u7EC4\u3002\u8FBE\u5230\u5FAA\u73AF\u6B21\u6570\uFF0C\u6216\u8005\u5C06\u6570\u7EC4\u5FAA\u73AF\u5B8C\u6210\u540E\uFF0C\u5FAA\u73AF\u8282\u70B9\u7ED3\u675F\u3002\u4F60\u4E5F\u53EF\u4EE5\u5728\u5FAA\u73AF\u4E2D\u6DFB\u52A0\u6761\u4EF6\u8282\u70B9\uFF0C\u4EE5\u7EC8\u6B62\u5FAA\u73AF\u3002",
|
|
128
|
+
Delay: "\u5EF6\u65F6",
|
|
129
|
+
"Delay a period of time and then continue or exit the process. Can be used to set wait or timeout times in parallel branches.": "\u5EF6\u65F6\u4E00\u6BB5\u65F6\u95F4\uFF0C\u7136\u540E\u7EE7\u7EED\u6216\u9000\u51FA\u6D41\u7A0B\u3002\u53EF\u4EE5\u7528\u4E8E\u5E76\u884C\u5206\u652F\u4E2D\u7B49\u5F85\u5176\u4ED6\u5206\u652F\u6216\u8BBE\u7F6E\u8D85\u65F6\u65F6\u95F4\u3002",
|
|
130
|
+
Duration: "\u65F6\u957F",
|
|
131
|
+
"End Status": "\u5230\u65F6\u72B6\u6001",
|
|
132
|
+
"Select status": "\u9009\u62E9\u72B6\u6001",
|
|
133
|
+
"Succeed and continue": "\u901A\u8FC7\u5E76\u7EE7\u7EED",
|
|
134
|
+
"Fail and exit": "\u5931\u8D25\u5E76\u9000\u51FA",
|
|
135
|
+
Assignee: "\u8D1F\u8D23\u4EBA",
|
|
136
|
+
Assignees: "\u8D1F\u8D23\u4EBA",
|
|
137
|
+
"User interface": "\u64CD\u4F5C\u754C\u9762",
|
|
138
|
+
"Configure user interface": "\u914D\u7F6E\u754C\u9762",
|
|
139
|
+
"View user interface": "\u67E5\u770B\u754C\u9762",
|
|
140
|
+
Separately: "\u5206\u522B\u5904\u7406",
|
|
141
|
+
"Each user has own task": "\u6BCF\u4E2A\u4EBA\u5904\u7406\u5404\u81EA\u7684\u4EFB\u52A1",
|
|
142
|
+
Collaboratively: "\u534F\u4F5C\u5904\u7406",
|
|
143
|
+
"Everyone shares one task": "\u6240\u6709\u4EBA\u5171\u4EAB\u540C\u4E00\u4E2A\u4EFB\u52A1",
|
|
144
|
+
Negotiation: "\u534F\u5546\u673A\u5236",
|
|
145
|
+
"All pass": "\u5168\u90E8\u901A\u8FC7",
|
|
146
|
+
"Everyone should pass": "\u6BCF\u4E2A\u4EBA\u901A\u8FC7\u624D\u901A\u8FC7",
|
|
147
|
+
"Any pass": "\u4EFB\u610F\u901A\u8FC7",
|
|
148
|
+
"Anyone pass": "\u4EFB\u4F55\u4E00\u4EBA\u901A\u8FC7\u5373\u901A\u8FC7",
|
|
149
|
+
"Field name existed in form": "\u8868\u5355\u4E2D\u5DF2\u6709\u5BF9\u5E94\u6807\u8BC6\u7684\u5B57\u6BB5",
|
|
150
|
+
"Custom form": "\u81EA\u5B9A\u4E49\u8868\u5355",
|
|
151
|
+
"Data record": "\u6570\u636E\u8BB0\u5F55",
|
|
152
|
+
"Create record form": "\u65B0\u589E\u6570\u636E\u8868\u5355",
|
|
153
|
+
"Update record form": "\u66F4\u65B0\u6570\u636E\u8868\u5355",
|
|
154
|
+
"Filter settings": "\u7B5B\u9009\u8BBE\u7F6E",
|
|
155
|
+
"Create record": "\u65B0\u589E\u6570\u636E",
|
|
156
|
+
"Add new record to a collection. You can use variables from upstream nodes to assign values to fields.": "\u5411\u4E00\u4E2A\u6570\u636E\u8868\u4E2D\u6DFB\u52A0\u65B0\u7684\u6570\u636E\u3002\u53EF\u4EE5\u4F7F\u7528\u4E0A\u6E38\u8282\u70B9\u91CC\u7684\u53D8\u91CF\u4E3A\u5B57\u6BB5\u8D4B\u503C\u3002",
|
|
157
|
+
"Update record": "\u66F4\u65B0\u6570\u636E",
|
|
158
|
+
"Update records of a collection. You can use variables from upstream nodes as query conditions and field values.": "\u66F4\u65B0\u4E00\u4E2A\u6570\u636E\u8868\u4E2D\u7684\u6570\u636E\u3002\u53EF\u4EE5\u4F7F\u7528\u4E0A\u6E38\u8282\u70B9\u91CC\u7684\u53D8\u91CF\u4F5C\u4E3A\u67E5\u8BE2\u6761\u4EF6\u548C\u6570\u636E\u503C\u3002",
|
|
159
|
+
"Update mode": "\u66F4\u65B0\u6A21\u5F0F",
|
|
160
|
+
"Update in a batch": "\u6279\u91CF\u66F4\u65B0",
|
|
161
|
+
"Update one by one": "\u9010\u6761\u66F4\u65B0",
|
|
162
|
+
"Update all eligible data at one time, which has better performance when the amount of data is large. But the updated data will not trigger other workflows, and will not record audit logs.": "\u4E00\u6B21\u6027\u66F4\u65B0\u6240\u6709\u7B26\u5408\u6761\u4EF6\u7684\u6570\u636E\uFF0C\u5728\u6570\u636E\u91CF\u8F83\u5927\u65F6\u6709\u6BD4\u8F83\u597D\u7684\u6027\u80FD\uFF1B\u4F46\u88AB\u66F4\u65B0\u7684\u6570\u636E\u4E0D\u4F1A\u89E6\u53D1\u5176\u4ED6\u5DE5\u4F5C\u6D41\uFF0C\u4E5F\u4E0D\u4F1A\u8BB0\u5F55\u66F4\u65B0\u65E5\u5FD7\u3002",
|
|
163
|
+
"The updated data can trigger other workflows, and the audit log will also be recorded. But it is usually only applicable to several or dozens of pieces of data, otherwise there will be performance problems.": "\u88AB\u66F4\u65B0\u7684\u6570\u636E\u53EF\u4EE5\u518D\u6B21\u89E6\u53D1\u5176\u4ED6\u5DE5\u4F5C\u6D41\uFF0C\u4E5F\u4F1A\u8BB0\u5F55\u66F4\u65B0\u65E5\u5FD7\uFF1B\u4F46\u901A\u5E38\u53EA\u9002\u7528\u4E8E\u6570\u6761\u6216\u6570\u5341\u6761\u6570\u636E\uFF0C\u5426\u5219\u4F1A\u6709\u6027\u80FD\u95EE\u9898\u3002",
|
|
164
|
+
"Query record": "\u67E5\u8BE2\u6570\u636E",
|
|
165
|
+
"Query records from a collection. You can use variables from upstream nodes as query conditions.": "\u67E5\u8BE2\u4E00\u4E2A\u6570\u636E\u8868\u4E2D\u7684\u6570\u636E\u3002\u53EF\u4EE5\u4F7F\u7528\u4E0A\u6E38\u8282\u70B9\u91CC\u7684\u53D8\u91CF\u4F5C\u4E3A\u67E5\u8BE2\u6761\u4EF6\u3002",
|
|
166
|
+
"Allow multiple records as result": "\u5141\u8BB8\u7ED3\u679C\u662F\u591A\u6761\u6570\u636E",
|
|
167
|
+
"If checked, when there are multiple records in the query result, an array will be returned as the result, which can be operated on one by one using a loop node. Otherwise, only one record will be returned.": "\u9009\u4E2D\u540E\uFF0C\u5F53\u67E5\u8BE2\u7ED3\u679C\u6709\u591A\u6761\u8BB0\u5F55\u65F6\uFF0C\u4F1A\u8FD4\u56DE\u6570\u7EC4\u4F5C\u4E3A\u7ED3\u679C\uFF0C\u53EF\u4EE5\u4F7F\u7528\u5FAA\u73AF\u8282\u70B9\u5BF9\u5B83\u9010\u6761\u64CD\u4F5C\uFF1B\u5426\u5219\uFF0C\u4EC5\u8FD4\u56DE\u4E00\u6761\u6570\u636E\u3002",
|
|
168
|
+
"Exit when query result is null": "\u67E5\u8BE2\u7ED3\u679C\u4E3A\u7A7A\u65F6\uFF0C\u9000\u51FA\u6D41\u7A0B",
|
|
169
|
+
"Please select collection first": "\u8BF7\u5148\u9009\u62E9\u6570\u636E\u8868",
|
|
170
|
+
"Only update records matching conditions": "\u53EA\u66F4\u65B0\u6EE1\u8DB3\u6761\u4EF6\u7684\u6570\u636E",
|
|
171
|
+
"Please add at least one condition": "\u8BF7\u6DFB\u52A0\u81F3\u5C11\u4E00\u4E2A\u6761\u4EF6",
|
|
172
|
+
"Unassigned fields will be set to default values, and those without default values will be set to null.": "\u672A\u88AB\u8D4B\u503C\u7684\u5B57\u6BB5\u5C06\u88AB\u8BBE\u7F6E\u4E3A\u9ED8\u8BA4\u503C\uFF0C\u6CA1\u6709\u9ED8\u8BA4\u503C\u7684\u8BBE\u7F6E\u4E3A\u7A7A\u503C\u3002",
|
|
173
|
+
"Delete record": "\u5220\u9664\u6570\u636E",
|
|
174
|
+
"Delete records of a collection. Could use variables in workflow context as filter. All records match the filter will be deleted.": "\u5220\u9664\u4E00\u4E2A\u6570\u636E\u8868\u4E2D\u7684\u6570\u636E\u3002\u53EF\u4EE5\u4F7F\u7528\u4E0A\u6E38\u8282\u70B9\u91CC\u7684\u53D8\u91CF\u4F5C\u4E3A\u8FC7\u6EE4\u6761\u4EF6\u3002\u6240\u6709\u6EE1\u8DB3\u6761\u4EF6\u7684\u6570\u636E\u90FD\u5C06\u88AB\u5220\u9664\u3002",
|
|
175
|
+
Aggregate: "\u805A\u5408\u67E5\u8BE2",
|
|
176
|
+
"Counting, summing, finding maximum, minimum, and average values for multiple records of a collection or associated data of a record.": "\u5BF9\u4E00\u4E2A\u6570\u636E\u8868\u91CC\u7684\u591A\u6761\u6570\u636E\u6216\u8005\u4E00\u6761\u6570\u636E\u91CC\u7684\u5173\u7CFB\u6570\u636E\u8FDB\u884C\u7EDF\u8BA1\u3001\u6C42\u548C\u3001\u6C42\u6700\u5927\u503C\u3001\u6700\u5C0F\u503C\u3001\u5E73\u5747\u503C\u3002",
|
|
177
|
+
"Aggregator function": "\u805A\u5408\u51FD\u6570",
|
|
178
|
+
"Target type": "\u76EE\u6807\u7C7B\u578B",
|
|
179
|
+
"Data of collection": "\u6570\u636E\u8868\u6570\u636E",
|
|
180
|
+
"Data of associated collection": "\u5173\u8054\u6570\u636E\u8868\u6570\u636E",
|
|
181
|
+
"Field to aggregate": "\u805A\u5408\u5B57\u6BB5",
|
|
182
|
+
Distinct: "\u53BB\u91CD",
|
|
183
|
+
"Query result": "\u67E5\u8BE2\u7ED3\u679C",
|
|
184
|
+
"Trigger in executed workflow cannot be modified": "\u5DF2\u7ECF\u6267\u884C\u8FC7\u5DE5\u4F5C\u6D41\u7684\u89E6\u53D1\u5668\u4E0D\u80FD\u88AB\u4FEE\u6539",
|
|
185
|
+
"Node in executed workflow cannot be modified": "\u5DF2\u7ECF\u6267\u884C\u8FC7\u5DE5\u4F5C\u6D41\u4E2D\u7684\u8282\u70B9\u4E0D\u80FD\u88AB\u4FEE\u6539",
|
|
186
|
+
"Can not delete": "\u65E0\u6CD5\u5220\u9664",
|
|
187
|
+
"The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.": "\u8BE5\u8282\u70B9\u7684\u6267\u884C\u7ED3\u679C\u5DF2\u88AB\u5176\u4ED6\u8282\u70B9\uFF08{{nodes}}\uFF09\u5F15\u7528\uFF0C\u5220\u9664\u524D\u8BF7\u5148\u79FB\u9664\u5F15\u7528\u3002",
|
|
188
|
+
"HTTP request": "HTTP \u8BF7\u6C42",
|
|
189
|
+
"Send HTTP request to a URL. You can use the variables in the upstream nodes as request headers, parameters and request body.": "\u5411\u6307\u5B9A URL \u53D1\u9001 HTTP \u8BF7\u6C42\u3002\u53EF\u4EE5\u4F7F\u7528\u4E0A\u6E38\u8282\u70B9\u91CC\u7684\u53D8\u91CF\u4F5C\u4E3A\u8BF7\u6C42\u5934\u3001\u53C2\u6570\u548C\u8BF7\u6C42\u4F53\u3002",
|
|
190
|
+
"HTTP method": "HTTP \u65B9\u6CD5",
|
|
191
|
+
URL: "\u5730\u5740",
|
|
192
|
+
Headers: "\u8BF7\u6C42\u5934",
|
|
193
|
+
"Add request header": "\u6DFB\u52A0\u8BF7\u6C42\u5934",
|
|
194
|
+
Parameters: "\u53C2\u6570",
|
|
195
|
+
"Add parameter": "\u6DFB\u52A0\u53C2\u6570",
|
|
196
|
+
Body: "\u8BF7\u6C42\u4F53",
|
|
197
|
+
"Use variable": "\u4F7F\u7528\u53D8\u91CF",
|
|
198
|
+
Format: "\u683C\u5F0F\u5316",
|
|
199
|
+
Insert: "\u63D2\u5165",
|
|
200
|
+
"Timeout config": "\u8D85\u65F6\u8BBE\u7F6E",
|
|
201
|
+
ms: "\u6BEB\u79D2",
|
|
202
|
+
"Input request data": "\u8F93\u5165\u8BF7\u6C42\u6570\u636E",
|
|
203
|
+
"Only support standard JSON data": "\u4EC5\u652F\u6301\u6807\u51C6 JSON \u6570\u636E",
|
|
204
|
+
'"Content-Type" only support "application/json", and no need to specify': '"Content-Type" \u8BF7\u6C42\u5934\u4EC5\u652F\u6301 "application/json"\uFF0C\u65E0\u9700\u586B\u5199',
|
|
205
|
+
"Ignore fail request and continue workflow": "\u5FFD\u7565\u5931\u8D25\u7684\u8BF7\u6C42\u5E76\u7EE7\u7EED\u5DE5\u4F5C\u6D41",
|
|
206
|
+
"Workflow todos": "\u5DE5\u4F5C\u6D41\u5F85\u529E",
|
|
207
|
+
Task: "\u4EFB\u52A1",
|
|
208
|
+
"Dynamic expression": "\u52A8\u6001\u8868\u8FBE\u5F0F",
|
|
209
|
+
"An expression for calculation in each rows": "\u6BCF\u884C\u6570\u636E\u8BA1\u7B97\u89C4\u5219\u4E0D\u540C\u65F6\u4F7F\u7528",
|
|
210
|
+
Unconfigured: "\u672A\u914D\u7F6E",
|
|
211
|
+
"SQL action": "SQL \u64CD\u4F5C",
|
|
212
|
+
"Execute a SQL statement in database": "\u5728\u6570\u636E\u5E93\u4E2D\u6267\u884C\u4E00\u4E2A SQL \u8BED\u53E5",
|
|
213
|
+
"Usage of SQL query result is not supported yet.": "SQL \u6267\u884C\u7684\u7ED3\u679C\u6682\u4E0D\u652F\u6301\u4F7F\u7528\u3002"
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
module.exports = zh_CN_default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-2016 Harri Siirak
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cron-parser",
|
|
3
|
+
"repo": "harrisiirak/cron-parser",
|
|
4
|
+
"description": "Node.js library for parsing crontab instructions",
|
|
5
|
+
"version": "4.3.0",
|
|
6
|
+
"keywords": ["cron", "crontab", "parser"],
|
|
7
|
+
"dependencies": {},
|
|
8
|
+
"development": {},
|
|
9
|
+
"main": "lib/parser.js",
|
|
10
|
+
"scripts": ["lib/parser.js", "lib/expression.js", "lib/date.js", "lib/field_compactor.js", "lib/field_stringify.js"]
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types'
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var luxon = require('luxon');
|
|
4
|
+
|
|
5
|
+
CronDate.prototype.addYear = function() {
|
|
6
|
+
this._date = this._date.plus({ years: 1 });
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
CronDate.prototype.addMonth = function() {
|
|
10
|
+
this._date = this._date.plus({ months: 1 }).startOf('month');
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
CronDate.prototype.addDay = function() {
|
|
14
|
+
this._date = this._date.plus({ days: 1 }).startOf('day');
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
CronDate.prototype.addHour = function() {
|
|
18
|
+
var prev = this._date;
|
|
19
|
+
this._date = this._date.plus({ hours: 1 }).startOf('hour');
|
|
20
|
+
if (this._date <= prev) {
|
|
21
|
+
this._date = this._date.plus({ hours: 1 });
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
CronDate.prototype.addMinute = function() {
|
|
26
|
+
var prev = this._date;
|
|
27
|
+
this._date = this._date.plus({ minutes: 1 }).startOf('minute');
|
|
28
|
+
if (this._date < prev) {
|
|
29
|
+
this._date = this._date.plus({ hours: 1 });
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
CronDate.prototype.addSecond = function() {
|
|
34
|
+
var prev = this._date;
|
|
35
|
+
this._date = this._date.plus({ seconds: 1 }).startOf('second');
|
|
36
|
+
if (this._date < prev) {
|
|
37
|
+
this._date = this._date.plus({ hours: 1 });
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
CronDate.prototype.subtractYear = function() {
|
|
42
|
+
this._date = this._date.minus({ years: 1 });
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
CronDate.prototype.subtractMonth = function() {
|
|
46
|
+
this._date = this._date
|
|
47
|
+
.minus({ months: 1 })
|
|
48
|
+
.endOf('month')
|
|
49
|
+
.startOf('second');
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
CronDate.prototype.subtractDay = function() {
|
|
53
|
+
this._date = this._date
|
|
54
|
+
.minus({ days: 1 })
|
|
55
|
+
.endOf('day')
|
|
56
|
+
.startOf('second');
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
CronDate.prototype.subtractHour = function() {
|
|
60
|
+
var prev = this._date;
|
|
61
|
+
this._date = this._date
|
|
62
|
+
.minus({ hours: 1 })
|
|
63
|
+
.endOf('hour')
|
|
64
|
+
.startOf('second');
|
|
65
|
+
if (this._date >= prev) {
|
|
66
|
+
this._date = this._date.minus({ hours: 1 });
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
CronDate.prototype.subtractMinute = function() {
|
|
71
|
+
var prev = this._date;
|
|
72
|
+
this._date = this._date.minus({ minutes: 1 })
|
|
73
|
+
.endOf('minute')
|
|
74
|
+
.startOf('second');
|
|
75
|
+
if (this._date > prev) {
|
|
76
|
+
this._date = this._date.minus({ hours: 1 });
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
CronDate.prototype.subtractSecond = function() {
|
|
81
|
+
var prev = this._date;
|
|
82
|
+
this._date = this._date
|
|
83
|
+
.minus({ seconds: 1 })
|
|
84
|
+
.startOf('second');
|
|
85
|
+
if (this._date > prev) {
|
|
86
|
+
this._date = this._date.minus({ hours: 1 });
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
CronDate.prototype.getDate = function() {
|
|
91
|
+
return this._date.day;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
CronDate.prototype.getFullYear = function() {
|
|
95
|
+
return this._date.year;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
CronDate.prototype.getDay = function() {
|
|
99
|
+
var weekday = this._date.weekday;
|
|
100
|
+
return weekday == 7 ? 0 : weekday;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
CronDate.prototype.getMonth = function() {
|
|
104
|
+
return this._date.month - 1;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
CronDate.prototype.getHours = function() {
|
|
108
|
+
return this._date.hour;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
CronDate.prototype.getMinutes = function() {
|
|
112
|
+
return this._date.minute;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
CronDate.prototype.getSeconds = function() {
|
|
116
|
+
return this._date.second;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
CronDate.prototype.getMilliseconds = function() {
|
|
120
|
+
return this._date.millisecond;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
CronDate.prototype.getTime = function() {
|
|
124
|
+
return this._date.valueOf();
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
CronDate.prototype.getUTCDate = function() {
|
|
128
|
+
return this._getUTC().day;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
CronDate.prototype.getUTCFullYear = function() {
|
|
132
|
+
return this._getUTC().year;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
CronDate.prototype.getUTCDay = function() {
|
|
136
|
+
var weekday = this._getUTC().weekday;
|
|
137
|
+
return weekday == 7 ? 0 : weekday;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
CronDate.prototype.getUTCMonth = function() {
|
|
141
|
+
return this._getUTC().month - 1;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
CronDate.prototype.getUTCHours = function() {
|
|
145
|
+
return this._getUTC().hour;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
CronDate.prototype.getUTCMinutes = function() {
|
|
149
|
+
return this._getUTC().minute;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
CronDate.prototype.getUTCSeconds = function() {
|
|
153
|
+
return this._getUTC().second;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
CronDate.prototype.toISOString = function() {
|
|
157
|
+
return this._date.toUTC().toISO();
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
CronDate.prototype.toJSON = function() {
|
|
161
|
+
return this._date.toJSON();
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
CronDate.prototype.setDate = function(d) {
|
|
165
|
+
this._date = this._date.set({ day: d });
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
CronDate.prototype.setFullYear = function(y) {
|
|
169
|
+
this._date = this._date.set({ year: y });
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
CronDate.prototype.setDay = function(d) {
|
|
173
|
+
this._date = this._date.set({ weekday: d });
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
CronDate.prototype.setMonth = function(m) {
|
|
177
|
+
this._date = this._date.set({ month: m + 1 });
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
CronDate.prototype.setHours = function(h) {
|
|
181
|
+
this._date = this._date.set({ hour: h });
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
CronDate.prototype.setMinutes = function(m) {
|
|
185
|
+
this._date = this._date.set({ minute: m });
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
CronDate.prototype.setSeconds = function(s) {
|
|
189
|
+
this._date = this._date.set({ second: s });
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
CronDate.prototype.setMilliseconds = function(s) {
|
|
193
|
+
this._date = this._date.set({ millisecond: s });
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
CronDate.prototype._getUTC = function() {
|
|
197
|
+
return this._date.toUTC();
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
CronDate.prototype.toString = function() {
|
|
201
|
+
return this.toDate().toString();
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
CronDate.prototype.toDate = function() {
|
|
205
|
+
return this._date.toJSDate();
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
CronDate.prototype.isLastDayOfMonth = function() {
|
|
209
|
+
//next day
|
|
210
|
+
var newDate = this._date.plus({ days: 1 }).startOf('day');
|
|
211
|
+
return this._date.month !== newDate.month;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Returns true when the current weekday is the last occurrence of this weekday
|
|
216
|
+
* for the present month.
|
|
217
|
+
*/
|
|
218
|
+
CronDate.prototype.isLastWeekdayOfMonth = function() {
|
|
219
|
+
// Check this by adding 7 days to the current date and seeing if it's
|
|
220
|
+
// a different month
|
|
221
|
+
var newDate = this._date.plus({ days: 7 }).startOf('day');
|
|
222
|
+
return this._date.month !== newDate.month;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
function CronDate (timestamp, tz) {
|
|
226
|
+
var dateOpts = { zone: tz };
|
|
227
|
+
if (!timestamp) {
|
|
228
|
+
this._date = luxon.DateTime.local();
|
|
229
|
+
} else if (timestamp instanceof CronDate) {
|
|
230
|
+
this._date = timestamp._date;
|
|
231
|
+
} else if (timestamp instanceof Date) {
|
|
232
|
+
this._date = luxon.DateTime.fromJSDate(timestamp, dateOpts);
|
|
233
|
+
} else if (typeof timestamp === 'number') {
|
|
234
|
+
this._date = luxon.DateTime.fromMillis(timestamp, dateOpts);
|
|
235
|
+
} else if (typeof timestamp === 'string') {
|
|
236
|
+
this._date = luxon.DateTime.fromISO(timestamp, dateOpts);
|
|
237
|
+
this._date.isValid || (this._date = luxon.DateTime.fromRFC2822(timestamp, dateOpts));
|
|
238
|
+
this._date.isValid || (this._date = luxon.DateTime.fromSQL(timestamp, dateOpts));
|
|
239
|
+
// RFC2822-like format without the required timezone offset (used in tests)
|
|
240
|
+
this._date.isValid || (this._date = luxon.DateTime.fromFormat(timestamp, 'EEE, d MMM yyyy HH:mm:ss', dateOpts));
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
if (!this._date || !this._date.isValid) {
|
|
244
|
+
throw new Error('CronDate: unhandled timestamp: ' + JSON.stringify(timestamp));
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
if (tz && tz !== this._date.zoneName) {
|
|
248
|
+
this._date = this._date.setZone(tz);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
module.exports = CronDate;
|