@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,144 @@
1
+ import { CreateCollaboratorCostDto } from '../dto/create-collaborator-cost.dto';
2
+ import { CreateCostTypeDto } from '../dto/create-cost-type.dto';
3
+ import { ListCostTypesDto } from '../dto/list-cost-types.dto';
4
+ import { UpdateCollaboratorCostDto } from '../dto/update-collaborator-cost.dto';
5
+ import { OperationsService } from '../operations.service';
6
+ export declare class OperationsCollaboratorCostsController {
7
+ private readonly operationsService;
8
+ constructor(operationsService: OperationsService);
9
+ listCostTypes(user: any, filters: ListCostTypesDto): Promise<{
10
+ id: number;
11
+ slug: string;
12
+ name: string;
13
+ code: string | null;
14
+ category: string | null;
15
+ description: string | null;
16
+ defaultRecurrence: string | null;
17
+ isAllocatable: boolean | null;
18
+ isDepreciable: boolean | null;
19
+ isActive: boolean;
20
+ createdAt: string;
21
+ }[]>;
22
+ listCollaboratorCostTypes(user: any, filters: ListCostTypesDto): Promise<{
23
+ id: number;
24
+ slug: string;
25
+ name: string;
26
+ code: string | null;
27
+ category: string | null;
28
+ description: string | null;
29
+ defaultRecurrence: string | null;
30
+ isAllocatable: boolean | null;
31
+ isDepreciable: boolean | null;
32
+ isActive: boolean;
33
+ createdAt: string;
34
+ }[]>;
35
+ createCostType(user: any, data: CreateCostTypeDto): Promise<{
36
+ id: number;
37
+ slug: string;
38
+ name: string;
39
+ code: string | null;
40
+ category: string | null;
41
+ description: string | null;
42
+ defaultRecurrence: string | null;
43
+ isAllocatable: boolean | null;
44
+ isDepreciable: boolean | null;
45
+ isActive: boolean;
46
+ }>;
47
+ createCollaboratorCostType(user: any, data: CreateCostTypeDto): Promise<{
48
+ id: number;
49
+ slug: string;
50
+ name: string;
51
+ code: string | null;
52
+ category: string | null;
53
+ description: string | null;
54
+ defaultRecurrence: string | null;
55
+ isAllocatable: boolean | null;
56
+ isDepreciable: boolean | null;
57
+ isActive: boolean;
58
+ }>;
59
+ getCollaboratorCostsSummary(user: any, collaboratorId: number): Promise<{
60
+ monthlyTotal: number;
61
+ allocatableTotal: number;
62
+ nonAllocatableTotal: number;
63
+ count: number;
64
+ }>;
65
+ listCollaboratorCosts(user: any, collaboratorId: number): Promise<{
66
+ id: number;
67
+ collaboratorId: number;
68
+ costTypeId: number;
69
+ costTypeName: string;
70
+ costTypeSlug: string;
71
+ amount: string;
72
+ currency: string;
73
+ recurrence: string;
74
+ allocatable: boolean;
75
+ referenceDate: string | null;
76
+ startDate: string | null;
77
+ endDate: string | null;
78
+ depreciationMonths: number | null;
79
+ description: string | null;
80
+ notes: string | null;
81
+ createdAt: string;
82
+ }[]>;
83
+ createCollaboratorCost(user: any, collaboratorId: number, data: CreateCollaboratorCostDto): Promise<{
84
+ id: number;
85
+ collaboratorId: number;
86
+ costTypeId: number;
87
+ costTypeName: string;
88
+ costTypeSlug: string;
89
+ amount: string;
90
+ currency: string;
91
+ recurrence: string;
92
+ allocatable: boolean;
93
+ referenceDate: string | null;
94
+ startDate: string | null;
95
+ endDate: string | null;
96
+ depreciationMonths: number | null;
97
+ description: string | null;
98
+ notes: string | null;
99
+ createdAt: string;
100
+ }>;
101
+ updateCollaboratorCost(user: any, collaboratorId: number, costId: number, data: UpdateCollaboratorCostDto): Promise<{
102
+ id: number;
103
+ collaboratorId: number;
104
+ costTypeId: number;
105
+ costTypeName: string;
106
+ costTypeSlug: string;
107
+ amount: string;
108
+ currency: string;
109
+ recurrence: string;
110
+ allocatable: boolean;
111
+ referenceDate: string | null;
112
+ startDate: string | null;
113
+ endDate: string | null;
114
+ depreciationMonths: number | null;
115
+ description: string | null;
116
+ notes: string | null;
117
+ createdAt: string;
118
+ }>;
119
+ updateCollaboratorCostById(user: any, costId: number, data: UpdateCollaboratorCostDto): Promise<{
120
+ id: number;
121
+ collaboratorId: number;
122
+ costTypeId: number;
123
+ costTypeName: string;
124
+ costTypeSlug: string;
125
+ amount: string;
126
+ currency: string;
127
+ recurrence: string;
128
+ allocatable: boolean;
129
+ referenceDate: string | null;
130
+ startDate: string | null;
131
+ endDate: string | null;
132
+ depreciationMonths: number | null;
133
+ description: string | null;
134
+ notes: string | null;
135
+ createdAt: string;
136
+ }>;
137
+ deleteCollaboratorCost(user: any, collaboratorId: number, costId: number): Promise<{
138
+ success: boolean;
139
+ }>;
140
+ deleteCollaboratorCostById(user: any, costId: number): Promise<{
141
+ success: boolean;
142
+ }>;
143
+ }
144
+ //# sourceMappingURL=operations-collaborator-costs.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations-collaborator-costs.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-collaborator-costs.controller.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAEa,qCAAqC;IACpC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAKjE,aAAa,CAAS,IAAI,KAAA,EAAW,OAAO,EAAE,gBAAgB;;;;;;;;;;;;;IAQ9D,yBAAyB,CAAS,IAAI,KAAA,EAAW,OAAO,EAAE,gBAAgB;;;;;;;;;;;;;IAQ1E,cAAc,CAAS,IAAI,KAAA,EAAU,IAAI,EAAE,iBAAiB;;;;;;;;;;;;IAQ5D,0BAA0B,CAAS,IAAI,KAAA,EAAU,IAAI,EAAE,iBAAiB;;;;;;;;;;;;IAUxE,2BAA2B,CACjB,IAAI,KAAA,EACe,cAAc,EAAE,MAAM;;;;;;IASnD,qBAAqB,CACX,IAAI,KAAA,EACe,cAAc,EAAE,MAAM;;;;;;;;;;;;;;;;;;IASnD,sBAAsB,CACZ,IAAI,KAAA,EACe,cAAc,EAAE,MAAM,EACzC,IAAI,EAAE,yBAAyB;;;;;;;;;;;;;;;;;;IAUzC,sBAAsB,CACZ,IAAI,KAAA,EACe,cAAc,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,yBAAyB;;;;;;;;;;;;;;;;;;IAWzC,0BAA0B,CAChB,IAAI,KAAA,EACe,MAAM,EAAE,MAAM,EACjC,IAAI,EAAE,yBAAyB;;;;;;;;;;;;;;;;;;IAWzC,sBAAsB,CACZ,IAAI,KAAA,EACe,cAAc,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM;;;IAU/C,0BAA0B,CAChB,IAAI,KAAA,EACe,MAAM,EAAE,MAAM;;;CAO5C"}
@@ -0,0 +1,162 @@
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.OperationsCollaboratorCostsController = void 0;
16
+ const api_1 = require("@hed-hog/api");
17
+ const common_1 = require("@nestjs/common");
18
+ const create_collaborator_cost_dto_1 = require("../dto/create-collaborator-cost.dto");
19
+ const create_cost_type_dto_1 = require("../dto/create-cost-type.dto");
20
+ const list_cost_types_dto_1 = require("../dto/list-cost-types.dto");
21
+ const update_collaborator_cost_dto_1 = require("../dto/update-collaborator-cost.dto");
22
+ const operations_service_1 = require("../operations.service");
23
+ let OperationsCollaboratorCostsController = class OperationsCollaboratorCostsController {
24
+ constructor(operationsService) {
25
+ this.operationsService = operationsService;
26
+ }
27
+ // ─── Cost Types ──────────────────────────────────────────────────────────
28
+ listCostTypes(user, filters) {
29
+ return this.operationsService.listCostTypes(Number((user === null || user === void 0 ? void 0 : user.id) || 0), filters);
30
+ }
31
+ listCollaboratorCostTypes(user, filters) {
32
+ return this.operationsService.listCostTypes(Number((user === null || user === void 0 ? void 0 : user.id) || 0), filters);
33
+ }
34
+ createCostType(user, data) {
35
+ return this.operationsService.createCostType(Number((user === null || user === void 0 ? void 0 : user.id) || 0), data);
36
+ }
37
+ createCollaboratorCostType(user, data) {
38
+ return this.operationsService.createCostType(Number((user === null || user === void 0 ? void 0 : user.id) || 0), data);
39
+ }
40
+ // ─── Collaborator Costs ───────────────────────────────────────────────────
41
+ getCollaboratorCostsSummary(user, collaboratorId) {
42
+ return this.operationsService.getCollaboratorCostsSummary(Number((user === null || user === void 0 ? void 0 : user.id) || 0), collaboratorId);
43
+ }
44
+ listCollaboratorCosts(user, collaboratorId) {
45
+ return this.operationsService.listCollaboratorCosts(Number((user === null || user === void 0 ? void 0 : user.id) || 0), collaboratorId);
46
+ }
47
+ createCollaboratorCost(user, collaboratorId, data) {
48
+ return this.operationsService.createCollaboratorCost(Number((user === null || user === void 0 ? void 0 : user.id) || 0), collaboratorId, data);
49
+ }
50
+ updateCollaboratorCost(user, collaboratorId, costId, data) {
51
+ return this.operationsService.updateCollaboratorCost(Number((user === null || user === void 0 ? void 0 : user.id) || 0), collaboratorId, costId, data);
52
+ }
53
+ updateCollaboratorCostById(user, costId, data) {
54
+ return this.operationsService.updateCollaboratorCost(Number((user === null || user === void 0 ? void 0 : user.id) || 0), 0, costId, data);
55
+ }
56
+ deleteCollaboratorCost(user, collaboratorId, costId) {
57
+ return this.operationsService.deleteCollaboratorCost(Number((user === null || user === void 0 ? void 0 : user.id) || 0), collaboratorId, costId);
58
+ }
59
+ deleteCollaboratorCostById(user, costId) {
60
+ return this.operationsService.deleteCollaboratorCostById(Number((user === null || user === void 0 ? void 0 : user.id) || 0), costId);
61
+ }
62
+ };
63
+ exports.OperationsCollaboratorCostsController = OperationsCollaboratorCostsController;
64
+ __decorate([
65
+ (0, common_1.Get)('cost-types'),
66
+ __param(0, (0, api_1.User)()),
67
+ __param(1, (0, common_1.Query)()),
68
+ __metadata("design:type", Function),
69
+ __metadata("design:paramtypes", [Object, list_cost_types_dto_1.ListCostTypesDto]),
70
+ __metadata("design:returntype", void 0)
71
+ ], OperationsCollaboratorCostsController.prototype, "listCostTypes", null);
72
+ __decorate([
73
+ (0, common_1.Get)('collaborator-cost-types'),
74
+ __param(0, (0, api_1.User)()),
75
+ __param(1, (0, common_1.Query)()),
76
+ __metadata("design:type", Function),
77
+ __metadata("design:paramtypes", [Object, list_cost_types_dto_1.ListCostTypesDto]),
78
+ __metadata("design:returntype", void 0)
79
+ ], OperationsCollaboratorCostsController.prototype, "listCollaboratorCostTypes", null);
80
+ __decorate([
81
+ (0, common_1.Post)('cost-types'),
82
+ __param(0, (0, api_1.User)()),
83
+ __param(1, (0, common_1.Body)()),
84
+ __metadata("design:type", Function),
85
+ __metadata("design:paramtypes", [Object, create_cost_type_dto_1.CreateCostTypeDto]),
86
+ __metadata("design:returntype", void 0)
87
+ ], OperationsCollaboratorCostsController.prototype, "createCostType", null);
88
+ __decorate([
89
+ (0, common_1.Post)('collaborator-cost-types'),
90
+ __param(0, (0, api_1.User)()),
91
+ __param(1, (0, common_1.Body)()),
92
+ __metadata("design:type", Function),
93
+ __metadata("design:paramtypes", [Object, create_cost_type_dto_1.CreateCostTypeDto]),
94
+ __metadata("design:returntype", void 0)
95
+ ], OperationsCollaboratorCostsController.prototype, "createCollaboratorCostType", null);
96
+ __decorate([
97
+ (0, common_1.Get)('collaborators/:id/costs/summary'),
98
+ __param(0, (0, api_1.User)()),
99
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
100
+ __metadata("design:type", Function),
101
+ __metadata("design:paramtypes", [Object, Number]),
102
+ __metadata("design:returntype", void 0)
103
+ ], OperationsCollaboratorCostsController.prototype, "getCollaboratorCostsSummary", null);
104
+ __decorate([
105
+ (0, common_1.Get)('collaborators/:id/costs'),
106
+ __param(0, (0, api_1.User)()),
107
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
108
+ __metadata("design:type", Function),
109
+ __metadata("design:paramtypes", [Object, Number]),
110
+ __metadata("design:returntype", void 0)
111
+ ], OperationsCollaboratorCostsController.prototype, "listCollaboratorCosts", null);
112
+ __decorate([
113
+ (0, common_1.Post)('collaborators/:id/costs'),
114
+ __param(0, (0, api_1.User)()),
115
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
116
+ __param(2, (0, common_1.Body)()),
117
+ __metadata("design:type", Function),
118
+ __metadata("design:paramtypes", [Object, Number, create_collaborator_cost_dto_1.CreateCollaboratorCostDto]),
119
+ __metadata("design:returntype", void 0)
120
+ ], OperationsCollaboratorCostsController.prototype, "createCollaboratorCost", null);
121
+ __decorate([
122
+ (0, common_1.Patch)('collaborators/:id/costs/:costId'),
123
+ __param(0, (0, api_1.User)()),
124
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
125
+ __param(2, (0, common_1.Param)('costId', common_1.ParseIntPipe)),
126
+ __param(3, (0, common_1.Body)()),
127
+ __metadata("design:type", Function),
128
+ __metadata("design:paramtypes", [Object, Number, Number, update_collaborator_cost_dto_1.UpdateCollaboratorCostDto]),
129
+ __metadata("design:returntype", void 0)
130
+ ], OperationsCollaboratorCostsController.prototype, "updateCollaboratorCost", null);
131
+ __decorate([
132
+ (0, common_1.Patch)('collaborator-costs/:id'),
133
+ __param(0, (0, api_1.User)()),
134
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
135
+ __param(2, (0, common_1.Body)()),
136
+ __metadata("design:type", Function),
137
+ __metadata("design:paramtypes", [Object, Number, update_collaborator_cost_dto_1.UpdateCollaboratorCostDto]),
138
+ __metadata("design:returntype", void 0)
139
+ ], OperationsCollaboratorCostsController.prototype, "updateCollaboratorCostById", null);
140
+ __decorate([
141
+ (0, common_1.Delete)('collaborators/:id/costs/:costId'),
142
+ __param(0, (0, api_1.User)()),
143
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
144
+ __param(2, (0, common_1.Param)('costId', common_1.ParseIntPipe)),
145
+ __metadata("design:type", Function),
146
+ __metadata("design:paramtypes", [Object, Number, Number]),
147
+ __metadata("design:returntype", void 0)
148
+ ], OperationsCollaboratorCostsController.prototype, "deleteCollaboratorCost", null);
149
+ __decorate([
150
+ (0, common_1.Delete)('collaborator-costs/:id'),
151
+ __param(0, (0, api_1.User)()),
152
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
153
+ __metadata("design:type", Function),
154
+ __metadata("design:paramtypes", [Object, Number]),
155
+ __metadata("design:returntype", void 0)
156
+ ], OperationsCollaboratorCostsController.prototype, "deleteCollaboratorCostById", null);
157
+ exports.OperationsCollaboratorCostsController = OperationsCollaboratorCostsController = __decorate([
158
+ (0, api_1.Role)(),
159
+ (0, common_1.Controller)('operations'),
160
+ __metadata("design:paramtypes", [operations_service_1.OperationsService])
161
+ ], OperationsCollaboratorCostsController);
162
+ //# sourceMappingURL=operations-collaborator-costs.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations-collaborator-costs.controller.js","sourceRoot":"","sources":["../../src/controllers/operations-collaborator-costs.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;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C,CAAA;IACzB,WAAA,IAAA,aAAI,GAAE,CAAA;;qDAAO,wDAAyB;;mFAOxC;AAGD;IADC,IAAA,cAAK,EAAC,iCAAiC,CAAC;IAEtC,WAAA,IAAA,UAAI,GAAE,CAAA;IACN,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;IACzB,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;IAC7B,WAAA,IAAA,aAAI,GAAE,CAAA;;6DAAO,wDAAyB;;mFAQxC;AAGD;IADC,IAAA,cAAK,EAAC,wBAAwB,CAAC;IAE7B,WAAA,IAAA,UAAI,GAAE,CAAA;IACN,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;IACzB,WAAA,IAAA,aAAI,GAAE,CAAA;;qDAAO,wDAAyB;;uFAQxC;AAGD;IADC,IAAA,eAAM,EAAC,iCAAiC,CAAC;IAEvC,WAAA,IAAA,UAAI,GAAE,CAAA;IACN,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;IACzB,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;;;;mFAO/B;AAGD;IADC,IAAA,eAAM,EAAC,wBAAwB,CAAC;IAE9B,WAAA,IAAA,UAAI,GAAE,CAAA;IACN,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;;;;uFAM3B;gDA7HU,qCAAqC;IAFjD,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,YAAY,CAAC;qCAEyB,sCAAiB;GADtD,qCAAqC,CA8HjD"}
@@ -19,6 +19,10 @@ export declare class OperationsCollaboratorsController {
19
19
  active: number;
20
20
  onLeave: number;
21
21
  withContracts: number;
22
+ totalSalary: number;
23
+ totalCosts: number;
24
+ avgSalaryPlusCosts: number;
25
+ avgSalaryPlusCostsPerCollaborator: number;
22
26
  }>;
23
27
  getMyCollaborator(user: any): Promise<{
24
28
  assignedProjects: Record<string, unknown>[];
@@ -84,6 +88,16 @@ export declare class OperationsCollaboratorsController {
84
88
  pendingTimeOffRequests: Record<string, unknown>[];
85
89
  pendingScheduleAdjustmentRequests: Record<string, unknown>[];
86
90
  }>;
91
+ getCollaboratorCompensationHistory(user: any, id: number): Promise<{
92
+ id: number;
93
+ collaboratorId: number;
94
+ amount: string;
95
+ effectiveDate: string | null;
96
+ actorUserId: number | null;
97
+ actorName: string | null;
98
+ notes: string | null;
99
+ createdAt: string;
100
+ }[]>;
87
101
  getCollaborator(user: any, id: number): Promise<{
88
102
  assignedProjects: Record<string, unknown>[];
89
103
  relatedContracts: Record<string, unknown>[];
@@ -1 +1 @@
1
- {"version":3,"file":"operations-collaborators.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-collaborators.controller.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAEa,iCAAiC;IAChC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAGjE,iBAAiB,CAAS,IAAI,KAAA,EAAW,OAAO,EAAE,oBAAoB;;;;;;;;;IAQtE,qBAAqB,CAAS,IAAI,KAAA,EAAW,OAAO,EAAE,oBAAoB;;;;;;IAQ1E,iBAAiB,CAAS,IAAI,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK9B,OAAO,CAAS,IAAI,KAAA;;;;;;;;;;;;;;IAKpB,eAAe,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQnE,kBAAkB,CAAS,IAAI,KAAA,EAAU,IAAI,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKpE,kBAAkB,CACR,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQtC"}
1
+ {"version":3,"file":"operations-collaborators.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-collaborators.controller.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAEa,iCAAiC;IAChC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAGjE,iBAAiB,CAAS,IAAI,KAAA,EAAW,OAAO,EAAE,oBAAoB;;;;;;;;;IAQtE,qBAAqB,CAAS,IAAI,KAAA,EAAW,OAAO,EAAE,oBAAoB;;;;;;;;;;IAQ1E,iBAAiB,CAAS,IAAI,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK9B,OAAO,CAAS,IAAI,KAAA;;;;;;;;;;;;;;IAKpB,kCAAkC,CACxB,IAAI,KAAA,EACe,EAAE,EAAE,MAAM;;;;;;;;;;IASvC,eAAe,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQnE,kBAAkB,CAAS,IAAI,KAAA,EAAU,IAAI,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKpE,kBAAkB,CACR,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQtC"}
@@ -35,6 +35,9 @@ let OperationsCollaboratorsController = class OperationsCollaboratorsController
35
35
  getTeam(user) {
36
36
  return this.operationsService.getTeam(Number((user === null || user === void 0 ? void 0 : user.id) || 0));
37
37
  }
38
+ getCollaboratorCompensationHistory(user, id) {
39
+ return this.operationsService.getCollaboratorCompensationHistory(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id);
40
+ }
38
41
  getCollaborator(user, id) {
39
42
  return this.operationsService.getCollaboratorByIdForUser(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id);
40
43
  }
@@ -76,6 +79,14 @@ __decorate([
76
79
  __metadata("design:paramtypes", [Object]),
77
80
  __metadata("design:returntype", void 0)
78
81
  ], OperationsCollaboratorsController.prototype, "getTeam", null);
82
+ __decorate([
83
+ (0, common_1.Get)('collaborators/:id/compensation-history'),
84
+ __param(0, (0, api_1.User)()),
85
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
86
+ __metadata("design:type", Function),
87
+ __metadata("design:paramtypes", [Object, Number]),
88
+ __metadata("design:returntype", void 0)
89
+ ], OperationsCollaboratorsController.prototype, "getCollaboratorCompensationHistory", null);
79
90
  __decorate([
80
91
  (0, common_1.Get)('collaborators/:id'),
81
92
  __param(0, (0, api_1.User)()),
@@ -1 +1 @@
1
- {"version":3,"file":"operations-collaborators.controller.js","sourceRoot":"","sources":["../../src/controllers/operations-collaborators.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,2CASwB;AACxB,4EAAuE;AACvE,0EAAqE;AACrE,4EAAuE;AACvE,8DAA0D;AAInD,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;IAC5C,YAA6B,iBAAoC;QAApC,sBAAi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ArDU,iCAAiC;IAF7C,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,YAAY,CAAC;qCAEyB,sCAAiB;GADtD,iCAAiC,CAsD7C"}
1
+ {"version":3,"file":"operations-collaborators.controller.js","sourceRoot":"","sources":["../../src/controllers/operations-collaborators.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,2CASwB;AACxB,4EAAuE;AACvE,0EAAqE;AACrE,4EAAuE;AACvE,8DAA0D;AAInD,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;IAC5C,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAGrE,iBAAiB,CAAS,IAAI,EAAW,OAA6B;QACpE,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,qBAAqB,CAAS,IAAI,EAAW,OAA6B;QACxE,OAAO,IAAI,CAAC,iBAAiB,CAAC,oBAAoB,CAChD,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EACrB,OAAO,CACR,CAAC;IACJ,CAAC;IAGD,iBAAiB,CAAS,IAAI;QAC5B,OAAO,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC;IAGD,OAAO,CAAS,IAAI;QAClB,OAAO,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,CAAC,CAAC;IAC/D,CAAC;IAGD,kCAAkC,CACxB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0EAExB;AAGD;IADC,IAAA,YAAG,EAAC,oBAAoB,CAAC;IACjB,WAAA,IAAA,UAAI,GAAE,CAAA;;;;gEAEd;AAGD;IADC,IAAA,YAAG,EAAC,wCAAwC,CAAC;IAE3C,WAAA,IAAA,UAAI,GAAE,CAAA;IACN,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;;;;2FAM3B;AAGD;IADC,IAAA,YAAG,EAAC,mBAAmB,CAAC;IACR,WAAA,IAAA,UAAI,GAAE,CAAA;IAAQ,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;;;;wEAKvD;AAGD;IADC,IAAA,aAAI,EAAC,eAAe,CAAC;IACF,WAAA,IAAA,UAAI,GAAE,CAAA;IAAQ,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,+CAAqB;;2EAEnE;AAGD;IADC,IAAA,cAAK,EAAC,mBAAmB,CAAC;IAExB,WAAA,IAAA,UAAI,GAAE,CAAA;IACN,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;IACzB,WAAA,IAAA,aAAI,GAAE,CAAA;;qDAAO,+CAAqB;;2EAOpC;4CAhEU,iCAAiC;IAF7C,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,YAAY,CAAC;qCAEyB,sCAAiB;GADtD,iCAAiC,CAiE7C"}
@@ -1,3 +1,4 @@
1
+ import { ListMyProjectsDto } from '../dto/list-my-projects.dto';
1
2
  import { ListOperationsProjectOptionsDto } from '../dto/list-project-options.dto';
2
3
  import { ListProjectsDto } from '../dto/list-projects.dto';
3
4
  import { OperationsService } from '../operations.service';
@@ -24,6 +25,36 @@ export declare class OperationsProjectsController {
24
25
  endDate: string | null;
25
26
  }[];
26
27
  }>;
28
+ listMyProjects(user: any, filters: ListMyProjectsDto): Promise<Record<string, unknown>[] | {
29
+ total: number;
30
+ lastPage: number;
31
+ page: number;
32
+ pageSize: number;
33
+ prev: number;
34
+ next: number;
35
+ data: Record<string, unknown>[];
36
+ }>;
37
+ getMyProjectSummary(user: any, id: number): Promise<{
38
+ assignments: {
39
+ id: number;
40
+ collaboratorId: number;
41
+ collaboratorName: string;
42
+ roleLabel: string | null;
43
+ status: string;
44
+ avatarId: number | null;
45
+ userPhotoId: number | null;
46
+ }[];
47
+ tasks: Record<string, unknown>[];
48
+ id: number;
49
+ code: string;
50
+ name: string;
51
+ status: string;
52
+ summary: string | null;
53
+ startDate: string | null;
54
+ endDate: string | null;
55
+ myAssignmentId: number | null;
56
+ myRoleLabel: string | null;
57
+ }>;
27
58
  listProjects(user: any, filters: ListProjectsDto): Promise<Record<string, unknown>[] | {
28
59
  total: number;
29
60
  lastPage: number;
@@ -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,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,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,EACH,gBAAgB,EAAE,+BAA+B;;;;;;;;;;;;;;;;;;;;IAS5D,YAAY,CAAS,IAAI,KAAA,EAAW,OAAO,EAAE,eAAe;;;;;;;;;IAK5D,eAAe,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;IAKnE,UAAU,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK9D,aAAa,CAAS,IAAI,KAAA,EAAU,IAAI,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGhF"}
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.OperationsProjectsController = void 0;
16
16
  const api_1 = require("@hed-hog/api");
17
17
  const common_1 = require("@nestjs/common");
18
+ const list_my_projects_dto_1 = require("../dto/list-my-projects.dto");
18
19
  const list_project_options_dto_1 = require("../dto/list-project-options.dto");
19
20
  const list_projects_dto_1 = require("../dto/list-projects.dto");
20
21
  const operations_service_1 = require("../operations.service");
@@ -25,6 +26,12 @@ let OperationsProjectsController = class OperationsProjectsController {
25
26
  listProjectOptions(user, paginationParams) {
26
27
  return this.operationsService.listProjectOptions(Number((user === null || user === void 0 ? void 0 : user.id) || 0), paginationParams);
27
28
  }
29
+ listMyProjects(user, filters) {
30
+ return this.operationsService.listMyProjects(Number((user === null || user === void 0 ? void 0 : user.id) || 0), filters);
31
+ }
32
+ getMyProjectSummary(user, id) {
33
+ return this.operationsService.getMyProjectSummary(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id);
34
+ }
28
35
  listProjects(user, filters) {
29
36
  return this.operationsService.listProjects(Number((user === null || user === void 0 ? void 0 : user.id) || 0), filters);
30
37
  }
@@ -50,6 +57,22 @@ __decorate([
50
57
  __metadata("design:paramtypes", [Object, list_project_options_dto_1.ListOperationsProjectOptionsDto]),
51
58
  __metadata("design:returntype", void 0)
52
59
  ], OperationsProjectsController.prototype, "listProjectOptions", null);
60
+ __decorate([
61
+ (0, common_1.Get)('my-projects'),
62
+ __param(0, (0, api_1.User)()),
63
+ __param(1, (0, common_1.Query)()),
64
+ __metadata("design:type", Function),
65
+ __metadata("design:paramtypes", [Object, list_my_projects_dto_1.ListMyProjectsDto]),
66
+ __metadata("design:returntype", void 0)
67
+ ], OperationsProjectsController.prototype, "listMyProjects", null);
68
+ __decorate([
69
+ (0, common_1.Get)('my-projects/:id/summary'),
70
+ __param(0, (0, api_1.User)()),
71
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
72
+ __metadata("design:type", Function),
73
+ __metadata("design:paramtypes", [Object, Number]),
74
+ __metadata("design:returntype", void 0)
75
+ ], OperationsProjectsController.prototype, "getMyProjectSummary", null);
53
76
  __decorate([
54
77
  (0, common_1.Get)('projects'),
55
78
  __param(0, (0, api_1.User)()),
@@ -1 +1 @@
1
- {"version":3,"file":"operations-projects.controller.js","sourceRoot":"","sources":["../../src/controllers/operations-projects.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,2CASwB;AACxB,8EAAkF;AAClF,gEAA2D;AAC3D,8DAA0D;AAInD,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACvC,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAGrE,kBAAkB,CACR,IAAI,EACH,gBAAiD;QAE1D,OAAO,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAC9C,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EACrB,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAGD,YAAY,CAAS,IAAI,EAAW,OAAwB;QAC1D,OAAO,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAGD,eAAe,CAAS,IAAI,EAA6B,EAAU;QACjE,OAAO,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAC3E,CAAC;IAGD,UAAU,CAAS,IAAI,EAA6B,EAAU;QAC5D,OAAO,IAAI,CAAC,iBAAiB,CAAC,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AAA,UAAI,GAAE,CAAA;IAAQ,WAAA,IAAA,aAAI,GAAE,CAAA;;;;iEAElC;AAGD;IADC,IAAA,cAAK,EAAC,cAAc,CAAC;IACP,WAAA,IAAA,UAAI,GAAE,CAAA;IAAQ,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;;;;iEAEzE;uCArCU,4BAA4B;IAFxC,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,YAAY,CAAC;qCAEyB,sCAAiB;GADtD,4BAA4B,CAsCxC"}
1
+ {"version":3,"file":"operations-projects.controller.js","sourceRoot":"","sources":["../../src/controllers/operations-projects.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,2CASwB;AACxB,sEAAgE;AAChE,8EAAkF;AAClF,gEAA2D;AAC3D,8DAA0D;AAInD,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACvC,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAGrE,kBAAkB,CACR,IAAI,EACH,gBAAiD;QAE1D,OAAO,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAC9C,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EACrB,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAGD,cAAc,CAAS,IAAI,EAAW,OAA0B;QAC9D,OAAO,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAGD,mBAAmB,CAAS,IAAI,EAA6B,EAAU;QACrE,OAAO,IAAI,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,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