@hed-hog/operations 0.0.304 → 0.0.305
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/dist/controllers/operations-projects.controller.d.ts +15 -0
- package/dist/controllers/operations-projects.controller.d.ts.map +1 -1
- package/dist/controllers/operations-tasks.controller.d.ts +41 -10
- package/dist/controllers/operations-tasks.controller.d.ts.map +1 -1
- package/dist/controllers/operations-tasks.controller.js +11 -0
- package/dist/controllers/operations-tasks.controller.js.map +1 -1
- package/dist/dto/create-task.dto.d.ts +7 -1
- package/dist/dto/create-task.dto.d.ts.map +1 -1
- package/dist/dto/create-task.dto.js +38 -5
- package/dist/dto/create-task.dto.js.map +1 -1
- package/dist/dto/list-tasks.dto.d.ts +1 -1
- package/dist/dto/list-tasks.dto.d.ts.map +1 -1
- package/dist/dto/list-tasks.dto.js +2 -2
- package/dist/dto/list-tasks.dto.js.map +1 -1
- package/dist/dto/update-task.dto.d.ts +7 -1
- package/dist/dto/update-task.dto.d.ts.map +1 -1
- package/dist/dto/update-task.dto.js +38 -5
- package/dist/dto/update-task.dto.js.map +1 -1
- package/dist/operations.service.d.ts +68 -12
- package/dist/operations.service.d.ts.map +1 -1
- package/dist/operations.service.js +380 -101
- package/dist/operations.service.js.map +1 -1
- package/hedhog/data/route.yaml +13 -0
- package/hedhog/frontend/app/_components/collaborator-details-screen.tsx.ejs +44 -44
- package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +168 -213
- package/hedhog/frontend/app/_components/collaborator-select-with-create.tsx.ejs +256 -256
- package/hedhog/frontend/app/_components/contract-form-screen.tsx.ejs +7 -7
- package/hedhog/frontend/app/_components/contract-template-form-screen.tsx.ejs +306 -306
- package/hedhog/frontend/app/_components/contract-template-select-with-create.tsx.ejs +247 -247
- package/hedhog/frontend/app/_components/contract-wizard-sheet.tsx.ejs +3520 -3520
- package/hedhog/frontend/app/_components/project-details-screen.tsx.ejs +1504 -52
- package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +528 -403
- package/hedhog/frontend/app/_components/section-card.tsx.ejs +25 -18
- package/hedhog/frontend/app/_components/system-user-select-with-create.tsx.ejs +609 -0
- package/hedhog/frontend/app/_lib/types.ts.ejs +5 -0
- package/hedhog/frontend/app/_lib/utils/format.ts.ejs +7 -7
- package/hedhog/frontend/app/_lib/utils/forms.ts.ejs +48 -1
- package/hedhog/frontend/app/collaborator-types/page.tsx.ejs +502 -502
- package/hedhog/frontend/app/collaborators/page.tsx.ejs +10 -7
- package/hedhog/frontend/app/contracts/page.tsx.ejs +938 -938
- package/hedhog/frontend/app/projects/[id]/edit/page.tsx.ejs +1 -1
- package/hedhog/frontend/app/projects/page.tsx.ejs +360 -133
- package/hedhog/frontend/messages/en.json +27 -4
- package/hedhog/frontend/messages/pt.json +27 -4
- package/hedhog/table/operations_project.yaml +9 -0
- package/hedhog/table/operations_task.yaml +43 -4
- package/package.json +5 -5
- package/src/controllers/operations-tasks.controller.ts +11 -0
- package/src/dto/create-task.dto.ts +47 -7
- package/src/dto/list-tasks.dto.ts +3 -3
- package/src/dto/update-task.dto.ts +47 -7
- package/src/operations.service.ts +556 -88
|
@@ -28,6 +28,9 @@ export declare class OperationsProjectsController {
|
|
|
28
28
|
assignments: {
|
|
29
29
|
id: number;
|
|
30
30
|
collaboratorId: number;
|
|
31
|
+
userId: number | null;
|
|
32
|
+
personAvatarId: number | null;
|
|
33
|
+
userPhotoId: number | null;
|
|
31
34
|
collaboratorName: string;
|
|
32
35
|
projectRoleId: number | null;
|
|
33
36
|
roleLabel: string | null;
|
|
@@ -53,6 +56,8 @@ export declare class OperationsProjectsController {
|
|
|
53
56
|
id: number;
|
|
54
57
|
contractId: number | null;
|
|
55
58
|
managerCollaboratorId: number | null;
|
|
59
|
+
clientPersonId: number | null;
|
|
60
|
+
clientAvatarId: number | null;
|
|
56
61
|
code: string;
|
|
57
62
|
name: string;
|
|
58
63
|
clientName: string | null;
|
|
@@ -75,6 +80,9 @@ export declare class OperationsProjectsController {
|
|
|
75
80
|
assignments: {
|
|
76
81
|
id: number;
|
|
77
82
|
collaboratorId: number;
|
|
83
|
+
userId: number | null;
|
|
84
|
+
personAvatarId: number | null;
|
|
85
|
+
userPhotoId: number | null;
|
|
78
86
|
collaboratorName: string;
|
|
79
87
|
projectRoleId: number | null;
|
|
80
88
|
roleLabel: string | null;
|
|
@@ -100,6 +108,8 @@ export declare class OperationsProjectsController {
|
|
|
100
108
|
id: number;
|
|
101
109
|
contractId: number | null;
|
|
102
110
|
managerCollaboratorId: number | null;
|
|
111
|
+
clientPersonId: number | null;
|
|
112
|
+
clientAvatarId: number | null;
|
|
103
113
|
code: string;
|
|
104
114
|
name: string;
|
|
105
115
|
clientName: string | null;
|
|
@@ -122,6 +132,9 @@ export declare class OperationsProjectsController {
|
|
|
122
132
|
assignments: {
|
|
123
133
|
id: number;
|
|
124
134
|
collaboratorId: number;
|
|
135
|
+
userId: number | null;
|
|
136
|
+
personAvatarId: number | null;
|
|
137
|
+
userPhotoId: number | null;
|
|
125
138
|
collaboratorName: string;
|
|
126
139
|
projectRoleId: number | null;
|
|
127
140
|
roleLabel: string | null;
|
|
@@ -147,6 +160,8 @@ export declare class OperationsProjectsController {
|
|
|
147
160
|
id: number;
|
|
148
161
|
contractId: number | null;
|
|
149
162
|
managerCollaboratorId: number | null;
|
|
163
|
+
clientPersonId: number | null;
|
|
164
|
+
clientAvatarId: number | null;
|
|
150
165
|
code: string;
|
|
151
166
|
name: string;
|
|
152
167
|
clientName: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations-projects.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-projects.controller.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAEa,4BAA4B;IAC3B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAGjE,kBAAkB,CACR,IAAI,KAAA,EACE,gBAAgB,EAAE,+BAA+B;;;;;;;;;;;;;;;;;;;;IASjE,YAAY,CAAS,IAAI,KAAA;IAKzB,UAAU,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"operations-projects.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-projects.controller.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAEa,4BAA4B;IAC3B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAGjE,kBAAkB,CACR,IAAI,KAAA,EACE,gBAAgB,EAAE,+BAA+B;;;;;;;;;;;;;;;;;;;;IASjE,YAAY,CAAS,IAAI,KAAA;IAKzB,UAAU,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK9D,aAAa,CAAS,IAAI,KAAA,EAAU,IAAI,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKxC,aAAa,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM,EAAU,IAAI,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGhF"}
|
|
@@ -25,27 +25,58 @@ export declare class OperationsTasksController {
|
|
|
25
25
|
createdAt: string;
|
|
26
26
|
}[];
|
|
27
27
|
}>;
|
|
28
|
+
listProjectBoardTasks(user: any, id: number): Promise<{
|
|
29
|
+
id: number;
|
|
30
|
+
name: string;
|
|
31
|
+
description: string | null;
|
|
32
|
+
priority: string;
|
|
33
|
+
status: string;
|
|
34
|
+
dueDate: string | null;
|
|
35
|
+
estimateHours: number | null;
|
|
36
|
+
position: number;
|
|
37
|
+
tags: string | null;
|
|
38
|
+
assigneeCollaboratorId: number | null;
|
|
39
|
+
assigneeName: string | null;
|
|
40
|
+
assigneeUserPhotoId: number | null;
|
|
41
|
+
assigneePersonAvatarId: number | null;
|
|
42
|
+
projectAssignmentId: number | null;
|
|
43
|
+
createdAt: string;
|
|
44
|
+
}[]>;
|
|
28
45
|
createTask(user: any, data: CreateOperationsTaskDto): Promise<{
|
|
29
|
-
label: string;
|
|
30
46
|
id: number;
|
|
31
47
|
name: string;
|
|
32
48
|
description: string | null;
|
|
49
|
+
priority: string;
|
|
33
50
|
status: string;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
51
|
+
dueDate: string | null;
|
|
52
|
+
estimateHours: number | null;
|
|
53
|
+
position: number;
|
|
54
|
+
tags: string | null;
|
|
55
|
+
assigneeCollaboratorId: number | null;
|
|
56
|
+
assigneeName: string | null;
|
|
57
|
+
assigneeUserPhotoId: number | null;
|
|
58
|
+
assigneePersonAvatarId: number | null;
|
|
59
|
+
projectAssignmentId: number | null;
|
|
60
|
+
projectId: number | null;
|
|
61
|
+
createdAt: string;
|
|
38
62
|
}>;
|
|
39
63
|
updateTask(user: any, id: number, data: UpdateOperationsTaskDto): Promise<{
|
|
40
|
-
label: string;
|
|
41
64
|
id: number;
|
|
42
65
|
name: string;
|
|
43
66
|
description: string | null;
|
|
67
|
+
priority: string;
|
|
44
68
|
status: string;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
69
|
+
dueDate: string | null;
|
|
70
|
+
estimateHours: number | null;
|
|
71
|
+
position: number;
|
|
72
|
+
tags: string | null;
|
|
73
|
+
assigneeCollaboratorId: number | null;
|
|
74
|
+
assigneeName: string | null;
|
|
75
|
+
assigneeUserPhotoId: number | null;
|
|
76
|
+
assigneePersonAvatarId: number | null;
|
|
77
|
+
projectAssignmentId: number | null;
|
|
78
|
+
projectId: number | null;
|
|
79
|
+
createdAt: string;
|
|
49
80
|
}>;
|
|
50
81
|
removeTask(user: any, id: number): Promise<{
|
|
51
82
|
success: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations-tasks.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-tasks.controller.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAEa,yBAAyB;IACxB,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAGjE,SAAS,CACC,IAAI,KAAA,EACE,gBAAgB,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;IASxD,UAAU,CAAS,IAAI,KAAA,EAAU,IAAI,EAAE,uBAAuB
|
|
1
|
+
{"version":3,"file":"operations-tasks.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-tasks.controller.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAEa,yBAAyB;IACxB,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAGjE,SAAS,CACC,IAAI,KAAA,EACE,gBAAgB,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;IASxD,qBAAqB,CACX,IAAI,KAAA,EACe,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;IASvC,UAAU,CAAS,IAAI,KAAA,EAAU,IAAI,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;IAK9D,UAAU,CACA,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;IAMvC,UAAU,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;CAG/D"}
|
|
@@ -27,6 +27,9 @@ let OperationsTasksController = class OperationsTasksController {
|
|
|
27
27
|
listTasks(user, paginationParams) {
|
|
28
28
|
return this.operationsService.listTasks(Number((user === null || user === void 0 ? void 0 : user.id) || 0), paginationParams);
|
|
29
29
|
}
|
|
30
|
+
listProjectBoardTasks(user, id) {
|
|
31
|
+
return this.operationsService.listProjectBoardTasks(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id);
|
|
32
|
+
}
|
|
30
33
|
createTask(user, data) {
|
|
31
34
|
return this.operationsService.createTask(Number((user === null || user === void 0 ? void 0 : user.id) || 0), data);
|
|
32
35
|
}
|
|
@@ -46,6 +49,14 @@ __decorate([
|
|
|
46
49
|
__metadata("design:paramtypes", [Object, list_tasks_dto_1.ListOperationsTasksDto]),
|
|
47
50
|
__metadata("design:returntype", void 0)
|
|
48
51
|
], OperationsTasksController.prototype, "listTasks", null);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, common_1.Get)('projects/:id/tasks'),
|
|
54
|
+
__param(0, (0, api_1.User)()),
|
|
55
|
+
__param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
|
|
56
|
+
__metadata("design:type", Function),
|
|
57
|
+
__metadata("design:paramtypes", [Object, Number]),
|
|
58
|
+
__metadata("design:returntype", void 0)
|
|
59
|
+
], OperationsTasksController.prototype, "listProjectBoardTasks", null);
|
|
49
60
|
__decorate([
|
|
50
61
|
(0, common_1.Post)('tasks'),
|
|
51
62
|
__param(0, (0, api_1.User)()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations-tasks.controller.js","sourceRoot":"","sources":["../../src/controllers/operations-tasks.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,4DAAqD;AACrD,2CASwB;AACxB,4DAAiE;AACjE,0DAA+D;AAC/D,4DAAiE;AACjE,8DAA0D;AAInD,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACpC,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAGrE,SAAS,CACC,IAAI,EACE,gBAAwC;QAEtD,OAAO,IAAI,CAAC,iBAAiB,CAAC,SAAS,CACrC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EACrB,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAGD,UAAU,CAAS,IAAI,EAAU,IAA6B;QAC5D,OAAO,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;IAGD,UAAU,CACA,IAAI,EACe,EAAU,EAC7B,IAA6B;QAErC,OAAO,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;IAGD,UAAU,CAAS,IAAI,EAA6B,EAAU;QAC5D,OAAO,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"operations-tasks.controller.js","sourceRoot":"","sources":["../../src/controllers/operations-tasks.controller.ts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,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;CACF,CAAA;AA3CY,8DAAyB;AAIpC;IADC,IAAA,YAAG,EAAC,OAAO,CAAC;IAEV,WAAA,IAAA,UAAI,GAAE,CAAA;IACN,WAAA,IAAA,2BAAU,GAAE,CAAA;;6CAAmB,uCAAsB;;0DAMvD;AAGD;IADC,IAAA,YAAG,EAAC,oBAAoB,CAAC;IAEvB,WAAA,IAAA,UAAI,GAAE,CAAA;IACN,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;;;;sEAM3B;AAGD;IADC,IAAA,aAAI,EAAC,OAAO,CAAC;IACF,WAAA,IAAA,UAAI,GAAE,CAAA;IAAQ,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,yCAAuB;;2DAE7D;AAGD;IADC,IAAA,cAAK,EAAC,WAAW,CAAC;IAEhB,WAAA,IAAA,UAAI,GAAE,CAAA;IACN,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;IACzB,WAAA,IAAA,aAAI,GAAE,CAAA;;qDAAO,yCAAuB;;2DAGtC;AAGD;IADC,IAAA,eAAM,EAAC,WAAW,CAAC;IACR,WAAA,IAAA,UAAI,GAAE,CAAA;IAAQ,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;;;;2DAElD;oCA1CU,yBAAyB;IAFrC,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,YAAY,CAAC;qCAEyB,sCAAiB;GADtD,yBAAyB,CA2CrC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
export declare class CreateOperationsTaskDto {
|
|
2
2
|
projectId?: number;
|
|
3
3
|
projectAssignmentId?: number;
|
|
4
|
+
assigneeCollaboratorId?: number;
|
|
4
5
|
name: string;
|
|
5
6
|
description?: string;
|
|
6
|
-
|
|
7
|
+
priority?: 'low' | 'medium' | 'high';
|
|
8
|
+
status?: 'todo' | 'doing' | 'review' | 'done';
|
|
9
|
+
dueDate?: string;
|
|
10
|
+
estimateHours?: number;
|
|
11
|
+
position?: number;
|
|
12
|
+
tags?: string;
|
|
7
13
|
}
|
|
8
14
|
//# sourceMappingURL=create-task.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-task.dto.d.ts","sourceRoot":"","sources":["../../src/dto/create-task.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-task.dto.d.ts","sourceRoot":"","sources":["../../src/dto/create-task.dto.ts"],"names":[],"mappings":"AAUA,qBAAa,uBAAuB;IAMlC,SAAS,CAAC,EAAE,MAAM,CAAC;IAOnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAO7B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAIhC,IAAI,EAAG,MAAM,CAAC;IAKd,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IAMrC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAI9C,OAAO,CAAC,EAAE,MAAM,CAAC;IAOjB,aAAa,CAAC,EAAE,MAAM,CAAC;IAOvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -27,6 +27,12 @@ __decorate([
|
|
|
27
27
|
(0, class_validator_1.IsInt)({ message: 'projectAssignmentId must be an integer' }),
|
|
28
28
|
__metadata("design:type", Number)
|
|
29
29
|
], CreateOperationsTaskDto.prototype, "projectAssignmentId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
|
|
33
|
+
(0, class_validator_1.IsInt)({ message: 'assigneeCollaboratorId must be an integer' }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], CreateOperationsTaskDto.prototype, "assigneeCollaboratorId", void 0);
|
|
30
36
|
__decorate([
|
|
31
37
|
(0, class_validator_1.IsString)({ message: 'name must be a string' }),
|
|
32
38
|
(0, class_validator_1.MaxLength)(180, { message: 'name must have at most 180 characters' }),
|
|
@@ -35,16 +41,43 @@ __decorate([
|
|
|
35
41
|
__decorate([
|
|
36
42
|
(0, class_validator_1.IsOptional)(),
|
|
37
43
|
(0, class_validator_1.IsString)({ message: 'description must be a string' }),
|
|
38
|
-
(0, class_validator_1.MaxLength)(
|
|
39
|
-
message: 'description must have at most 500 characters',
|
|
40
|
-
}),
|
|
44
|
+
(0, class_validator_1.MaxLength)(2000, { message: 'description must have at most 2000 characters' }),
|
|
41
45
|
__metadata("design:type", String)
|
|
42
46
|
], CreateOperationsTaskDto.prototype, "description", void 0);
|
|
43
47
|
__decorate([
|
|
44
48
|
(0, class_validator_1.IsOptional)(),
|
|
45
|
-
(0, class_validator_1.IsIn)(['
|
|
46
|
-
message: '
|
|
49
|
+
(0, class_validator_1.IsIn)(['low', 'medium', 'high'], {
|
|
50
|
+
message: 'priority must be low, medium, or high',
|
|
51
|
+
}),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], CreateOperationsTaskDto.prototype, "priority", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_validator_1.IsIn)(['todo', 'doing', 'review', 'done'], {
|
|
57
|
+
message: 'status must be todo, doing, review, or done',
|
|
47
58
|
}),
|
|
48
59
|
__metadata("design:type", String)
|
|
49
60
|
], CreateOperationsTaskDto.prototype, "status", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
(0, class_validator_1.IsString)({ message: 'dueDate must be a string' }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], CreateOperationsTaskDto.prototype, "dueDate", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
(0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
|
|
69
|
+
(0, class_validator_1.IsNumber)({}, { message: 'estimateHours must be a number' }),
|
|
70
|
+
__metadata("design:type", Number)
|
|
71
|
+
], CreateOperationsTaskDto.prototype, "estimateHours", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
(0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
|
|
75
|
+
(0, class_validator_1.IsInt)({ message: 'position must be an integer' }),
|
|
76
|
+
__metadata("design:type", Number)
|
|
77
|
+
], CreateOperationsTaskDto.prototype, "position", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_validator_1.IsOptional)(),
|
|
80
|
+
(0, class_validator_1.IsString)({ message: 'tags must be a string' }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], CreateOperationsTaskDto.prototype, "tags", void 0);
|
|
50
83
|
//# sourceMappingURL=create-task.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-task.dto.js","sourceRoot":"","sources":["../../src/dto/create-task.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"create-task.dto.js","sourceRoot":"","sources":["../../src/dto/create-task.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAOyB;AAEzB,MAAa,uBAAuB;CAgEnC;AAhED,0DAgEC;AA1DC;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAA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AMrC;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE;QACzC,OAAO,EAAE,6CAA6C;KACvD,CAAC;;uDAC4C;AAI9C;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,0BAA0B,EAAE,CAAC;;wDACjC;AAOjB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAClF;IACA,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;;8DACrC;AAOvB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAClF;IACA,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;;yDAChC;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;;qDACjC"}
|
|
@@ -2,6 +2,6 @@ import { PaginationDTO } from '@hed-hog/api-pagination';
|
|
|
2
2
|
export declare class ListOperationsTasksDto extends PaginationDTO {
|
|
3
3
|
projectId?: number;
|
|
4
4
|
projectAssignmentId?: number;
|
|
5
|
-
status?: '
|
|
5
|
+
status?: 'todo' | 'doing' | 'review' | 'done';
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=list-tasks.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-tasks.dto.d.ts","sourceRoot":"","sources":["../../src/dto/list-tasks.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAIxD,qBAAa,sBAAuB,SAAQ,aAAa;IAMvD,SAAS,CAAC,EAAE,MAAM,CAAC;IAOnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAM7B,MAAM,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"list-tasks.dto.d.ts","sourceRoot":"","sources":["../../src/dto/list-tasks.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAIxD,qBAAa,sBAAuB,SAAQ,aAAa;IAMvD,SAAS,CAAC,EAAE,MAAM,CAAC;IAOnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAM7B,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;CAC/C"}
|
|
@@ -30,8 +30,8 @@ __decorate([
|
|
|
30
30
|
], ListOperationsTasksDto.prototype, "projectAssignmentId", void 0);
|
|
31
31
|
__decorate([
|
|
32
32
|
(0, class_validator_1.IsOptional)(),
|
|
33
|
-
(0, class_validator_1.IsIn)(['
|
|
34
|
-
message: 'status must be
|
|
33
|
+
(0, class_validator_1.IsIn)(['todo', 'doing', 'review', 'done'], {
|
|
34
|
+
message: 'status must be todo, doing, review, or done',
|
|
35
35
|
}),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], ListOperationsTasksDto.prototype, "status", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-tasks.dto.js","sourceRoot":"","sources":["../../src/dto/list-tasks.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4DAAwD;AACxD,yDAA8C;AAC9C,qDAA0D;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EAAE,CAAC;;yDAChC;AAOnB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAClF;IACA,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;;mEAChC;AAM7B;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE;QACzC,OAAO,EAAE,6CAA6C;KACvD,CAAC;;sDAC4C"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
export declare class UpdateOperationsTaskDto {
|
|
2
2
|
projectId?: number;
|
|
3
3
|
projectAssignmentId?: number;
|
|
4
|
+
assigneeCollaboratorId?: number;
|
|
4
5
|
name?: string;
|
|
5
6
|
description?: string;
|
|
6
|
-
|
|
7
|
+
priority?: 'low' | 'medium' | 'high';
|
|
8
|
+
status?: 'todo' | 'doing' | 'review' | 'done';
|
|
9
|
+
dueDate?: string;
|
|
10
|
+
estimateHours?: number;
|
|
11
|
+
position?: number;
|
|
12
|
+
tags?: string;
|
|
7
13
|
}
|
|
8
14
|
//# sourceMappingURL=update-task.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-task.dto.d.ts","sourceRoot":"","sources":["../../src/dto/update-task.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-task.dto.d.ts","sourceRoot":"","sources":["../../src/dto/update-task.dto.ts"],"names":[],"mappings":"AAUA,qBAAa,uBAAuB;IAMlC,SAAS,CAAC,EAAE,MAAM,CAAC;IAOnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAO7B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAKhC,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IAMrC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAI9C,OAAO,CAAC,EAAE,MAAM,CAAC;IAOjB,aAAa,CAAC,EAAE,MAAM,CAAC;IAOvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -27,6 +27,12 @@ __decorate([
|
|
|
27
27
|
(0, class_validator_1.IsInt)({ message: 'projectAssignmentId must be an integer' }),
|
|
28
28
|
__metadata("design:type", Number)
|
|
29
29
|
], UpdateOperationsTaskDto.prototype, "projectAssignmentId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
|
|
33
|
+
(0, class_validator_1.IsInt)({ message: 'assigneeCollaboratorId must be an integer' }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], UpdateOperationsTaskDto.prototype, "assigneeCollaboratorId", void 0);
|
|
30
36
|
__decorate([
|
|
31
37
|
(0, class_validator_1.IsOptional)(),
|
|
32
38
|
(0, class_validator_1.IsString)({ message: 'name must be a string' }),
|
|
@@ -36,16 +42,43 @@ __decorate([
|
|
|
36
42
|
__decorate([
|
|
37
43
|
(0, class_validator_1.IsOptional)(),
|
|
38
44
|
(0, class_validator_1.IsString)({ message: 'description must be a string' }),
|
|
39
|
-
(0, class_validator_1.MaxLength)(
|
|
40
|
-
message: 'description must have at most 500 characters',
|
|
41
|
-
}),
|
|
45
|
+
(0, class_validator_1.MaxLength)(2000, { message: 'description must have at most 2000 characters' }),
|
|
42
46
|
__metadata("design:type", String)
|
|
43
47
|
], UpdateOperationsTaskDto.prototype, "description", void 0);
|
|
44
48
|
__decorate([
|
|
45
49
|
(0, class_validator_1.IsOptional)(),
|
|
46
|
-
(0, class_validator_1.IsIn)(['
|
|
47
|
-
message: '
|
|
50
|
+
(0, class_validator_1.IsIn)(['low', 'medium', 'high'], {
|
|
51
|
+
message: 'priority must be low, medium, or high',
|
|
52
|
+
}),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], UpdateOperationsTaskDto.prototype, "priority", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
(0, class_validator_1.IsIn)(['todo', 'doing', 'review', 'done'], {
|
|
58
|
+
message: 'status must be todo, doing, review, or done',
|
|
48
59
|
}),
|
|
49
60
|
__metadata("design:type", String)
|
|
50
61
|
], UpdateOperationsTaskDto.prototype, "status", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_validator_1.IsString)({ message: 'dueDate must be a string' }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], UpdateOperationsTaskDto.prototype, "dueDate", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
|
|
70
|
+
(0, class_validator_1.IsNumber)({}, { message: 'estimateHours must be a number' }),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], UpdateOperationsTaskDto.prototype, "estimateHours", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_validator_1.IsOptional)(),
|
|
75
|
+
(0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
|
|
76
|
+
(0, class_validator_1.IsInt)({ message: 'position must be an integer' }),
|
|
77
|
+
__metadata("design:type", Number)
|
|
78
|
+
], UpdateOperationsTaskDto.prototype, "position", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.IsOptional)(),
|
|
81
|
+
(0, class_validator_1.IsString)({ message: 'tags must be a string' }),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], UpdateOperationsTaskDto.prototype, "tags", void 0);
|
|
51
84
|
//# sourceMappingURL=update-task.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-task.dto.js","sourceRoot":"","sources":["../../src/dto/update-task.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"update-task.dto.js","sourceRoot":"","sources":["../../src/dto/update-task.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAOyB;AAEzB,MAAa,uBAAuB;CAiEnC;AAjED,0DAiEC;AA3DC;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAClF;IACA,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;;0DAChC;AAOnB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAClF;IACA,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;;oEAChC;AAO7B;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,E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AAC,KAAK,CAAC,CAClF;IACA,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;;8DACrC;AAOvB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAClF;IACA,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;;yDAChC;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;;qDACjC"}
|
|
@@ -11,7 +11,7 @@ declare const CONTRACT_CREATION_MODE_VALUES: readonly ["blank", "template", "upl
|
|
|
11
11
|
declare const ORIGIN_TYPE_VALUES: readonly ["manual", "employee_hiring", "client_project", "crm_proposal"];
|
|
12
12
|
declare const CONTRACT_DOCUMENT_TYPE_VALUES: readonly ["source_upload", "generated_pdf", "attachment", "other"];
|
|
13
13
|
declare const CONTRACT_DOCUMENT_EXTRACTION_STATUS_VALUES: readonly ["pending", "processing", "completed", "failed", "skipped"];
|
|
14
|
-
declare const TASK_STATUS_VALUES: readonly ["
|
|
14
|
+
declare const TASK_STATUS_VALUES: readonly ["todo", "doing", "review", "done"];
|
|
15
15
|
type CollaboratorPayload = {
|
|
16
16
|
userId?: number | null;
|
|
17
17
|
personId?: number | null;
|
|
@@ -331,6 +331,7 @@ type ProjectPayload = {
|
|
|
331
331
|
contractId?: number | null;
|
|
332
332
|
contractTemplateId?: number | null;
|
|
333
333
|
managerCollaboratorId?: number | null;
|
|
334
|
+
clientPersonId?: number | null;
|
|
334
335
|
code: string;
|
|
335
336
|
name: string;
|
|
336
337
|
clientName?: string | null;
|
|
@@ -374,9 +375,15 @@ type TimesheetEntryPayload = {
|
|
|
374
375
|
type TaskPayload = {
|
|
375
376
|
projectId?: number | null;
|
|
376
377
|
projectAssignmentId?: number | null;
|
|
378
|
+
assigneeCollaboratorId?: number | null;
|
|
377
379
|
name?: string | null;
|
|
378
380
|
description?: string | null;
|
|
381
|
+
priority?: 'low' | 'medium' | 'high';
|
|
379
382
|
status?: (typeof TASK_STATUS_VALUES)[number];
|
|
383
|
+
dueDate?: string | null;
|
|
384
|
+
estimateHours?: number | null;
|
|
385
|
+
position?: number;
|
|
386
|
+
tags?: string | null;
|
|
380
387
|
};
|
|
381
388
|
type QuickTimesheetEntryPayload = {
|
|
382
389
|
projectId?: number | null;
|
|
@@ -845,26 +852,40 @@ export declare class OperationsService {
|
|
|
845
852
|
}[];
|
|
846
853
|
}>;
|
|
847
854
|
createTask(userId: number, data: TaskPayload): Promise<{
|
|
848
|
-
label: string;
|
|
849
855
|
id: number;
|
|
850
856
|
name: string;
|
|
851
857
|
description: string | null;
|
|
858
|
+
priority: string;
|
|
852
859
|
status: string;
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
860
|
+
dueDate: string | null;
|
|
861
|
+
estimateHours: number | null;
|
|
862
|
+
position: number;
|
|
863
|
+
tags: string | null;
|
|
864
|
+
assigneeCollaboratorId: number | null;
|
|
865
|
+
assigneeName: string | null;
|
|
866
|
+
assigneeUserPhotoId: number | null;
|
|
867
|
+
assigneePersonAvatarId: number | null;
|
|
868
|
+
projectAssignmentId: number | null;
|
|
869
|
+
projectId: number | null;
|
|
870
|
+
createdAt: string;
|
|
857
871
|
}>;
|
|
858
872
|
updateTask(userId: number, taskId: number, data: Partial<TaskPayload>): Promise<{
|
|
859
|
-
label: string;
|
|
860
873
|
id: number;
|
|
861
874
|
name: string;
|
|
862
875
|
description: string | null;
|
|
876
|
+
priority: string;
|
|
863
877
|
status: string;
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
878
|
+
dueDate: string | null;
|
|
879
|
+
estimateHours: number | null;
|
|
880
|
+
position: number;
|
|
881
|
+
tags: string | null;
|
|
882
|
+
assigneeCollaboratorId: number | null;
|
|
883
|
+
assigneeName: string | null;
|
|
884
|
+
assigneeUserPhotoId: number | null;
|
|
885
|
+
assigneePersonAvatarId: number | null;
|
|
886
|
+
projectAssignmentId: number | null;
|
|
887
|
+
projectId: number | null;
|
|
888
|
+
createdAt: string;
|
|
868
889
|
}>;
|
|
869
890
|
removeTask(userId: number, taskId: number): Promise<{
|
|
870
891
|
success: boolean;
|
|
@@ -938,6 +959,9 @@ export declare class OperationsService {
|
|
|
938
959
|
assignments: {
|
|
939
960
|
id: number;
|
|
940
961
|
collaboratorId: number;
|
|
962
|
+
userId: number | null;
|
|
963
|
+
personAvatarId: number | null;
|
|
964
|
+
userPhotoId: number | null;
|
|
941
965
|
collaboratorName: string;
|
|
942
966
|
projectRoleId: number | null;
|
|
943
967
|
roleLabel: string | null;
|
|
@@ -963,6 +987,8 @@ export declare class OperationsService {
|
|
|
963
987
|
id: number;
|
|
964
988
|
contractId: number | null;
|
|
965
989
|
managerCollaboratorId: number | null;
|
|
990
|
+
clientPersonId: number | null;
|
|
991
|
+
clientAvatarId: number | null;
|
|
966
992
|
code: string;
|
|
967
993
|
name: string;
|
|
968
994
|
clientName: string | null;
|
|
@@ -985,6 +1011,9 @@ export declare class OperationsService {
|
|
|
985
1011
|
assignments: {
|
|
986
1012
|
id: number;
|
|
987
1013
|
collaboratorId: number;
|
|
1014
|
+
userId: number | null;
|
|
1015
|
+
personAvatarId: number | null;
|
|
1016
|
+
userPhotoId: number | null;
|
|
988
1017
|
collaboratorName: string;
|
|
989
1018
|
projectRoleId: number | null;
|
|
990
1019
|
roleLabel: string | null;
|
|
@@ -1010,6 +1039,8 @@ export declare class OperationsService {
|
|
|
1010
1039
|
id: number;
|
|
1011
1040
|
contractId: number | null;
|
|
1012
1041
|
managerCollaboratorId: number | null;
|
|
1042
|
+
clientPersonId: number | null;
|
|
1043
|
+
clientAvatarId: number | null;
|
|
1013
1044
|
code: string;
|
|
1014
1045
|
name: string;
|
|
1015
1046
|
clientName: string | null;
|
|
@@ -1032,6 +1063,9 @@ export declare class OperationsService {
|
|
|
1032
1063
|
assignments: {
|
|
1033
1064
|
id: number;
|
|
1034
1065
|
collaboratorId: number;
|
|
1066
|
+
userId: number | null;
|
|
1067
|
+
personAvatarId: number | null;
|
|
1068
|
+
userPhotoId: number | null;
|
|
1035
1069
|
collaboratorName: string;
|
|
1036
1070
|
projectRoleId: number | null;
|
|
1037
1071
|
roleLabel: string | null;
|
|
@@ -1057,6 +1091,8 @@ export declare class OperationsService {
|
|
|
1057
1091
|
id: number;
|
|
1058
1092
|
contractId: number | null;
|
|
1059
1093
|
managerCollaboratorId: number | null;
|
|
1094
|
+
clientPersonId: number | null;
|
|
1095
|
+
clientAvatarId: number | null;
|
|
1060
1096
|
code: string;
|
|
1061
1097
|
name: string;
|
|
1062
1098
|
clientName: string | null;
|
|
@@ -1343,8 +1379,27 @@ export declare class OperationsService {
|
|
|
1343
1379
|
private getDirectReportIds;
|
|
1344
1380
|
private getAssignedProjectIds;
|
|
1345
1381
|
private resolveOwnedProjectAssignment;
|
|
1382
|
+
private resolveProjectAssignmentForActor;
|
|
1346
1383
|
private getOwnedTaskRecord;
|
|
1347
|
-
private
|
|
1384
|
+
private getTaskRecordForActor;
|
|
1385
|
+
listProjectBoardTasks(userId: number, projectId: number): Promise<{
|
|
1386
|
+
id: number;
|
|
1387
|
+
name: string;
|
|
1388
|
+
description: string | null;
|
|
1389
|
+
priority: string;
|
|
1390
|
+
status: string;
|
|
1391
|
+
dueDate: string | null;
|
|
1392
|
+
estimateHours: number | null;
|
|
1393
|
+
position: number;
|
|
1394
|
+
tags: string | null;
|
|
1395
|
+
assigneeCollaboratorId: number | null;
|
|
1396
|
+
assigneeName: string | null;
|
|
1397
|
+
assigneeUserPhotoId: number | null;
|
|
1398
|
+
assigneePersonAvatarId: number | null;
|
|
1399
|
+
projectAssignmentId: number | null;
|
|
1400
|
+
createdAt: string;
|
|
1401
|
+
}[]>;
|
|
1402
|
+
private getProjectBoardTask;
|
|
1348
1403
|
private getOrCreateTimesheetForWorkDate;
|
|
1349
1404
|
private getTimesheetEntryByIdForActor;
|
|
1350
1405
|
private getTimesheetById;
|
|
@@ -1369,6 +1424,7 @@ export declare class OperationsService {
|
|
|
1369
1424
|
private mapContractTypeForCollaboratorType;
|
|
1370
1425
|
private buildHiringContractName;
|
|
1371
1426
|
private createHiringContractDraft;
|
|
1427
|
+
private syncHiringContractDraft;
|
|
1372
1428
|
private createProjectContractDraft;
|
|
1373
1429
|
private replaceContractParties;
|
|
1374
1430
|
private replaceContractSignatures;
|