@hed-hog/operations 0.0.304 → 0.0.306

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.
Files changed (81) hide show
  1. package/dist/controllers/operations-projects.controller.d.ts +15 -0
  2. package/dist/controllers/operations-projects.controller.d.ts.map +1 -1
  3. package/dist/controllers/operations-tasks.controller.d.ts +41 -10
  4. package/dist/controllers/operations-tasks.controller.d.ts.map +1 -1
  5. package/dist/controllers/operations-tasks.controller.js +11 -0
  6. package/dist/controllers/operations-tasks.controller.js.map +1 -1
  7. package/dist/controllers/operations-timesheets.controller.d.ts +21 -0
  8. package/dist/controllers/operations-timesheets.controller.d.ts.map +1 -1
  9. package/dist/controllers/operations-timesheets.controller.js +12 -0
  10. package/dist/controllers/operations-timesheets.controller.js.map +1 -1
  11. package/dist/dto/create-task.dto.d.ts +7 -1
  12. package/dist/dto/create-task.dto.d.ts.map +1 -1
  13. package/dist/dto/create-task.dto.js +38 -5
  14. package/dist/dto/create-task.dto.js.map +1 -1
  15. package/dist/dto/list-tasks.dto.d.ts +1 -1
  16. package/dist/dto/list-tasks.dto.d.ts.map +1 -1
  17. package/dist/dto/list-tasks.dto.js +2 -2
  18. package/dist/dto/list-tasks.dto.js.map +1 -1
  19. package/dist/dto/update-collaborator-type.dto.d.ts +3 -1
  20. package/dist/dto/update-collaborator-type.dto.d.ts.map +1 -1
  21. package/dist/dto/update-collaborator-type.dto.js +2 -1
  22. package/dist/dto/update-collaborator-type.dto.js.map +1 -1
  23. package/dist/dto/update-task.dto.d.ts +7 -1
  24. package/dist/dto/update-task.dto.d.ts.map +1 -1
  25. package/dist/dto/update-task.dto.js +38 -5
  26. package/dist/dto/update-task.dto.js.map +1 -1
  27. package/dist/operations.service.d.ts +90 -12
  28. package/dist/operations.service.d.ts.map +1 -1
  29. package/dist/operations.service.js +560 -148
  30. package/dist/operations.service.js.map +1 -1
  31. package/dist/operations.service.spec.js +73 -0
  32. package/dist/operations.service.spec.js.map +1 -1
  33. package/hedhog/data/menu.yaml +26 -26
  34. package/hedhog/data/operations_collaborator_type.yaml +76 -76
  35. package/hedhog/data/route.yaml +26 -0
  36. package/hedhog/frontend/app/_components/async-options-combobox.tsx.ejs +5 -3
  37. package/hedhog/frontend/app/_components/collaborator-details-screen.tsx.ejs +44 -44
  38. package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +168 -213
  39. package/hedhog/frontend/app/_components/collaborator-select-with-create.tsx.ejs +256 -256
  40. package/hedhog/frontend/app/_components/contract-form-screen.tsx.ejs +7 -7
  41. package/hedhog/frontend/app/_components/contract-template-form-screen.tsx.ejs +306 -306
  42. package/hedhog/frontend/app/_components/contract-template-select-with-create.tsx.ejs +247 -247
  43. package/hedhog/frontend/app/_components/contract-wizard-sheet.tsx.ejs +3520 -3520
  44. package/hedhog/frontend/app/_components/project-details-screen.tsx.ejs +1504 -52
  45. package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +528 -403
  46. package/hedhog/frontend/app/_components/section-card.tsx.ejs +25 -18
  47. package/hedhog/frontend/app/_components/system-user-select-with-create.tsx.ejs +609 -0
  48. package/hedhog/frontend/app/_components/timesheet-task-create-sheet.tsx.ejs +1 -0
  49. package/hedhog/frontend/app/_lib/types.ts.ejs +5 -0
  50. package/hedhog/frontend/app/_lib/utils/format.ts.ejs +7 -7
  51. package/hedhog/frontend/app/_lib/utils/forms.ts.ejs +48 -1
  52. package/hedhog/frontend/app/approvals/page.tsx.ejs +2 -2
  53. package/hedhog/frontend/app/collaborator-types/page.tsx.ejs +513 -502
  54. package/hedhog/frontend/app/collaborators/page.tsx.ejs +10 -7
  55. package/hedhog/frontend/app/contracts/page.tsx.ejs +938 -938
  56. package/hedhog/frontend/app/projects/[id]/edit/page.tsx.ejs +1 -1
  57. package/hedhog/frontend/app/projects/page.tsx.ejs +360 -133
  58. package/hedhog/frontend/app/schedule-adjustments/page.tsx.ejs +235 -72
  59. package/hedhog/frontend/app/timesheets/page.tsx.ejs +344 -134
  60. package/hedhog/frontend/messages/en.json +32 -4
  61. package/hedhog/frontend/messages/pt.json +34 -6
  62. package/hedhog/table/operations_collaborator.yaml +18 -18
  63. package/hedhog/table/operations_collaborator_equity_participation.yaml +43 -43
  64. package/hedhog/table/operations_collaborator_type.yaml +33 -33
  65. package/hedhog/table/operations_contract_document.yaml +33 -33
  66. package/hedhog/table/operations_project.yaml +9 -0
  67. package/hedhog/table/operations_task.yaml +43 -4
  68. package/package.json +6 -6
  69. package/src/controllers/operations-tasks.controller.ts +11 -0
  70. package/src/controllers/operations-timesheets.controller.ts +13 -0
  71. package/src/dto/create-collaborator-type.dto.ts +43 -43
  72. package/src/dto/create-collaborator.dto.ts +223 -223
  73. package/src/dto/create-task.dto.ts +47 -7
  74. package/src/dto/list-collaborator-types.dto.ts +15 -15
  75. package/src/dto/list-collaborators.dto.ts +30 -30
  76. package/src/dto/list-tasks.dto.ts +3 -3
  77. package/src/dto/update-collaborator-type.dto.ts +4 -3
  78. package/src/dto/update-collaborator.dto.ts +3 -3
  79. package/src/dto/update-task.dto.ts +47 -7
  80. package/src/operations.service.spec.ts +96 -0
  81. package/src/operations.service.ts +813 -135
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK9D,aAAa,CAAS,IAAI,KAAA,EAAU,IAAI,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKxC,aAAa,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM,EAAU,IAAI,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGhF"}
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
- projectAssignmentId: number;
35
- projectId: number;
36
- projectName: string;
37
- projectCode: string | null;
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
- projectAssignmentId: number;
46
- projectId: number;
47
- projectName: string;
48
- projectCode: string | null;
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;;;;;;;;;;;IAK9D,UAAU,CACA,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,uBAAuB;;;;;;;;;;;IAMvC,UAAU,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;CAG/D"}
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,IAA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EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;;;;2DAElD;oCA/BU,yBAAyB;IAFrC,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,YAAY,CAAC;qCAEyB,sCAAiB;GADtD,yBAAyB,CAgCrC"}
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,qBAAqB,CACX,IAAI,EACe,EAAU;QAErC,OAAO,IAAI,CAAC,iBAAiB,CAAC,qBAAqB,CACjD,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EACrB,EAAE,CACH,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,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B,CA2CrC"}
@@ -71,6 +71,27 @@ export declare class OperationsTimesheetsController {
71
71
  weekEndDate: string;
72
72
  createdAt: string;
73
73
  }>;
74
+ updateTimesheetEntry(user: any, id: number, data: CreateTimesheetEntryDto): Promise<{
75
+ label: string;
76
+ id: number;
77
+ timesheetId: number;
78
+ collaboratorId: number;
79
+ projectId: number | null;
80
+ projectAssignmentId: number | null;
81
+ projectCode: string | null;
82
+ projectName: string | null;
83
+ taskId: number | null;
84
+ taskName: string | null;
85
+ activityLabel: string | null;
86
+ workDate: string;
87
+ durationMinutes: number | null;
88
+ hours: number | null;
89
+ description: string | null;
90
+ status: string;
91
+ weekStartDate: string;
92
+ weekEndDate: string;
93
+ createdAt: string;
94
+ }>;
74
95
  removeTimesheetEntry(user: any, id: number): Promise<{
75
96
  success: boolean;
76
97
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"operations-timesheets.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-timesheets.controller.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,kCAAkC,EAAE,MAAM,+CAA+C,CAAC;AACnG,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAEa,8BAA8B;IAC7B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAGjE,cAAc,CAAS,IAAI,KAAA;;;;;;;;;;;;;;;IAK3B,oBAAoB,CACV,IAAI,KAAA,EACE,gBAAgB,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASzD,oBAAoB,CAAS,IAAI,KAAA,EAAU,IAAI,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;IAQxE,oBAAoB,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;IAKxE,eAAe,CAAS,IAAI,KAAA,EAAU,IAAI,KAAA;IAK1C,eAAe,CACL,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EAC7B,IAAI,KAAA;IAMd,eAAe,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;IAKnE,mBAAmB,CAAS,IAAI,KAAA;IAKhC,oBAAoB,CACV,IAAI,KAAA,EACJ,IAAI,EAAE,uBAAuB;IAMvC,uBAAuB,CAAS,IAAI,KAAA;;;;;;;;;;;;;;;IAKpC,+BAA+B,CACrB,IAAI,KAAA,EACJ,IAAI,EAAE,kCAAkC;CAOnD"}
1
+ {"version":3,"file":"operations-timesheets.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-timesheets.controller.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,kCAAkC,EAAE,MAAM,+CAA+C,CAAC;AACnG,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAEa,8BAA8B;IAC7B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAGjE,cAAc,CAAS,IAAI,KAAA;;;;;;;;;;;;;;;IAK3B,oBAAoB,CACV,IAAI,KAAA,EACE,gBAAgB,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASzD,oBAAoB,CAAS,IAAI,KAAA,EAAU,IAAI,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;IAQxE,oBAAoB,CACV,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;IAUvC,oBAAoB,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;IAKxE,eAAe,CAAS,IAAI,KAAA,EAAU,IAAI,KAAA;IAK1C,eAAe,CACL,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EAC7B,IAAI,KAAA;IAMd,eAAe,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;IAKnE,mBAAmB,CAAS,IAAI,KAAA;IAKhC,oBAAoB,CACV,IAAI,KAAA,EACJ,IAAI,EAAE,uBAAuB;IAMvC,uBAAuB,CAAS,IAAI,KAAA;;;;;;;;;;;;;;;IAKpC,+BAA+B,CACrB,IAAI,KAAA,EACJ,IAAI,EAAE,kCAAkC;CAOnD"}
@@ -34,6 +34,9 @@ let OperationsTimesheetsController = class OperationsTimesheetsController {
34
34
  createTimesheetEntry(user, data) {
35
35
  return this.operationsService.createTimesheetEntry(Number((user === null || user === void 0 ? void 0 : user.id) || 0), data);
36
36
  }
37
+ updateTimesheetEntry(user, id, data) {
38
+ return this.operationsService.updateTimesheetEntry(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id, data);
39
+ }
37
40
  removeTimesheetEntry(user, id) {
38
41
  return this.operationsService.removeTimesheetEntry(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id);
39
42
  }
@@ -83,6 +86,15 @@ __decorate([
83
86
  __metadata("design:paramtypes", [Object, create_timesheet_entry_dto_1.CreateTimesheetEntryDto]),
84
87
  __metadata("design:returntype", void 0)
85
88
  ], OperationsTimesheetsController.prototype, "createTimesheetEntry", null);
89
+ __decorate([
90
+ (0, common_1.Patch)('timesheet-entries/:id'),
91
+ __param(0, (0, api_1.User)()),
92
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
93
+ __param(2, (0, common_1.Body)()),
94
+ __metadata("design:type", Function),
95
+ __metadata("design:paramtypes", [Object, Number, create_timesheet_entry_dto_1.CreateTimesheetEntryDto]),
96
+ __metadata("design:returntype", void 0)
97
+ ], OperationsTimesheetsController.prototype, "updateTimesheetEntry", null);
86
98
  __decorate([
87
99
  (0, common_1.Delete)('timesheet-entries/:id'),
88
100
  __param(0, (0, api_1.User)()),
@@ -1 +1 @@
1
- {"version":3,"file":"operations-timesheets.controller.js","sourceRoot":"","sources":["../../src/controllers/operations-timesheets.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,4DAAqD;AACrD,2CASwB;AACxB,0GAAmG;AACnG,oFAA6E;AAC7E,kFAA4E;AAC5E,kFAA4E;AAC5E,8DAA0D;AAInD,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IACzC,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAGrE,cAAc,CAAS,IAAI;QACzB,OAAO,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,CAAC,CAAC;IACtE,CAAC;IAGD,oBAAoB,CACV,IAAI,EACE,gBAAyC;QAEvD,OAAO,IAAI,CAAC,iBAAiB,CAAC,oBAAoB,CAChD,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EACrB,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAGD,oBAAoB,CAAS,IAAI,EAAU,IAA6B;QACtE,OAAO,IAAI,CAAC,iBAAiB,CAAC,oBAAoB,CAChD,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EACrB,IAAI,CACL,CAAC;IACJ,CAAC;IAGD,oBAAoB,CAAS,IAAI,EAA6B,EAAU;QACtE,OAAO,IAAI,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EAAE,EAAE,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AA;;;;qEAEvD;AAGD;IADC,IAAA,YAAG,EAAC,UAAU,CAAC;IACK,WAAA,IAAA,UAAI,GAAE,CAAA;;;;yEAE1B;AAGD;IADC,IAAA,aAAI,EAAC,UAAU,CAAC;IAEd,WAAA,IAAA,UAAI,GAAE,CAAA;IACN,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,qDAAuB;;0EAGtC;AAGD;IADC,IAAA,YAAG,EAAC,sBAAsB,CAAC;IACH,WAAA,IAAA,UAAI,GAAE,CAAA;;;;6EAE9B;AAGD;IADC,IAAA,aAAI,EAAC,sBAAsB,CAAC;IAE1B,WAAA,IAAA,UAAI,GAAE,CAAA;IACN,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,2EAAkC;;qFAMjD;yCA9EU,8BAA8B;IAF1C,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,YAAY,CAAC;qCAEyB,sCAAiB;GADtD,8BAA8B,CA+E1C"}
1
+ {"version":3,"file":"operations-timesheets.controller.js","sourceRoot":"","sources":["../../src/controllers/operations-timesheets.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,4DAAqD;AACrD,2CASwB;AACxB,0GAAmG;AACnG,oFAA6E;AAC7E,kFAA4E;AAC5E,kFAA4E;AAC5E,8DAA0D;AAInD,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IACzC,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAGrE,cAAc,CAAS,IAAI;QACzB,OAAO,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,CAAC,CAAC;IACtE,CAAC;IAGD,oBAAoB,CACV,IAAI,EACE,gBAAyC;QAEvD,OAAO,IAAI,CAAC,iBAAiB,CAAC,oBAAoB,CAChD,MAAM,CAAC,CAAA,IAAI,aA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GAAE,CAAA;;;;6EAE9B;AAGD;IADC,IAAA,aAAI,EAAC,sBAAsB,CAAC;IAE1B,WAAA,IAAA,UAAI,GAAE,CAAA;IACN,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,2EAAkC;;qFAMjD;yCA3FU,8BAA8B;IAF1C,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,YAAY,CAAC;qCAEyB,sCAAiB;GADtD,8BAA8B,CA4F1C"}
@@ -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
- status?: 'active' | 'completed' | 'archived';
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":"AAGA,qBAAa,uBAAuB;IAMlC,SAAS,CAAC,EAAE,MAAM,CAAC;IAOnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAI7B,IAAI,EAAG,MAAM,CAAC;IAOd,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,UAAU,CAAC;CAC9C"}
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)(500, {
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)(['active', 'completed', 'archived'], {
46
- message: 'status must be active, completed, or archived',
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,qDAA+E;AAE/E,MAAa,uBAAuB;CA+BnC;AA/BD,0DA+BC;AAzBC;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAA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are class ListOperationsTasksDto extends PaginationDTO {
3
3
  projectId?: number;
4
4
  projectAssignmentId?: number;
5
- status?: 'active' | 'completed' | 'archived';
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,QAAQ,GAAG,WAAW,GAAG,UAAU,CAAC;CAC9C"}
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)(['active', 'completed', 'archived'], {
34
- message: 'status must be active, completed, or archived',
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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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;;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,4 +1,6 @@
1
1
  import { CreateCollaboratorTypeDto } from './create-collaborator-type.dto';
2
- export declare class UpdateCollaboratorTypeDto extends CreateCollaboratorTypeDto {
2
+ declare const UpdateCollaboratorTypeDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateCollaboratorTypeDto>>;
3
+ export declare class UpdateCollaboratorTypeDto extends UpdateCollaboratorTypeDto_base {
3
4
  }
5
+ export {};
4
6
  //# sourceMappingURL=update-collaborator-type.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-collaborator-type.dto.d.ts","sourceRoot":"","sources":["../../src/dto/update-collaborator-type.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,qBAAa,yBAA0B,SAAQ,yBAAyB;CAAG"}
1
+ {"version":3,"file":"update-collaborator-type.dto.d.ts","sourceRoot":"","sources":["../../src/dto/update-collaborator-type.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;;AAE3E,qBAAa,yBAA0B,SAAQ,8BAAsC;CAAG"}
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateCollaboratorTypeDto = void 0;
4
+ const mapped_types_1 = require("@nestjs/mapped-types");
4
5
  const create_collaborator_type_dto_1 = require("./create-collaborator-type.dto");
5
- class UpdateCollaboratorTypeDto extends create_collaborator_type_dto_1.CreateCollaboratorTypeDto {
6
+ class UpdateCollaboratorTypeDto extends (0, mapped_types_1.PartialType)(create_collaborator_type_dto_1.CreateCollaboratorTypeDto) {
6
7
  }
7
8
  exports.UpdateCollaboratorTypeDto = UpdateCollaboratorTypeDto;
8
9
  //# sourceMappingURL=update-collaborator-type.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-collaborator-type.dto.js","sourceRoot":"","sources":["../../src/dto/update-collaborator-type.dto.ts"],"names":[],"mappings":";;;AAAA,iFAA2E;AAE3E,MAAa,yBAA0B,SAAQ,wDAAyB;CAAG;AAA3E,8DAA2E"}
1
+ {"version":3,"file":"update-collaborator-type.dto.js","sourceRoot":"","sources":["../../src/dto/update-collaborator-type.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AACnD,iFAA2E;AAE3E,MAAa,yBAA0B,SAAQ,IAAA,0BAAW,EAAC,wDAAyB,CAAC;CAAG;AAAxF,8DAAwF"}
@@ -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
- status?: 'active' | 'completed' | 'archived';
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":"AAGA,qBAAa,uBAAuB;IAMlC,SAAS,CAAC,EAAE,MAAM,CAAC;IAOnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAK7B,IAAI,CAAC,EAAE,MAAM,CAAC;IAOd,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,UAAU,CAAC;CAC9C"}
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)(500, {
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)(['active', 'completed', 'archived'], {
47
- message: 'status must be active, completed, or archived',
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,qDAA+E;AAE/E,MAAa,uBAAuB;CAgCnC;AAhCD,0DAgCC;AA1BC;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;AAK7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