@nocobase/plugin-workflow 1.7.0-beta.8 → 1.7.0
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/dist/client/3c67def1831d0b23.js +10 -0
- package/dist/client/WorkflowCategoryTabs.d.ts +10 -0
- package/dist/client/WorkflowCollectionsProvider.d.ts +10 -0
- package/dist/client/WorkflowTasks.d.ts +12 -3
- package/dist/client/a4111333ce86663c.js +10 -0
- package/dist/client/a54c8c009524b6da.js +10 -0
- package/dist/client/components/EmunerationField.d.ts +9 -0
- package/dist/client/f9eeb46e5c6a9ffe.js +10 -0
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.js +1 -1
- package/dist/client/locale/index.d.ts +2 -1
- package/dist/client/schemas/executions.d.ts +126 -125
- package/dist/client/triggers/schedule/RepeatField.d.ts +2 -1
- package/dist/common/collections/executions.d.ts +136 -0
- package/dist/common/collections/executions.js +125 -0
- package/dist/common/collections/flow_nodes.d.ts +65 -0
- package/dist/common/collections/flow_nodes.js +94 -0
- package/dist/common/collections/jobs.d.ts +37 -0
- package/dist/common/collections/jobs.js +74 -0
- package/dist/common/collections/userWorkflowTasks.d.ts +37 -0
- package/dist/common/collections/userWorkflowTasks.js +65 -0
- package/dist/common/collections/workflowCategories.d.ts +65 -0
- package/dist/common/collections/workflowCategories.js +68 -0
- package/dist/common/collections/workflowCategoryRelations.d.ts +21 -0
- package/dist/common/collections/workflowCategoryRelations.js +51 -0
- package/dist/common/collections/workflowStats.d.ts +37 -0
- package/dist/common/collections/workflowStats.js +59 -0
- package/dist/common/collections/workflowTasks.d.ts +10 -0
- package/dist/common/collections/workflowTasks.js +64 -0
- package/dist/common/collections/workflowVersionStats.d.ts +37 -0
- package/dist/common/collections/workflowVersionStats.js +59 -0
- package/dist/common/collections/workflows.d.ts +263 -0
- package/dist/common/collections/workflows.js +244 -0
- package/dist/common/constants.d.ts +9 -0
- package/dist/{server/actions/workflowTasks.js → common/constants.js} +6 -17
- package/dist/externalVersion.js +15 -14
- package/dist/locale/en-US.json +127 -15
- package/dist/locale/zh-CN.json +10 -1
- package/dist/node_modules/cron-parser/package.json +1 -1
- package/dist/node_modules/lru-cache/package.json +1 -1
- package/dist/node_modules/nodejs-snowflake/LICENSE +201 -0
- package/dist/node_modules/nodejs-snowflake/nodejs_snowflake.d.ts +62 -0
- package/dist/node_modules/nodejs-snowflake/nodejs_snowflake.js +1 -0
- package/dist/node_modules/nodejs-snowflake/nodejs_snowflake_bg.wasm +0 -0
- package/dist/node_modules/nodejs-snowflake/package.json +1 -0
- package/dist/server/Dispatcher.d.ts +11 -0
- package/dist/server/Dispatcher.js +35 -0
- package/dist/server/Plugin.d.ts +12 -2
- package/dist/server/Plugin.js +143 -105
- package/dist/server/Processor.d.ts +4 -11
- package/dist/server/Processor.js +50 -45
- package/dist/server/actions/index.js +2 -2
- package/dist/server/actions/nodes.js +7 -5
- package/dist/server/actions/{workflowTasks.d.ts → userWorkflowTasks.d.ts} +1 -1
- package/dist/server/actions/userWorkflowTasks.js +54 -0
- package/dist/server/actions/workflows.js +6 -3
- package/dist/server/collections/executions.js +12 -44
- package/dist/server/collections/flow_nodes.js +12 -57
- package/dist/server/collections/jobs.js +12 -36
- package/dist/server/collections/userWorkflowTasks.d.ts +11 -0
- package/dist/server/collections/userWorkflowTasks.js +43 -0
- package/dist/server/collections/workflowCategories.d.ts +11 -0
- package/dist/server/collections/workflowCategories.js +43 -0
- package/dist/server/collections/workflowCategoryRelations.d.ts +11 -0
- package/dist/server/collections/workflowCategoryRelations.js +43 -0
- package/dist/server/collections/workflowStats.d.ts +11 -0
- package/dist/server/collections/workflowStats.js +43 -0
- package/dist/server/collections/workflowTasks.d.ts +2 -1
- package/dist/server/collections/workflowTasks.js +12 -33
- package/dist/server/collections/workflowVersionStats.d.ts +11 -0
- package/dist/server/collections/workflowVersionStats.js +43 -0
- package/dist/server/collections/workflows.d.ts +2 -1
- package/dist/server/collections/workflows.js +12 -101
- package/dist/server/migrations/20250320223415-stats.d.ts +14 -0
- package/dist/server/migrations/20250320223415-stats.js +82 -0
- package/dist/server/migrations/20250409164913-remove-jobs-auto-increment.d.ts +14 -0
- package/dist/server/migrations/20250409164913-remove-jobs-auto-increment.js +57 -0
- package/dist/server/repositories/WorkflowRepository.js +3 -2
- package/dist/server/triggers/CollectionTrigger.js +3 -2
- package/dist/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.d.ts +5 -3
- package/dist/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.js +39 -36
- package/dist/server/triggers/ScheduleTrigger/StaticScheduleTrigger.d.ts +4 -2
- package/dist/server/triggers/ScheduleTrigger/StaticScheduleTrigger.js +26 -24
- package/dist/server/triggers/ScheduleTrigger/index.d.ts +2 -1
- package/dist/server/triggers/ScheduleTrigger/index.js +4 -8
- package/dist/server/triggers/index.d.ts +1 -1
- package/dist/server/types/Workflow.d.ts +0 -2
- package/dist/swagger/index.d.ts +0 -14
- package/dist/swagger/index.js +0 -14
- package/package.json +6 -4
- package/dist/client/4d75ef32f02d7285.js +0 -10
- package/dist/client/56ce448358002e64.js +0 -10
- package/dist/client/58bb427e05b600de.js +0 -10
- package/dist/client/739d458621edf81f.js +0 -10
- package/dist/client/nodes/output.d.ts +0 -31
package/dist/locale/en-US.json
CHANGED
|
@@ -1,22 +1,69 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Workflow": "Workflow",
|
|
3
3
|
"Execution history": "Execution history",
|
|
4
|
+
"Clear all executions": "Clear all executions",
|
|
5
|
+
"Clear executions will not reset executed count, and started executions will not be deleted, are you sure you want to delete them all?": "Clear executions will not reset executed count, and started executions will not be deleted, are you sure you want to delete them all?",
|
|
4
6
|
"Executed": "Executed",
|
|
7
|
+
"Sync": "Sync",
|
|
8
|
+
"Sync enabled status of all workflows from database": "Sync enabled status of all workflows from database",
|
|
5
9
|
"Trigger type": "Trigger type",
|
|
6
10
|
"Status": "Status",
|
|
7
11
|
"On": "On",
|
|
8
12
|
"Off": "Off",
|
|
13
|
+
"Category": "Category",
|
|
14
|
+
"Add category": "Add category",
|
|
15
|
+
"Edit category": "Edit category",
|
|
16
|
+
"Delete category": "Delete category",
|
|
9
17
|
"Version": "Version",
|
|
10
18
|
"Copy to new version": "Copy to new version",
|
|
11
19
|
"Duplicate": "Duplicate",
|
|
20
|
+
"Duplicate to new workflow": "Duplicate to new workflow",
|
|
21
|
+
"This is a main version, delete it will cause the whole workflow to be deleted (including all other revisions).": "This is a main version, delete it will cause the whole workflow to be deleted (including all other revisions).",
|
|
22
|
+
"Current version will be deleted (without affecting other versions).": "Current version will be deleted (without affecting other versions).",
|
|
23
|
+
"Execute manually": "Execute manually",
|
|
24
|
+
"The trigger is not configured correctly, please check the trigger configuration.": "The trigger is not configured correctly, please check the trigger configuration.",
|
|
25
|
+
"This type of trigger has not been supported to be executed manually.": "This type of trigger has not been supported to be executed manually.",
|
|
26
|
+
"Trigger variables need to be filled for executing.": "Trigger variables need to be filled for executing.",
|
|
27
|
+
"A new version will be created automatically after execution if current version is not executed.": "A new version will be created automatically after execution if current version is not executed.",
|
|
28
|
+
"This will perform all the actions configured in the workflow. Are you sure you want to continue?": "This will perform all the actions configured in the workflow. Are you sure you want to continue?",
|
|
29
|
+
"Automatically create a new version after execution": "Automatically create a new version after execution",
|
|
30
|
+
"Workflow executed, the result status is <1>{{statusText}}</1><2>View the execution</2>": "Workflow executed, the result status is <1>{{statusText}}</1><2>View the execution</2>",
|
|
12
31
|
"Loading": "Loading",
|
|
13
32
|
"Load failed": "Load failed",
|
|
33
|
+
"Use transaction": "Use transaction",
|
|
34
|
+
"Data operation nodes in workflow will run in a same transaction until any interruption. Any failure will cause data rollback, and will also rollback the history of the execution.": "Data operation nodes in workflow will run in a same transaction until any interruption. Any failure will cause data rollback, and will also rollback the history of the execution.",
|
|
35
|
+
"Auto delete history when execution is on end status": "Auto delete history when execution is on end status",
|
|
36
|
+
"Maximum number of cycling triggers": "Maximum number of cycling triggers",
|
|
37
|
+
"The triggers of same workflow by some node (create, update and sub-flow etc.) more than this number will be ignored. Large number may cause performance issues. Please use with caution.": "The triggers of same workflow by some node (create, update and sub-flow etc.) more than this number will be ignored. Large number may cause performance issues. Please use with caution.",
|
|
38
|
+
"Continue when disabled or upgraded": "Continue when disabled or upgraded",
|
|
39
|
+
"If checked, all nodes in-progress could continue to be processed in execution of disabled workflow. Otherwise, all nodes in-progress will be aborted automatically.": "If checked, all nodes in-progress could continue to be processed in execution of disabled workflow. Otherwise, all nodes in-progress will be aborted automatically.",
|
|
14
40
|
"Trigger": "Trigger",
|
|
41
|
+
"Unknown trigger": "Unknown trigger",
|
|
42
|
+
"Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.": "Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.",
|
|
15
43
|
"Trigger variables": "Trigger variables",
|
|
16
44
|
"Trigger data": "Trigger data",
|
|
17
45
|
"Trigger time": "Trigger time",
|
|
18
46
|
"Triggered at": "Triggered at",
|
|
47
|
+
"Execute mode": "Execute mode",
|
|
48
|
+
"Execute workflow asynchronously or synchronously based on trigger type, and could not be changed after created.": "Execute workflow asynchronously or synchronously based on trigger type, and could not be changed after created.",
|
|
49
|
+
"Asynchronously": "Asynchronously",
|
|
50
|
+
"Synchronously": "Synchronously",
|
|
51
|
+
"Will be executed in the background as a queued task.": "Will be executed in the background as a queued task.",
|
|
52
|
+
"For user actions that require immediate feedback. Can not use asynchronous nodes in such mode, and it is not recommended to perform time-consuming operations under synchronous mode.": "For user actions that require immediate feedback. Can not use asynchronous nodes in such mode, and it is not recommended to perform time-consuming operations under synchronous mode.",
|
|
53
|
+
"Go back": "Go back",
|
|
54
|
+
"Bind workflows": "Bind workflows",
|
|
55
|
+
"Support pre-action event (local mode), post-action event (local mode), and approval event here.": "Support pre-action event (local mode), post-action event (local mode), and approval event here.",
|
|
56
|
+
"Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".",
|
|
57
|
+
"\"Submit to workflow\" to \"Post-action event\" is deprecated, please use \"Custom action event\" instead.": "\"Submit to workflow\" to \"Post-action event\" is deprecated, please use \"Custom action event\" instead.",
|
|
58
|
+
"Workflow will be triggered before deleting succeeded (only supports pre-action event in local mode).": "Workflow will be triggered before deleting succeeded (only supports pre-action event in local mode).",
|
|
59
|
+
"Submit to workflow": "Submit to workflow",
|
|
60
|
+
"Add workflow": "Add workflow",
|
|
61
|
+
"Select workflow": "Select workflow",
|
|
62
|
+
"Trigger data context": "Trigger data context",
|
|
63
|
+
"Full form data": "Full form data",
|
|
64
|
+
"Select context": "Select context",
|
|
19
65
|
"Collection event": "Collection event",
|
|
66
|
+
"Triggered when data changes in the collection, such as after adding, updating, or deleting a record. Unlike \"Post-action event\", Collection event listens for data changes rather than HTTP requests. Unless you understand the exact meaning, it is recommended to use \"Post-action event\".": "Triggered when data changes in the collection, such as after adding, updating, or deleting a record. Unlike \"Post-action event\", Collection event listens for data changes rather than HTTP requests. Unless you understand the exact meaning, it is recommended to use \"Post-action event\".",
|
|
20
67
|
"Trigger on": "Trigger on",
|
|
21
68
|
"After record added": "After record added",
|
|
22
69
|
"After record updated": "After record updated",
|
|
@@ -25,7 +72,11 @@
|
|
|
25
72
|
"Changed fields": "Changed fields",
|
|
26
73
|
"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.": "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.",
|
|
27
74
|
"Only triggers when match conditions": "Only triggers when match conditions",
|
|
75
|
+
"Preload associations": "Preload associations",
|
|
76
|
+
"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.": "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.",
|
|
77
|
+
"Choose a record or primary key of a record in the collection to trigger.": "Choose a record or primary key of a record in the collection to trigger.",
|
|
28
78
|
"Schedule event": "Schedule event",
|
|
79
|
+
"Triggered according to preset time conditions. Suitable for one-time or periodic tasks, such as sending notifications and cleaning data on a schedule.": "Triggered according to preset time conditions. Suitable for one-time or periodic tasks, such as sending notifications and cleaning data on a schedule.",
|
|
29
80
|
"Trigger mode": "Trigger mode",
|
|
30
81
|
"Based on certain date": "Based on certain date",
|
|
31
82
|
"Based on date field of collection": "Based on date field of collection",
|
|
@@ -52,49 +103,110 @@
|
|
|
52
103
|
"By field": "By field",
|
|
53
104
|
"By custom date": "By custom date",
|
|
54
105
|
"Advanced": "Advanced",
|
|
106
|
+
"Execute on": "Execute on",
|
|
107
|
+
"Current time": "Current time",
|
|
55
108
|
"End": "End",
|
|
56
109
|
"Node result": "Node result",
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"Boolean": "Boolean",
|
|
60
|
-
"String": "String",
|
|
110
|
+
"Variable key of node": "Variable key of node",
|
|
111
|
+
"Scope variables": "Scope variables",
|
|
61
112
|
"Operator": "Operator",
|
|
62
|
-
"
|
|
113
|
+
"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.": "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.",
|
|
63
114
|
"String operation": "String operation",
|
|
115
|
+
"System variables": "System variables",
|
|
116
|
+
"System time": "System time",
|
|
117
|
+
"Date variables": "Date variables",
|
|
118
|
+
"Date range": "Date range",
|
|
64
119
|
"Executed at": "Executed at",
|
|
65
120
|
"Queueing": "Queueing",
|
|
66
121
|
"On going": "On going",
|
|
67
|
-
"
|
|
68
|
-
"Failed": "Failed",
|
|
122
|
+
"Resolved": "Resolved",
|
|
69
123
|
"Pending": "Pending",
|
|
124
|
+
"Failed": "Failed",
|
|
125
|
+
"Error": "Error",
|
|
126
|
+
"Aborted": "Aborted",
|
|
70
127
|
"Canceled": "Canceled",
|
|
128
|
+
"Rejected": "Rejected",
|
|
129
|
+
"Retry needed": "Retry needed",
|
|
130
|
+
"Completed": "Completed",
|
|
131
|
+
"All": "All",
|
|
132
|
+
"View result": "View result",
|
|
133
|
+
"Triggered but still waiting in queue to execute.": "Triggered but still waiting in queue to execute.",
|
|
134
|
+
"Started and executing, maybe waiting for an async callback (manual, delay etc.).": "Started and executing, maybe waiting for an async callback (manual, delay etc.).",
|
|
135
|
+
"Successfully finished.": "Successfully finished.",
|
|
136
|
+
"Failed to satisfy node configurations.": "Failed to satisfy node configurations.",
|
|
137
|
+
"Some node meets error.": "Some node meets error.",
|
|
138
|
+
"Running of some node was aborted by program flow.": "Running of some node was aborted by program flow.",
|
|
139
|
+
"Manually canceled whole execution when waiting.": "Manually canceled whole execution when waiting.",
|
|
140
|
+
"Rejected from a manual node.": "Rejected from a manual node.",
|
|
141
|
+
"General failed but should do another try.": "General failed but should do another try.",
|
|
142
|
+
"Cancel the execution": "Cancel the execution",
|
|
143
|
+
"Are you sure you want to cancel the execution?": "Are you sure you want to cancel the execution?",
|
|
144
|
+
"Operations": "Operations",
|
|
71
145
|
"This node contains branches, deleting will also be preformed to them, are you sure?": "This node contains branches, deleting will also be preformed to them, are you sure?",
|
|
72
146
|
"Control": "Control",
|
|
73
147
|
"Collection operations": "Collection operations",
|
|
148
|
+
"Manual": "Manual",
|
|
74
149
|
"Extended types": "Extended types",
|
|
75
150
|
"Node type": "Node type",
|
|
151
|
+
"Unknown node": "Unknown node",
|
|
152
|
+
"Node with unknown type will cause error. Please delete it or check plugin which provide this type.": "Node with unknown type will cause error. Please delete it or check plugin which provide this type.",
|
|
76
153
|
"Calculation": "Calculation",
|
|
77
|
-
"
|
|
154
|
+
"Calculation engine": "Calculation engine",
|
|
155
|
+
"Basic": "Basic",
|
|
156
|
+
"Calculation expression": "Calculation expression",
|
|
157
|
+
"Expression syntax error": "Expression syntax error",
|
|
158
|
+
"Syntax references: ": "Syntax references: ",
|
|
78
159
|
"Calculation result": "Calculation result",
|
|
79
160
|
"True": "True",
|
|
80
161
|
"False": "False",
|
|
81
162
|
"concat": "concat",
|
|
82
163
|
"Condition": "Condition",
|
|
164
|
+
"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\".": "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\".",
|
|
83
165
|
"Mode": "Mode",
|
|
84
166
|
"Continue when \"Yes\"": "Continue when \"Yes\"",
|
|
85
167
|
"Branch into \"Yes\" and \"No\"": "Branch into \"Yes\" and \"No\"",
|
|
86
|
-
"
|
|
168
|
+
"Condition expression": "Condition expression",
|
|
169
|
+
"Inside of \"Yes\" branch": "Inside of \"Yes\" branch",
|
|
170
|
+
"Inside of \"No\" branch": "Inside of \"No\" branch",
|
|
87
171
|
"Create record": "Create record",
|
|
172
|
+
"Add new record to a collection. You can use variables from upstream nodes to assign values to fields.": "Add new record to a collection. You can use variables from upstream nodes to assign values to fields.",
|
|
88
173
|
"Update record": "Update record",
|
|
174
|
+
"Update records of a collection. You can use variables from upstream nodes as query conditions and field values.": "Update records of a collection. You can use variables from upstream nodes as query conditions and field values.",
|
|
175
|
+
"Update mode": "Update mode",
|
|
176
|
+
"Update in a batch": "Update in a batch",
|
|
177
|
+
"Update one by one": "Update one by one",
|
|
178
|
+
"Update all eligible data at one time, which has better performance when the amount of data is large. But association fields are not supported (unless foreign key in current collection), and the updated data will not trigger other workflows.": "Update all eligible data at one time, which has better performance when the amount of data is large. But association fields are not supported (unless foreign key in current collection), and the updated data will not trigger other workflows.",
|
|
179
|
+
"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.": "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.",
|
|
89
180
|
"Query record": "Query record",
|
|
181
|
+
"Query records from a collection. You can use variables from upstream nodes as query conditions.": "Query records from a collection. You can use variables from upstream nodes as query conditions.",
|
|
182
|
+
"Allow multiple records as result": "Allow multiple records as result",
|
|
183
|
+
"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.": "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.",
|
|
184
|
+
"Result type": "Result type",
|
|
185
|
+
"Single record": "Single record",
|
|
90
186
|
"Multiple records": "Multiple records",
|
|
187
|
+
"The result will be an object of the first matching record only, or null if no matched record.": "The result will be an object of the first matching record only, or null if no matched record.",
|
|
188
|
+
"The result will be an array containing matched records, or an empty one if no matching records. This can be used to be processed in a loop node.": "The result will be an array containing matched records, or an empty one if no matching records. This can be used to be processed in a loop node.",
|
|
189
|
+
"Exit when query result is null": "Exit when query result is null",
|
|
91
190
|
"Please select collection first": "Please select collection first",
|
|
92
191
|
"Only update records matching conditions": "Only update records matching conditions",
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
192
|
+
"Please add at least one condition": "Please add at least one condition",
|
|
193
|
+
"Unassigned fields will be set to default values, and those without default values will be set to null.": "Unassigned fields will be set to default values, and those without default values will be set to null.",
|
|
194
|
+
"Delete record": "Delete record",
|
|
195
|
+
"Delete records of a collection. Could use variables in workflow context as filter. All records match the filter will be deleted.": "Delete records of a collection. Could use variables in workflow context as filter. All records match the filter will be deleted.",
|
|
196
|
+
"Executed workflow cannot be modified. Could be copied to a new version to modify.": "Executed workflow cannot be modified. Could be copied to a new version to modify.",
|
|
96
197
|
"Can not delete": "Can not delete",
|
|
97
198
|
"The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.": "The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.",
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
|
|
199
|
+
"End process": "End process",
|
|
200
|
+
"End the process immediately, with set status.": "End the process immediately, with set status.",
|
|
201
|
+
"End status": "End status",
|
|
202
|
+
"Succeeded": "Succeeded",
|
|
203
|
+
"Test run": "Test run",
|
|
204
|
+
"Test run will do the actual data manipulating or API calling, please use with caution.": "Test run will do the actual data manipulating or API calling, please use with caution.",
|
|
205
|
+
"No variable": "No variable",
|
|
206
|
+
"Add node": "Add node",
|
|
207
|
+
"Move all downstream nodes to": "Move all downstream nodes to",
|
|
208
|
+
"After end of branches": "After end of branches",
|
|
209
|
+
"Inside of branch": "Inside of branch",
|
|
210
|
+
"Workflow todos": "Workflow todos",
|
|
211
|
+
"New version enabled": "New version enabled"
|
|
212
|
+
}
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -11,11 +11,16 @@
|
|
|
11
11
|
"Status": "状态",
|
|
12
12
|
"On": "启用",
|
|
13
13
|
"Off": "停用",
|
|
14
|
+
"Category": "分类",
|
|
15
|
+
"Add category": "添加分类",
|
|
16
|
+
"Edit category": "编辑分类",
|
|
17
|
+
"Delete category": "删除分类",
|
|
14
18
|
"Version": "版本",
|
|
15
19
|
"Copy to new version": "复制到新版本",
|
|
16
20
|
"Duplicate": "复制",
|
|
17
21
|
"Duplicate to new workflow": "复制为新工作流",
|
|
18
|
-
"
|
|
22
|
+
"This is a main version, delete it will cause the whole workflow to be deleted (including all other revisions).": "当前是主版本,删除将导致整个流程被删除(包括所有其他版本)。",
|
|
23
|
+
"Current version will be deleted (without affecting other versions).": "当前版本将被删除(不影响其他版本)。",
|
|
19
24
|
"Execute manually": "手动执行",
|
|
20
25
|
"The trigger is not configured correctly, please check the trigger configuration.": "触发器配置不正确,请检查触发器配置。",
|
|
21
26
|
"This type of trigger has not been supported to be executed manually.": "该类型的触发器暂未支持手动执行。",
|
|
@@ -33,6 +38,10 @@
|
|
|
33
38
|
"Auto delete history when execution is on end status": "执行结束后自动删除对应状态的历史记录",
|
|
34
39
|
"Maximum number of cycling triggers": "最大循环触发次数",
|
|
35
40
|
"The triggers of same workflow by some node (create, update and sub-flow etc.) more than this number will be ignored. Large number may cause performance issues. Please use with caution.": "由某个节点(创建、更新和子流程等)触发同一个工作流超过这个次数时将被忽略。设置过高的次数可能会导致性能问题,请谨慎使用。",
|
|
41
|
+
|
|
42
|
+
"Continue when disabled or upgraded": "工作流被禁用或升级到新版本继续处理在途流程",
|
|
43
|
+
"If checked, all nodes in-progress could continue to be processed in execution of disabled workflow. Otherwise, all nodes in-progress will be aborted automatically.": "如果选中,在途的节点在禁用或升级到新版本的工作流中将继续处理。否则将自动取消执行。",
|
|
44
|
+
|
|
36
45
|
"Trigger": "触发器",
|
|
37
46
|
"Unknown trigger": "未知触发器",
|
|
38
47
|
"Workflow with unknown type will cause error. Please delete it or check plugin which provide this type.": "未知类型的工作流会导致错误,请删除或检查提供该类型的插件。",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"cron-parser","version":"4.4.0","description":"Node.js library for parsing crontab instructions","main":"lib/parser.js","types":"index.d.ts","typesVersions":{"<4.1":{"*":["types/ts3/*"]}},"directories":{"test":"test"},"scripts":{"test:tsd":"tsd","test:unit":"TZ=UTC tap ./test/*.js","test:cover":"TZ=UTC tap --coverage-report=html ./test/*.js","lint":"eslint .","lint:fix":"eslint --fix .","test":"npm run lint && npm run test:unit && npm run test:tsd"},"repository":{"type":"git","url":"https://github.com/harrisiirak/cron-parser.git"},"keywords":["cron","crontab","parser"],"author":"Harri Siirak","contributors":["Nicholas Clawson","Daniel Prentis <daniel@salsitasoft.com>","Renault John Lecoultre","Richard Astbury <richard.astbury@gmail.com>","Meaglin Wasabi <Meaglin.wasabi@gmail.com>","Mike Kusold <hello@mikekusold.com>","Alex Kit <alex.kit@atmajs.com>","Santiago Gimeno <santiago.gimeno@gmail.com>","Daniel <darc.tec@gmail.com>","Christian Steininger <christian.steininger.cs@gmail.com>","Mykola Piskovyi <m.piskovyi@gmail.com>","Brian Vaughn <brian.david.vaughn@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Yasuhiroki <yasuhiroki.duck@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Brendan Warkentin <faazshift@gmail.com>","Charlie Fish <fishcharlie.code@gmail.com>","Ian Graves <ian+diskimage@iangrav.es>","Andy Thompson <me@andytson.com>","Regev Brody <regevbr@gmail.com>"],"license":"MIT","dependencies":{"luxon":"^1.28.0"},"devDependencies":{"eslint":"^8.2.0","sinon":"^10.0.0","tap":"^16.0.1","tsd":"^0.19.0"},"engines":{"node":">=0.8"},"browser":{"fs":false},"tap":{"check-coverage":false},"tsd":{"directory":"test","compilerOptions":{"lib":["es2017","dom"]}},"_lastModified":"2025-
|
|
1
|
+
{"name":"cron-parser","version":"4.4.0","description":"Node.js library for parsing crontab instructions","main":"lib/parser.js","types":"index.d.ts","typesVersions":{"<4.1":{"*":["types/ts3/*"]}},"directories":{"test":"test"},"scripts":{"test:tsd":"tsd","test:unit":"TZ=UTC tap ./test/*.js","test:cover":"TZ=UTC tap --coverage-report=html ./test/*.js","lint":"eslint .","lint:fix":"eslint --fix .","test":"npm run lint && npm run test:unit && npm run test:tsd"},"repository":{"type":"git","url":"https://github.com/harrisiirak/cron-parser.git"},"keywords":["cron","crontab","parser"],"author":"Harri Siirak","contributors":["Nicholas Clawson","Daniel Prentis <daniel@salsitasoft.com>","Renault John Lecoultre","Richard Astbury <richard.astbury@gmail.com>","Meaglin Wasabi <Meaglin.wasabi@gmail.com>","Mike Kusold <hello@mikekusold.com>","Alex Kit <alex.kit@atmajs.com>","Santiago Gimeno <santiago.gimeno@gmail.com>","Daniel <darc.tec@gmail.com>","Christian Steininger <christian.steininger.cs@gmail.com>","Mykola Piskovyi <m.piskovyi@gmail.com>","Brian Vaughn <brian.david.vaughn@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Yasuhiroki <yasuhiroki.duck@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Brendan Warkentin <faazshift@gmail.com>","Charlie Fish <fishcharlie.code@gmail.com>","Ian Graves <ian+diskimage@iangrav.es>","Andy Thompson <me@andytson.com>","Regev Brody <regevbr@gmail.com>"],"license":"MIT","dependencies":{"luxon":"^1.28.0"},"devDependencies":{"eslint":"^8.2.0","sinon":"^10.0.0","tap":"^16.0.1","tsd":"^0.19.0"},"engines":{"node":">=0.8"},"browser":{"fs":false},"tap":{"check-coverage":false},"tsd":{"directory":"test","compilerOptions":{"lib":["es2017","dom"]}},"_lastModified":"2025-06-03T16:34:01.165Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"lru-cache","description":"A cache object that deletes the least-recently-used items.","version":"8.0.5","author":"Isaac Z. Schlueter <i@izs.me>","keywords":["mru","lru","cache"],"sideEffects":false,"scripts":{"build":"npm run prepare","preprepare":"rm -rf dist","prepare":"tsc -p tsconfig.json && tsc -p tsconfig-esm.json","postprepare":"bash fixup.sh","pretest":"npm run prepare","presnap":"npm run prepare","test":"c8 tap","snap":"c8 tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","format":"prettier --write .","typedoc":"typedoc --tsconfig tsconfig-esm.json ./src/*.ts","benchmark-results-typedoc":"bash scripts/benchmark-results-typedoc.sh","prebenchmark":"npm run prepare","benchmark":"make -C benchmark","preprofile":"npm run prepare","profile":"make -C benchmark profile"},"main":"./dist/cjs/index-cjs.js","module":"./dist/mjs/index.js","types":"./dist/mjs/index.d.ts","exports":{"./min":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.min.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.min.js"}},".":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index-cjs.js"}}},"repository":"git://github.com/isaacs/node-lru-cache.git","devDependencies":{"@size-limit/preset-small-lib":"^7.0.8","@types/node":"^17.0.31","@types/tap":"^15.0.6","benchmark":"^2.1.4","c8":"^7.11.2","clock-mock":"^1.0.6","esbuild":"^0.17.11","eslint-config-prettier":"^8.5.0","marked":"^4.2.12","mkdirp":"^2.1.5","prettier":"^2.6.2","size-limit":"^7.0.8","tap":"^16.3.4","ts-node":"^10.7.0","tslib":"^2.4.0","typedoc":"^0.23.24","typescript":"^4.6.4"},"license":"ISC","files":["dist"],"engines":{"node":">=16.14"},"prettier":{"semi":false,"printWidth":70,"tabWidth":2,"useTabs":false,"singleQuote":true,"jsxSingleQuote":false,"bracketSameLine":true,"arrowParens":"avoid","endOfLine":"lf"},"tap":{"coverage":false,"node-arg":["--expose-gc","--no-warnings","--loader","ts-node/esm"],"ts":false},"size-limit":[{"path":"./dist/mjs/index.js"}],"_lastModified":"2025-
|
|
1
|
+
{"name":"lru-cache","description":"A cache object that deletes the least-recently-used items.","version":"8.0.5","author":"Isaac Z. Schlueter <i@izs.me>","keywords":["mru","lru","cache"],"sideEffects":false,"scripts":{"build":"npm run prepare","preprepare":"rm -rf dist","prepare":"tsc -p tsconfig.json && tsc -p tsconfig-esm.json","postprepare":"bash fixup.sh","pretest":"npm run prepare","presnap":"npm run prepare","test":"c8 tap","snap":"c8 tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","format":"prettier --write .","typedoc":"typedoc --tsconfig tsconfig-esm.json ./src/*.ts","benchmark-results-typedoc":"bash scripts/benchmark-results-typedoc.sh","prebenchmark":"npm run prepare","benchmark":"make -C benchmark","preprofile":"npm run prepare","profile":"make -C benchmark profile"},"main":"./dist/cjs/index-cjs.js","module":"./dist/mjs/index.js","types":"./dist/mjs/index.d.ts","exports":{"./min":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.min.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.min.js"}},".":{"import":{"types":"./dist/mjs/index.d.ts","default":"./dist/mjs/index.js"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index-cjs.js"}}},"repository":"git://github.com/isaacs/node-lru-cache.git","devDependencies":{"@size-limit/preset-small-lib":"^7.0.8","@types/node":"^17.0.31","@types/tap":"^15.0.6","benchmark":"^2.1.4","c8":"^7.11.2","clock-mock":"^1.0.6","esbuild":"^0.17.11","eslint-config-prettier":"^8.5.0","marked":"^4.2.12","mkdirp":"^2.1.5","prettier":"^2.6.2","size-limit":"^7.0.8","tap":"^16.3.4","ts-node":"^10.7.0","tslib":"^2.4.0","typedoc":"^0.23.24","typescript":"^4.6.4"},"license":"ISC","files":["dist"],"engines":{"node":">=16.14"},"prettier":{"semi":false,"printWidth":70,"tabWidth":2,"useTabs":false,"singleQuote":true,"jsxSingleQuote":false,"bracketSameLine":true,"arrowParens":"avoid","endOfLine":"lf"},"tap":{"coverage":false,"node-arg":["--expose-gc","--no-warnings","--loader","ts-node/esm"],"ts":false},"size-limit":[{"path":"./dist/mjs/index.js"}],"_lastModified":"2025-06-03T16:34:00.817Z"}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2020 Utkarsh Srivastava
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
export interface SnowflakeOpts {
|
|
5
|
+
custom_epoch?: number;
|
|
6
|
+
instance_id?: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
*/
|
|
12
|
+
export class Snowflake {
|
|
13
|
+
free(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Constructs a Snowflake object which stores method for generation
|
|
16
|
+
* of a unique 64 bit time sortable ID
|
|
17
|
+
* @param {SnowflakeOpts | undefined} opts
|
|
18
|
+
*/
|
|
19
|
+
constructor(opts?: SnowflakeOpts);
|
|
20
|
+
/**
|
|
21
|
+
* getUniqueID generates a 64 bit unique ID
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This method is blocking in nature, the function also
|
|
24
|
+
* has theorotical limit of generating 1,024,000 IDs/sec
|
|
25
|
+
* @returns {BigInt}
|
|
26
|
+
*/
|
|
27
|
+
getUniqueID(): BigInt;
|
|
28
|
+
/**
|
|
29
|
+
* idFromTimestamp takes a UNIX timestamp without any offset
|
|
30
|
+
* and returns an ID that has timestamp set to the given timestamp
|
|
31
|
+
* @param {number} timestamp
|
|
32
|
+
* @returns {BigInt}
|
|
33
|
+
*/
|
|
34
|
+
idFromTimestamp(timestamp: number): BigInt;
|
|
35
|
+
/**
|
|
36
|
+
* instanceID returns the current node id
|
|
37
|
+
* @returns {number}
|
|
38
|
+
*/
|
|
39
|
+
instanceID(): number;
|
|
40
|
+
/**
|
|
41
|
+
* customEpoch returns the current custom epoch
|
|
42
|
+
* @returns {number}
|
|
43
|
+
*/
|
|
44
|
+
customEpoch(): number;
|
|
45
|
+
/**
|
|
46
|
+
* timestampFromID takes a unique ID and returns the timestamp
|
|
47
|
+
* when the Unique ID was created
|
|
48
|
+
* @param {BigInt} unique_id
|
|
49
|
+
* @param {number} epoch_offset
|
|
50
|
+
* @returns {number}
|
|
51
|
+
*/
|
|
52
|
+
static timestampFromID(unique_id: BigInt, epoch_offset: number): number;
|
|
53
|
+
/**
|
|
54
|
+
* instanceIDFromID takes a unique ID and returns the instance
|
|
55
|
+
* ID where the unique ID was created
|
|
56
|
+
*
|
|
57
|
+
* NOTE: The unique ID could be created on ANY instance
|
|
58
|
+
* @param {BigInt} unique_id
|
|
59
|
+
* @returns {number}
|
|
60
|
+
*/
|
|
61
|
+
static instanceIDFromID(unique_id: BigInt): number;
|
|
62
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){var e={363:function(e,t,n){let r={};r["__wbindgen_placeholder__"]=e.exports;let o;const{TextDecoder:i,TextEncoder:a}=n(837);let s=new i("utf-8",{ignoreBOM:true,fatal:true});s.decode();let _=null;function getUint8Memory0(){if(_===null||_.buffer!==o.memory.buffer){_=new Uint8Array(o.memory.buffer)}return _}function getStringFromWasm0(e,t){return s.decode(getUint8Memory0().subarray(e,e+t))}const c=new Array(32).fill(undefined);c.push(undefined,null,true,false);let u=c.length;function addHeapObject(e){if(u===c.length)c.push(c.length+1);const t=u;u=c[t];c[t]=e;return t}function getObject(e){return c[e]}function dropObject(e){if(e<36)return;c[e]=u;u=e}function takeObject(e){const t=getObject(e);dropObject(e);return t}let f=0;let d=new a("utf-8");const l=typeof d.encodeInto==="function"?function(e,t){return d.encodeInto(e,t)}:function(e,t){const n=d.encode(e);t.set(n);return{read:e.length,written:n.length}};function passStringToWasm0(e,t,n){if(n===undefined){const n=d.encode(e);const r=t(n.length);getUint8Memory0().subarray(r,r+n.length).set(n);f=n.length;return r}let r=e.length;let o=t(r);const i=getUint8Memory0();let a=0;for(;a<r;a++){const t=e.charCodeAt(a);if(t>127)break;i[o+a]=t}if(a!==r){if(a!==0){e=e.slice(a)}o=n(o,r,r=a+e.length*3);const t=getUint8Memory0().subarray(o+a,o+r);const i=l(e,t);a+=i.written}f=a;return o}let w=null;function getInt32Memory0(){if(w===null||w.buffer!==o.memory.buffer){w=new Int32Array(o.memory.buffer)}return w}function isLikeNone(e){return e===undefined||e===null}const g=new Uint32Array(2);const m=new BigUint64Array(g.buffer);function notDefined(e){return()=>{throw new Error(`${e} is not defined`)}}class Snowflake{static __wrap(e){const t=Object.create(Snowflake.prototype);t.ptr=e;return t}__destroy_into_raw(){const e=this.ptr;this.ptr=0;return e}free(){const e=this.__destroy_into_raw();o.__wbg_snowflake_free(e)}constructor(e){try{const i=o.__wbindgen_add_to_stack_pointer(-16);o.snowflake_new(i,isLikeNone(e)?0:addHeapObject(e));var t=getInt32Memory0()[i/4+0];var n=getInt32Memory0()[i/4+1];var r=getInt32Memory0()[i/4+2];if(r){throw takeObject(n)}return Snowflake.__wrap(t)}finally{o.__wbindgen_add_to_stack_pointer(16)}}getUniqueID(){try{const n=o.__wbindgen_add_to_stack_pointer(-16);o.snowflake_getUniqueID(n,this.ptr);var e=getInt32Memory0()[n/4+0];var t=getInt32Memory0()[n/4+1];g[0]=e;g[1]=t;const r=m[0];return r}finally{o.__wbindgen_add_to_stack_pointer(16)}}idFromTimestamp(e){try{const r=o.__wbindgen_add_to_stack_pointer(-16);o.snowflake_idFromTimestamp(r,this.ptr,e);var t=getInt32Memory0()[r/4+0];var n=getInt32Memory0()[r/4+1];g[0]=t;g[1]=n;const i=m[0];return i}finally{o.__wbindgen_add_to_stack_pointer(16)}}instanceID(){var e=o.snowflake_instanceID(this.ptr);return e}customEpoch(){var e=o.snowflake_customEpoch(this.ptr);return e}static timestampFromID(e,t){m[0]=e;const n=g[0];const r=g[1];var i=o.snowflake_timestampFromID(n,r,t);return i}static instanceIDFromID(e){m[0]=e;const t=g[0];const n=g[1];var r=o.snowflake_instanceIDFromID(t,n);return r}}e.exports.Snowflake=Snowflake;e.exports.__wbindgen_string_new=function(e,t){var n=getStringFromWasm0(e,t);return addHeapObject(n)};e.exports.__wbindgen_object_drop_ref=function(e){takeObject(e)};e.exports.__wbindgen_json_serialize=function(e,t){const n=getObject(t);var r=JSON.stringify(n===undefined?null:n);var i=passStringToWasm0(r,o.__wbindgen_malloc,o.__wbindgen_realloc);var a=f;getInt32Memory0()[e/4+1]=a;getInt32Memory0()[e/4+0]=i};e.exports.__wbg_now_e6c39c10a5e8aec7=function(){var e=Date.now();return e};e.exports.__wbg_random_7b8246250fd79f60=typeof Math.random=="function"?Math.random:notDefined("Math.random");e.exports.__wbindgen_throw=function(e,t){throw new Error(getStringFromWasm0(e,t))};const p=n.ab+"nodejs_snowflake_bg.wasm";const b=n(147).readFileSync(n.ab+"nodejs_snowflake_bg.wasm");const y=new WebAssembly.Module(b);const k=new WebAssembly.Instance(y,r);o=k.exports;e.exports.__wasm=o},147:function(e){"use strict";e.exports=require("fs")},837:function(e){"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(n){var r=t[n];if(r!==undefined){return r.exports}var o=t[n]={exports:{}};var i=true;try{e[n](o,o.exports,__nccwpck_require__);i=false}finally{if(i)delete t[n]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(363);module.exports=n})();
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"nodejs-snowflake","collaborators":["Utkarsh Srivastava <utkarsh@sagacious.dev>"],"description":"Generate time sortable 64 bits unique ids for distributed systems (inspired from twitter snowflake)","version":"2.0.1","license":"Apache 2.0","repository":{"type":"git","url":"https://github.com/utkarsh-pro/nodejs-snowflake.git"},"files":["nodejs_snowflake_bg.wasm","nodejs_snowflake.js","nodejs_snowflake.d.ts"],"main":"nodejs_snowflake.js","types":"nodejs_snowflake.d.ts","_lastModified":"2025-06-03T16:34:00.613Z"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export default class Dispatcher {
|
|
10
|
+
constructor();
|
|
11
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var Dispatcher_exports = {};
|
|
28
|
+
__export(Dispatcher_exports, {
|
|
29
|
+
default: () => Dispatcher
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(Dispatcher_exports);
|
|
32
|
+
class Dispatcher {
|
|
33
|
+
constructor() {
|
|
34
|
+
}
|
|
35
|
+
}
|