@venturialstd/workflow 0.1.152 → 0.1.154
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/gateways/workflow-realtime.gateway.d.ts +59 -0
- package/dist/gateways/workflow-realtime.gateway.d.ts.map +1 -0
- package/dist/gateways/workflow-realtime.gateway.js +189 -0
- package/dist/gateways/workflow-realtime.gateway.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/services/workflow-edge.service.d.ts +7 -1
- package/dist/services/workflow-edge.service.d.ts.map +1 -1
- package/dist/services/workflow-edge.service.js +29 -2
- package/dist/services/workflow-edge.service.js.map +1 -1
- package/dist/services/workflow-node.service.d.ts +7 -1
- package/dist/services/workflow-node.service.d.ts.map +1 -1
- package/dist/services/workflow-node.service.js +29 -2
- package/dist/services/workflow-node.service.js.map +1 -1
- package/dist/services/workflow-sse.service.d.ts +19 -1
- package/dist/services/workflow-sse.service.d.ts.map +1 -1
- package/dist/services/workflow-sse.service.js +24 -0
- package/dist/services/workflow-sse.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/services/workflow.service.d.ts +6 -1
- package/dist/services/workflow.service.d.ts.map +1 -1
- package/dist/services/workflow.service.js +26 -4
- package/dist/services/workflow.service.js.map +1 -1
- package/dist/workflow-core.module.d.ts.map +1 -1
- package/dist/workflow-core.module.js +7 -0
- package/dist/workflow-core.module.js.map +1 -1
- package/package.json +111 -109
|
@@ -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,CACjB,UAAkB,E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,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,9 +1,14 @@
|
|
|
1
|
+
import { CrudRequest } from '@dataui/crud';
|
|
1
2
|
import { TypeOrmCrudService } from '@dataui/crud-typeorm';
|
|
2
3
|
import { Repository } from 'typeorm';
|
|
3
4
|
import { Workflow } from '../entities/workflow.entity';
|
|
5
|
+
import { WorkflowSSEService } from './workflow-sse.service';
|
|
4
6
|
export declare class WorkflowService extends TypeOrmCrudService<Workflow> {
|
|
5
7
|
readonly repo: Repository<Workflow>;
|
|
6
|
-
|
|
8
|
+
private readonly sseService;
|
|
9
|
+
constructor(repo: Repository<Workflow>, sseService: WorkflowSSEService);
|
|
10
|
+
updateOne(req: CrudRequest, dto: Partial<Workflow>): Promise<Workflow>;
|
|
11
|
+
replaceOne(req: CrudRequest, dto: Partial<Workflow>): Promise<Workflow>;
|
|
7
12
|
getActiveWorkflows(): Promise<Workflow[]>;
|
|
8
13
|
activateWorkflow(workflowId: string): Promise<Workflow>;
|
|
9
14
|
deactivateWorkflow(workflowId: string): Promise<Workflow>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.service.d.ts","sourceRoot":"","sources":["../../src/services/workflow.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow.service.d.ts","sourceRoot":"","sources":["../../src/services/workflow.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,qBACa,eAAgB,SAAQ,kBAAkB,CAAC,QAAQ,CAAC;aAG7C,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC;IAC1C,OAAO,CAAC,QAAQ,CAAC,UAAU;gBADX,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,EACzB,UAAU,EAAE,kBAAkB;IAK3C,SAAS,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC;IAQtE,UAAU,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC;IAQvE,kBAAkB,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAQzC,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAavD,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAazD,4BAA4B,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;CAU1E"}
|
|
@@ -19,11 +19,28 @@ const typeorm_1 = require("@nestjs/typeorm");
|
|
|
19
19
|
const typeorm_2 = require("typeorm");
|
|
20
20
|
const workflow_constant_1 = require("../constants/workflow.constant");
|
|
21
21
|
const workflow_entity_1 = require("../entities/workflow.entity");
|
|
22
|
+
const workflow_sse_service_1 = require("./workflow-sse.service");
|
|
22
23
|
let WorkflowService = class WorkflowService extends crud_typeorm_1.TypeOrmCrudService {
|
|
23
24
|
repo;
|
|
24
|
-
|
|
25
|
+
sseService;
|
|
26
|
+
constructor(repo, sseService) {
|
|
25
27
|
super(repo);
|
|
26
28
|
this.repo = repo;
|
|
29
|
+
this.sseService = sseService;
|
|
30
|
+
}
|
|
31
|
+
async updateOne(req, dto) {
|
|
32
|
+
const result = await super.updateOne(req, dto);
|
|
33
|
+
if (result?.id) {
|
|
34
|
+
this.sseService.emitEditorSettingsUpdated(result.id);
|
|
35
|
+
}
|
|
36
|
+
return result;
|
|
37
|
+
}
|
|
38
|
+
async replaceOne(req, dto) {
|
|
39
|
+
const result = await super.replaceOne(req, dto);
|
|
40
|
+
if (result?.id) {
|
|
41
|
+
this.sseService.emitEditorSettingsUpdated(result.id);
|
|
42
|
+
}
|
|
43
|
+
return result;
|
|
27
44
|
}
|
|
28
45
|
async getActiveWorkflows() {
|
|
29
46
|
const where = {
|
|
@@ -39,7 +56,9 @@ let WorkflowService = class WorkflowService extends crud_typeorm_1.TypeOrmCrudSe
|
|
|
39
56
|
}
|
|
40
57
|
workflow.active = true;
|
|
41
58
|
workflow.status = workflow_constant_1.WORKFLOW_STATUS.ACTIVE;
|
|
42
|
-
|
|
59
|
+
const result = await this.repo.save(workflow);
|
|
60
|
+
this.sseService.emitEditorSettingsUpdated(workflowId);
|
|
61
|
+
return result;
|
|
43
62
|
}
|
|
44
63
|
async deactivateWorkflow(workflowId) {
|
|
45
64
|
const workflow = await this.repo.findOne({ where: { id: workflowId } });
|
|
@@ -48,7 +67,9 @@ let WorkflowService = class WorkflowService extends crud_typeorm_1.TypeOrmCrudSe
|
|
|
48
67
|
}
|
|
49
68
|
workflow.active = false;
|
|
50
69
|
workflow.status = workflow_constant_1.WORKFLOW_STATUS.INACTIVE;
|
|
51
|
-
|
|
70
|
+
const result = await this.repo.save(workflow);
|
|
71
|
+
this.sseService.emitEditorSettingsUpdated(workflowId);
|
|
72
|
+
return result;
|
|
52
73
|
}
|
|
53
74
|
async getWorkflowWithNodesAndEdges(workflowId) {
|
|
54
75
|
const workflow = await this.repo.findOne({
|
|
@@ -65,6 +86,7 @@ exports.WorkflowService = WorkflowService;
|
|
|
65
86
|
exports.WorkflowService = WorkflowService = __decorate([
|
|
66
87
|
(0, common_1.Injectable)(),
|
|
67
88
|
__param(0, (0, typeorm_1.InjectRepository)(workflow_entity_1.Workflow)),
|
|
68
|
-
__metadata("design:paramtypes", [typeorm_2.Repository
|
|
89
|
+
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
90
|
+
workflow_sse_service_1.WorkflowSSEService])
|
|
69
91
|
], WorkflowService);
|
|
70
92
|
//# sourceMappingURL=workflow.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.service.js","sourceRoot":"","sources":["../../src/services/workflow.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"workflow.service.js","sourceRoot":"","sources":["../../src/services/workflow.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,uDAA0D;AAC1D,2CAA+D;AAC/D,6CAAmD;AACnD,qCAAqC;AAErC,sEAAiE;AACjE,iEAAuD;AACvD,iEAA4D;AAGrD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,iCAA4B;IAG7C;IACC;IAHnB,YAEkB,IAA0B,EACzB,UAA8B;Q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f,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,0BAAQ,CAAC,CAAA;qCACL,oBAAU;QACH,yCAAkB;GAJtC,eAAe,CAqE3B"}
|
|
@@ -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":"AAmCA,qBAuDa,kBAAkB;CAAG"}
|
|
@@ -24,6 +24,7 @@ const workflow_module_credential_entity_1 = require("./entities/workflow-module-
|
|
|
24
24
|
const workflow_node_entity_1 = require("./entities/workflow-node.entity");
|
|
25
25
|
const workflow_node_execution_entity_1 = require("./entities/workflow-node-execution.entity");
|
|
26
26
|
const workflow_session_entity_1 = require("./entities/workflow-session.entity");
|
|
27
|
+
const workflow_user_entity_1 = require("./entities/workflow-user.entity");
|
|
27
28
|
const workflow_webhook_entity_1 = require("./entities/workflow-webhook.entity");
|
|
28
29
|
const workflow_service_1 = require("./services/workflow.service");
|
|
29
30
|
const workflow_edge_service_1 = require("./services/workflow-edge.service");
|
|
@@ -36,7 +37,9 @@ const workflow_node_service_1 = require("./services/workflow-node.service");
|
|
|
36
37
|
const workflow_node_execution_service_1 = require("./services/workflow-node-execution.service");
|
|
37
38
|
const workflow_session_service_1 = require("./services/workflow-session.service");
|
|
38
39
|
const workflow_sse_service_1 = require("./services/workflow-sse.service");
|
|
40
|
+
const workflow_user_service_1 = require("./services/workflow-user.service");
|
|
39
41
|
const workflow_webhook_service_1 = require("./services/workflow-webhook.service");
|
|
42
|
+
const workflow_realtime_gateway_1 = require("./gateways/workflow-realtime.gateway");
|
|
40
43
|
let WorkflowCoreModule = class WorkflowCoreModule {
|
|
41
44
|
};
|
|
42
45
|
exports.WorkflowCoreModule = WorkflowCoreModule;
|
|
@@ -52,6 +55,7 @@ exports.WorkflowCoreModule = WorkflowCoreModule = __decorate([
|
|
|
52
55
|
workflow_session_entity_1.WorkflowSession,
|
|
53
56
|
workflow_module_credential_entity_1.WorkflowModuleCredential,
|
|
54
57
|
workflow_module_entity_1.WorkflowModule,
|
|
58
|
+
workflow_user_entity_1.WorkflowUser,
|
|
55
59
|
workflow_webhook_entity_1.WorkflowWebhook,
|
|
56
60
|
workflow_history_entity_1.WorkflowHistory,
|
|
57
61
|
]),
|
|
@@ -65,6 +69,7 @@ exports.WorkflowCoreModule = WorkflowCoreModule = __decorate([
|
|
|
65
69
|
workflow_sse_controller_1.WorkflowSSEController,
|
|
66
70
|
],
|
|
67
71
|
providers: [
|
|
72
|
+
workflow_realtime_gateway_1.WorkflowRealtimeGateway,
|
|
68
73
|
workflow_bulk_credential_service_1.WorkflowBulkCredentialService,
|
|
69
74
|
workflow_service_1.WorkflowService,
|
|
70
75
|
workflow_node_service_1.WorkflowNodeService,
|
|
@@ -75,6 +80,7 @@ exports.WorkflowCoreModule = WorkflowCoreModule = __decorate([
|
|
|
75
80
|
workflow_session_service_1.WorkflowSessionService,
|
|
76
81
|
workflow_module_credential_service_1.WorkflowModuleCredentialService,
|
|
77
82
|
workflow_module_service_1.WorkflowModuleService,
|
|
83
|
+
workflow_user_service_1.WorkflowUserService,
|
|
78
84
|
workflow_webhook_service_1.WorkflowWebhookService,
|
|
79
85
|
workflow_sse_service_1.WorkflowSSEService,
|
|
80
86
|
],
|
|
@@ -88,6 +94,7 @@ exports.WorkflowCoreModule = WorkflowCoreModule = __decorate([
|
|
|
88
94
|
workflow_session_service_1.WorkflowSessionService,
|
|
89
95
|
workflow_module_credential_service_1.WorkflowModuleCredentialService,
|
|
90
96
|
workflow_module_service_1.WorkflowModuleService,
|
|
97
|
+
workflow_user_service_1.WorkflowUserService,
|
|
91
98
|
workflow_webhook_service_1.WorkflowWebhookService,
|
|
92
99
|
workflow_sse_service_1.WorkflowSSEService,
|
|
93
100
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-core.module.js","sourceRoot":"","sources":["../src/workflow-core.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAEhD,2GAAqG;AACrG,2FAAsF;AACtF,+GAAyG;AACzG,qFAAgF;AAChF,yGAAmG;AACnG,mFAA8E;AAC9E,gEAAsD;AACtD,0EAA+D;AAC/D,oFAAyE;AACzE,gFAAqE;AACrE,8EAA2F;AAC3F,oGAAwF;AACxF,0EAA+D;AAC/D,8FAAkF;AAClF,gFAAqE;AACrE,gFAAqE;AACrE,kEAA8D;AAC9D,4EAAuE;AACvE,sFAAiF;AACjF,kGAA4F;AAC5F,kFAA6E;AAC7E,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,2GAAqG;AACrG,2FAAsF;AACtF,+GAAyG;AACzG,qFAAgF;AAChF,yGAAmG;AACnG,mFAA8E;AAC9E,gEAAsD;AACtD,0EAA+D;AAC/D,oFAAyE;AACzE,gFAAqE;AACrE,8EAA2F;AAC3F,oGAAwF;AACxF,0EAA+D;AAC/D,8FAAkF;AAClF,gFAAqE;AACrE,0EAA+D;AAC/D,gFAAqE;AACrE,kEAA8D;AAC9D,4EAAuE;AACvE,sFAAiF;AACjF,kGAA4F;AAC5F,kFAA6E;AAC7E,gFAA2E;AAC3E,sGAAgG;AAChG,4EAAuE;AACvE,gGAA0F;AAC1F,kFAA6E;AAC7E,0EAAqE;AACrE,4EAAuE;AACvE,kFAA6E;AAC7E,oFAA+E;AAyDxE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,gDAAkB;6BAAlB,kBAAkB;IAvD9B,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;gBACf,yCAAe;aAChB,CAAC;SACH;QACD,WAAW,EAAE;YACX,sEAAgC;YAChC,uDAAyB;YACzB,iDAAsB;YACtB,oEAA+B;YAC/B,0EAAkC;YAClC,+CAAqB;SACtB;QACD,SAAS,EAAE;YACT,mDAAuB;YACvB,gEAA6B;YAC7B,kCAAe;YACf,2CAAmB;YACnB,8DAA4B;YAC5B,2CAAmB;YACnB,qDAAwB;YACxB,iDAAsB;YACtB,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,iDAAsB;YACtB,oEAA+B;YAC/B,+CAAqB;YACrB,2CAAmB;YACnB,iDAAsB;YACtB,yCAAkB;SACnB;KACF,CAAC;GACW,kBAAkB,CAAG"}
|
package/package.json
CHANGED
|
@@ -1,109 +1,111 @@
|
|
|
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
|
-
"@
|
|
67
|
-
"@
|
|
68
|
-
"@dataui/crud
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@nestjs/
|
|
72
|
-
"@nestjs/
|
|
73
|
-
"@nestjs/
|
|
74
|
-
"@nestjs/
|
|
75
|
-
"@nestjs/
|
|
76
|
-
"@nestjs/
|
|
77
|
-
"@nestjs/
|
|
78
|
-
"@
|
|
79
|
-
"@
|
|
80
|
-
"@venturialstd/
|
|
81
|
-
"@venturialstd/
|
|
82
|
-
"@venturialstd/
|
|
83
|
-
"@venturialstd/
|
|
84
|
-
"@venturialstd/
|
|
85
|
-
"@venturialstd/
|
|
86
|
-
"@venturialstd/
|
|
87
|
-
"@venturialstd/
|
|
88
|
-
"@venturialstd/
|
|
89
|
-
"@venturialstd/
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"passport
|
|
98
|
-
"passport-
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
|
|
109
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@venturialstd/workflow",
|
|
3
|
+
"version": "0.1.154",
|
|
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
|
+
"@nestjs/platform-socket.io": "^11.0.0",
|
|
67
|
+
"@nestjs/websockets": "^11.0.0",
|
|
68
|
+
"@dataui/crud": "^5.3.4",
|
|
69
|
+
"@dataui/crud-request": "^5.3.4",
|
|
70
|
+
"@dataui/crud-typeorm": "^5.3.4",
|
|
71
|
+
"@nestjs/cache-manager": "^3.0.0",
|
|
72
|
+
"@nestjs/common": "^11.0.11",
|
|
73
|
+
"@nestjs/config": "^4.0.0",
|
|
74
|
+
"@nestjs/core": "^11.0.5",
|
|
75
|
+
"@nestjs/event-emitter": "^3.0.1",
|
|
76
|
+
"@nestjs/jwt": "^11.0.0",
|
|
77
|
+
"@nestjs/passport": "^11.0.5",
|
|
78
|
+
"@nestjs/swagger": "^11.0.3",
|
|
79
|
+
"@nestjs/typeorm": "^11.0.0",
|
|
80
|
+
"@venturialstd/capa": "^0.0.6",
|
|
81
|
+
"@venturialstd/circle": "^0.0.7",
|
|
82
|
+
"@venturialstd/core": "^1.0.16",
|
|
83
|
+
"@venturialstd/email": "^0.0.2",
|
|
84
|
+
"@venturialstd/fintech": "^0.0.16",
|
|
85
|
+
"@venturialstd/inbestgo": "^0.0.4",
|
|
86
|
+
"@venturialstd/jira": "^0.1.35",
|
|
87
|
+
"@venturialstd/kira": "^0.0.1",
|
|
88
|
+
"@venturialstd/kyc": "^0.0.6",
|
|
89
|
+
"@venturialstd/slack": "^0.1.31",
|
|
90
|
+
"@venturialstd/toolbox": "^0.0.1",
|
|
91
|
+
"@venturialstd/twilio": "^0.0.4",
|
|
92
|
+
"bcrypt": "^5.1.1",
|
|
93
|
+
"cache-manager": "^6.4.0",
|
|
94
|
+
"class-transformer": "^0.5.1",
|
|
95
|
+
"class-validator": "^0.14.1",
|
|
96
|
+
"jwks-rsa": "^3.1.0",
|
|
97
|
+
"passport": "^0.7.0",
|
|
98
|
+
"passport-auth0": "^1.4.0",
|
|
99
|
+
"passport-jwt": "^4.0.1",
|
|
100
|
+
"passport-local": "^1.0.0",
|
|
101
|
+
"rxjs": "^7.8.1",
|
|
102
|
+
"typeorm": "^0.3.20",
|
|
103
|
+
"uuid": "^11.0.5"
|
|
104
|
+
},
|
|
105
|
+
"dependencies": {
|
|
106
|
+
"@venturialstd/chatgpt": "^0.0.6",
|
|
107
|
+
"@venturialstd/user": "^0.0.3",
|
|
108
|
+
"libphonenumber-js": "^1.12.34",
|
|
109
|
+
"pg": "^8.16.3"
|
|
110
|
+
}
|
|
111
|
+
}
|