@flusys/nestjs-task-manager 5.3.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/README.md +245 -0
- package/cjs/config/index.js +19 -0
- package/cjs/config/message-keys.js +92 -0
- package/cjs/config/task-manager.constants.js +11 -0
- package/cjs/controllers/index.js +22 -0
- package/cjs/controllers/task-board.controller.js +219 -0
- package/cjs/controllers/task-comment.controller.js +103 -0
- package/cjs/controllers/task-label.controller.js +112 -0
- package/cjs/controllers/task-list.controller.js +158 -0
- package/cjs/controllers/task.controller.js +199 -0
- package/cjs/docs/index.js +18 -0
- package/cjs/docs/task-manager-swagger.config.js +43 -0
- package/cjs/dtos/index.js +22 -0
- package/cjs/dtos/task-board.dto.js +310 -0
- package/cjs/dtos/task-comment.dto.js +131 -0
- package/cjs/dtos/task-label.dto.js +120 -0
- package/cjs/dtos/task-list.dto.js +198 -0
- package/cjs/dtos/task.dto.js +367 -0
- package/cjs/entities/index.js +72 -0
- package/cjs/entities/task-activity.entity.js +98 -0
- package/cjs/entities/task-assignee.entity.js +67 -0
- package/cjs/entities/task-board-member.entity.js +94 -0
- package/cjs/entities/task-board-with-company.entity.js +57 -0
- package/cjs/entities/task-board.entity.js +88 -0
- package/cjs/entities/task-comment.entity.js +80 -0
- package/cjs/entities/task-label.entity.js +72 -0
- package/cjs/entities/task-list.entity.js +104 -0
- package/cjs/entities/task-task-label.entity.js +67 -0
- package/cjs/entities/task.entity.js +151 -0
- package/cjs/gateways/index.js +18 -0
- package/cjs/gateways/task-board.gateway.js +199 -0
- package/cjs/index.js +26 -0
- package/cjs/interfaces/index.js +19 -0
- package/cjs/interfaces/task-manager-module.interface.js +4 -0
- package/cjs/interfaces/task.interface.js +4 -0
- package/cjs/modules/index.js +18 -0
- package/cjs/modules/task-manager.module.js +131 -0
- package/cjs/services/index.js +25 -0
- package/cjs/services/task-activity.service.js +76 -0
- package/cjs/services/task-board.service.js +235 -0
- package/cjs/services/task-comment.service.js +103 -0
- package/cjs/services/task-label.service.js +97 -0
- package/cjs/services/task-list.service.js +115 -0
- package/cjs/services/task-manager-config.service.js +69 -0
- package/cjs/services/task-manager-datasource.provider.js +84 -0
- package/cjs/services/task.service.js +359 -0
- package/config/index.d.ts +2 -0
- package/config/message-keys.d.ts +65 -0
- package/config/task-manager.constants.d.ts +1 -0
- package/controllers/index.d.ts +5 -0
- package/controllers/task-board.controller.d.ts +27 -0
- package/controllers/task-comment.controller.d.ts +22 -0
- package/controllers/task-label.controller.d.ts +22 -0
- package/controllers/task-list.controller.d.ts +26 -0
- package/controllers/task.controller.d.ts +28 -0
- package/docs/index.d.ts +1 -0
- package/docs/task-manager-swagger.config.d.ts +2 -0
- package/dtos/index.d.ts +5 -0
- package/dtos/task-board.dto.d.ts +44 -0
- package/dtos/task-comment.dto.d.ts +16 -0
- package/dtos/task-label.dto.d.ts +16 -0
- package/dtos/task-list.dto.d.ts +26 -0
- package/dtos/task.dto.d.ts +48 -0
- package/entities/index.d.ts +22 -0
- package/entities/task-activity.entity.d.ts +9 -0
- package/entities/task-assignee.entity.d.ts +5 -0
- package/entities/task-board-member.entity.d.ts +12 -0
- package/entities/task-board-with-company.entity.d.ts +4 -0
- package/entities/task-board.entity.d.ts +8 -0
- package/entities/task-comment.entity.d.ts +7 -0
- package/entities/task-label.entity.d.ts +6 -0
- package/entities/task-list.entity.d.ts +9 -0
- package/entities/task-task-label.entity.d.ts +5 -0
- package/entities/task.entity.d.ts +23 -0
- package/fesm/config/index.js +2 -0
- package/fesm/config/message-keys.js +65 -0
- package/fesm/config/task-manager.constants.js +1 -0
- package/fesm/controllers/index.js +5 -0
- package/fesm/controllers/task-board.controller.js +209 -0
- package/fesm/controllers/task-comment.controller.js +93 -0
- package/fesm/controllers/task-label.controller.js +102 -0
- package/fesm/controllers/task-list.controller.js +148 -0
- package/fesm/controllers/task.controller.js +189 -0
- package/fesm/docs/index.js +1 -0
- package/fesm/docs/task-manager-swagger.config.js +33 -0
- package/fesm/dtos/index.js +5 -0
- package/fesm/dtos/task-board.dto.js +277 -0
- package/fesm/dtos/task-comment.dto.js +110 -0
- package/fesm/dtos/task-label.dto.js +99 -0
- package/fesm/dtos/task-list.dto.js +174 -0
- package/fesm/dtos/task.dto.js +337 -0
- package/fesm/entities/index.js +46 -0
- package/fesm/entities/task-activity.entity.js +88 -0
- package/fesm/entities/task-assignee.entity.js +57 -0
- package/fesm/entities/task-board-member.entity.js +76 -0
- package/fesm/entities/task-board-with-company.entity.js +47 -0
- package/fesm/entities/task-board.entity.js +78 -0
- package/fesm/entities/task-comment.entity.js +70 -0
- package/fesm/entities/task-label.entity.js +62 -0
- package/fesm/entities/task-list.entity.js +94 -0
- package/fesm/entities/task-task-label.entity.js +57 -0
- package/fesm/entities/task.entity.js +133 -0
- package/fesm/gateways/index.js +1 -0
- package/fesm/gateways/task-board.gateway.js +148 -0
- package/fesm/index.js +9 -0
- package/fesm/interfaces/index.js +2 -0
- package/fesm/interfaces/task-manager-module.interface.js +1 -0
- package/fesm/interfaces/task.interface.js +1 -0
- package/fesm/modules/index.js +1 -0
- package/fesm/modules/task-manager.module.js +121 -0
- package/fesm/services/index.js +8 -0
- package/fesm/services/task-activity.service.js +66 -0
- package/fesm/services/task-board.service.js +225 -0
- package/fesm/services/task-comment.service.js +93 -0
- package/fesm/services/task-label.service.js +87 -0
- package/fesm/services/task-list.service.js +105 -0
- package/fesm/services/task-manager-config.service.js +59 -0
- package/fesm/services/task-manager-datasource.provider.js +74 -0
- package/fesm/services/task.service.js +349 -0
- package/gateways/index.d.ts +1 -0
- package/gateways/task-board.gateway.d.ts +22 -0
- package/index.d.ts +9 -0
- package/interfaces/index.d.ts +2 -0
- package/interfaces/task-manager-module.interface.d.ts +19 -0
- package/interfaces/task.interface.d.ts +52 -0
- package/modules/index.d.ts +1 -0
- package/modules/task-manager.module.d.ts +8 -0
- package/package.json +91 -0
- package/services/index.d.ts +8 -0
- package/services/task-activity.service.d.ts +8 -0
- package/services/task-board.service.d.ts +32 -0
- package/services/task-comment.service.d.ts +18 -0
- package/services/task-label.service.d.ts +18 -0
- package/services/task-list.service.d.ts +19 -0
- package/services/task-manager-config.service.d.ts +12 -0
- package/services/task-manager-datasource.provider.d.ts +18 -0
- package/services/task.service.d.ts +44 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
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;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
}
|
|
20
|
+
function _ts_metadata(k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
}
|
|
23
|
+
import { getJsonColumnType } from '@flusys/nestjs-shared';
|
|
24
|
+
import { Identity } from '@flusys/nestjs-shared/entities';
|
|
25
|
+
import { Column, Entity, Index } from 'typeorm';
|
|
26
|
+
export class TaskActivity extends Identity {
|
|
27
|
+
constructor(...args){
|
|
28
|
+
super(...args), _define_property(this, "taskId", void 0), _define_property(this, "userId", void 0), _define_property(this, "boardId", void 0), _define_property(this, "action", void 0), _define_property(this, "oldValue", void 0), _define_property(this, "newValue", void 0);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
_ts_decorate([
|
|
32
|
+
Index(),
|
|
33
|
+
Column({
|
|
34
|
+
name: 'task_id',
|
|
35
|
+
type: 'uuid',
|
|
36
|
+
nullable: false
|
|
37
|
+
}),
|
|
38
|
+
_ts_metadata("design:type", String)
|
|
39
|
+
], TaskActivity.prototype, "taskId", void 0);
|
|
40
|
+
_ts_decorate([
|
|
41
|
+
Column({
|
|
42
|
+
name: 'user_id',
|
|
43
|
+
type: 'uuid',
|
|
44
|
+
nullable: true
|
|
45
|
+
}),
|
|
46
|
+
_ts_metadata("design:type", Object)
|
|
47
|
+
], TaskActivity.prototype, "userId", void 0);
|
|
48
|
+
_ts_decorate([
|
|
49
|
+
Column({
|
|
50
|
+
name: 'board_id',
|
|
51
|
+
type: 'uuid',
|
|
52
|
+
nullable: false
|
|
53
|
+
}),
|
|
54
|
+
_ts_metadata("design:type", String)
|
|
55
|
+
], TaskActivity.prototype, "boardId", void 0);
|
|
56
|
+
_ts_decorate([
|
|
57
|
+
Column({
|
|
58
|
+
type: 'varchar',
|
|
59
|
+
length: 100,
|
|
60
|
+
nullable: false
|
|
61
|
+
}),
|
|
62
|
+
_ts_metadata("design:type", String)
|
|
63
|
+
], TaskActivity.prototype, "action", void 0);
|
|
64
|
+
_ts_decorate([
|
|
65
|
+
Column({
|
|
66
|
+
name: 'old_value',
|
|
67
|
+
type: getJsonColumnType(),
|
|
68
|
+
nullable: true
|
|
69
|
+
}),
|
|
70
|
+
_ts_metadata("design:type", Object)
|
|
71
|
+
], TaskActivity.prototype, "oldValue", void 0);
|
|
72
|
+
_ts_decorate([
|
|
73
|
+
Column({
|
|
74
|
+
name: 'new_value',
|
|
75
|
+
type: getJsonColumnType(),
|
|
76
|
+
nullable: true
|
|
77
|
+
}),
|
|
78
|
+
_ts_metadata("design:type", Object)
|
|
79
|
+
], TaskActivity.prototype, "newValue", void 0);
|
|
80
|
+
TaskActivity = _ts_decorate([
|
|
81
|
+
Entity({
|
|
82
|
+
name: 'task_activity'
|
|
83
|
+
}),
|
|
84
|
+
Index([
|
|
85
|
+
'taskId',
|
|
86
|
+
'createdAt'
|
|
87
|
+
])
|
|
88
|
+
], TaskActivity);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
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;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
}
|
|
20
|
+
function _ts_metadata(k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
}
|
|
23
|
+
import { Identity } from '@flusys/nestjs-shared/entities';
|
|
24
|
+
import { Column, Entity, Index } from 'typeorm';
|
|
25
|
+
export class TaskAssignee extends Identity {
|
|
26
|
+
constructor(...args){
|
|
27
|
+
super(...args), _define_property(this, "taskId", void 0), _define_property(this, "userId", void 0);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
_ts_decorate([
|
|
31
|
+
Index(),
|
|
32
|
+
Column({
|
|
33
|
+
name: 'task_id',
|
|
34
|
+
type: 'uuid',
|
|
35
|
+
nullable: false
|
|
36
|
+
}),
|
|
37
|
+
_ts_metadata("design:type", String)
|
|
38
|
+
], TaskAssignee.prototype, "taskId", void 0);
|
|
39
|
+
_ts_decorate([
|
|
40
|
+
Column({
|
|
41
|
+
name: 'user_id',
|
|
42
|
+
type: 'uuid',
|
|
43
|
+
nullable: false
|
|
44
|
+
}),
|
|
45
|
+
_ts_metadata("design:type", String)
|
|
46
|
+
], TaskAssignee.prototype, "userId", void 0);
|
|
47
|
+
TaskAssignee = _ts_decorate([
|
|
48
|
+
Entity({
|
|
49
|
+
name: 'task_assignee'
|
|
50
|
+
}),
|
|
51
|
+
Index([
|
|
52
|
+
'taskId',
|
|
53
|
+
'userId'
|
|
54
|
+
], {
|
|
55
|
+
unique: true
|
|
56
|
+
})
|
|
57
|
+
], TaskAssignee);
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
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;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
}
|
|
20
|
+
function _ts_metadata(k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
}
|
|
23
|
+
import { Identity } from '@flusys/nestjs-shared/entities';
|
|
24
|
+
import { Column, Entity, Index } from 'typeorm';
|
|
25
|
+
export var BoardMemberRole = /*#__PURE__*/ function(BoardMemberRole) {
|
|
26
|
+
BoardMemberRole["OWNER"] = "OWNER";
|
|
27
|
+
BoardMemberRole["ADMIN"] = "ADMIN";
|
|
28
|
+
BoardMemberRole["MEMBER"] = "MEMBER";
|
|
29
|
+
BoardMemberRole["VIEWER"] = "VIEWER";
|
|
30
|
+
return BoardMemberRole;
|
|
31
|
+
}({});
|
|
32
|
+
export class TaskBoardMember extends Identity {
|
|
33
|
+
constructor(...args){
|
|
34
|
+
super(...args), _define_property(this, "boardId", void 0), _define_property(this, "userId", void 0), _define_property(this, "role", void 0);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
_ts_decorate([
|
|
38
|
+
Index(),
|
|
39
|
+
Column({
|
|
40
|
+
name: 'board_id',
|
|
41
|
+
type: 'uuid',
|
|
42
|
+
nullable: false
|
|
43
|
+
}),
|
|
44
|
+
_ts_metadata("design:type", String)
|
|
45
|
+
], TaskBoardMember.prototype, "boardId", void 0);
|
|
46
|
+
_ts_decorate([
|
|
47
|
+
Column({
|
|
48
|
+
name: 'user_id',
|
|
49
|
+
type: 'uuid',
|
|
50
|
+
nullable: false
|
|
51
|
+
}),
|
|
52
|
+
_ts_metadata("design:type", String)
|
|
53
|
+
], TaskBoardMember.prototype, "userId", void 0);
|
|
54
|
+
_ts_decorate([
|
|
55
|
+
Column({
|
|
56
|
+
type: 'varchar',
|
|
57
|
+
length: 20,
|
|
58
|
+
nullable: false,
|
|
59
|
+
default: "MEMBER"
|
|
60
|
+
}),
|
|
61
|
+
_ts_metadata("design:type", String)
|
|
62
|
+
], TaskBoardMember.prototype, "role", void 0);
|
|
63
|
+
TaskBoardMember = _ts_decorate([
|
|
64
|
+
Entity({
|
|
65
|
+
name: 'task_board_member'
|
|
66
|
+
}),
|
|
67
|
+
Index([
|
|
68
|
+
'boardId',
|
|
69
|
+
'userId'
|
|
70
|
+
], {
|
|
71
|
+
unique: true
|
|
72
|
+
}),
|
|
73
|
+
Index([
|
|
74
|
+
'userId'
|
|
75
|
+
])
|
|
76
|
+
], TaskBoardMember);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
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;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
}
|
|
20
|
+
function _ts_metadata(k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
}
|
|
23
|
+
import { Column, Entity, Index } from 'typeorm';
|
|
24
|
+
import { TaskBoard } from './task-board.entity';
|
|
25
|
+
export class TaskBoardWithCompany extends TaskBoard {
|
|
26
|
+
constructor(...args){
|
|
27
|
+
super(...args), _define_property(this, "companyId", void 0);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
_ts_decorate([
|
|
31
|
+
Index(),
|
|
32
|
+
Column({
|
|
33
|
+
name: 'company_id',
|
|
34
|
+
type: 'uuid',
|
|
35
|
+
nullable: true
|
|
36
|
+
}),
|
|
37
|
+
_ts_metadata("design:type", Object)
|
|
38
|
+
], TaskBoardWithCompany.prototype, "companyId", void 0);
|
|
39
|
+
TaskBoardWithCompany = _ts_decorate([
|
|
40
|
+
Entity({
|
|
41
|
+
name: 'task_board'
|
|
42
|
+
}),
|
|
43
|
+
Index([
|
|
44
|
+
'companyId',
|
|
45
|
+
'isActive'
|
|
46
|
+
])
|
|
47
|
+
], TaskBoardWithCompany);
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
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;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
}
|
|
20
|
+
function _ts_metadata(k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
}
|
|
23
|
+
import { getJsonColumnType } from '@flusys/nestjs-shared';
|
|
24
|
+
import { Identity } from '@flusys/nestjs-shared/entities';
|
|
25
|
+
import { Column, Entity, Index } from 'typeorm';
|
|
26
|
+
export class TaskBoard extends Identity {
|
|
27
|
+
constructor(...args){
|
|
28
|
+
super(...args), _define_property(this, "name", void 0), _define_property(this, "description", void 0), _define_property(this, "color", void 0), _define_property(this, "isActive", void 0), _define_property(this, "settings", void 0);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
_ts_decorate([
|
|
32
|
+
Column({
|
|
33
|
+
type: 'varchar',
|
|
34
|
+
length: 255,
|
|
35
|
+
nullable: false
|
|
36
|
+
}),
|
|
37
|
+
_ts_metadata("design:type", String)
|
|
38
|
+
], TaskBoard.prototype, "name", void 0);
|
|
39
|
+
_ts_decorate([
|
|
40
|
+
Column({
|
|
41
|
+
type: 'text',
|
|
42
|
+
nullable: true
|
|
43
|
+
}),
|
|
44
|
+
_ts_metadata("design:type", Object)
|
|
45
|
+
], TaskBoard.prototype, "description", void 0);
|
|
46
|
+
_ts_decorate([
|
|
47
|
+
Column({
|
|
48
|
+
type: 'varchar',
|
|
49
|
+
length: 7,
|
|
50
|
+
nullable: false,
|
|
51
|
+
default: '#3B82F6'
|
|
52
|
+
}),
|
|
53
|
+
_ts_metadata("design:type", String)
|
|
54
|
+
], TaskBoard.prototype, "color", void 0);
|
|
55
|
+
_ts_decorate([
|
|
56
|
+
Column({
|
|
57
|
+
name: 'is_active',
|
|
58
|
+
type: 'boolean',
|
|
59
|
+
nullable: false,
|
|
60
|
+
default: true
|
|
61
|
+
}),
|
|
62
|
+
_ts_metadata("design:type", Boolean)
|
|
63
|
+
], TaskBoard.prototype, "isActive", void 0);
|
|
64
|
+
_ts_decorate([
|
|
65
|
+
Column({
|
|
66
|
+
type: getJsonColumnType(),
|
|
67
|
+
nullable: true
|
|
68
|
+
}),
|
|
69
|
+
_ts_metadata("design:type", Object)
|
|
70
|
+
], TaskBoard.prototype, "settings", void 0);
|
|
71
|
+
TaskBoard = _ts_decorate([
|
|
72
|
+
Entity({
|
|
73
|
+
name: 'task_board'
|
|
74
|
+
}),
|
|
75
|
+
Index([
|
|
76
|
+
'isActive'
|
|
77
|
+
])
|
|
78
|
+
], TaskBoard);
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
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;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
}
|
|
20
|
+
function _ts_metadata(k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
}
|
|
23
|
+
import { Identity } from '@flusys/nestjs-shared/entities';
|
|
24
|
+
import { Column, Entity, Index } from 'typeorm';
|
|
25
|
+
export class TaskComment extends Identity {
|
|
26
|
+
constructor(...args){
|
|
27
|
+
super(...args), _define_property(this, "taskId", void 0), _define_property(this, "userId", void 0), _define_property(this, "content", void 0), _define_property(this, "parentCommentId", void 0);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
_ts_decorate([
|
|
31
|
+
Index(),
|
|
32
|
+
Column({
|
|
33
|
+
name: 'task_id',
|
|
34
|
+
type: 'uuid',
|
|
35
|
+
nullable: false
|
|
36
|
+
}),
|
|
37
|
+
_ts_metadata("design:type", String)
|
|
38
|
+
], TaskComment.prototype, "taskId", void 0);
|
|
39
|
+
_ts_decorate([
|
|
40
|
+
Column({
|
|
41
|
+
name: 'user_id',
|
|
42
|
+
type: 'uuid',
|
|
43
|
+
nullable: false
|
|
44
|
+
}),
|
|
45
|
+
_ts_metadata("design:type", String)
|
|
46
|
+
], TaskComment.prototype, "userId", void 0);
|
|
47
|
+
_ts_decorate([
|
|
48
|
+
Column({
|
|
49
|
+
type: 'text',
|
|
50
|
+
nullable: false
|
|
51
|
+
}),
|
|
52
|
+
_ts_metadata("design:type", String)
|
|
53
|
+
], TaskComment.prototype, "content", void 0);
|
|
54
|
+
_ts_decorate([
|
|
55
|
+
Column({
|
|
56
|
+
name: 'parent_comment_id',
|
|
57
|
+
type: 'uuid',
|
|
58
|
+
nullable: true
|
|
59
|
+
}),
|
|
60
|
+
_ts_metadata("design:type", Object)
|
|
61
|
+
], TaskComment.prototype, "parentCommentId", void 0);
|
|
62
|
+
TaskComment = _ts_decorate([
|
|
63
|
+
Entity({
|
|
64
|
+
name: 'task_comment'
|
|
65
|
+
}),
|
|
66
|
+
Index([
|
|
67
|
+
'taskId',
|
|
68
|
+
'createdAt'
|
|
69
|
+
])
|
|
70
|
+
], TaskComment);
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
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;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
}
|
|
20
|
+
function _ts_metadata(k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
}
|
|
23
|
+
import { Identity } from '@flusys/nestjs-shared/entities';
|
|
24
|
+
import { Column, Entity, Index } from 'typeorm';
|
|
25
|
+
export class TaskLabel extends Identity {
|
|
26
|
+
constructor(...args){
|
|
27
|
+
super(...args), _define_property(this, "boardId", void 0), _define_property(this, "name", void 0), _define_property(this, "color", void 0);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
_ts_decorate([
|
|
31
|
+
Column({
|
|
32
|
+
name: 'board_id',
|
|
33
|
+
type: 'uuid',
|
|
34
|
+
nullable: false
|
|
35
|
+
}),
|
|
36
|
+
_ts_metadata("design:type", String)
|
|
37
|
+
], TaskLabel.prototype, "boardId", void 0);
|
|
38
|
+
_ts_decorate([
|
|
39
|
+
Column({
|
|
40
|
+
type: 'varchar',
|
|
41
|
+
length: 100,
|
|
42
|
+
nullable: false
|
|
43
|
+
}),
|
|
44
|
+
_ts_metadata("design:type", String)
|
|
45
|
+
], TaskLabel.prototype, "name", void 0);
|
|
46
|
+
_ts_decorate([
|
|
47
|
+
Column({
|
|
48
|
+
type: 'varchar',
|
|
49
|
+
length: 7,
|
|
50
|
+
nullable: false,
|
|
51
|
+
default: '#10B981'
|
|
52
|
+
}),
|
|
53
|
+
_ts_metadata("design:type", String)
|
|
54
|
+
], TaskLabel.prototype, "color", void 0);
|
|
55
|
+
TaskLabel = _ts_decorate([
|
|
56
|
+
Entity({
|
|
57
|
+
name: 'task_label'
|
|
58
|
+
}),
|
|
59
|
+
Index([
|
|
60
|
+
'boardId'
|
|
61
|
+
])
|
|
62
|
+
], TaskLabel);
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
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;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
}
|
|
20
|
+
function _ts_metadata(k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
}
|
|
23
|
+
import { Identity } from '@flusys/nestjs-shared/entities';
|
|
24
|
+
import { Column, Entity, Index } from 'typeorm';
|
|
25
|
+
export class TaskList extends Identity {
|
|
26
|
+
constructor(...args){
|
|
27
|
+
super(...args), _define_property(this, "boardId", void 0), _define_property(this, "name", void 0), _define_property(this, "color", void 0), _define_property(this, "position", void 0), _define_property(this, "isActive", void 0), _define_property(this, "isDoneList", void 0);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
_ts_decorate([
|
|
31
|
+
Index(),
|
|
32
|
+
Column({
|
|
33
|
+
name: 'board_id',
|
|
34
|
+
type: 'uuid',
|
|
35
|
+
nullable: false
|
|
36
|
+
}),
|
|
37
|
+
_ts_metadata("design:type", String)
|
|
38
|
+
], TaskList.prototype, "boardId", void 0);
|
|
39
|
+
_ts_decorate([
|
|
40
|
+
Column({
|
|
41
|
+
type: 'varchar',
|
|
42
|
+
length: 255,
|
|
43
|
+
nullable: false
|
|
44
|
+
}),
|
|
45
|
+
_ts_metadata("design:type", String)
|
|
46
|
+
], TaskList.prototype, "name", void 0);
|
|
47
|
+
_ts_decorate([
|
|
48
|
+
Column({
|
|
49
|
+
type: 'varchar',
|
|
50
|
+
length: 7,
|
|
51
|
+
nullable: false,
|
|
52
|
+
default: '#6B7280'
|
|
53
|
+
}),
|
|
54
|
+
_ts_metadata("design:type", String)
|
|
55
|
+
], TaskList.prototype, "color", void 0);
|
|
56
|
+
_ts_decorate([
|
|
57
|
+
Column({
|
|
58
|
+
type: 'int',
|
|
59
|
+
nullable: false,
|
|
60
|
+
default: 0
|
|
61
|
+
}),
|
|
62
|
+
_ts_metadata("design:type", Number)
|
|
63
|
+
], TaskList.prototype, "position", void 0);
|
|
64
|
+
_ts_decorate([
|
|
65
|
+
Column({
|
|
66
|
+
name: 'is_active',
|
|
67
|
+
type: 'boolean',
|
|
68
|
+
nullable: false,
|
|
69
|
+
default: true
|
|
70
|
+
}),
|
|
71
|
+
_ts_metadata("design:type", Boolean)
|
|
72
|
+
], TaskList.prototype, "isActive", void 0);
|
|
73
|
+
_ts_decorate([
|
|
74
|
+
Column({
|
|
75
|
+
name: 'is_done_list',
|
|
76
|
+
type: 'boolean',
|
|
77
|
+
nullable: false,
|
|
78
|
+
default: false
|
|
79
|
+
}),
|
|
80
|
+
_ts_metadata("design:type", Boolean)
|
|
81
|
+
], TaskList.prototype, "isDoneList", void 0);
|
|
82
|
+
TaskList = _ts_decorate([
|
|
83
|
+
Entity({
|
|
84
|
+
name: 'task_list'
|
|
85
|
+
}),
|
|
86
|
+
Index([
|
|
87
|
+
'boardId',
|
|
88
|
+
'position'
|
|
89
|
+
]),
|
|
90
|
+
Index([
|
|
91
|
+
'boardId',
|
|
92
|
+
'isActive'
|
|
93
|
+
])
|
|
94
|
+
], TaskList);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
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;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
}
|
|
20
|
+
function _ts_metadata(k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
}
|
|
23
|
+
import { Identity } from '@flusys/nestjs-shared/entities';
|
|
24
|
+
import { Column, Entity, Index } from 'typeorm';
|
|
25
|
+
export class TaskTaskLabel extends Identity {
|
|
26
|
+
constructor(...args){
|
|
27
|
+
super(...args), _define_property(this, "taskId", void 0), _define_property(this, "labelId", void 0);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
_ts_decorate([
|
|
31
|
+
Index(),
|
|
32
|
+
Column({
|
|
33
|
+
name: 'task_id',
|
|
34
|
+
type: 'uuid',
|
|
35
|
+
nullable: false
|
|
36
|
+
}),
|
|
37
|
+
_ts_metadata("design:type", String)
|
|
38
|
+
], TaskTaskLabel.prototype, "taskId", void 0);
|
|
39
|
+
_ts_decorate([
|
|
40
|
+
Column({
|
|
41
|
+
name: 'label_id',
|
|
42
|
+
type: 'uuid',
|
|
43
|
+
nullable: false
|
|
44
|
+
}),
|
|
45
|
+
_ts_metadata("design:type", String)
|
|
46
|
+
], TaskTaskLabel.prototype, "labelId", void 0);
|
|
47
|
+
TaskTaskLabel = _ts_decorate([
|
|
48
|
+
Entity({
|
|
49
|
+
name: 'task_task_label'
|
|
50
|
+
}),
|
|
51
|
+
Index([
|
|
52
|
+
'taskId',
|
|
53
|
+
'labelId'
|
|
54
|
+
], {
|
|
55
|
+
unique: true
|
|
56
|
+
})
|
|
57
|
+
], TaskTaskLabel);
|