@venturialstd/project-management 0.0.1
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 +179 -0
- package/dist/constants/task.constant.d.ts +25 -0
- package/dist/constants/task.constant.d.ts.map +1 -0
- package/dist/constants/task.constant.js +32 -0
- package/dist/constants/task.constant.js.map +1 -0
- package/dist/dtos/CreateSprint.dto.d.ts +11 -0
- package/dist/dtos/CreateSprint.dto.d.ts.map +1 -0
- package/dist/dtos/CreateSprint.dto.js +58 -0
- package/dist/dtos/CreateSprint.dto.js.map +1 -0
- package/dist/dtos/CreateTask.dto.d.ts +20 -0
- package/dist/dtos/CreateTask.dto.d.ts.map +1 -0
- package/dist/dtos/CreateTask.dto.js +113 -0
- package/dist/dtos/CreateTask.dto.js.map +1 -0
- package/dist/dtos/MoveTask.dto.d.ts +6 -0
- package/dist/dtos/MoveTask.dto.d.ts.map +1 -0
- package/dist/dtos/MoveTask.dto.js +35 -0
- package/dist/dtos/MoveTask.dto.js.map +1 -0
- package/dist/dtos/UpdateSprint.dto.d.ts +10 -0
- package/dist/dtos/UpdateSprint.dto.d.ts.map +1 -0
- package/dist/dtos/UpdateSprint.dto.js +52 -0
- package/dist/dtos/UpdateSprint.dto.js.map +1 -0
- package/dist/dtos/UpdateTask.dto.d.ts +18 -0
- package/dist/dtos/UpdateTask.dto.d.ts.map +1 -0
- package/dist/dtos/UpdateTask.dto.js +101 -0
- package/dist/dtos/UpdateTask.dto.js.map +1 -0
- package/dist/entities/sprint.entity.d.ts +14 -0
- package/dist/entities/sprint.entity.d.ts.map +1 -0
- package/dist/entities/sprint.entity.js +96 -0
- package/dist/entities/sprint.entity.js.map +1 -0
- package/dist/entities/task.entity.d.ts +27 -0
- package/dist/entities/task.entity.d.ts.map +1 -0
- package/dist/entities/task.entity.js +193 -0
- package/dist/entities/task.entity.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/project-management.module.d.ts +3 -0
- package/dist/project-management.module.d.ts.map +1 -0
- package/dist/project-management.module.js +27 -0
- package/dist/project-management.module.js.map +1 -0
- package/dist/services/sprint.service.d.ts +36 -0
- package/dist/services/sprint.service.d.ts.map +1 -0
- package/dist/services/sprint.service.js +223 -0
- package/dist/services/sprint.service.js.map +1 -0
- package/dist/services/task.service.d.ts +40 -0
- package/dist/services/task.service.d.ts.map +1 -0
- package/dist/services/task.service.js +272 -0
- package/dist/services/task.service.js.map +1 -0
- package/package.json +41 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateTaskDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const task_constant_1 = require("../constants/task.constant");
|
|
15
|
+
class UpdateTaskDto {
|
|
16
|
+
title;
|
|
17
|
+
description;
|
|
18
|
+
status;
|
|
19
|
+
priority;
|
|
20
|
+
type;
|
|
21
|
+
assigneeId;
|
|
22
|
+
assigneeName;
|
|
23
|
+
assigneeAvatar;
|
|
24
|
+
dueDate;
|
|
25
|
+
estimatedHours;
|
|
26
|
+
actualHours;
|
|
27
|
+
tags;
|
|
28
|
+
sprintId;
|
|
29
|
+
order;
|
|
30
|
+
}
|
|
31
|
+
exports.UpdateTaskDto = UpdateTaskDto;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], UpdateTaskDto.prototype, "title", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], UpdateTaskDto.prototype, "description", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], UpdateTaskDto.prototype, "status", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsEnum)(task_constant_1.TASK_PRIORITY),
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], UpdateTaskDto.prototype, "priority", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsEnum)(task_constant_1.TASK_TYPE),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], UpdateTaskDto.prototype, "type", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsUUID)(),
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], UpdateTaskDto.prototype, "assigneeId", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsString)(),
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], UpdateTaskDto.prototype, "assigneeName", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsString)(),
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], UpdateTaskDto.prototype, "assigneeAvatar", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
__metadata("design:type", Date)
|
|
75
|
+
], UpdateTaskDto.prototype, "dueDate", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsNumber)(),
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], UpdateTaskDto.prototype, "estimatedHours", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsNumber)(),
|
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
|
+
__metadata("design:type", Number)
|
|
85
|
+
], UpdateTaskDto.prototype, "actualHours", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_validator_1.IsArray)(),
|
|
88
|
+
(0, class_validator_1.IsOptional)(),
|
|
89
|
+
__metadata("design:type", Array)
|
|
90
|
+
], UpdateTaskDto.prototype, "tags", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, class_validator_1.IsUUID)(),
|
|
93
|
+
(0, class_validator_1.IsOptional)(),
|
|
94
|
+
__metadata("design:type", Object)
|
|
95
|
+
], UpdateTaskDto.prototype, "sprintId", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, class_validator_1.IsNumber)(),
|
|
98
|
+
(0, class_validator_1.IsOptional)(),
|
|
99
|
+
__metadata("design:type", Number)
|
|
100
|
+
], UpdateTaskDto.prototype, "order", void 0);
|
|
101
|
+
//# sourceMappingURL=UpdateTask.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateTask.dto.js","sourceR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E;IACR,IAAA,4BAAU,GAAE;;+CACY;AAIzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4CACE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SPRINT_STATUS } from '../constants/task.constant';
|
|
2
|
+
export declare class Sprint {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
goal: string;
|
|
6
|
+
startDate: Date;
|
|
7
|
+
endDate: Date;
|
|
8
|
+
status: SPRINT_STATUS;
|
|
9
|
+
capacity: number;
|
|
10
|
+
organizationId: string;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=sprint.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sprint.entity.d.ts","sourceRoot":"","sources":["../../src/entities/sprint.entity.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,qBACa,MAAM;IAEjB,EAAE,EAAE,MAAM,CAAC;IAKX,IAAI,EAAE,MAAM,CAAC;IAKb,IAAI,EAAE,MAAM,CAAC;IAIb,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAQd,MAAM,EAAE,aAAa,CAAC;IAItB,QAAQ,EAAE,MAAM,CAAC;IAKjB,cAAc,EAAE,MAAM,CAAC;IAQvB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Sprint = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const task_constant_1 = require("../constants/task.constant");
|
|
16
|
+
let Sprint = class Sprint {
|
|
17
|
+
id;
|
|
18
|
+
name;
|
|
19
|
+
goal;
|
|
20
|
+
startDate;
|
|
21
|
+
endDate;
|
|
22
|
+
status;
|
|
23
|
+
capacity;
|
|
24
|
+
organizationId;
|
|
25
|
+
createdAt;
|
|
26
|
+
updatedAt;
|
|
27
|
+
};
|
|
28
|
+
exports.Sprint = Sprint;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Sprint.prototype, "id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
36
|
+
(0, typeorm_1.Column)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], Sprint.prototype, "name", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], Sprint.prototype, "goal", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'timestamptz' }),
|
|
48
|
+
__metadata("design:type", Date)
|
|
49
|
+
], Sprint.prototype, "startDate", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'timestamptz' }),
|
|
53
|
+
__metadata("design:type", Date)
|
|
54
|
+
], Sprint.prototype, "endDate", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsEnum)(task_constant_1.SPRINT_STATUS),
|
|
57
|
+
(0, typeorm_1.Column)({
|
|
58
|
+
type: 'enum',
|
|
59
|
+
enum: task_constant_1.SPRINT_STATUS,
|
|
60
|
+
default: task_constant_1.SPRINT_STATUS.PLANNING,
|
|
61
|
+
}),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], Sprint.prototype, "status", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsNumber)(),
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'int', default: 80 }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], Sprint.prototype, "capacity", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsUUID)(),
|
|
71
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
72
|
+
(0, typeorm_1.Column)(),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], Sprint.prototype, "organizationId", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.CreateDateColumn)({
|
|
77
|
+
name: 'createdAt',
|
|
78
|
+
nullable: false,
|
|
79
|
+
type: 'timestamptz',
|
|
80
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
81
|
+
}),
|
|
82
|
+
__metadata("design:type", Date)
|
|
83
|
+
], Sprint.prototype, "createdAt", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.UpdateDateColumn)({
|
|
86
|
+
name: 'updatedAt',
|
|
87
|
+
nullable: false,
|
|
88
|
+
type: 'timestamptz',
|
|
89
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
90
|
+
}),
|
|
91
|
+
__metadata("design:type", Date)
|
|
92
|
+
], Sprint.prototype, "updatedAt", void 0);
|
|
93
|
+
exports.Sprint = Sprint = __decorate([
|
|
94
|
+
(0, typeorm_1.Entity)('sprint')
|
|
95
|
+
], Sprint);
|
|
96
|
+
//# sourceMappingURL=sprint.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sprint.entity.js","sourceRoot":"","sources":["../../src/entities/sprint.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,qCAMiB;AAEjB,8DAA2D;AAGpD,IAAM,MAAM,GAAZ,MAAM,MAAM;IAEjB,EAAE,CAAS;IAKX,IAAI,CAAS;IAKb,IAAI,CAAS;IAIb,SAAS,CAAO;IAIhB,OAAO,CAAO;IAQd,MAAM,CAAgB;IAItB,QAAQ,CAAS;IAKjB,cAAc,CAAS;IAQvB,SAAS,CAAO;IAQhB,SAAS,CAAO;CACjB,CAAA;AAtDY,wBAAM;AAEjB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;kCACpB;AAKX;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,GAAE;;oCACI;AAKb;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCAC5B;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACrB,IAAI;yCAAC;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACvB,IAAI;uCAAC;AAQd;IANC,IAAA,wBAAM,EAAC,6BAAa,CAAC;IACrB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,6BAAa;QACnB,OAAO,EAAE,6BAAa,CAAC,QAAQ;KAChC,CAAC;;sCACoB;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;wCACpB;AAKjB;IAHC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,GAAE;;8CACc;AAQvB;IANC,IAAA,0BAAgB,EAAC;QAChB,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB;KACnC,CAAC;8BACS,IAAI;yCAAC;AAQhB;IANC,IAAA,0BAAgB,EAAC;QAChB,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB;KACnC,CAAC;8BACS,IAAI;yCAAC;iBArDL,MAAM;IADlB,IAAA,gBAAM,EAAC,QAAQ,CAAC;GACJ,MAAM,CAsDlB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TASK_PRIORITY, TASK_TYPE } from '../constants/task.constant';
|
|
2
|
+
export declare class Task {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
status: string;
|
|
7
|
+
priority: TASK_PRIORITY;
|
|
8
|
+
type: TASK_TYPE;
|
|
9
|
+
assigneeId: string | null;
|
|
10
|
+
assigneeName: string | null;
|
|
11
|
+
assigneeAvatar: string | null;
|
|
12
|
+
reporterId: string;
|
|
13
|
+
reporterName: string;
|
|
14
|
+
reporterAvatar: string;
|
|
15
|
+
dueDate: Date;
|
|
16
|
+
estimatedHours: number;
|
|
17
|
+
actualHours: number;
|
|
18
|
+
tags: string[];
|
|
19
|
+
comments: Record<string, unknown>[];
|
|
20
|
+
attachments: Record<string, unknown>[];
|
|
21
|
+
order: number;
|
|
22
|
+
organizationId: string;
|
|
23
|
+
sprintId: string | null;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=task.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task.entity.d.ts","sourceRoot":"","sources":["../../src/entities/task.entity.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,aAAa,EAAe,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEnF,qBACa,IAAI;IAEf,EAAE,EAAE,MAAM,CAAC;IAKX,KAAK,EAAE,MAAM,CAAC;IAKd,WAAW,EAAE,MAAM,CAAC;IASpB,MAAM,EAAE,MAAM,CAAC;IAQf,QAAQ,EAAE,aAAa,CAAC;IAQxB,IAAI,EAAE,SAAS,CAAC;IAKhB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAK1B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAK5B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAK9B,UAAU,EAAE,MAAM,CAAC;IAKnB,YAAY,EAAE,MAAM,CAAC;IAKrB,cAAc,EAAE,MAAM,CAAC;IAIvB,OAAO,EAAE,IAAI,CAAC;IAKd,cAAc,EAAE,MAAM,CAAC;IAKvB,WAAW,EAAE,MAAM,CAAC;IAKpB,IAAI,EAAE,MAAM,EAAE,CAAC;IAIf,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAIpC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAIvC,KAAK,EAAE,MAAM,CAAC;IAKd,cAAc,EAAE,MAAM,CAAC;IAKvB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAQxB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Task = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const task_constant_1 = require("../constants/task.constant");
|
|
16
|
+
let Task = class Task {
|
|
17
|
+
id;
|
|
18
|
+
title;
|
|
19
|
+
description;
|
|
20
|
+
status;
|
|
21
|
+
priority;
|
|
22
|
+
type;
|
|
23
|
+
assigneeId;
|
|
24
|
+
assigneeName;
|
|
25
|
+
assigneeAvatar;
|
|
26
|
+
reporterId;
|
|
27
|
+
reporterName;
|
|
28
|
+
reporterAvatar;
|
|
29
|
+
dueDate;
|
|
30
|
+
estimatedHours;
|
|
31
|
+
actualHours;
|
|
32
|
+
tags;
|
|
33
|
+
comments;
|
|
34
|
+
attachments;
|
|
35
|
+
order;
|
|
36
|
+
organizationId;
|
|
37
|
+
sprintId;
|
|
38
|
+
createdAt;
|
|
39
|
+
updatedAt;
|
|
40
|
+
};
|
|
41
|
+
exports.Task = Task;
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Task.prototype, "id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
49
|
+
(0, typeorm_1.Column)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], Task.prototype, "title", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsString)(),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], Task.prototype, "description", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsString)(),
|
|
60
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
61
|
+
(0, typeorm_1.Column)({
|
|
62
|
+
type: 'varchar',
|
|
63
|
+
length: 50,
|
|
64
|
+
default: task_constant_1.TASK_STATUS.TODO,
|
|
65
|
+
}),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], Task.prototype, "status", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsEnum)(task_constant_1.TASK_PRIORITY),
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: 'enum',
|
|
72
|
+
enum: task_constant_1.TASK_PRIORITY,
|
|
73
|
+
default: task_constant_1.TASK_PRIORITY.MEDIUM,
|
|
74
|
+
}),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], Task.prototype, "priority", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsEnum)(task_constant_1.TASK_TYPE),
|
|
79
|
+
(0, typeorm_1.Column)({
|
|
80
|
+
type: 'enum',
|
|
81
|
+
enum: task_constant_1.TASK_TYPE,
|
|
82
|
+
default: task_constant_1.TASK_TYPE.TASK,
|
|
83
|
+
}),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], Task.prototype, "type", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_validator_1.IsUUID)(),
|
|
88
|
+
(0, class_validator_1.IsOptional)(),
|
|
89
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
90
|
+
__metadata("design:type", Object)
|
|
91
|
+
], Task.prototype, "assigneeId", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, class_validator_1.IsString)(),
|
|
94
|
+
(0, class_validator_1.IsOptional)(),
|
|
95
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
96
|
+
__metadata("design:type", Object)
|
|
97
|
+
], Task.prototype, "assigneeName", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, class_validator_1.IsString)(),
|
|
100
|
+
(0, class_validator_1.IsOptional)(),
|
|
101
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
102
|
+
__metadata("design:type", Object)
|
|
103
|
+
], Task.prototype, "assigneeAvatar", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, class_validator_1.IsUUID)(),
|
|
106
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
107
|
+
(0, typeorm_1.Column)(),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], Task.prototype, "reporterId", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, class_validator_1.IsString)(),
|
|
112
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
113
|
+
(0, typeorm_1.Column)(),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], Task.prototype, "reporterName", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, class_validator_1.IsString)(),
|
|
118
|
+
(0, class_validator_1.IsOptional)(),
|
|
119
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], Task.prototype, "reporterAvatar", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, class_validator_1.IsOptional)(),
|
|
124
|
+
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
|
|
125
|
+
__metadata("design:type", Date)
|
|
126
|
+
], Task.prototype, "dueDate", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, class_validator_1.IsNumber)(),
|
|
129
|
+
(0, class_validator_1.IsOptional)(),
|
|
130
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true }),
|
|
131
|
+
__metadata("design:type", Number)
|
|
132
|
+
], Task.prototype, "estimatedHours", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, class_validator_1.IsNumber)(),
|
|
135
|
+
(0, class_validator_1.IsOptional)(),
|
|
136
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true }),
|
|
137
|
+
__metadata("design:type", Number)
|
|
138
|
+
], Task.prototype, "actualHours", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, class_validator_1.IsArray)(),
|
|
141
|
+
(0, class_validator_1.IsOptional)(),
|
|
142
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true, default: [] }),
|
|
143
|
+
__metadata("design:type", Array)
|
|
144
|
+
], Task.prototype, "tags", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, class_validator_1.IsOptional)(),
|
|
147
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
148
|
+
__metadata("design:type", Array)
|
|
149
|
+
], Task.prototype, "comments", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, class_validator_1.IsOptional)(),
|
|
152
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
153
|
+
__metadata("design:type", Array)
|
|
154
|
+
], Task.prototype, "attachments", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, class_validator_1.IsNumber)(),
|
|
157
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
158
|
+
__metadata("design:type", Number)
|
|
159
|
+
], Task.prototype, "order", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, class_validator_1.IsUUID)(),
|
|
162
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
163
|
+
(0, typeorm_1.Column)(),
|
|
164
|
+
__metadata("design:type", String)
|
|
165
|
+
], Task.prototype, "organizationId", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, class_validator_1.IsUUID)(),
|
|
168
|
+
(0, class_validator_1.IsOptional)(),
|
|
169
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
170
|
+
__metadata("design:type", Object)
|
|
171
|
+
], Task.prototype, "sprintId", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, typeorm_1.CreateDateColumn)({
|
|
174
|
+
name: 'createdAt',
|
|
175
|
+
nullable: false,
|
|
176
|
+
type: 'timestamptz',
|
|
177
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
178
|
+
}),
|
|
179
|
+
__metadata("design:type", Date)
|
|
180
|
+
], Task.prototype, "createdAt", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, typeorm_1.UpdateDateColumn)({
|
|
183
|
+
name: 'updatedAt',
|
|
184
|
+
nullable: false,
|
|
185
|
+
type: 'timestamptz',
|
|
186
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
187
|
+
}),
|
|
188
|
+
__metadata("design:type", Date)
|
|
189
|
+
], Task.prototype, "updatedAt", void 0);
|
|
190
|
+
exports.Task = Task = __decorate([
|
|
191
|
+
(0, typeorm_1.Entity)('task')
|
|
192
|
+
], Task);
|
|
193
|
+
//# sourceMappingURL=task.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task.entity.js","sourceRoot":"","sources":["../../src/entities/task.entity.ts"],"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C,mBAAmB;KACnC,CAAC;8BACS,IAAI;uCAAC;eA5HL,IAAI;IADhB,IAAA,gBAAM,EAAC,MAAM,CAAC;GACF,IAAI,CA6HhB"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './project-management.module';
|
|
2
|
+
export * from './entities/task.entity';
|
|
3
|
+
export * from './entities/sprint.entity';
|
|
4
|
+
export * from './services/task.service';
|
|
5
|
+
export * from './services/sprint.service';
|
|
6
|
+
export * from './dtos/CreateTask.dto';
|
|
7
|
+
export * from './dtos/UpdateTask.dto';
|
|
8
|
+
export * from './dtos/CreateSprint.dto';
|
|
9
|
+
export * from './dtos/UpdateSprint.dto';
|
|
10
|
+
export * from './dtos/MoveTask.dto';
|
|
11
|
+
export * from './constants/task.constant';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,6BAA6B,CAAC;AAG5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAG1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,2BAA2B,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./project-management.module"), exports);
|
|
18
|
+
__exportStar(require("./entities/task.entity"), exports);
|
|
19
|
+
__exportStar(require("./entities/sprint.entity"), exports);
|
|
20
|
+
__exportStar(require("./services/task.service"), exports);
|
|
21
|
+
__exportStar(require("./services/sprint.service"), exports);
|
|
22
|
+
__exportStar(require("./dtos/CreateTask.dto"), exports);
|
|
23
|
+
__exportStar(require("./dtos/UpdateTask.dto"), exports);
|
|
24
|
+
__exportStar(require("./dtos/CreateSprint.dto"), exports);
|
|
25
|
+
__exportStar(require("./dtos/UpdateSprint.dto"), exports);
|
|
26
|
+
__exportStar(require("./dtos/MoveTask.dto"), exports);
|
|
27
|
+
__exportStar(require("./constants/task.constant"), exports);
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,8DAA4C;AAG5C,yDAAuC;AACvC,2DAAyC;AAGzC,0DAAwC;AACxC,4DAA0C;AAG1C,wDAAsC;AACtC,wDAAsC;AACtC,0DAAwC;AACxC,0DAAwC;AACxC,sDAAoC;AAGpC,4DAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-management.module.d.ts","sourceRoot":"","sources":["../src/project-management.module.ts"],"names":[],"mappings":"AASA,qBAKa,uBAAuB;CAAG"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.ProjectManagementModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
12
|
+
const core_1 = require("@venturialstd/core");
|
|
13
|
+
const task_entity_1 = require("./entities/task.entity");
|
|
14
|
+
const sprint_entity_1 = require("./entities/sprint.entity");
|
|
15
|
+
const task_service_1 = require("./services/task.service");
|
|
16
|
+
const sprint_service_1 = require("./services/sprint.service");
|
|
17
|
+
let ProjectManagementModule = class ProjectManagementModule {
|
|
18
|
+
};
|
|
19
|
+
exports.ProjectManagementModule = ProjectManagementModule;
|
|
20
|
+
exports.ProjectManagementModule = ProjectManagementModule = __decorate([
|
|
21
|
+
(0, common_1.Module)({
|
|
22
|
+
imports: [core_1.SharedModule.forRoot({}), typeorm_1.TypeOrmModule.forFeature([task_entity_1.Task, sprint_entity_1.Sprint])],
|
|
23
|
+
providers: [task_service_1.TaskService, sprint_service_1.SprintService],
|
|
24
|
+
exports: [task_service_1.TaskService, sprint_service_1.SprintService],
|
|
25
|
+
})
|
|
26
|
+
], ProjectManagementModule);
|
|
27
|
+
//# sourceMappingURL=project-management.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-management.module.js","sourceRoot":"","sources":["../src/project-management.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,6CAAkD;AAElD,wDAA8C;AAC9C,4DAAkD;AAClD,0DAAsD;AACtD,8DAA0D;AAOnD,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAAG,CAAA;AAA1B,0DAAuB;kCAAvB,uBAAuB;IALnC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,mBAAY,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,uBAAa,CAAC,UAAU,CAAC,CAAC,kBAAI,EAAE,sBAAM,CAAC,CAAC,CAAC;QAC7E,SAAS,EAAE,CAAC,0BAAW,EAAE,8BAAa,CAAC;QACvC,OAAO,EAAE,CAAC,0BAAW,EAAE,8BAAa,CAAC;KACtC,CAAC;GACW,uBAAuB,CAAG"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { AppLogger } from '@venturialstd/core';
|
|
2
|
+
import { Repository } from 'typeorm';
|
|
3
|
+
import { CreateSprintDto } from '../dtos/CreateSprint.dto';
|
|
4
|
+
import { UpdateSprintDto } from '../dtos/UpdateSprint.dto';
|
|
5
|
+
import { Sprint } from '../entities/sprint.entity';
|
|
6
|
+
import { Task } from '../entities/task.entity';
|
|
7
|
+
export declare class SprintService {
|
|
8
|
+
readonly repo: Repository<Sprint>;
|
|
9
|
+
private readonly taskRepo;
|
|
10
|
+
private readonly logger;
|
|
11
|
+
constructor(repo: Repository<Sprint>, taskRepo: Repository<Task>, logger: AppLogger);
|
|
12
|
+
createSprint(data: CreateSprintDto): Promise<Sprint>;
|
|
13
|
+
updateSprint(sprintId: string, data: UpdateSprintDto): Promise<Sprint>;
|
|
14
|
+
deleteSprint(sprintId: string): Promise<void>;
|
|
15
|
+
startSprint(sprintId: string): Promise<Sprint>;
|
|
16
|
+
completeSprint(sprintId: string, moveIncompleteTasks?: boolean): Promise<Sprint>;
|
|
17
|
+
archiveSprint(sprintId: string): Promise<Sprint>;
|
|
18
|
+
getActiveSprints(organizationId: string): Promise<Sprint[]>;
|
|
19
|
+
getSprintsByOrganization(organizationId: string, includeArchived?: boolean): Promise<Sprint[]>;
|
|
20
|
+
getSprintWithStats(sprintId: string): Promise<{
|
|
21
|
+
sprint: Sprint;
|
|
22
|
+
stats: {
|
|
23
|
+
totalTasks: number;
|
|
24
|
+
completedTasks: number;
|
|
25
|
+
inProgressTasks: number;
|
|
26
|
+
todoTasks: number;
|
|
27
|
+
totalEstimatedHours: number;
|
|
28
|
+
totalActualHours: number;
|
|
29
|
+
capacityUsed: number;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
getCurrentSprint(organizationId: string): Promise<Sprint | null>;
|
|
33
|
+
getUpcomingSprints(organizationId: string): Promise<Sprint[]>;
|
|
34
|
+
getCompletedSprints(organizationId: string, limit?: number): Promise<Sprint[]>;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=sprint.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sprint.service.d.ts","sourceRoot":"","sources":["../../src/services/sprint.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAmB,MAAM,SAAS,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAE/C,qBACa,aAAa;aAGN,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC;IAExC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAHP,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,EAEvB,QAAQ,EAAE,UAAU,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