@venturialstd/workflow 0.1.146 → 0.1.148
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/README.md +238 -238
- package/dist/constants/workflow.constant.d.ts +5 -0
- package/dist/constants/workflow.constant.d.ts.map +1 -1
- package/dist/constants/workflow.constant.js +7 -1
- package/dist/constants/workflow.constant.js.map +1 -1
- package/dist/entities/workflow-user.entity.d.ts +13 -0
- package/dist/entities/workflow-user.entity.d.ts.map +1 -0
- package/dist/entities/workflow-user.entity.js +87 -0
- package/dist/entities/workflow-user.entity.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/modules/vcard/services/get-vcard.service.d.ts.map +1 -1
- package/dist/modules/vcard/services/get-vcard.service.js.map +1 -1
- package/dist/services/workflow-user.service.d.ts +20 -0
- package/dist/services/workflow-user.service.d.ts.map +1 -0
- package/dist/services/workflow-user.service.js +111 -0
- package/dist/services/workflow-user.service.js.map +1 -0
- package/dist/workflow-core.module.d.ts.map +1 -1
- package/dist/workflow-core.module.js +5 -0
- package/dist/workflow-core.module.js.map +1 -1
- package/package.json +108 -108
package/README.md
CHANGED
|
@@ -1,238 +1,238 @@
|
|
|
1
|
-
# Workflow Module
|
|
2
|
-
|
|
3
|
-
A comprehensive workflow management module for Venturial that handles workflow creation, execution, and session management.
|
|
4
|
-
|
|
5
|
-
## Features
|
|
6
|
-
|
|
7
|
-
- **Workflow Management**: Create, update, and manage workflows with nodes and edges
|
|
8
|
-
- **Node Types**: Support for multiple node types (Chatbot, AI, Conditional, Twilio)
|
|
9
|
-
- **Execution Tracking**: Track workflow executions with status and data
|
|
10
|
-
- **Session Management**: Persistent sessions for multi-step workflows
|
|
11
|
-
- **Execution Modes**: Support for single-run and persistent session workflows
|
|
12
|
-
|
|
13
|
-
## Installation
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
npm install @venturialstd/workflow
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Entities
|
|
20
|
-
|
|
21
|
-
### Workflow
|
|
22
|
-
Main workflow entity containing:
|
|
23
|
-
- `name`: Workflow name
|
|
24
|
-
- `active`: Whether the workflow is active
|
|
25
|
-
- `executionMode`: `single` or `persistent`
|
|
26
|
-
- `status`: `active`, `inactive`, or `draft`
|
|
27
|
-
- Relationships to nodes, edges, executions, and sessions
|
|
28
|
-
|
|
29
|
-
### WorkflowNode
|
|
30
|
-
Represents a node in the workflow:
|
|
31
|
-
- `nodeId`: ReactFlow node identifier
|
|
32
|
-
- `type`: Node type (chatbot, ai, conditional, twilio)
|
|
33
|
-
- `actionType`: Specific trigger or action identifier
|
|
34
|
-
- `properties`: Node-specific properties (JSONB)
|
|
35
|
-
- `position`: Node position on canvas (x, y)
|
|
36
|
-
|
|
37
|
-
### WorkflowEdge
|
|
38
|
-
Represents connections between nodes:
|
|
39
|
-
- `edgeId`: ReactFlow edge identifier
|
|
40
|
-
- `source`: Source node ID
|
|
41
|
-
- `target`: Target node ID
|
|
42
|
-
- `sourceHandle` / `targetHandle`: Handle identifiers
|
|
43
|
-
|
|
44
|
-
### WorkflowExecution
|
|
45
|
-
Tracks individual workflow runs:
|
|
46
|
-
- `status`: `pending`, `running`, `completed`, `failed`, `cancelled`
|
|
47
|
-
- `sessionId`: Optional session ID for persistent workflows
|
|
48
|
-
- `currentNodeId`: Current node being executed
|
|
49
|
-
- `inputData` / `outputData` / `errorData`: Execution data
|
|
50
|
-
|
|
51
|
-
### WorkflowSession
|
|
52
|
-
Manages persistent workflow sessions:
|
|
53
|
-
- `userId`: Optional user identifier
|
|
54
|
-
- `externalId`: External identifier (phone, email, etc.)
|
|
55
|
-
- `currentNodeId`: Current node in session
|
|
56
|
-
- `context`: Session context/variables (JSONB)
|
|
57
|
-
- `history`: Array of node execution history
|
|
58
|
-
|
|
59
|
-
### WorkflowModuleCredential
|
|
60
|
-
Stores credentials for workflow modules:
|
|
61
|
-
- `moduleId`: Module identifier (e.g., 'twilio', 'ai')
|
|
62
|
-
- `name`: User-defined name for this credential set
|
|
63
|
-
- `credentials`: Encrypted credential values (JSONB)
|
|
64
|
-
- `organizationId`: Optional organization scope
|
|
65
|
-
- `userId`: Optional user scope
|
|
66
|
-
- `isActive`: Whether the credential is active
|
|
67
|
-
|
|
68
|
-
## Services
|
|
69
|
-
|
|
70
|
-
All services extend `TypeOrmCrudService` and provide CRUD operations via `@dataui/crud`.
|
|
71
|
-
|
|
72
|
-
### WorkflowService
|
|
73
|
-
- `getWorkflowsByOrganization(organizationId)`
|
|
74
|
-
- `getActiveWorkflows(organizationId?)`
|
|
75
|
-
- `activateWorkflow(workflowId)`
|
|
76
|
-
- `deactivateWorkflow(workflowId)`
|
|
77
|
-
- `getWorkflowWithNodesAndEdges(workflowId)`
|
|
78
|
-
|
|
79
|
-
### WorkflowNodeService
|
|
80
|
-
- `getNodesByWorkflowId(workflowId)`
|
|
81
|
-
- `getNodeByNodeId(workflowId, nodeId)`
|
|
82
|
-
- `updateNodeProperties(id, properties)`
|
|
83
|
-
- `updateNodePosition(id, position)`
|
|
84
|
-
|
|
85
|
-
### WorkflowEdgeService
|
|
86
|
-
- `getEdgesByWorkflowId(workflowId)`
|
|
87
|
-
- `getEdgeByEdgeId(workflowId, edgeId)`
|
|
88
|
-
- `getEdgesBySourceNode(workflowId, sourceNodeId)`
|
|
89
|
-
- `getEdgesByTargetNode(workflowId, targetNodeId)`
|
|
90
|
-
|
|
91
|
-
### WorkflowExecutionService
|
|
92
|
-
- `getExecutionsByWorkflowId(workflowId)`
|
|
93
|
-
- `getExecutionsBySessionId(sessionId)`
|
|
94
|
-
- `getActiveExecutions(workflowId?)`
|
|
95
|
-
- `startExecution(executionId)`
|
|
96
|
-
- `completeExecution(executionId, outputData?)`
|
|
97
|
-
- `failExecution(executionId, errorMessage, errorData?)`
|
|
98
|
-
- `updateCurrentNode(executionId, currentNodeId)`
|
|
99
|
-
|
|
100
|
-
### WorkflowSessionService
|
|
101
|
-
- `getSessionsByWorkflowId(workflowId)`
|
|
102
|
-
- `getActiveSessions(workflowId?)`
|
|
103
|
-
- `getSessionByExternalId(workflowId, externalId)`
|
|
104
|
-
- `getSessionByUserId(workflowId, userId)`
|
|
105
|
-
- `updateSessionContext(sessionId, context)`
|
|
106
|
-
- `addToSessionHistory(sessionId, nodeId, data?)`
|
|
107
|
-
- `deactivateSession(sessionId)`
|
|
108
|
-
|
|
109
|
-
### WorkflowModuleCredentialService
|
|
110
|
-
- `getCredentialsByModule(moduleId, organizationId?, userId?)`
|
|
111
|
-
- `getCredentialByName(moduleId, name, organizationId?, userId?)`
|
|
112
|
-
- `getActiveCredentials(moduleId, organizationId?)`
|
|
113
|
-
- `updateCredential(id, credentials)`
|
|
114
|
-
- `activateCredential(id)`
|
|
115
|
-
- `deactivateCredential(id)`
|
|
116
|
-
|
|
117
|
-
## Usage
|
|
118
|
-
|
|
119
|
-
### Import the Module
|
|
120
|
-
|
|
121
|
-
```typescript
|
|
122
|
-
import { WorkflowModule } from '@venturialstd/workflow';
|
|
123
|
-
|
|
124
|
-
@Module({
|
|
125
|
-
imports: [WorkflowModule],
|
|
126
|
-
})
|
|
127
|
-
export class AppModule {}
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
### Use Services
|
|
131
|
-
|
|
132
|
-
```typescript
|
|
133
|
-
import { WorkflowService } from '@venturialstd/workflow';
|
|
134
|
-
|
|
135
|
-
@Injectable()
|
|
136
|
-
export class MyService {
|
|
137
|
-
constructor(private workflowService: WorkflowService) {}
|
|
138
|
-
|
|
139
|
-
async createWorkflow(data: CreateWorkflowDto) {
|
|
140
|
-
return this.workflowService.create(data);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
## Constants
|
|
146
|
-
|
|
147
|
-
### Execution Modes
|
|
148
|
-
- `EXECUTION_MODE.SINGLE`: One-time execution
|
|
149
|
-
- `EXECUTION_MODE.PERSISTENT`: Maintains session state
|
|
150
|
-
|
|
151
|
-
### Node Types
|
|
152
|
-
- `NODE_TYPE.CHATBOT`
|
|
153
|
-
- `NODE_TYPE.AI`
|
|
154
|
-
- `NODE_TYPE.CONDITIONAL`
|
|
155
|
-
- `NODE_TYPE.TWILIO`
|
|
156
|
-
|
|
157
|
-
### Node Categories
|
|
158
|
-
- `NODE_CATEGORY.TRIGGER`
|
|
159
|
-
- `NODE_CATEGORY.ACTION`
|
|
160
|
-
|
|
161
|
-
### Workflow Status
|
|
162
|
-
- `WORKFLOW_STATUS.ACTIVE`
|
|
163
|
-
- `WORKFLOW_STATUS.INACTIVE`
|
|
164
|
-
- `WORKFLOW_STATUS.DRAFT`
|
|
165
|
-
|
|
166
|
-
### Execution Status
|
|
167
|
-
- `EXECUTION_STATUS.PENDING`
|
|
168
|
-
- `EXECUTION_STATUS.RUNNING`
|
|
169
|
-
- `EXECUTION_STATUS.COMPLETED`
|
|
170
|
-
- `EXECUTION_STATUS.FAILED`
|
|
171
|
-
- `EXECUTION_STATUS.CANCELLED`
|
|
172
|
-
|
|
173
|
-
## DTOs
|
|
174
|
-
|
|
175
|
-
All DTOs follow the `Create*Dto` pattern:
|
|
176
|
-
- `CreateWorkflowDto`
|
|
177
|
-
- `CreateWorkflowNodeDto`
|
|
178
|
-
- `CreateWorkflowEdgeDto`
|
|
179
|
-
- `CreateWorkflowExecutionDto`
|
|
180
|
-
- `CreateWorkflowSessionDto`
|
|
181
|
-
- `CreateWorkflowModuleCredentialDto`
|
|
182
|
-
- `UpdateWorkflowModuleCredentialDto`
|
|
183
|
-
|
|
184
|
-
## Database Schema
|
|
185
|
-
|
|
186
|
-
The module uses PostgreSQL with JSONB columns for flexible data storage:
|
|
187
|
-
- Node properties stored as JSONB
|
|
188
|
-
- Edge data stored as JSONB
|
|
189
|
-
- Execution input/output/error data as JSONB
|
|
190
|
-
- Session context and history as JSONB
|
|
191
|
-
- Module credentials stored as JSONB (should be encrypted at application level)
|
|
192
|
-
|
|
193
|
-
## Module Credentials
|
|
194
|
-
|
|
195
|
-
Each module can define required credential fields. Users can create multiple credential sets per module:
|
|
196
|
-
|
|
197
|
-
### Defining Credential Fields in Modules
|
|
198
|
-
|
|
199
|
-
Modules can define `credentialFields` in their module definition:
|
|
200
|
-
|
|
201
|
-
```typescript
|
|
202
|
-
credentialFields: [
|
|
203
|
-
{
|
|
204
|
-
id: 'apiKey',
|
|
205
|
-
name: 'API Key',
|
|
206
|
-
description: 'API key for the service',
|
|
207
|
-
type: FIELD_TYPE.STRING,
|
|
208
|
-
validation: { required: true },
|
|
209
|
-
sensitive: true, // Will be encrypted/masked
|
|
210
|
-
required: true,
|
|
211
|
-
},
|
|
212
|
-
]
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
### Managing Credentials
|
|
216
|
-
|
|
217
|
-
```typescript
|
|
218
|
-
// Create credentials for a module
|
|
219
|
-
const credential = await credentialService.create({
|
|
220
|
-
moduleId: 'twilio',
|
|
221
|
-
name: 'Production Twilio',
|
|
222
|
-
credentials: {
|
|
223
|
-
accountSid: 'AC...',
|
|
224
|
-
authToken: '...',
|
|
225
|
-
},
|
|
226
|
-
organizationId: 'org-123',
|
|
227
|
-
});
|
|
228
|
-
|
|
229
|
-
// Get all credentials for a module
|
|
230
|
-
const credentials = await credentialService.getCredentialsByModule(
|
|
231
|
-
'twilio',
|
|
232
|
-
'org-123'
|
|
233
|
-
);
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
## License
|
|
237
|
-
|
|
238
|
-
Part of the Venturial Core NPM package.
|
|
1
|
+
# Workflow Module
|
|
2
|
+
|
|
3
|
+
A comprehensive workflow management module for Venturial that handles workflow creation, execution, and session management.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Workflow Management**: Create, update, and manage workflows with nodes and edges
|
|
8
|
+
- **Node Types**: Support for multiple node types (Chatbot, AI, Conditional, Twilio)
|
|
9
|
+
- **Execution Tracking**: Track workflow executions with status and data
|
|
10
|
+
- **Session Management**: Persistent sessions for multi-step workflows
|
|
11
|
+
- **Execution Modes**: Support for single-run and persistent session workflows
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @venturialstd/workflow
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Entities
|
|
20
|
+
|
|
21
|
+
### Workflow
|
|
22
|
+
Main workflow entity containing:
|
|
23
|
+
- `name`: Workflow name
|
|
24
|
+
- `active`: Whether the workflow is active
|
|
25
|
+
- `executionMode`: `single` or `persistent`
|
|
26
|
+
- `status`: `active`, `inactive`, or `draft`
|
|
27
|
+
- Relationships to nodes, edges, executions, and sessions
|
|
28
|
+
|
|
29
|
+
### WorkflowNode
|
|
30
|
+
Represents a node in the workflow:
|
|
31
|
+
- `nodeId`: ReactFlow node identifier
|
|
32
|
+
- `type`: Node type (chatbot, ai, conditional, twilio)
|
|
33
|
+
- `actionType`: Specific trigger or action identifier
|
|
34
|
+
- `properties`: Node-specific properties (JSONB)
|
|
35
|
+
- `position`: Node position on canvas (x, y)
|
|
36
|
+
|
|
37
|
+
### WorkflowEdge
|
|
38
|
+
Represents connections between nodes:
|
|
39
|
+
- `edgeId`: ReactFlow edge identifier
|
|
40
|
+
- `source`: Source node ID
|
|
41
|
+
- `target`: Target node ID
|
|
42
|
+
- `sourceHandle` / `targetHandle`: Handle identifiers
|
|
43
|
+
|
|
44
|
+
### WorkflowExecution
|
|
45
|
+
Tracks individual workflow runs:
|
|
46
|
+
- `status`: `pending`, `running`, `completed`, `failed`, `cancelled`
|
|
47
|
+
- `sessionId`: Optional session ID for persistent workflows
|
|
48
|
+
- `currentNodeId`: Current node being executed
|
|
49
|
+
- `inputData` / `outputData` / `errorData`: Execution data
|
|
50
|
+
|
|
51
|
+
### WorkflowSession
|
|
52
|
+
Manages persistent workflow sessions:
|
|
53
|
+
- `userId`: Optional user identifier
|
|
54
|
+
- `externalId`: External identifier (phone, email, etc.)
|
|
55
|
+
- `currentNodeId`: Current node in session
|
|
56
|
+
- `context`: Session context/variables (JSONB)
|
|
57
|
+
- `history`: Array of node execution history
|
|
58
|
+
|
|
59
|
+
### WorkflowModuleCredential
|
|
60
|
+
Stores credentials for workflow modules:
|
|
61
|
+
- `moduleId`: Module identifier (e.g., 'twilio', 'ai')
|
|
62
|
+
- `name`: User-defined name for this credential set
|
|
63
|
+
- `credentials`: Encrypted credential values (JSONB)
|
|
64
|
+
- `organizationId`: Optional organization scope
|
|
65
|
+
- `userId`: Optional user scope
|
|
66
|
+
- `isActive`: Whether the credential is active
|
|
67
|
+
|
|
68
|
+
## Services
|
|
69
|
+
|
|
70
|
+
All services extend `TypeOrmCrudService` and provide CRUD operations via `@dataui/crud`.
|
|
71
|
+
|
|
72
|
+
### WorkflowService
|
|
73
|
+
- `getWorkflowsByOrganization(organizationId)`
|
|
74
|
+
- `getActiveWorkflows(organizationId?)`
|
|
75
|
+
- `activateWorkflow(workflowId)`
|
|
76
|
+
- `deactivateWorkflow(workflowId)`
|
|
77
|
+
- `getWorkflowWithNodesAndEdges(workflowId)`
|
|
78
|
+
|
|
79
|
+
### WorkflowNodeService
|
|
80
|
+
- `getNodesByWorkflowId(workflowId)`
|
|
81
|
+
- `getNodeByNodeId(workflowId, nodeId)`
|
|
82
|
+
- `updateNodeProperties(id, properties)`
|
|
83
|
+
- `updateNodePosition(id, position)`
|
|
84
|
+
|
|
85
|
+
### WorkflowEdgeService
|
|
86
|
+
- `getEdgesByWorkflowId(workflowId)`
|
|
87
|
+
- `getEdgeByEdgeId(workflowId, edgeId)`
|
|
88
|
+
- `getEdgesBySourceNode(workflowId, sourceNodeId)`
|
|
89
|
+
- `getEdgesByTargetNode(workflowId, targetNodeId)`
|
|
90
|
+
|
|
91
|
+
### WorkflowExecutionService
|
|
92
|
+
- `getExecutionsByWorkflowId(workflowId)`
|
|
93
|
+
- `getExecutionsBySessionId(sessionId)`
|
|
94
|
+
- `getActiveExecutions(workflowId?)`
|
|
95
|
+
- `startExecution(executionId)`
|
|
96
|
+
- `completeExecution(executionId, outputData?)`
|
|
97
|
+
- `failExecution(executionId, errorMessage, errorData?)`
|
|
98
|
+
- `updateCurrentNode(executionId, currentNodeId)`
|
|
99
|
+
|
|
100
|
+
### WorkflowSessionService
|
|
101
|
+
- `getSessionsByWorkflowId(workflowId)`
|
|
102
|
+
- `getActiveSessions(workflowId?)`
|
|
103
|
+
- `getSessionByExternalId(workflowId, externalId)`
|
|
104
|
+
- `getSessionByUserId(workflowId, userId)`
|
|
105
|
+
- `updateSessionContext(sessionId, context)`
|
|
106
|
+
- `addToSessionHistory(sessionId, nodeId, data?)`
|
|
107
|
+
- `deactivateSession(sessionId)`
|
|
108
|
+
|
|
109
|
+
### WorkflowModuleCredentialService
|
|
110
|
+
- `getCredentialsByModule(moduleId, organizationId?, userId?)`
|
|
111
|
+
- `getCredentialByName(moduleId, name, organizationId?, userId?)`
|
|
112
|
+
- `getActiveCredentials(moduleId, organizationId?)`
|
|
113
|
+
- `updateCredential(id, credentials)`
|
|
114
|
+
- `activateCredential(id)`
|
|
115
|
+
- `deactivateCredential(id)`
|
|
116
|
+
|
|
117
|
+
## Usage
|
|
118
|
+
|
|
119
|
+
### Import the Module
|
|
120
|
+
|
|
121
|
+
```typescript
|
|
122
|
+
import { WorkflowModule } from '@venturialstd/workflow';
|
|
123
|
+
|
|
124
|
+
@Module({
|
|
125
|
+
imports: [WorkflowModule],
|
|
126
|
+
})
|
|
127
|
+
export class AppModule {}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Use Services
|
|
131
|
+
|
|
132
|
+
```typescript
|
|
133
|
+
import { WorkflowService } from '@venturialstd/workflow';
|
|
134
|
+
|
|
135
|
+
@Injectable()
|
|
136
|
+
export class MyService {
|
|
137
|
+
constructor(private workflowService: WorkflowService) {}
|
|
138
|
+
|
|
139
|
+
async createWorkflow(data: CreateWorkflowDto) {
|
|
140
|
+
return this.workflowService.create(data);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
## Constants
|
|
146
|
+
|
|
147
|
+
### Execution Modes
|
|
148
|
+
- `EXECUTION_MODE.SINGLE`: One-time execution
|
|
149
|
+
- `EXECUTION_MODE.PERSISTENT`: Maintains session state
|
|
150
|
+
|
|
151
|
+
### Node Types
|
|
152
|
+
- `NODE_TYPE.CHATBOT`
|
|
153
|
+
- `NODE_TYPE.AI`
|
|
154
|
+
- `NODE_TYPE.CONDITIONAL`
|
|
155
|
+
- `NODE_TYPE.TWILIO`
|
|
156
|
+
|
|
157
|
+
### Node Categories
|
|
158
|
+
- `NODE_CATEGORY.TRIGGER`
|
|
159
|
+
- `NODE_CATEGORY.ACTION`
|
|
160
|
+
|
|
161
|
+
### Workflow Status
|
|
162
|
+
- `WORKFLOW_STATUS.ACTIVE`
|
|
163
|
+
- `WORKFLOW_STATUS.INACTIVE`
|
|
164
|
+
- `WORKFLOW_STATUS.DRAFT`
|
|
165
|
+
|
|
166
|
+
### Execution Status
|
|
167
|
+
- `EXECUTION_STATUS.PENDING`
|
|
168
|
+
- `EXECUTION_STATUS.RUNNING`
|
|
169
|
+
- `EXECUTION_STATUS.COMPLETED`
|
|
170
|
+
- `EXECUTION_STATUS.FAILED`
|
|
171
|
+
- `EXECUTION_STATUS.CANCELLED`
|
|
172
|
+
|
|
173
|
+
## DTOs
|
|
174
|
+
|
|
175
|
+
All DTOs follow the `Create*Dto` pattern:
|
|
176
|
+
- `CreateWorkflowDto`
|
|
177
|
+
- `CreateWorkflowNodeDto`
|
|
178
|
+
- `CreateWorkflowEdgeDto`
|
|
179
|
+
- `CreateWorkflowExecutionDto`
|
|
180
|
+
- `CreateWorkflowSessionDto`
|
|
181
|
+
- `CreateWorkflowModuleCredentialDto`
|
|
182
|
+
- `UpdateWorkflowModuleCredentialDto`
|
|
183
|
+
|
|
184
|
+
## Database Schema
|
|
185
|
+
|
|
186
|
+
The module uses PostgreSQL with JSONB columns for flexible data storage:
|
|
187
|
+
- Node properties stored as JSONB
|
|
188
|
+
- Edge data stored as JSONB
|
|
189
|
+
- Execution input/output/error data as JSONB
|
|
190
|
+
- Session context and history as JSONB
|
|
191
|
+
- Module credentials stored as JSONB (should be encrypted at application level)
|
|
192
|
+
|
|
193
|
+
## Module Credentials
|
|
194
|
+
|
|
195
|
+
Each module can define required credential fields. Users can create multiple credential sets per module:
|
|
196
|
+
|
|
197
|
+
### Defining Credential Fields in Modules
|
|
198
|
+
|
|
199
|
+
Modules can define `credentialFields` in their module definition:
|
|
200
|
+
|
|
201
|
+
```typescript
|
|
202
|
+
credentialFields: [
|
|
203
|
+
{
|
|
204
|
+
id: 'apiKey',
|
|
205
|
+
name: 'API Key',
|
|
206
|
+
description: 'API key for the service',
|
|
207
|
+
type: FIELD_TYPE.STRING,
|
|
208
|
+
validation: { required: true },
|
|
209
|
+
sensitive: true, // Will be encrypted/masked
|
|
210
|
+
required: true,
|
|
211
|
+
},
|
|
212
|
+
]
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Managing Credentials
|
|
216
|
+
|
|
217
|
+
```typescript
|
|
218
|
+
// Create credentials for a module
|
|
219
|
+
const credential = await credentialService.create({
|
|
220
|
+
moduleId: 'twilio',
|
|
221
|
+
name: 'Production Twilio',
|
|
222
|
+
credentials: {
|
|
223
|
+
accountSid: 'AC...',
|
|
224
|
+
authToken: '...',
|
|
225
|
+
},
|
|
226
|
+
organizationId: 'org-123',
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
// Get all credentials for a module
|
|
230
|
+
const credentials = await credentialService.getCredentialsByModule(
|
|
231
|
+
'twilio',
|
|
232
|
+
'org-123'
|
|
233
|
+
);
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
## License
|
|
237
|
+
|
|
238
|
+
Part of the Venturial Core NPM package.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.constant.d.ts","sourceRoot":"","sources":["../../src/constants/workflow.constant.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,UAAU,eAAe;CAC1B;AAED,oBAAY,SAAS;IACnB,OAAO,YAAY;IACnB,EAAE,OAAO;IACT,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,KAAK,UAAU;CAChB;AAED,oBAAY,gBAAgB;IAC1B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB"}
|
|
1
|
+
{"version":3,"file":"workflow.constant.d.ts","sourceRoot":"","sources":["../../src/constants/workflow.constant.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,UAAU,eAAe;CAC1B;AAED,oBAAY,SAAS;IACnB,OAAO,YAAY;IACnB,EAAE,OAAO;IACT,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,KAAK,UAAU;CAChB;AAED,oBAAY,gBAAgB;IAC1B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED,oBAAY,kBAAkB;IAC5B,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EXECUTION_STATUS = exports.WORKFLOW_STATUS = exports.NODE_TYPE = exports.EXECUTION_MODE = void 0;
|
|
3
|
+
exports.WORKFLOW_USER_ROLE = exports.EXECUTION_STATUS = exports.WORKFLOW_STATUS = exports.NODE_TYPE = exports.EXECUTION_MODE = void 0;
|
|
4
4
|
var EXECUTION_MODE;
|
|
5
5
|
(function (EXECUTION_MODE) {
|
|
6
6
|
EXECUTION_MODE["SINGLE"] = "single";
|
|
@@ -28,4 +28,10 @@ var EXECUTION_STATUS;
|
|
|
28
28
|
EXECUTION_STATUS["FAILED"] = "failed";
|
|
29
29
|
EXECUTION_STATUS["CANCELLED"] = "cancelled";
|
|
30
30
|
})(EXECUTION_STATUS || (exports.EXECUTION_STATUS = EXECUTION_STATUS = {}));
|
|
31
|
+
var WORKFLOW_USER_ROLE;
|
|
32
|
+
(function (WORKFLOW_USER_ROLE) {
|
|
33
|
+
WORKFLOW_USER_ROLE["OWNER"] = "owner";
|
|
34
|
+
WORKFLOW_USER_ROLE["EDITOR"] = "editor";
|
|
35
|
+
WORKFLOW_USER_ROLE["VIEWER"] = "viewer";
|
|
36
|
+
})(WORKFLOW_USER_ROLE || (exports.WORKFLOW_USER_ROLE = WORKFLOW_USER_ROLE = {}));
|
|
31
37
|
//# sourceMappingURL=workflow.constant.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.constant.js","sourceRoot":"","sources":["../../src/constants/workflow.constant.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,2CAAyB,CAAA;AAC3B,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,sBAAS,CAAA;IACT,wCAA2B,CAAA;IAC3B,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;AACrB,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB,kCAAe,CAAA;AACjB,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAED,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;IACvB,qCAAiB,CAAA;IACjB,2CAAuB,CAAA;AACzB,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B"}
|
|
1
|
+
{"version":3,"file":"workflow.constant.js","sourceRoot":"","sources":["../../src/constants/workflow.constant.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,2CAAyB,CAAA;AAC3B,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,sBAAS,CAAA;IACT,wCAA2B,CAAA;IAC3B,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;AACrB,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB,kCAAe,CAAA;AACjB,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAED,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;IACvB,qCAAiB,CAAA;IACjB,2CAAuB,CAAA;AACzB,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,qCAAe,CAAA;IACf,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;AACnB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Workflow } from './workflow.entity';
|
|
2
|
+
export declare class WorkflowUser {
|
|
3
|
+
id: string;
|
|
4
|
+
workflowId: string;
|
|
5
|
+
workflow: Workflow;
|
|
6
|
+
userId: string;
|
|
7
|
+
role?: string;
|
|
8
|
+
createdBy?: string;
|
|
9
|
+
metadata: Record<string, unknown>;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=workflow-user.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-user.entity.d.ts","sourceRoot":"","sources":["../../src/entities/workflow-user.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAa7C,qBAEa,YAAY;IAEvB,EAAE,EAAE,MAAM,CAAC;IAKX,UAAU,EAAE,MAAM,CAAC;IAInB,QAAQ,EAAE,QAAQ,CAAC;IAKnB,MAAM,EAAE,MAAM,CAAC;IAKf,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAQlC,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.WorkflowUser = void 0;
|
|
13
|
+
const workflow_entity_1 = require("./workflow.entity");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
let WorkflowUser = class WorkflowUser {
|
|
17
|
+
id;
|
|
18
|
+
workflowId;
|
|
19
|
+
workflow;
|
|
20
|
+
userId;
|
|
21
|
+
role;
|
|
22
|
+
createdBy;
|
|
23
|
+
metadata;
|
|
24
|
+
createdAt;
|
|
25
|
+
updatedAt;
|
|
26
|
+
};
|
|
27
|
+
exports.WorkflowUser = WorkflowUser;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], WorkflowUser.prototype, "id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsUUID)(),
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], WorkflowUser.prototype, "workflowId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.ManyToOne)(() => workflow_entity_1.Workflow, { onDelete: 'CASCADE' }),
|
|
40
|
+
(0, typeorm_1.JoinColumn)({ name: 'workflowId' }),
|
|
41
|
+
__metadata("design:type", workflow_entity_1.Workflow)
|
|
42
|
+
], WorkflowUser.prototype, "workflow", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsUUID)(),
|
|
45
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], WorkflowUser.prototype, "userId", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsString)(),
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], WorkflowUser.prototype, "role", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], WorkflowUser.prototype, "createdBy", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], WorkflowUser.prototype, "metadata", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.CreateDateColumn)({
|
|
67
|
+
name: 'createdAt',
|
|
68
|
+
nullable: false,
|
|
69
|
+
type: 'timestamptz',
|
|
70
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
71
|
+
}),
|
|
72
|
+
__metadata("design:type", Date)
|
|
73
|
+
], WorkflowUser.prototype, "createdAt", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.UpdateDateColumn)({
|
|
76
|
+
name: 'updatedAt',
|
|
77
|
+
nullable: false,
|
|
78
|
+
type: 'timestamptz',
|
|
79
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
80
|
+
}),
|
|
81
|
+
__metadata("design:type", Date)
|
|
82
|
+
], WorkflowUser.prototype, "updatedAt", void 0);
|
|
83
|
+
exports.WorkflowUser = WorkflowUser = __decorate([
|
|
84
|
+
(0, typeorm_1.Entity)('workflow_user'),
|
|
85
|
+
(0, typeorm_1.Index)(['workflowId', 'userId'], { unique: true })
|
|
86
|
+
], WorkflowUser);
|
|
87
|
+
//# sourceMappingURL=workflow-user.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-user.entity.js","sourceRoot":"","sources":["../../src/entities/workflow-user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;A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AO,EAAE,GAAG,EAAE,CAAC,mBAAmB;KACnC,CAAC;8BACS,IAAI;+CAAC;AAQhB;IANC,IAAA,0BAAgB,EAAC;QAChB,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB;KACnC,CAAC;8BACS,IAAI;+CAAC;uBA7CL,YAAY;IAFxB,IAAA,gBAAM,EAAC,eAAe,CAAC;IACvB,IAAA,eAAK,EAAC,CAAC,YAAY,EAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACrC,YAAY,CA8CxB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './entities/workflow-module-credential.entity';
|
|
|
8
8
|
export * from './entities/workflow-node.entity';
|
|
9
9
|
export * from './entities/workflow-node-execution.entity';
|
|
10
10
|
export * from './entities/workflow-session.entity';
|
|
11
|
+
export * from './entities/workflow-user.entity';
|
|
11
12
|
export * from './entities/workflow-webhook.entity';
|
|
12
13
|
export * from './controllers/workflow-module-credential.controller';
|
|
13
14
|
export * from './controllers/workflow-node.controller';
|
|
@@ -20,6 +21,7 @@ export * from './services/workflow-module-credential.service';
|
|
|
20
21
|
export * from './services/workflow-node.service';
|
|
21
22
|
export * from './services/workflow-node-execution.service';
|
|
22
23
|
export * from './services/workflow-session.service';
|
|
24
|
+
export * from './services/workflow-user.service';
|
|
23
25
|
export * from './services/workflow-webhook.service';
|
|
24
26
|
export * from './modules';
|
|
25
27
|
export * from './modules/ai/ai-nest.module';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,+BAA+B,CAAC;AAG9C,cAAc,QAAQ,CAAC;AAGvB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,s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wC,CAAC;AACvD,cAAc,kDAAkD,CAAC;AAGjE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kCAAkC,CAAC;AACjD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AAGpD,cAAc,WAAW,CAAC;AAG1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uCAAuC,CAAC;AACtD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -26,6 +26,7 @@ __exportStar(require("./entities/workflow-module-credential.entity"), exports);
|
|
|
26
26
|
__exportStar(require("./entities/workflow-node.entity"), exports);
|
|
27
27
|
__exportStar(require("./entities/workflow-node-execution.entity"), exports);
|
|
28
28
|
__exportStar(require("./entities/workflow-session.entity"), exports);
|
|
29
|
+
__exportStar(require("./entities/workflow-user.entity"), exports);
|
|
29
30
|
__exportStar(require("./entities/workflow-webhook.entity"), exports);
|
|
30
31
|
__exportStar(require("./controllers/workflow-module-credential.controller"), exports);
|
|
31
32
|
__exportStar(require("./controllers/workflow-node.controller"), exports);
|
|
@@ -38,6 +39,7 @@ __exportStar(require("./services/workflow-module-credential.service"), exports);
|
|
|
38
39
|
__exportStar(require("./services/workflow-node.service"), exports);
|
|
39
40
|
__exportStar(require("./services/workflow-node-execution.service"), exports);
|
|
40
41
|
__exportStar(require("./services/workflow-session.service"), exports);
|
|
42
|
+
__exportStar(require("./services/workflow-user.service"), exports);
|
|
41
43
|
__exportStar(require("./services/workflow-webhook.service"), exports);
|
|
42
44
|
__exportStar(require("./modules"), exports);
|
|
43
45
|
__exportStar(require("./modules/ai/ai-nest.module"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,gEAA8C;AAG9C,yCAAuB;AAGvB,6DAA2C;AAC3C,kEAAgD;AAChD,uEAAqD;AACrD,4EAA2F;AAAlF,8HAAA,cAAc,OAAwB;AAC/C,+EAA6D;AAC7D,kEAAgD;AAChD,4EAA0D;AAC1D,qEAAmD;AACnD,qEAAmD;AAGnD,sFAAoE;AACpE,yEAAuD;AACvD,mFAAiE;AAGjE,8DAA4C;AAC5C,mEAAiD;AACjD,wEAAsD;AACtD,qEAAmD;AACnD,gFAA8D;AAC9D,mEAAiD;AACjD,6EAA2D;AAC3D,sEAAoD;AACpD,sEAAoD;AAGpD,4CAA0B;AAG1B,8DAA4C;AAC5C,wEAAsD;AACtD,gFAA8D;AAC9D,sEAAoD;AACpD,wEAAsD;AACtD,oDAAkC;AAClC,yDAAuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,gEAA8C;AAG9C,yCAAuB;AAGvB,6DAA2C;AAC3C,kEAAgD;AAChD,uEAAqD;AACrD,4EAA2F;AAAlF,8HAAA,cAAc,OAAwB;AAC/C,+EAA6D;AAC7D,kEAAgD;AAChD,4EAA0D;AAC1D,qEAAmD;AACnD,kEAAgD;AAChD,qEAAmD;AAGnD,sFAAoE;AACpE,yEAAuD;AACvD,mFAAiE;AAGjE,8DAA4C;AAC5C,mEAAiD;AACjD,wEAAsD;AACtD,qEAAmD;AACnD,gFAA8D;AAC9D,mEAAiD;AACjD,6EAA2D;AAC3D,sEAAoD;AACpD,mEAAiD;AACjD,sEAAoD;AAGpD,4CAA0B;AAG1B,8DAA4C;AAC5C,wEAAsD;AACtD,gFAA8D;AAC9D,sEAAoD;AACpD,wEAAsD;AACtD,oDAAkC;AAClC,yDAAuC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-vcard.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/vcard/services/get-vcard.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAkK5E,qBACa,eAAgB,YAAW,sBAAsB;IACtD,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"get-vcard.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/vcard/services/get-vcard.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAkK5E,qBACa,eAAgB,YAAW,sBAAsB;IACtD,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAuGpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-vcard.service.js","sourceRoot":"","sources":["../../../../src/modules/vcard/services/get-vcard.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,kDAA0B;AAiC1B,SAAS,UAAU,CAAC,SAAiB;IACnC,MAAM,MAAM,GAAc;QACxB,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,EAAE;QACV,SAAS,EAAE,EAAE;KACd,CAAC;IAGF,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,IAAI,WAAW,GAAG,EAAE,CAAC;IAErB,KAAK,MAAM,IAAI,IAAI,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,C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'../constants/workflow.constant';
|
|
4
|
+
import { WorkflowUser } from '../entities/workflow-user.entity';
|
|
5
|
+
export declare class WorkflowUserService extends TypeOrmCrudService<WorkflowUser> {
|
|
6
|
+
readonly repo: Repository<WorkflowUser>;
|
|
7
|
+
constructor(repo: Repository<WorkflowUser>);
|
|
8
|
+
getWorkflowsByUser(userId: string): Promise<WorkflowUser[]>;
|
|
9
|
+
getUsersByWorkflow(workflowId: string): Promise<WorkflowUser[]>;
|
|
10
|
+
getUserRole(workflowId: string, userId: string): Promise<WORKFLOW_USER_ROLE | null>;
|
|
11
|
+
hasPermission(workflowId: string, userId: string, requiredRole: WORKFLOW_USER_ROLE): Promise<boolean>;
|
|
12
|
+
verifyPermission(workflowId: string, userId: string, requiredRole: WORKFLOW_USER_ROLE): Promise<void>;
|
|
13
|
+
canView(workflowId: string, userId: string): Promise<boolean>;
|
|
14
|
+
canEdit(workflowId: string, userId: string): Promise<boolean>;
|
|
15
|
+
isOwner(workflowId: string, userId: string): Promise<boolean>;
|
|
16
|
+
shareWorkflow(workflowId: string, targetUserId: string, role: WORKFLOW_USER_ROLE, sharedBy: string): Promise<WorkflowUser>;
|
|
17
|
+
updateUserRole(workflowId: string, targetUserId: string, newRole: WORKFLOW_USER_ROLE, updatedBy: string): Promise<WorkflowUser>;
|
|
18
|
+
removeUserFromWorkflow(workflowId: string, targetUserId: string, removedBy: string): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=workflow-user.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-user.service.d.ts","sourceRoot":"","sources":["../../src/services/workflow-user.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,kC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1B,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC;CAQjB"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.WorkflowUserService = void 0;
|
|
16
|
+
const crud_typeorm_1 = require("@dataui/crud-typeorm");
|
|
17
|
+
const common_1 = require("@nestjs/common");
|
|
18
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
19
|
+
const typeorm_2 = require("typeorm");
|
|
20
|
+
const workflow_constant_1 = require("../constants/workflow.constant");
|
|
21
|
+
const workflow_user_entity_1 = require("../entities/workflow-user.entity");
|
|
22
|
+
let WorkflowUserService = class WorkflowUserService extends crud_typeorm_1.TypeOrmCrudService {
|
|
23
|
+
repo;
|
|
24
|
+
constructor(repo) {
|
|
25
|
+
super(repo);
|
|
26
|
+
this.repo = repo;
|
|
27
|
+
}
|
|
28
|
+
async getWorkflowsByUser(userId) {
|
|
29
|
+
return this.repo.find({ where: { userId } });
|
|
30
|
+
}
|
|
31
|
+
async getUsersByWorkflow(workflowId) {
|
|
32
|
+
return this.repo.find({ where: { workflowId } });
|
|
33
|
+
}
|
|
34
|
+
async getUserRole(workflowId, userId) {
|
|
35
|
+
const workflowUser = await this.repo.findOne({
|
|
36
|
+
where: { workflowId, userId },
|
|
37
|
+
});
|
|
38
|
+
return workflowUser?.role || null;
|
|
39
|
+
}
|
|
40
|
+
async hasPermission(workflowId, userId, requiredRole) {
|
|
41
|
+
const userRole = await this.getUserRole(workflowId, userId);
|
|
42
|
+
if (!userRole) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
const roleHierarchy = {
|
|
46
|
+
[workflow_constant_1.WORKFLOW_USER_ROLE.OWNER]: 3,
|
|
47
|
+
[workflow_constant_1.WORKFLOW_USER_ROLE.EDITOR]: 2,
|
|
48
|
+
[workflow_constant_1.WORKFLOW_USER_ROLE.VIEWER]: 1,
|
|
49
|
+
};
|
|
50
|
+
return roleHierarchy[userRole] >= roleHierarchy[requiredRole];
|
|
51
|
+
}
|
|
52
|
+
async verifyPermission(workflowId, userId, requiredRole) {
|
|
53
|
+
const hasPermission = await this.hasPermission(workflowId, userId, requiredRole);
|
|
54
|
+
if (!hasPermission) {
|
|
55
|
+
throw new common_1.ForbiddenException(`User does not have ${requiredRole} permission for this workflow`);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
async canView(workflowId, userId) {
|
|
59
|
+
return this.hasPermission(workflowId, userId, workflow_constant_1.WORKFLOW_USER_ROLE.VIEWER);
|
|
60
|
+
}
|
|
61
|
+
async canEdit(workflowId, userId) {
|
|
62
|
+
return this.hasPermission(workflowId, userId, workflow_constant_1.WORKFLOW_USER_ROLE.EDITOR);
|
|
63
|
+
}
|
|
64
|
+
async isOwner(workflowId, userId) {
|
|
65
|
+
return this.hasPermission(workflowId, userId, workflow_constant_1.WORKFLOW_USER_ROLE.OWNER);
|
|
66
|
+
}
|
|
67
|
+
async shareWorkflow(workflowId, targetUserId, role, sharedBy) {
|
|
68
|
+
await this.verifyPermission(workflowId, sharedBy, workflow_constant_1.WORKFLOW_USER_ROLE.OWNER);
|
|
69
|
+
if (!Object.values(workflow_constant_1.WORKFLOW_USER_ROLE).includes(role)) {
|
|
70
|
+
throw new common_1.ForbiddenException(`Invalid role: ${role}`);
|
|
71
|
+
}
|
|
72
|
+
const existing = await this.repo.findOne({
|
|
73
|
+
where: { workflowId, userId: targetUserId },
|
|
74
|
+
});
|
|
75
|
+
if (existing) {
|
|
76
|
+
existing.role = role;
|
|
77
|
+
existing.createdBy = sharedBy;
|
|
78
|
+
return this.repo.save(existing);
|
|
79
|
+
}
|
|
80
|
+
return this.repo.save({
|
|
81
|
+
workflowId,
|
|
82
|
+
userId: targetUserId,
|
|
83
|
+
role,
|
|
84
|
+
createdBy: sharedBy,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
async updateUserRole(workflowId, targetUserId, newRole, updatedBy) {
|
|
88
|
+
await this.verifyPermission(workflowId, updatedBy, workflow_constant_1.WORKFLOW_USER_ROLE.OWNER);
|
|
89
|
+
const workflowUser = await this.repo.findOne({
|
|
90
|
+
where: { workflowId, userId: targetUserId },
|
|
91
|
+
});
|
|
92
|
+
if (!workflowUser) {
|
|
93
|
+
throw new common_1.NotFoundException(`User ${targetUserId} is not associated with workflow ${workflowId}`);
|
|
94
|
+
}
|
|
95
|
+
workflowUser.role = newRole;
|
|
96
|
+
return this.repo.save(workflowUser);
|
|
97
|
+
}
|
|
98
|
+
async removeUserFromWorkflow(workflowId, targetUserId, removedBy) {
|
|
99
|
+
if (targetUserId !== removedBy) {
|
|
100
|
+
await this.verifyPermission(workflowId, removedBy, workflow_constant_1.WORKFLOW_USER_ROLE.OWNER);
|
|
101
|
+
}
|
|
102
|
+
await this.repo.delete({ workflowId, userId: targetUserId });
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
exports.WorkflowUserService = WorkflowUserService;
|
|
106
|
+
exports.WorkflowUserService = WorkflowUserService = __decorate([
|
|
107
|
+
(0, common_1.Injectable)(),
|
|
108
|
+
__param(0, (0, typeorm_1.InjectRepository)(workflow_user_entity_1.WorkflowUser)),
|
|
109
|
+
__metadata("design:paramtypes", [typeorm_2.Repository])
|
|
110
|
+
], WorkflowUserService);
|
|
111
|
+
//# sourceMappingURL=workflow-user.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-user.service.js","sourceRoot":"","sources":["../../src/services/workflow-user.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uDAA0D;AAC1D,2CAAmF;AACnF,6CAAmD;AACnD,qCAAqC;AAErC,sEAAoE;AACpE,2EAAgE;AAGzD,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,iCAAgC;IAGrD;IAFlB,YAEkB,IAA8B;QAE9C,KAAK,CAAC,IAAI,CAAC,CAAC;QAFI,SAAI,GAAJ,IAAI,CAA0B;IAGhD,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,MAAc;QACrC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,UAAkB;QACzC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;IACnD,CAAC;IAKD,KAAK,CAAC,WAAW,CAAC,UAAkB,EAAE,MAAc;QAClD,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;YAC3C,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE;SAC9B,CAAC,CAAC;QACH,OAAQ,YAAY,EAAE,IAA2B,IAAI,IAAI,CAAC;IAC5D,CAAC;IAKD,KAAK,CAAC,aAAa,C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,QAAQ,YAAY,oCAAoC,UAAU,EAAE,CACrE,CAAC;QACJ,CAAC;QAED,YAAY,CAAC,IAAI,GAAG,OAAO,CAAC;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;IAMD,KAAK,CAAC,sBAAsB,CAC1B,UAAkB,EAClB,YAAoB,EACpB,SAAiB;QAGjB,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;YAC/B,MAAM,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,SAAS,EAAE,sCAAkB,CAAC,KAAK,CAAC,CAAC;QAC/E,CAAC;QAED,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;IAC/D,CAAC;CACF,CAAA;AArKY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,mCAAY,CAAC,CAAA;qCACT,oBAAU;GAHvB,mBAAmB,CAqK/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-core.module.d.ts","sourceRoot":"","sources":["../src/workflow-core.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workflow-core.module.d.ts","sourceRoot":"","sources":["../src/workflow-core.module.ts"],"names":[],"mappings":"AA6BA,qBAgDa,kBAAkB;CAAG"}
|
|
@@ -21,6 +21,7 @@ const workflow_module_credential_entity_1 = require("./entities/workflow-module-
|
|
|
21
21
|
const workflow_node_entity_1 = require("./entities/workflow-node.entity");
|
|
22
22
|
const workflow_node_execution_entity_1 = require("./entities/workflow-node-execution.entity");
|
|
23
23
|
const workflow_session_entity_1 = require("./entities/workflow-session.entity");
|
|
24
|
+
const workflow_user_entity_1 = require("./entities/workflow-user.entity");
|
|
24
25
|
const workflow_webhook_entity_1 = require("./entities/workflow-webhook.entity");
|
|
25
26
|
const workflow_service_1 = require("./services/workflow.service");
|
|
26
27
|
const workflow_edge_service_1 = require("./services/workflow-edge.service");
|
|
@@ -31,6 +32,7 @@ const workflow_node_service_1 = require("./services/workflow-node.service");
|
|
|
31
32
|
const workflow_node_execution_service_1 = require("./services/workflow-node-execution.service");
|
|
32
33
|
const workflow_session_service_1 = require("./services/workflow-session.service");
|
|
33
34
|
const workflow_sse_service_1 = require("./services/workflow-sse.service");
|
|
35
|
+
const workflow_user_service_1 = require("./services/workflow-user.service");
|
|
34
36
|
const workflow_webhook_service_1 = require("./services/workflow-webhook.service");
|
|
35
37
|
let WorkflowCoreModule = class WorkflowCoreModule {
|
|
36
38
|
};
|
|
@@ -47,6 +49,7 @@ exports.WorkflowCoreModule = WorkflowCoreModule = __decorate([
|
|
|
47
49
|
workflow_session_entity_1.WorkflowSession,
|
|
48
50
|
workflow_module_credential_entity_1.WorkflowModuleCredential,
|
|
49
51
|
workflow_module_entity_1.WorkflowModule,
|
|
52
|
+
workflow_user_entity_1.WorkflowUser,
|
|
50
53
|
workflow_webhook_entity_1.WorkflowWebhook,
|
|
51
54
|
]),
|
|
52
55
|
],
|
|
@@ -65,6 +68,7 @@ exports.WorkflowCoreModule = WorkflowCoreModule = __decorate([
|
|
|
65
68
|
workflow_session_service_1.WorkflowSessionService,
|
|
66
69
|
workflow_module_credential_service_1.WorkflowModuleCredentialService,
|
|
67
70
|
workflow_module_service_1.WorkflowModuleService,
|
|
71
|
+
workflow_user_service_1.WorkflowUserService,
|
|
68
72
|
workflow_webhook_service_1.WorkflowWebhookService,
|
|
69
73
|
workflow_sse_service_1.WorkflowSSEService,
|
|
70
74
|
],
|
|
@@ -77,6 +81,7 @@ exports.WorkflowCoreModule = WorkflowCoreModule = __decorate([
|
|
|
77
81
|
workflow_session_service_1.WorkflowSessionService,
|
|
78
82
|
workflow_module_credential_service_1.WorkflowModuleCredentialService,
|
|
79
83
|
workflow_module_service_1.WorkflowModuleService,
|
|
84
|
+
workflow_user_service_1.WorkflowUserService,
|
|
80
85
|
workflow_webhook_service_1.WorkflowWebhookService,
|
|
81
86
|
workflow_sse_service_1.WorkflowSSEService,
|
|
82
87
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-core.module.js","sourceRoot":"","sources":["../src/workflow-core.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAEhD,+GAAyG;AACzG,qFAAgF;AAChF,yGAAmG;AACnG,mFAA8E;AAC9E,gEAAsD;AACtD,0EAA+D;AAC/D,oFAAyE;AACzE,8EAA2F;AAC3F,oGAAwF;AACxF,0EAA+D;AAC/D,8FAAkF;AAClF,gFAAqE;AACrE,gFAAqE;AACrE,kEAA8D;AAC9D,4EAAuE;AACvE,sFAAiF;AACjF,gFAA2E;AAC3E,sGAAgG;AAChG,4EAAuE;AACvE,gGAA0F;AAC1F,kFAA6E;AAC7E,0EAAqE;AACrE,kFAA6E;
|
|
1
|
+
{"version":3,"file":"workflow-core.module.js","sourceRoot":"","sources":["../src/workflow-core.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAEhD,+GAAyG;AACzG,qFAAgF;AAChF,yGAAmG;AACnG,mFAA8E;AAC9E,gEAAsD;AACtD,0EAA+D;AAC/D,oFAAyE;AACzE,8EAA2F;AAC3F,oGAAwF;AACxF,0EAA+D;AAC/D,8FAAkF;AAClF,gFAAqE;AACrE,0EAA+D;AAC/D,gFAAqE;AACrE,kEAA8D;AAC9D,4EAAuE;AACvE,sFAAiF;AACjF,gFAA2E;AAC3E,sGAAgG;AAChG,4EAAuE;AACvE,gGAA0F;AAC1F,kFAA6E;AAC7E,0EAAqE;AACrE,4EAAuE;AACvE,kFAA6E;AAkDtE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,gDAAkB;6BAAlB,kBAAkB;IAhD9B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC;gBACvB,0BAAQ;gBACR,mCAAY;gBACZ,mCAAY;gBACZ,6CAAiB;gBACjB,sDAAqB;gBACrB,yCAAe;gBACf,4DAAwB;gBACxB,uCAAoB;gBACpB,mCAAY;gBACZ,yCAAe;aAChB,CAAC;SACH;QACD,WAAW,EAAE;YACX,iDAAsB;YACtB,oEAA+B;YAC/B,0EAAkC;YAClC,+CAAqB;SACtB;QACD,SAAS,EAAE;YACT,kCAAe;YACf,2CAAmB;YACnB,8DAA4B;YAC5B,2CAAmB;YACnB,qDAAwB;YACxB,iDAAsB;YACtB,oEAA+B;YAC/B,+CAAqB;YACrB,2CAAmB;YACnB,iDAAsB;YACtB,yCAAkB;SACnB;QACD,OAAO,EAAE;YACP,kCAAe;YACf,2CAAmB;YACnB,8DAA4B;YAC5B,2CAAmB;YACnB,qDAAwB;YACxB,iDAAsB;YACtB,oEAA+B;YAC/B,+CAAqB;YACrB,2CAAmB;YACnB,iDAAsB;YACtB,yCAAkB;SACnB;KACF,CAAC;GACW,kBAAkB,CAAG"}
|
package/package.json
CHANGED
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@venturialstd/workflow",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Workflow Module for Venturial",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "commonjs",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
|
-
"publishConfig": {
|
|
12
|
-
"access": "public"
|
|
13
|
-
},
|
|
14
|
-
"scripts": {
|
|
15
|
-
"prebuild": "rimraf dist",
|
|
16
|
-
"build": "tsc -p tsconfig.json",
|
|
17
|
-
"prepublishOnly": "npm run build",
|
|
18
|
-
"release:patch": "npm run build && npm version patch --no-git-tag-version && npm publish",
|
|
19
|
-
"test:dev": "ts-node -r tsconfig-paths/register test/main.ts",
|
|
20
|
-
"test:watch": "nodemon --watch src --watch test --ext ts --exec npm run test:dev",
|
|
21
|
-
"migration:generate": "ts-node node_modules/.bin/typeorm migration:generate -d test/data-source.ts test/migrations/$npm_config_name",
|
|
22
|
-
"migration:run": "ts-node node_modules/.bin/typeorm migration:run -d test/data-source.ts",
|
|
23
|
-
"migration:revert": "ts-node node_modules/.bin/typeorm migration:revert -d test/data-source.ts"
|
|
24
|
-
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@dataui/crud": "^5.3.4",
|
|
27
|
-
"@dataui/crud-request": "^5.3.4",
|
|
28
|
-
"@dataui/crud-typeorm": "^5.3.4",
|
|
29
|
-
"@keyv/redis": "^4.2.0",
|
|
30
|
-
"@nestjs/cache-manager": "^3.0.0",
|
|
31
|
-
"@nestjs/common": "^11.0.11",
|
|
32
|
-
"@nestjs/config": "^4.0.0",
|
|
33
|
-
"@nestjs/core": "^11.0.5",
|
|
34
|
-
"@nestjs/jwt": "^11.0.0",
|
|
35
|
-
"@nestjs/passport": "^11.0.5",
|
|
36
|
-
"@nestjs/platform-express": "^11.0.5",
|
|
37
|
-
"@nestjs/swagger": "^11.0.3",
|
|
38
|
-
"@nestjs/typeorm": "^11.0.0",
|
|
39
|
-
"@types/express": "^4.17.25",
|
|
40
|
-
"@types/node": "^20.0.0",
|
|
41
|
-
"@venturialstd/core": "^1.0.16",
|
|
42
|
-
"bcrypt": "^5.1.1",
|
|
43
|
-
"cache-manager": "^6.4.0",
|
|
44
|
-
"class-transformer": "^0.5.1",
|
|
45
|
-
"class-validator": "^0.14.1",
|
|
46
|
-
"dotenv": "^17.2.3",
|
|
47
|
-
"express": "^5.2.1",
|
|
48
|
-
"glob": "^13.0.0",
|
|
49
|
-
"joi": "^17.13.3",
|
|
50
|
-
"jwks-rsa": "^3.1.0",
|
|
51
|
-
"lodash": "^4.17.21",
|
|
52
|
-
"nodemon": "^3.0.0",
|
|
53
|
-
"passport": "^0.7.0",
|
|
54
|
-
"passport-auth0": "^1.4.4",
|
|
55
|
-
"passport-jwt": "^4.0.1",
|
|
56
|
-
"passport-local": "^1.0.0",
|
|
57
|
-
"rxjs": "^7.8.1",
|
|
58
|
-
"ts-node": "^10.9.0",
|
|
59
|
-
"tsconfig-paths": "^4.2.0",
|
|
60
|
-
"typeorm": "^0.3.20",
|
|
61
|
-
"typescript": "^5.9.3",
|
|
62
|
-
"uuid": "^11.0.5",
|
|
63
|
-
"winston": "^3.17.0"
|
|
64
|
-
},
|
|
65
|
-
"peerDependencies": {
|
|
66
|
-
"@dataui/crud": "^5.3.4",
|
|
67
|
-
"@dataui/crud-request": "^5.3.4",
|
|
68
|
-
"@dataui/crud-typeorm": "^5.3.4",
|
|
69
|
-
"@nestjs/cache-manager": "^3.0.0",
|
|
70
|
-
"@nestjs/common": "^11.0.11",
|
|
71
|
-
"@nestjs/config": "^4.0.0",
|
|
72
|
-
"@nestjs/core": "^11.0.5",
|
|
73
|
-
"@nestjs/event-emitter": "^3.0.1",
|
|
74
|
-
"@nestjs/jwt": "^11.0.0",
|
|
75
|
-
"@nestjs/passport": "^11.0.5",
|
|
76
|
-
"@nestjs/swagger": "^11.0.3",
|
|
77
|
-
"@nestjs/typeorm": "^11.0.0",
|
|
78
|
-
"@venturialstd/capa": "^0.0.6",
|
|
79
|
-
"@venturialstd/circle": "^0.0.7",
|
|
80
|
-
"@venturialstd/core": "^1.0.16",
|
|
81
|
-
"@venturialstd/email": "^0.0.2",
|
|
82
|
-
"@venturialstd/fintech": "^0.0.16",
|
|
83
|
-
"@venturialstd/inbestgo": "^0.0.4",
|
|
84
|
-
"@venturialstd/kira": "^0.0.1",
|
|
85
|
-
"@venturialstd/kyc": "^0.0.6",
|
|
86
|
-
"@venturialstd/slack": "^0.1.31",
|
|
87
|
-
"@venturialstd/toolbox": "^0.0.1",
|
|
88
|
-
"@venturialstd/twilio": "^0.0.4",
|
|
89
|
-
"bcrypt": "^5.1.1",
|
|
90
|
-
"cache-manager": "^6.4.0",
|
|
91
|
-
"class-transformer": "^0.5.1",
|
|
92
|
-
"class-validator": "^0.14.1",
|
|
93
|
-
"jwks-rsa": "^3.1.0",
|
|
94
|
-
"passport": "^0.7.0",
|
|
95
|
-
"passport-auth0": "^1.4.0",
|
|
96
|
-
"passport-jwt": "^4.0.1",
|
|
97
|
-
"passport-local": "^1.0.0",
|
|
98
|
-
"rxjs": "^7.8.1",
|
|
99
|
-
"typeorm": "^0.3.20",
|
|
100
|
-
"uuid": "^11.0.5"
|
|
101
|
-
},
|
|
102
|
-
"dependencies": {
|
|
103
|
-
"@venturialstd/chatgpt": "^0.0.6",
|
|
104
|
-
"@venturialstd/user": "^0.0.3",
|
|
105
|
-
"libphonenumber-js": "^1.12.34",
|
|
106
|
-
"pg": "^8.16.3"
|
|
107
|
-
}
|
|
108
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@venturialstd/workflow",
|
|
3
|
+
"version": "0.1.148",
|
|
4
|
+
"description": "Workflow Module for Venturial",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"prebuild": "rimraf dist",
|
|
16
|
+
"build": "tsc -p tsconfig.json",
|
|
17
|
+
"prepublishOnly": "npm run build",
|
|
18
|
+
"release:patch": "npm run build && npm version patch --no-git-tag-version && npm publish",
|
|
19
|
+
"test:dev": "ts-node -r tsconfig-paths/register test/main.ts",
|
|
20
|
+
"test:watch": "nodemon --watch src --watch test --ext ts --exec npm run test:dev",
|
|
21
|
+
"migration:generate": "ts-node node_modules/.bin/typeorm migration:generate -d test/data-source.ts test/migrations/$npm_config_name",
|
|
22
|
+
"migration:run": "ts-node node_modules/.bin/typeorm migration:run -d test/data-source.ts",
|
|
23
|
+
"migration:revert": "ts-node node_modules/.bin/typeorm migration:revert -d test/data-source.ts"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@dataui/crud": "^5.3.4",
|
|
27
|
+
"@dataui/crud-request": "^5.3.4",
|
|
28
|
+
"@dataui/crud-typeorm": "^5.3.4",
|
|
29
|
+
"@keyv/redis": "^4.2.0",
|
|
30
|
+
"@nestjs/cache-manager": "^3.0.0",
|
|
31
|
+
"@nestjs/common": "^11.0.11",
|
|
32
|
+
"@nestjs/config": "^4.0.0",
|
|
33
|
+
"@nestjs/core": "^11.0.5",
|
|
34
|
+
"@nestjs/jwt": "^11.0.0",
|
|
35
|
+
"@nestjs/passport": "^11.0.5",
|
|
36
|
+
"@nestjs/platform-express": "^11.0.5",
|
|
37
|
+
"@nestjs/swagger": "^11.0.3",
|
|
38
|
+
"@nestjs/typeorm": "^11.0.0",
|
|
39
|
+
"@types/express": "^4.17.25",
|
|
40
|
+
"@types/node": "^20.0.0",
|
|
41
|
+
"@venturialstd/core": "^1.0.16",
|
|
42
|
+
"bcrypt": "^5.1.1",
|
|
43
|
+
"cache-manager": "^6.4.0",
|
|
44
|
+
"class-transformer": "^0.5.1",
|
|
45
|
+
"class-validator": "^0.14.1",
|
|
46
|
+
"dotenv": "^17.2.3",
|
|
47
|
+
"express": "^5.2.1",
|
|
48
|
+
"glob": "^13.0.0",
|
|
49
|
+
"joi": "^17.13.3",
|
|
50
|
+
"jwks-rsa": "^3.1.0",
|
|
51
|
+
"lodash": "^4.17.21",
|
|
52
|
+
"nodemon": "^3.0.0",
|
|
53
|
+
"passport": "^0.7.0",
|
|
54
|
+
"passport-auth0": "^1.4.4",
|
|
55
|
+
"passport-jwt": "^4.0.1",
|
|
56
|
+
"passport-local": "^1.0.0",
|
|
57
|
+
"rxjs": "^7.8.1",
|
|
58
|
+
"ts-node": "^10.9.0",
|
|
59
|
+
"tsconfig-paths": "^4.2.0",
|
|
60
|
+
"typeorm": "^0.3.20",
|
|
61
|
+
"typescript": "^5.9.3",
|
|
62
|
+
"uuid": "^11.0.5",
|
|
63
|
+
"winston": "^3.17.0"
|
|
64
|
+
},
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"@dataui/crud": "^5.3.4",
|
|
67
|
+
"@dataui/crud-request": "^5.3.4",
|
|
68
|
+
"@dataui/crud-typeorm": "^5.3.4",
|
|
69
|
+
"@nestjs/cache-manager": "^3.0.0",
|
|
70
|
+
"@nestjs/common": "^11.0.11",
|
|
71
|
+
"@nestjs/config": "^4.0.0",
|
|
72
|
+
"@nestjs/core": "^11.0.5",
|
|
73
|
+
"@nestjs/event-emitter": "^3.0.1",
|
|
74
|
+
"@nestjs/jwt": "^11.0.0",
|
|
75
|
+
"@nestjs/passport": "^11.0.5",
|
|
76
|
+
"@nestjs/swagger": "^11.0.3",
|
|
77
|
+
"@nestjs/typeorm": "^11.0.0",
|
|
78
|
+
"@venturialstd/capa": "^0.0.6",
|
|
79
|
+
"@venturialstd/circle": "^0.0.7",
|
|
80
|
+
"@venturialstd/core": "^1.0.16",
|
|
81
|
+
"@venturialstd/email": "^0.0.2",
|
|
82
|
+
"@venturialstd/fintech": "^0.0.16",
|
|
83
|
+
"@venturialstd/inbestgo": "^0.0.4",
|
|
84
|
+
"@venturialstd/kira": "^0.0.1",
|
|
85
|
+
"@venturialstd/kyc": "^0.0.6",
|
|
86
|
+
"@venturialstd/slack": "^0.1.31",
|
|
87
|
+
"@venturialstd/toolbox": "^0.0.1",
|
|
88
|
+
"@venturialstd/twilio": "^0.0.4",
|
|
89
|
+
"bcrypt": "^5.1.1",
|
|
90
|
+
"cache-manager": "^6.4.0",
|
|
91
|
+
"class-transformer": "^0.5.1",
|
|
92
|
+
"class-validator": "^0.14.1",
|
|
93
|
+
"jwks-rsa": "^3.1.0",
|
|
94
|
+
"passport": "^0.7.0",
|
|
95
|
+
"passport-auth0": "^1.4.0",
|
|
96
|
+
"passport-jwt": "^4.0.1",
|
|
97
|
+
"passport-local": "^1.0.0",
|
|
98
|
+
"rxjs": "^7.8.1",
|
|
99
|
+
"typeorm": "^0.3.20",
|
|
100
|
+
"uuid": "^11.0.5"
|
|
101
|
+
},
|
|
102
|
+
"dependencies": {
|
|
103
|
+
"@venturialstd/chatgpt": "^0.0.6",
|
|
104
|
+
"@venturialstd/user": "^0.0.3",
|
|
105
|
+
"libphonenumber-js": "^1.12.34",
|
|
106
|
+
"pg": "^8.16.3"
|
|
107
|
+
}
|
|
108
|
+
}
|