@hed-hog/operations 0.0.318 → 0.0.319

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 (137) hide show
  1. package/dist/controllers/operations-collaborator-costs.controller.d.ts +144 -0
  2. package/dist/controllers/operations-collaborator-costs.controller.d.ts.map +1 -0
  3. package/dist/controllers/operations-collaborator-costs.controller.js +162 -0
  4. package/dist/controllers/operations-collaborator-costs.controller.js.map +1 -0
  5. package/dist/controllers/operations-collaborators.controller.d.ts +14 -0
  6. package/dist/controllers/operations-collaborators.controller.d.ts.map +1 -1
  7. package/dist/controllers/operations-collaborators.controller.js +11 -0
  8. package/dist/controllers/operations-collaborators.controller.js.map +1 -1
  9. package/dist/controllers/operations-projects.controller.d.ts +31 -0
  10. package/dist/controllers/operations-projects.controller.d.ts.map +1 -1
  11. package/dist/controllers/operations-projects.controller.js +23 -0
  12. package/dist/controllers/operations-projects.controller.js.map +1 -1
  13. package/dist/controllers/operations-reports.controller.d.ts +199 -0
  14. package/dist/controllers/operations-reports.controller.d.ts.map +1 -0
  15. package/dist/controllers/operations-reports.controller.js +53 -0
  16. package/dist/controllers/operations-reports.controller.js.map +1 -0
  17. package/dist/controllers/operations-tasks.controller.d.ts +41 -2
  18. package/dist/controllers/operations-tasks.controller.d.ts.map +1 -1
  19. package/dist/controllers/operations-tasks.controller.js +17 -5
  20. package/dist/controllers/operations-tasks.controller.js.map +1 -1
  21. package/dist/dto/create-collaborator-cost.dto.d.ts +16 -0
  22. package/dist/dto/create-collaborator-cost.dto.d.ts.map +1 -0
  23. package/dist/dto/create-collaborator-cost.dto.js +88 -0
  24. package/dist/dto/create-collaborator-cost.dto.js.map +1 -0
  25. package/dist/dto/create-collaborator.dto.d.ts +0 -1
  26. package/dist/dto/create-collaborator.dto.d.ts.map +1 -1
  27. package/dist/dto/create-collaborator.dto.js +0 -6
  28. package/dist/dto/create-collaborator.dto.js.map +1 -1
  29. package/dist/dto/create-cost-type.dto.d.ts +13 -0
  30. package/dist/dto/create-cost-type.dto.d.ts.map +1 -0
  31. package/dist/dto/create-cost-type.dto.js +87 -0
  32. package/dist/dto/create-cost-type.dto.js.map +1 -0
  33. package/dist/dto/list-approvals.dto.d.ts +2 -0
  34. package/dist/dto/list-approvals.dto.d.ts.map +1 -1
  35. package/dist/dto/list-approvals.dto.js +10 -0
  36. package/dist/dto/list-approvals.dto.js.map +1 -1
  37. package/dist/dto/list-collaborator-costs.dto.d.ts +5 -0
  38. package/dist/dto/list-collaborator-costs.dto.d.ts.map +1 -0
  39. package/dist/dto/list-collaborator-costs.dto.js +23 -0
  40. package/dist/dto/list-collaborator-costs.dto.js.map +1 -0
  41. package/dist/dto/list-cost-types.dto.d.ts +6 -0
  42. package/dist/dto/list-cost-types.dto.d.ts.map +1 -0
  43. package/dist/dto/list-cost-types.dto.js +35 -0
  44. package/dist/dto/list-cost-types.dto.js.map +1 -0
  45. package/dist/dto/list-my-projects.dto.d.ts +5 -0
  46. package/dist/dto/list-my-projects.dto.d.ts.map +1 -0
  47. package/dist/dto/list-my-projects.dto.js +23 -0
  48. package/dist/dto/list-my-projects.dto.js.map +1 -0
  49. package/dist/dto/list-my-tasks.dto.d.ts +6 -0
  50. package/dist/dto/list-my-tasks.dto.d.ts.map +1 -0
  51. package/dist/dto/list-my-tasks.dto.js +33 -0
  52. package/dist/dto/list-my-tasks.dto.js.map +1 -0
  53. package/dist/dto/list-projects.dto.d.ts +1 -0
  54. package/dist/dto/list-projects.dto.d.ts.map +1 -1
  55. package/dist/dto/list-projects.dto.js +7 -0
  56. package/dist/dto/list-projects.dto.js.map +1 -1
  57. package/dist/dto/list-reports.dto.d.ts +16 -0
  58. package/dist/dto/list-reports.dto.d.ts.map +1 -0
  59. package/dist/dto/list-reports.dto.js +75 -0
  60. package/dist/dto/list-reports.dto.js.map +1 -0
  61. package/dist/dto/list-tasks.dto.d.ts +2 -0
  62. package/dist/dto/list-tasks.dto.d.ts.map +1 -1
  63. package/dist/dto/list-tasks.dto.js +12 -0
  64. package/dist/dto/list-tasks.dto.js.map +1 -1
  65. package/dist/dto/list-timesheets.dto.d.ts +2 -0
  66. package/dist/dto/list-timesheets.dto.d.ts.map +1 -1
  67. package/dist/dto/list-timesheets.dto.js +10 -0
  68. package/dist/dto/list-timesheets.dto.js.map +1 -1
  69. package/dist/dto/update-collaborator-cost.dto.d.ts +6 -0
  70. package/dist/dto/update-collaborator-cost.dto.d.ts.map +1 -0
  71. package/dist/dto/update-collaborator-cost.dto.js +9 -0
  72. package/dist/dto/update-collaborator-cost.dto.js.map +1 -0
  73. package/dist/dto/update-task.dto.d.ts +1 -0
  74. package/dist/dto/update-task.dto.d.ts.map +1 -1
  75. package/dist/dto/update-task.dto.js +6 -0
  76. package/dist/dto/update-task.dto.js.map +1 -1
  77. package/dist/operations.module.d.ts.map +1 -1
  78. package/dist/operations.module.js +4 -0
  79. package/dist/operations.module.js.map +1 -1
  80. package/dist/operations.service.d.ts +457 -3
  81. package/dist/operations.service.d.ts.map +1 -1
  82. package/dist/operations.service.js +1445 -208
  83. package/dist/operations.service.js.map +1 -1
  84. package/dist/operations.service.spec.js +31 -7
  85. package/dist/operations.service.spec.js.map +1 -1
  86. package/hedhog/data/menu.yaml +112 -7
  87. package/hedhog/data/operations_cost_type.yaml +166 -0
  88. package/hedhog/data/route.yaml +185 -0
  89. package/hedhog/frontend/app/_components/collaborator-costs-section.tsx.ejs +884 -0
  90. package/hedhog/frontend/app/_components/collaborator-details-screen.tsx.ejs +94 -15
  91. package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +219 -94
  92. package/hedhog/frontend/app/_components/contract-details-screen.tsx.ejs +21 -32
  93. package/hedhog/frontend/app/_components/contract-form-screen.tsx.ejs +178 -89
  94. package/hedhog/frontend/app/_components/my-project-summary-screen.tsx.ejs +1185 -0
  95. package/hedhog/frontend/app/_components/operations-calendar-view.tsx.ejs +306 -0
  96. package/hedhog/frontend/app/_components/project-details-screen.tsx.ejs +943 -782
  97. package/hedhog/frontend/app/_components/task-detail-sheet.tsx.ejs +223 -0
  98. package/hedhog/frontend/app/_lib/api.ts.ejs +162 -0
  99. package/hedhog/frontend/app/_lib/types.ts.ejs +229 -3
  100. package/hedhog/frontend/app/_lib/utils/format.ts.ejs +11 -3
  101. package/hedhog/frontend/app/approvals/page.tsx.ejs +191 -46
  102. package/hedhog/frontend/app/collaborators/page.tsx.ejs +133 -25
  103. package/hedhog/frontend/app/my-projects/[id]/page.tsx.ejs +11 -0
  104. package/hedhog/frontend/app/my-projects/page.tsx.ejs +440 -0
  105. package/hedhog/frontend/app/my-tasks/page.tsx.ejs +1304 -0
  106. package/hedhog/frontend/app/reports/collaborators/page.tsx.ejs +771 -0
  107. package/hedhog/frontend/app/reports/projects/page.tsx.ejs +809 -0
  108. package/hedhog/frontend/app/timesheets/page.tsx.ejs +322 -58
  109. package/hedhog/frontend/messages/en.json +234 -25
  110. package/hedhog/frontend/messages/pt.json +234 -25
  111. package/hedhog/table/operations_collaborator.yaml +0 -4
  112. package/hedhog/table/operations_collaborator_compensation_history.yaml +28 -0
  113. package/hedhog/table/operations_collaborator_cost.yaml +56 -0
  114. package/hedhog/table/operations_cost_type.yaml +38 -0
  115. package/package.json +6 -6
  116. package/src/controllers/operations-collaborator-costs.controller.ts +147 -0
  117. package/src/controllers/operations-collaborators.controller.ts +19 -8
  118. package/src/controllers/operations-projects.controller.ts +19 -8
  119. package/src/controllers/operations-reports.controller.ts +32 -0
  120. package/src/controllers/operations-tasks.controller.ts +32 -12
  121. package/src/dto/create-collaborator-cost.dto.ts +78 -0
  122. package/src/dto/create-collaborator.dto.ts +9 -14
  123. package/src/dto/create-cost-type.dto.ts +62 -0
  124. package/src/dto/list-approvals.dto.ts +8 -0
  125. package/src/dto/list-collaborator-costs.dto.ts +8 -0
  126. package/src/dto/list-cost-types.dto.ts +19 -0
  127. package/src/dto/list-my-projects.dto.ts +8 -0
  128. package/src/dto/list-my-tasks.dto.ts +17 -0
  129. package/src/dto/list-projects.dto.ts +7 -1
  130. package/src/dto/list-reports.dto.ts +51 -0
  131. package/src/dto/list-tasks.dto.ts +11 -1
  132. package/src/dto/list-timesheets.dto.ts +8 -0
  133. package/src/dto/update-collaborator-cost.dto.ts +4 -0
  134. package/src/dto/update-task.dto.ts +6 -0
  135. package/src/operations.module.ts +7 -3
  136. package/src/operations.service.spec.ts +45 -7
  137. package/src/operations.service.ts +1992 -225
@@ -0,0 +1,199 @@
1
+ import { ListCollaboratorsReportDto, ListProjectsReportDto } from '../dto/list-reports.dto';
2
+ import { OperationsService } from '../operations.service';
3
+ export declare class OperationsReportsController {
4
+ private readonly operationsService;
5
+ constructor(operationsService: OperationsService);
6
+ getProjectsReport(user: any, filters: ListProjectsReportDto): Promise<{
7
+ filters: {
8
+ from: string;
9
+ to: string;
10
+ status: string;
11
+ client: string;
12
+ scenario: string;
13
+ clients: string[];
14
+ };
15
+ summary: {
16
+ contractedRevenue: number;
17
+ recognizedRevenue: number;
18
+ realizedCost: number;
19
+ forecastCost: number;
20
+ profit: number;
21
+ margin: number;
22
+ plannedHours: number;
23
+ actualHours: number;
24
+ billableHours: number;
25
+ reworkHours: number;
26
+ backlogValue: number;
27
+ avgDeadline: number;
28
+ avgAllocation: number;
29
+ atRisk: number;
30
+ burnRate: number;
31
+ };
32
+ forecast: {
33
+ month: string;
34
+ revenue: number;
35
+ cost: number;
36
+ profit: number;
37
+ backlog: number;
38
+ planned: number;
39
+ actual: number;
40
+ }[];
41
+ costComposition: {
42
+ name: string;
43
+ value: number;
44
+ }[];
45
+ hoursByProject: {
46
+ project: string;
47
+ Faturável: number;
48
+ Interno: number;
49
+ Retrabalho: number;
50
+ Livre: number;
51
+ }[];
52
+ health: {
53
+ project: string;
54
+ margem: number;
55
+ prazo: number;
56
+ alocacao: number;
57
+ saude: number;
58
+ }[];
59
+ ranking: {
60
+ name: string;
61
+ Lucro: number;
62
+ Custo: number;
63
+ }[];
64
+ progress: {
65
+ month: string;
66
+ Planejado: number;
67
+ Realizado: number;
68
+ }[];
69
+ planningCards: {
70
+ title: string;
71
+ value: string;
72
+ description: string;
73
+ }[];
74
+ rows: {
75
+ id: number;
76
+ name: string;
77
+ client: string;
78
+ manager: string;
79
+ squad: string;
80
+ status: string;
81
+ contractType: string;
82
+ priority: string;
83
+ startDate: string;
84
+ endDate: string;
85
+ contractedRevenue: number;
86
+ recognizedRevenue: number;
87
+ realizedCost: number;
88
+ forecastCost: number;
89
+ teamCost: number;
90
+ infraCost: number;
91
+ licenseCost: number;
92
+ thirdPartyCost: number;
93
+ reworkCost: number;
94
+ plannedHours: number;
95
+ actualHours: number;
96
+ billableHours: number;
97
+ reworkHours: number;
98
+ internalHours: number;
99
+ allocatedCapacity: number;
100
+ physicalProgress: number;
101
+ financialProgress: number;
102
+ backlogValue: number;
103
+ futureDeliveries: number;
104
+ risk: string;
105
+ recommendation: string;
106
+ }[];
107
+ }>;
108
+ getCollaboratorsReport(user: any, filters: ListCollaboratorsReportDto): Promise<{
109
+ filters: {
110
+ from: string;
111
+ to: string;
112
+ department: string;
113
+ contractType: string;
114
+ scenario: string;
115
+ departments: string[];
116
+ contractTypes: string[];
117
+ };
118
+ summary: {
119
+ cost: number;
120
+ salary: number;
121
+ benefits: number;
122
+ taxes: number;
123
+ tools: number;
124
+ billableValue: number;
125
+ profit: number;
126
+ margin: number;
127
+ availableHours: number;
128
+ allocatedHours: number;
129
+ billableHours: number;
130
+ internalHours: number;
131
+ overtimeHours: number;
132
+ freeHours: number;
133
+ allocation: number;
134
+ utilization: number;
135
+ overloadCount: number;
136
+ hourlyCost: number;
137
+ };
138
+ forecast: {
139
+ month: string;
140
+ revenue: number;
141
+ cost: number;
142
+ profit: number;
143
+ margin: number;
144
+ capacity: number;
145
+ }[];
146
+ costComposition: {
147
+ name: string;
148
+ value: number;
149
+ }[];
150
+ capacityByDepartment: {
151
+ department: string;
152
+ Faturável: number;
153
+ Interno: number;
154
+ Livre: number;
155
+ Sobrecarga: number;
156
+ }[];
157
+ health: {
158
+ department: string;
159
+ margem: number;
160
+ alocacao: number;
161
+ utilizacao: number;
162
+ saude: number;
163
+ }[];
164
+ ranking: {
165
+ name: string;
166
+ Custo: number;
167
+ Lucro: number;
168
+ }[];
169
+ planningCards: {
170
+ title: string;
171
+ value: string;
172
+ description: string;
173
+ }[];
174
+ rows: {
175
+ id: number;
176
+ name: string;
177
+ role: string;
178
+ seniority: string;
179
+ department: string;
180
+ contractType: string;
181
+ startDate: string;
182
+ endDate: string;
183
+ salaryCost: number;
184
+ benefitsCost: number;
185
+ taxesCost: number;
186
+ toolsCost: number;
187
+ billableValue: number;
188
+ availableHours: number;
189
+ allocatedHours: number;
190
+ billableHours: number;
191
+ internalHours: number;
192
+ overtimeHours: number;
193
+ projects: number;
194
+ risk: string;
195
+ recommendation: string;
196
+ }[];
197
+ }>;
198
+ }
199
+ //# sourceMappingURL=operations-reports.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations-reports.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-reports.controller.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAEa,2BAA2B;IAC1B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAGjE,iBAAiB,CAAS,IAAI,KAAA,EAAW,OAAO,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQvE,sBAAsB,CACZ,IAAI,KAAA,EACH,OAAO,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO/C"}
@@ -0,0 +1,53 @@
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
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.OperationsReportsController = void 0;
16
+ const api_1 = require("@hed-hog/api");
17
+ const common_1 = require("@nestjs/common");
18
+ const list_reports_dto_1 = require("../dto/list-reports.dto");
19
+ const operations_service_1 = require("../operations.service");
20
+ let OperationsReportsController = class OperationsReportsController {
21
+ constructor(operationsService) {
22
+ this.operationsService = operationsService;
23
+ }
24
+ getProjectsReport(user, filters) {
25
+ return this.operationsService.getProjectsReport(Number((user === null || user === void 0 ? void 0 : user.id) || 0), filters);
26
+ }
27
+ getCollaboratorsReport(user, filters) {
28
+ return this.operationsService.getCollaboratorsReport(Number((user === null || user === void 0 ? void 0 : user.id) || 0), filters);
29
+ }
30
+ };
31
+ exports.OperationsReportsController = OperationsReportsController;
32
+ __decorate([
33
+ (0, common_1.Get)('reports/projects'),
34
+ __param(0, (0, api_1.User)()),
35
+ __param(1, (0, common_1.Query)()),
36
+ __metadata("design:type", Function),
37
+ __metadata("design:paramtypes", [Object, list_reports_dto_1.ListProjectsReportDto]),
38
+ __metadata("design:returntype", void 0)
39
+ ], OperationsReportsController.prototype, "getProjectsReport", null);
40
+ __decorate([
41
+ (0, common_1.Get)('reports/collaborators'),
42
+ __param(0, (0, api_1.User)()),
43
+ __param(1, (0, common_1.Query)()),
44
+ __metadata("design:type", Function),
45
+ __metadata("design:paramtypes", [Object, list_reports_dto_1.ListCollaboratorsReportDto]),
46
+ __metadata("design:returntype", void 0)
47
+ ], OperationsReportsController.prototype, "getCollaboratorsReport", null);
48
+ exports.OperationsReportsController = OperationsReportsController = __decorate([
49
+ (0, api_1.Role)(),
50
+ (0, common_1.Controller)('operations'),
51
+ __metadata("design:paramtypes", [operations_service_1.OperationsService])
52
+ ], OperationsReportsController);
53
+ //# sourceMappingURL=operations-reports.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations-reports.controller.js","sourceRoot":"","sources":["../../src/controllers/operations-reports.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,2CAAwD;AACxD,8DAGiC;AACjC,8DAA0D;AAInD,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACtC,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAGrE,iBAAiB,CAAS,IAAI,EAAW,OAA8B;QACrE,OAAO,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAC7C,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EACrB,OAAO,CACR,CAAC;IACJ,CAAC;IAGD,sBAAsB,CACZ,IAAI,EACH,OAAmC;QAE5C,OAAO,IAAI,CAAC,iBAAiB,CAAC,sBAAsB,CAClD,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EACrB,OAAO,CACR,CAAC;IACJ,CAAC;CACF,CAAA;AArBY,kEAA2B;AAItC;IADC,IAAA,YAAG,EAAC,kBAAkB,CAAC;IACL,WAAA,IAAA,UAAI,GAAE,CAAA;IAAQ,WAAA,IAAA,cAAK,GAAE,CAAA;;6CAAU,wCAAqB;;oEAKtE;AAGD;IADC,IAAA,YAAG,EAAC,uBAAuB,CAAC;IAE1B,WAAA,IAAA,UAAI,GAAE,CAAA;IACN,WAAA,IAAA,cAAK,GAAE,CAAA;;6CAAU,6CAA0B;;yEAM7C;sCApBU,2BAA2B;IAFvC,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,YAAY,CAAC;qCAEyB,sCAAiB;GADtD,2BAA2B,CAqBvC"}
@@ -1,4 +1,5 @@
1
1
  import { CreateOperationsTaskDto } from '../dto/create-task.dto';
2
+ import { ListMyTasksDto } from '../dto/list-my-tasks.dto';
2
3
  import { ListOperationsTasksDto } from '../dto/list-tasks.dto';
3
4
  import { UpdateOperationsTaskDto } from '../dto/update-task.dto';
4
5
  import { OperationsService } from '../operations.service';
@@ -18,11 +19,47 @@ export declare class OperationsTasksController {
18
19
  name: string;
19
20
  description: string | null;
20
21
  status: string;
22
+ priority: string;
21
23
  projectId: number;
22
- projectAssignmentId: number;
24
+ projectAssignmentId: number | null;
23
25
  projectName: string;
24
26
  projectCode: string | null;
27
+ dueDate: string | null;
28
+ estimateHours: number | null;
29
+ tags: string | null;
30
+ assigneeName: string | null;
31
+ assigneeUserPhotoId: number | null;
32
+ assigneePersonAvatarId: number | null;
25
33
  createdAt: string;
34
+ deletedAt: string | null;
35
+ }[];
36
+ }>;
37
+ listMyTasks(user: any, paginationParams: ListMyTasksDto): Promise<{
38
+ total: number;
39
+ lastPage: number;
40
+ page: number;
41
+ pageSize: number;
42
+ prev: number;
43
+ next: number;
44
+ data: {
45
+ label: string;
46
+ id: number;
47
+ name: string;
48
+ description: string | null;
49
+ status: string;
50
+ priority: string;
51
+ projectId: number;
52
+ projectAssignmentId: number | null;
53
+ projectName: string;
54
+ projectCode: string | null;
55
+ dueDate: string | null;
56
+ estimateHours: number | null;
57
+ tags: string | null;
58
+ assigneeName: string | null;
59
+ assigneeUserPhotoId: number | null;
60
+ assigneePersonAvatarId: number | null;
61
+ createdAt: string;
62
+ deletedAt: string | null;
26
63
  }[];
27
64
  }>;
28
65
  listProjectBoardTasks(user: any, id: number): Promise<{
@@ -59,6 +96,7 @@ export declare class OperationsTasksController {
59
96
  projectAssignmentId: number | null;
60
97
  projectId: number | null;
61
98
  createdAt: string;
99
+ deletedAt: string | null;
62
100
  }>;
63
101
  updateTask(user: any, id: number, data: UpdateOperationsTaskDto): Promise<{
64
102
  id: number;
@@ -77,8 +115,9 @@ export declare class OperationsTasksController {
77
115
  projectAssignmentId: number | null;
78
116
  projectId: number | null;
79
117
  createdAt: string;
118
+ deletedAt: string | null;
80
119
  }>;
81
- removeTask(user: any, id: number): Promise<{
120
+ removeTask(user: any, id: number, permanent?: string): Promise<{
82
121
  success: boolean;
83
122
  }>;
84
123
  }
@@ -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,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"}
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,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,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,EACH,gBAAgB,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASnD,WAAW,CACD,IAAI,KAAA,EACH,gBAAgB,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAS3C,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,CACA,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,MAAM;;;CAQzC"}
@@ -14,9 +14,9 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.OperationsTasksController = void 0;
16
16
  const api_1 = require("@hed-hog/api");
17
- const api_pagination_1 = require("@hed-hog/api-pagination");
18
17
  const common_1 = require("@nestjs/common");
19
18
  const create_task_dto_1 = require("../dto/create-task.dto");
19
+ const list_my_tasks_dto_1 = require("../dto/list-my-tasks.dto");
20
20
  const list_tasks_dto_1 = require("../dto/list-tasks.dto");
21
21
  const update_task_dto_1 = require("../dto/update-task.dto");
22
22
  const operations_service_1 = require("../operations.service");
@@ -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
+ listMyTasks(user, paginationParams) {
31
+ return this.operationsService.listMyTasks(Number((user === null || user === void 0 ? void 0 : user.id) || 0), paginationParams);
32
+ }
30
33
  listProjectBoardTasks(user, id) {
31
34
  return this.operationsService.listProjectBoardTasks(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id);
32
35
  }
@@ -36,19 +39,27 @@ let OperationsTasksController = class OperationsTasksController {
36
39
  updateTask(user, id, data) {
37
40
  return this.operationsService.updateTask(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id, data);
38
41
  }
39
- removeTask(user, id) {
40
- return this.operationsService.removeTask(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id);
42
+ removeTask(user, id, permanent) {
43
+ return this.operationsService.removeTask(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id, permanent === 'true');
41
44
  }
42
45
  };
43
46
  exports.OperationsTasksController = OperationsTasksController;
44
47
  __decorate([
45
48
  (0, common_1.Get)('tasks'),
46
49
  __param(0, (0, api_1.User)()),
47
- __param(1, (0, api_pagination_1.Pagination)()),
50
+ __param(1, (0, common_1.Query)()),
48
51
  __metadata("design:type", Function),
49
52
  __metadata("design:paramtypes", [Object, list_tasks_dto_1.ListOperationsTasksDto]),
50
53
  __metadata("design:returntype", void 0)
51
54
  ], OperationsTasksController.prototype, "listTasks", null);
55
+ __decorate([
56
+ (0, common_1.Get)('my-tasks'),
57
+ __param(0, (0, api_1.User)()),
58
+ __param(1, (0, common_1.Query)()),
59
+ __metadata("design:type", Function),
60
+ __metadata("design:paramtypes", [Object, list_my_tasks_dto_1.ListMyTasksDto]),
61
+ __metadata("design:returntype", void 0)
62
+ ], OperationsTasksController.prototype, "listMyTasks", null);
52
63
  __decorate([
53
64
  (0, common_1.Get)('projects/:id/tasks'),
54
65
  __param(0, (0, api_1.User)()),
@@ -78,8 +89,9 @@ __decorate([
78
89
  (0, common_1.Delete)('tasks/:id'),
79
90
  __param(0, (0, api_1.User)()),
80
91
  __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
92
+ __param(2, (0, common_1.Query)('permanent')),
81
93
  __metadata("design:type", Function),
82
- __metadata("design:paramtypes", [Object, Number]),
94
+ __metadata("design:paramtypes", [Object, Number, String]),
83
95
  __metadata("design:returntype", void 0)
84
96
  ], OperationsTasksController.prototype, "removeTask", null);
85
97
  exports.OperationsTasksController = OperationsTasksController = __decorate([
@@ -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,qBAAqB,CACX,IAAI,EACe,EAAU;QAErC,OAAO,IAAI,CAAC,iBAAiB,CAAC,qBAAqB,CACjD,MAAM,CAAC,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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
+ {"version":3,"file":"operations-tasks.controller.js","sourceRoot":"","sources":["../../src/controllers/operations-tasks.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,2CAUwB;AACxB,4DAAiE;AACjE,gEAA0D;AAC1D,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,EACH,gBAAwC;QAEjD,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,WAAW,CACD,IAAI,EACH,gBAAgC;QAEzC,OAAO,IAAI,CAAC,iBAAiB,CAAC,WAAW,CACvC,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,OAA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,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;IAEjB,WAAA,IAAA,UAAI,GAAE,CAAA;IACN,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;IACzB,WAAA,IAAA,cAAK,EAAC,WAAW,CAAC,CAAA;;;;2DAOpB;oCA7DU,yBAAyB;IAFrC,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,YAAY,CAAC;qCAEyB,sCAAiB;GADtD,yBAAyB,CA8DrC"}
@@ -0,0 +1,16 @@
1
+ export declare const COST_RECURRENCE_VALUES: readonly ["one_time", "monthly", "quarterly", "yearly"];
2
+ export type CostRecurrence = (typeof COST_RECURRENCE_VALUES)[number];
3
+ export declare class CreateCollaboratorCostDto {
4
+ costTypeId: number;
5
+ amount: number;
6
+ currency?: string;
7
+ recurrence?: CostRecurrence;
8
+ allocatable?: boolean;
9
+ referenceDate?: string | null;
10
+ startDate?: string | null;
11
+ endDate?: string | null;
12
+ depreciationMonths?: number | null;
13
+ description?: string | null;
14
+ notes?: string | null;
15
+ }
16
+ //# sourceMappingURL=create-collaborator-cost.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-collaborator-cost.dto.d.ts","sourceRoot":"","sources":["../../src/dto/create-collaborator-cost.dto.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,sBAAsB,yDAKzB,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,qBAAa,yBAAyB;IAKpC,UAAU,EAAG,MAAM,CAAC;IAOpB,MAAM,EAAG,MAAM,CAAC;IAKhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,UAAU,CAAC,EAAE,cAAc,CAAC;IAQ5B,WAAW,CAAC,EAAE,OAAO,CAAC;IAItB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAI9B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAI1B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAQxB,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAInC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAI5B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB"}
@@ -0,0 +1,88 @@
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.CreateCollaboratorCostDto = exports.COST_RECURRENCE_VALUES = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ exports.COST_RECURRENCE_VALUES = [
16
+ 'one_time',
17
+ 'monthly',
18
+ 'quarterly',
19
+ 'yearly',
20
+ ];
21
+ class CreateCollaboratorCostDto {
22
+ }
23
+ exports.CreateCollaboratorCostDto = CreateCollaboratorCostDto;
24
+ __decorate([
25
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
26
+ (0, class_validator_1.IsNumber)(),
27
+ __metadata("design:type", Number)
28
+ ], CreateCollaboratorCostDto.prototype, "costTypeId", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
31
+ (0, class_validator_1.IsNumber)(),
32
+ (0, class_validator_1.Min)(0),
33
+ __metadata("design:type", Number)
34
+ ], CreateCollaboratorCostDto.prototype, "amount", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsOptional)(),
37
+ (0, class_validator_1.IsString)(),
38
+ (0, class_validator_1.MaxLength)(3),
39
+ __metadata("design:type", String)
40
+ ], CreateCollaboratorCostDto.prototype, "currency", void 0);
41
+ __decorate([
42
+ (0, class_validator_1.IsOptional)(),
43
+ (0, class_validator_1.IsIn)(exports.COST_RECURRENCE_VALUES),
44
+ __metadata("design:type", String)
45
+ ], CreateCollaboratorCostDto.prototype, "recurrence", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsOptional)(),
48
+ (0, class_transformer_1.Transform)(({ value }) => {
49
+ if (value === '' || value === undefined || value === null)
50
+ return undefined;
51
+ return value === true || value === 'true' || value === '1';
52
+ }),
53
+ (0, class_validator_1.IsBoolean)(),
54
+ __metadata("design:type", Boolean)
55
+ ], CreateCollaboratorCostDto.prototype, "allocatable", void 0);
56
+ __decorate([
57
+ (0, class_validator_1.IsOptional)(),
58
+ (0, class_validator_1.IsString)(),
59
+ __metadata("design:type", String)
60
+ ], CreateCollaboratorCostDto.prototype, "referenceDate", void 0);
61
+ __decorate([
62
+ (0, class_validator_1.IsOptional)(),
63
+ (0, class_validator_1.IsString)(),
64
+ __metadata("design:type", String)
65
+ ], CreateCollaboratorCostDto.prototype, "startDate", void 0);
66
+ __decorate([
67
+ (0, class_validator_1.IsOptional)(),
68
+ (0, class_validator_1.IsString)(),
69
+ __metadata("design:type", String)
70
+ ], CreateCollaboratorCostDto.prototype, "endDate", void 0);
71
+ __decorate([
72
+ (0, class_validator_1.IsOptional)(),
73
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
74
+ (0, class_validator_1.IsNumber)(),
75
+ (0, class_validator_1.Min)(1),
76
+ __metadata("design:type", Number)
77
+ ], CreateCollaboratorCostDto.prototype, "depreciationMonths", void 0);
78
+ __decorate([
79
+ (0, class_validator_1.IsOptional)(),
80
+ (0, class_validator_1.IsString)(),
81
+ __metadata("design:type", String)
82
+ ], CreateCollaboratorCostDto.prototype, "description", void 0);
83
+ __decorate([
84
+ (0, class_validator_1.IsOptional)(),
85
+ (0, class_validator_1.IsString)(),
86
+ __metadata("design:type", String)
87
+ ], CreateCollaboratorCostDto.prototype, "notes", void 0);
88
+ //# sourceMappingURL=create-collaborator-cost.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-collaborator-cost.dto.js","sourceRoot":"","sources":["../../src/dto/create-collaborator-cost.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAQyB;AAEZ,QAAA,sBAAsB,GAAG;IACpC,UAAU;IACV,SAAS;IACT,WAAW;IACX,QAAQ;CACA,CAAC;AAGX,MAAa,yBAAyB;CA0DrC;AA1DD,8DA0DC;AArDC;IAJC,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,GAAE;;6DACS;AAOp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AA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;qEAC4B;AAInC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8DACiB;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACW"}
@@ -21,7 +21,6 @@ export declare class CreateCollaboratorDto {
21
21
  collaboratorTypeId?: number | null;
22
22
  collaboratorTypeSlug?: string | null;
23
23
  collaboratorType?: string | null;
24
- department?: string | null;
25
24
  departmentId?: number | null;
26
25
  jobTitleId?: number | null;
27
26
  title?: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"create-collaborator.dto.d.ts","sourceRoot":"","sources":["../../src/dto/create-collaborator.dto.ts"],"names":[],"mappings":"AAaA,cAAM,gCAAgC;IAWpC,OAAO,EACH,QAAQ,GACR,SAAS,GACT,WAAW,GACX,UAAU,GACV,QAAQ,GACR,UAAU,GACV,QAAQ,CAAC;IAIb,YAAY,CAAC,EAAE,OAAO,CAAC;IAIvB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAI1B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAOxB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,qBAAa,kCAAkC;IAS7C,iBAAiB,CAAC,EACd,sBAAsB,GACtB,oBAAoB,GACpB,uBAAuB,GACvB,eAAe,GACf,OAAO,CAAC;IAOZ,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO3B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAI5B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAI1B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAIxB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,qBAAa,qBAAqB;IAMhC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;I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AO3B,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAOzC,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAIpC,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;IAItD,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAIzB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAOvB,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAInC,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAIpC,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAKpC,cAAc,CAAC,EAAE,gCAAgC,EAAE,CAAC;IAMpD,mBAAmB,CAAC,EAAE,kCAAkC,GAAG,IAAI,CAAC;IAIhE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB"}
@@ -134,12 +134,6 @@ __decorate([
134
134
  (0, class_validator_1.MaxLength)(80),
135
135
  __metadata("design:type", String)
136
136
  ], CreateCollaboratorDto.prototype, "collaboratorType", void 0);
137
- __decorate([
138
- (0, class_validator_1.IsOptional)(),
139
- (0, class_validator_1.IsString)(),
140
- (0, class_validator_1.MaxLength)(120),
141
- __metadata("design:type", String)
142
- ], CreateCollaboratorDto.prototype, "department", void 0);
143
137
  __decorate([
144
138
  (0, class_validator_1.IsOptional)(),
145
139
  (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
@@ -1 +1 @@
1
- {"version":3,"file":"create-collaborator.dto.js","sourceRoot":"","sources":["../../src/dto/create-collaborator.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAoD;AACpD,qDAUyB;AAEzB,MAAM,gCAAgC;CAsCrC;AA3BC;IAVC,IAAA,0BAAQ,GAAE;IACV,IAAA,sBAAI,EAAC;QACJ,QAAQ;QACR,SAAS;QACT,WAAW;QACX,UAAU;QACV,QAAQ;Q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C,CAAC,MAAM,CAAC,KAAK,CAAC,CAClF;IACA,IAAA,0BAAQ,GAAE;;iEACwB;AAInC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kEACyB;AAIpC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;wEACwB;AAKpC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gCAAgC,CAAC;;6DACO;AAMpD;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kCAAkC,CAAC;8BACzB,kCAAkC;kEAAQ;AAIhE;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACW"}
@@ -0,0 +1,13 @@
1
+ export declare const COST_TYPE_RECURRENCE_VALUES: readonly ["one_time", "monthly", "quarterly", "yearly"];
2
+ export declare class CreateCostTypeDto {
3
+ name: string;
4
+ slug?: string | null;
5
+ code?: string | null;
6
+ category?: string | null;
7
+ description?: string | null;
8
+ defaultRecurrence?: string | null;
9
+ isAllocatable?: boolean | null;
10
+ isDepreciable?: boolean | null;
11
+ isActive?: boolean;
12
+ }
13
+ //# sourceMappingURL=create-cost-type.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-cost-type.dto.d.ts","sourceRoot":"","sources":["../../src/dto/create-cost-type.dto.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,2BAA2B,yDAK9B,CAAC;AAEX,qBAAa,iBAAiB;IAG5B,IAAI,EAAG,MAAM,CAAC;IAKd,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAIzB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAI5B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAQlC,aAAa,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAQ/B,aAAa,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAQ/B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}