@flusys/nestjs-task-manager 7.1.0 → 8.0.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/config/index.d.ts +3 -3
- package/controllers/index.d.ts +5 -5
- package/controllers/task-board.controller.d.ts +3 -3
- package/controllers/task-comment.controller.d.ts +2 -2
- package/controllers/task-label.controller.d.ts +2 -2
- package/controllers/task-list.controller.d.ts +3 -3
- package/controllers/task.controller.d.ts +4 -4
- package/docs/index.d.ts +1 -1
- package/docs/task-manager-swagger.config.d.ts +1 -1
- package/dtos/index.d.ts +5 -5
- package/dtos/task-board.dto.d.ts +1 -1
- package/dtos/task.dto.d.ts +2 -2
- package/entities/index.d.ts +19 -19
- package/entities/task-board-with-company.entity.d.ts +1 -1
- package/fesm/234.js +1393 -0
- package/fesm/431.js +981 -0
- package/fesm/827.js +1054 -0
- package/fesm/988.js +881 -0
- package/fesm/config/index.js +156 -3
- package/fesm/controllers/index.js +21 -5
- package/fesm/docs/index.js +58 -1
- package/fesm/dtos/index.js +280 -5
- package/fesm/entities/index.js +26 -46
- package/fesm/gateways/index.js +288 -1
- package/fesm/index.js +440 -9
- package/fesm/interfaces/index.js +16 -2
- package/fesm/modules/index.js +210 -1
- package/fesm/runtime.js +85 -0
- package/fesm/services/index.js +53 -8
- package/gateways/index.d.ts +1 -1
- package/gateways/task-board.gateway.d.ts +3 -3
- package/index.d.ts +9 -9
- package/interfaces/index.d.ts +2 -2
- package/interfaces/task-manager-module.interface.d.ts +3 -3
- package/interfaces/task.interface.d.ts +2 -2
- package/modules/index.d.ts +1 -1
- package/modules/task-manager.module.d.ts +2 -2
- package/package.json +26 -36
- package/services/index.d.ts +8 -8
- package/services/task-activity.service.d.ts +1 -1
- package/services/task-board.service.d.ts +5 -5
- package/services/task-comment.service.d.ts +4 -4
- package/services/task-label.service.d.ts +4 -4
- package/services/task-list.service.d.ts +4 -4
- package/services/task-manager-config.service.d.ts +3 -3
- package/services/task-manager-datasource.provider.d.ts +3 -3
- package/services/task.service.d.ts +7 -7
- package/cjs/config/event-actions.js +0 -37
- package/cjs/config/index.js +0 -20
- package/cjs/config/message-keys.js +0 -92
- package/cjs/config/task-manager.constants.js +0 -11
- package/cjs/controllers/index.js +0 -22
- package/cjs/controllers/task-board.controller.js +0 -219
- package/cjs/controllers/task-board.controller.spec.js +0 -132
- package/cjs/controllers/task-comment.controller.js +0 -103
- package/cjs/controllers/task-comment.controller.spec.js +0 -86
- package/cjs/controllers/task-label.controller.js +0 -112
- package/cjs/controllers/task-label.controller.spec.js +0 -88
- package/cjs/controllers/task-list.controller.js +0 -158
- package/cjs/controllers/task-list.controller.spec.js +0 -112
- package/cjs/controllers/task.controller.js +0 -199
- package/cjs/controllers/task.controller.spec.js +0 -131
- package/cjs/docs/index.js +0 -18
- package/cjs/docs/task-manager-swagger.config.js +0 -43
- package/cjs/docs/task-manager-swagger.config.spec.js +0 -28
- package/cjs/dtos/index.js +0 -22
- package/cjs/dtos/task-board.dto.js +0 -310
- package/cjs/dtos/task-comment.dto.js +0 -131
- package/cjs/dtos/task-label.dto.js +0 -120
- package/cjs/dtos/task-list.dto.js +0 -198
- package/cjs/dtos/task.dto.js +0 -367
- package/cjs/entities/index.js +0 -72
- package/cjs/entities/index.spec.js +0 -30
- package/cjs/entities/task-activity.entity.js +0 -98
- package/cjs/entities/task-assignee.entity.js +0 -67
- package/cjs/entities/task-board-member.entity.js +0 -94
- package/cjs/entities/task-board-with-company.entity.js +0 -57
- package/cjs/entities/task-board.entity.js +0 -88
- package/cjs/entities/task-comment.entity.js +0 -80
- package/cjs/entities/task-label.entity.js +0 -72
- package/cjs/entities/task-list.entity.js +0 -104
- package/cjs/entities/task-task-label.entity.js +0 -67
- package/cjs/entities/task.entity.js +0 -151
- package/cjs/gateways/index.js +0 -18
- package/cjs/gateways/task-board.gateway.js +0 -167
- package/cjs/gateways/task-board.gateway.spec.js +0 -243
- package/cjs/index.js +0 -26
- package/cjs/interfaces/index.js +0 -19
- package/cjs/interfaces/task-manager-module.interface.js +0 -4
- package/cjs/interfaces/task.interface.js +0 -4
- package/cjs/modules/index.js +0 -18
- package/cjs/modules/task-manager.module.js +0 -135
- package/cjs/modules/task-manager.module.spec.js +0 -144
- package/cjs/services/index.js +0 -25
- package/cjs/services/task-activity.service.js +0 -76
- package/cjs/services/task-activity.service.spec.js +0 -125
- package/cjs/services/task-board.service.js +0 -247
- package/cjs/services/task-board.service.spec.js +0 -465
- package/cjs/services/task-comment.service.js +0 -103
- package/cjs/services/task-comment.service.spec.js +0 -160
- package/cjs/services/task-label.service.js +0 -97
- package/cjs/services/task-label.service.spec.js +0 -138
- package/cjs/services/task-list.service.js +0 -130
- package/cjs/services/task-list.service.spec.js +0 -284
- package/cjs/services/task-manager-config.service.js +0 -69
- package/cjs/services/task-manager-config.service.spec.js +0 -98
- package/cjs/services/task-manager-datasource.provider.js +0 -84
- package/cjs/services/task-manager-datasource.provider.spec.js +0 -131
- package/cjs/services/task.service.js +0 -398
- package/cjs/services/task.service.spec.js +0 -700
- package/fesm/config/event-actions.js +0 -16
- package/fesm/config/message-keys.js +0 -65
- package/fesm/config/task-manager.constants.js +0 -1
- package/fesm/controllers/task-board.controller.js +0 -209
- package/fesm/controllers/task-board.controller.spec.js +0 -128
- package/fesm/controllers/task-comment.controller.js +0 -93
- package/fesm/controllers/task-comment.controller.spec.js +0 -82
- package/fesm/controllers/task-label.controller.js +0 -102
- package/fesm/controllers/task-label.controller.spec.js +0 -84
- package/fesm/controllers/task-list.controller.js +0 -148
- package/fesm/controllers/task-list.controller.spec.js +0 -108
- package/fesm/controllers/task.controller.js +0 -189
- package/fesm/controllers/task.controller.spec.js +0 -127
- package/fesm/docs/task-manager-swagger.config.js +0 -33
- package/fesm/docs/task-manager-swagger.config.spec.js +0 -24
- package/fesm/dtos/task-board.dto.js +0 -277
- package/fesm/dtos/task-comment.dto.js +0 -110
- package/fesm/dtos/task-label.dto.js +0 -99
- package/fesm/dtos/task-list.dto.js +0 -174
- package/fesm/dtos/task.dto.js +0 -337
- package/fesm/entities/index.spec.js +0 -26
- package/fesm/entities/task-activity.entity.js +0 -88
- package/fesm/entities/task-assignee.entity.js +0 -57
- package/fesm/entities/task-board-member.entity.js +0 -76
- package/fesm/entities/task-board-with-company.entity.js +0 -47
- package/fesm/entities/task-board.entity.js +0 -78
- package/fesm/entities/task-comment.entity.js +0 -70
- package/fesm/entities/task-label.entity.js +0 -62
- package/fesm/entities/task-list.entity.js +0 -94
- package/fesm/entities/task-task-label.entity.js +0 -57
- package/fesm/entities/task.entity.js +0 -133
- package/fesm/gateways/task-board.gateway.js +0 -157
- package/fesm/gateways/task-board.gateway.spec.js +0 -239
- package/fesm/interfaces/task-manager-module.interface.js +0 -1
- package/fesm/interfaces/task.interface.js +0 -1
- package/fesm/modules/task-manager.module.js +0 -125
- package/fesm/modules/task-manager.module.spec.js +0 -140
- package/fesm/services/task-activity.service.js +0 -66
- package/fesm/services/task-activity.service.spec.js +0 -121
- package/fesm/services/task-board.service.js +0 -237
- package/fesm/services/task-board.service.spec.js +0 -461
- package/fesm/services/task-comment.service.js +0 -93
- package/fesm/services/task-comment.service.spec.js +0 -156
- package/fesm/services/task-label.service.js +0 -87
- package/fesm/services/task-label.service.spec.js +0 -134
- package/fesm/services/task-list.service.js +0 -120
- package/fesm/services/task-list.service.spec.js +0 -280
- package/fesm/services/task-manager-config.service.js +0 -59
- package/fesm/services/task-manager-config.service.spec.js +0 -94
- package/fesm/services/task-manager-datasource.provider.js +0 -74
- package/fesm/services/task-manager-datasource.provider.spec.js +0 -127
- package/fesm/services/task.service.js +0 -388
- package/fesm/services/task.service.spec.js +0 -696
|
@@ -1,76 +0,0 @@
|
|
|
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);
|
|
@@ -1,47 +0,0 @@
|
|
|
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);
|
|
@@ -1,78 +0,0 @@
|
|
|
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);
|
|
@@ -1,70 +0,0 @@
|
|
|
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);
|
|
@@ -1,62 +0,0 @@
|
|
|
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);
|
|
@@ -1,94 +0,0 @@
|
|
|
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);
|
|
@@ -1,57 +0,0 @@
|
|
|
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);
|
|
@@ -1,133 +0,0 @@
|
|
|
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 TaskPriority = /*#__PURE__*/ function(TaskPriority) {
|
|
26
|
-
TaskPriority["LOW"] = "LOW";
|
|
27
|
-
TaskPriority["MEDIUM"] = "MEDIUM";
|
|
28
|
-
TaskPriority["HIGH"] = "HIGH";
|
|
29
|
-
TaskPriority["URGENT"] = "URGENT";
|
|
30
|
-
return TaskPriority;
|
|
31
|
-
}({});
|
|
32
|
-
export class Task extends Identity {
|
|
33
|
-
constructor(...args){
|
|
34
|
-
super(...args), _define_property(this, "boardId", void 0), _define_property(this, "listId", void 0), _define_property(this, "title", void 0), _define_property(this, "description", void 0), _define_property(this, "priority", void 0), _define_property(this, "dueDate", void 0), _define_property(this, "position", void 0), _define_property(this, "reporterId", void 0), _define_property(this, "parentTaskId", void 0), _define_property(this, "estimatedHours", void 0), _define_property(this, "assignees", []);
|
|
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
|
-
], Task.prototype, "boardId", void 0);
|
|
46
|
-
_ts_decorate([
|
|
47
|
-
Index(),
|
|
48
|
-
Column({
|
|
49
|
-
name: 'list_id',
|
|
50
|
-
type: 'uuid',
|
|
51
|
-
nullable: false
|
|
52
|
-
}),
|
|
53
|
-
_ts_metadata("design:type", String)
|
|
54
|
-
], Task.prototype, "listId", void 0);
|
|
55
|
-
_ts_decorate([
|
|
56
|
-
Column({
|
|
57
|
-
type: 'varchar',
|
|
58
|
-
length: 500,
|
|
59
|
-
nullable: false
|
|
60
|
-
}),
|
|
61
|
-
_ts_metadata("design:type", String)
|
|
62
|
-
], Task.prototype, "title", void 0);
|
|
63
|
-
_ts_decorate([
|
|
64
|
-
Column({
|
|
65
|
-
type: 'text',
|
|
66
|
-
nullable: true
|
|
67
|
-
}),
|
|
68
|
-
_ts_metadata("design:type", Object)
|
|
69
|
-
], Task.prototype, "description", void 0);
|
|
70
|
-
_ts_decorate([
|
|
71
|
-
Column({
|
|
72
|
-
type: 'varchar',
|
|
73
|
-
length: 20,
|
|
74
|
-
nullable: false,
|
|
75
|
-
default: "MEDIUM"
|
|
76
|
-
}),
|
|
77
|
-
_ts_metadata("design:type", String)
|
|
78
|
-
], Task.prototype, "priority", void 0);
|
|
79
|
-
_ts_decorate([
|
|
80
|
-
Column({
|
|
81
|
-
name: 'due_date',
|
|
82
|
-
type: 'date',
|
|
83
|
-
nullable: true
|
|
84
|
-
}),
|
|
85
|
-
_ts_metadata("design:type", Object)
|
|
86
|
-
], Task.prototype, "dueDate", void 0);
|
|
87
|
-
_ts_decorate([
|
|
88
|
-
Column({
|
|
89
|
-
type: 'int',
|
|
90
|
-
nullable: false,
|
|
91
|
-
default: 0
|
|
92
|
-
}),
|
|
93
|
-
_ts_metadata("design:type", Number)
|
|
94
|
-
], Task.prototype, "position", void 0);
|
|
95
|
-
_ts_decorate([
|
|
96
|
-
Column({
|
|
97
|
-
name: 'reporter_id',
|
|
98
|
-
type: 'uuid',
|
|
99
|
-
nullable: true
|
|
100
|
-
}),
|
|
101
|
-
_ts_metadata("design:type", Object)
|
|
102
|
-
], Task.prototype, "reporterId", void 0);
|
|
103
|
-
_ts_decorate([
|
|
104
|
-
Column({
|
|
105
|
-
name: 'parent_task_id',
|
|
106
|
-
type: 'uuid',
|
|
107
|
-
nullable: true
|
|
108
|
-
}),
|
|
109
|
-
_ts_metadata("design:type", Object)
|
|
110
|
-
], Task.prototype, "parentTaskId", void 0);
|
|
111
|
-
_ts_decorate([
|
|
112
|
-
Column({
|
|
113
|
-
name: 'estimated_hours',
|
|
114
|
-
type: 'decimal',
|
|
115
|
-
precision: 5,
|
|
116
|
-
scale: 1,
|
|
117
|
-
nullable: true
|
|
118
|
-
}),
|
|
119
|
-
_ts_metadata("design:type", Object)
|
|
120
|
-
], Task.prototype, "estimatedHours", void 0);
|
|
121
|
-
Task = _ts_decorate([
|
|
122
|
-
Entity({
|
|
123
|
-
name: 'task'
|
|
124
|
-
}),
|
|
125
|
-
Index([
|
|
126
|
-
'boardId',
|
|
127
|
-
'listId',
|
|
128
|
-
'position'
|
|
129
|
-
]),
|
|
130
|
-
Index([
|
|
131
|
-
'dueDate'
|
|
132
|
-
])
|
|
133
|
-
], Task);
|