@hed-hog/operations 0.0.303 → 0.0.305

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/README.md +200 -43
  2. package/dist/controllers/operations-approvals.controller.d.ts +9 -0
  3. package/dist/controllers/operations-approvals.controller.d.ts.map +1 -0
  4. package/dist/controllers/operations-approvals.controller.js +64 -0
  5. package/dist/controllers/operations-approvals.controller.js.map +1 -0
  6. package/dist/controllers/operations-collaborators.controller.d.ts +223 -0
  7. package/dist/controllers/operations-collaborators.controller.d.ts.map +1 -0
  8. package/dist/controllers/operations-collaborators.controller.js +96 -0
  9. package/dist/controllers/operations-collaborators.controller.js.map +1 -0
  10. package/dist/controllers/operations-contracts.controller.d.ts +683 -0
  11. package/dist/controllers/operations-contracts.controller.d.ts.map +1 -0
  12. package/dist/controllers/operations-contracts.controller.js +198 -0
  13. package/dist/controllers/operations-contracts.controller.js.map +1 -0
  14. package/dist/controllers/operations-org-structure.controller.d.ts +108 -0
  15. package/dist/controllers/operations-org-structure.controller.d.ts.map +1 -0
  16. package/dist/controllers/operations-org-structure.controller.js +143 -0
  17. package/dist/controllers/operations-org-structure.controller.js.map +1 -0
  18. package/dist/controllers/operations-projects.controller.d.ts +184 -0
  19. package/dist/controllers/operations-projects.controller.d.ts.map +1 -0
  20. package/dist/controllers/operations-projects.controller.js +87 -0
  21. package/dist/controllers/operations-projects.controller.js.map +1 -0
  22. package/dist/controllers/operations-tasks.controller.d.ts +85 -0
  23. package/dist/controllers/operations-tasks.controller.d.ts.map +1 -0
  24. package/dist/controllers/operations-tasks.controller.js +90 -0
  25. package/dist/controllers/operations-tasks.controller.js.map +1 -0
  26. package/dist/controllers/operations-timesheets.controller.d.ts +99 -0
  27. package/dist/controllers/operations-timesheets.controller.d.ts.map +1 -0
  28. package/dist/controllers/operations-timesheets.controller.js +154 -0
  29. package/dist/controllers/operations-timesheets.controller.js.map +1 -0
  30. package/dist/dto/create-collaborator-type.dto.d.ts +10 -0
  31. package/dist/dto/create-collaborator-type.dto.d.ts.map +1 -0
  32. package/dist/dto/create-collaborator-type.dto.js +56 -0
  33. package/dist/dto/create-collaborator-type.dto.js.map +1 -0
  34. package/dist/dto/create-collaborator.dto.d.ts +42 -0
  35. package/dist/dto/create-collaborator.dto.d.ts.map +1 -0
  36. package/dist/dto/create-collaborator.dto.js +228 -0
  37. package/dist/dto/create-collaborator.dto.js.map +1 -0
  38. package/dist/dto/create-schedule-adjustment-request.dto.d.ts +17 -0
  39. package/dist/dto/create-schedule-adjustment-request.dto.d.ts.map +1 -0
  40. package/dist/dto/create-schedule-adjustment-request.dto.js +89 -0
  41. package/dist/dto/create-schedule-adjustment-request.dto.js.map +1 -0
  42. package/dist/dto/create-task.dto.d.ts +14 -0
  43. package/dist/dto/create-task.dto.d.ts.map +1 -0
  44. package/dist/dto/create-task.dto.js +83 -0
  45. package/dist/dto/create-task.dto.js.map +1 -0
  46. package/dist/dto/create-time-off-request.dto.d.ts +9 -0
  47. package/dist/dto/create-time-off-request.dto.d.ts.map +1 -0
  48. package/dist/dto/create-time-off-request.dto.js +54 -0
  49. package/dist/dto/create-time-off-request.dto.js.map +1 -0
  50. package/dist/dto/create-timesheet-entry.dto.d.ts +12 -0
  51. package/dist/dto/create-timesheet-entry.dto.d.ts.map +1 -0
  52. package/dist/dto/create-timesheet-entry.dto.js +75 -0
  53. package/dist/dto/create-timesheet-entry.dto.js.map +1 -0
  54. package/dist/dto/list-collaborator-types.dto.d.ts +4 -0
  55. package/dist/dto/list-collaborator-types.dto.d.ts.map +1 -0
  56. package/dist/dto/list-collaborator-types.dto.js +29 -0
  57. package/dist/dto/list-collaborator-types.dto.js.map +1 -0
  58. package/dist/dto/list-collaborators.dto.d.ts +8 -0
  59. package/dist/dto/list-collaborators.dto.d.ts.map +1 -0
  60. package/dist/dto/list-collaborators.dto.js +42 -0
  61. package/dist/dto/list-collaborators.dto.js.map +1 -0
  62. package/dist/dto/list-project-options.dto.d.ts +4 -0
  63. package/dist/dto/list-project-options.dto.d.ts.map +1 -0
  64. package/dist/dto/list-project-options.dto.js +8 -0
  65. package/dist/dto/list-project-options.dto.js.map +1 -0
  66. package/dist/dto/list-tasks.dto.d.ts +7 -0
  67. package/dist/dto/list-tasks.dto.d.ts.map +1 -0
  68. package/dist/dto/list-tasks.dto.js +38 -0
  69. package/dist/dto/list-tasks.dto.js.map +1 -0
  70. package/dist/dto/list-timesheet-entries.dto.d.ts +10 -0
  71. package/dist/dto/list-timesheet-entries.dto.d.ts.map +1 -0
  72. package/dist/dto/list-timesheet-entries.dto.js +54 -0
  73. package/dist/dto/list-timesheet-entries.dto.js.map +1 -0
  74. package/dist/dto/update-collaborator-type.dto.d.ts +4 -0
  75. package/dist/dto/update-collaborator-type.dto.d.ts.map +1 -0
  76. package/dist/dto/update-collaborator-type.dto.js +8 -0
  77. package/dist/dto/update-collaborator-type.dto.js.map +1 -0
  78. package/dist/dto/update-collaborator.dto.d.ts +4 -0
  79. package/dist/dto/update-collaborator.dto.d.ts.map +1 -0
  80. package/dist/dto/update-collaborator.dto.js +8 -0
  81. package/dist/dto/update-collaborator.dto.js.map +1 -0
  82. package/dist/dto/update-task.dto.d.ts +14 -0
  83. package/dist/dto/update-task.dto.d.ts.map +1 -0
  84. package/dist/dto/update-task.dto.js +84 -0
  85. package/dist/dto/update-task.dto.js.map +1 -0
  86. package/dist/operations.controller.d.ts +0 -1045
  87. package/dist/operations.controller.d.ts.map +1 -1
  88. package/dist/operations.controller.js +0 -429
  89. package/dist/operations.controller.js.map +1 -1
  90. package/dist/operations.module.d.ts.map +1 -1
  91. package/dist/operations.module.js +23 -2
  92. package/dist/operations.module.js.map +1 -1
  93. package/dist/operations.service.d.ts +429 -8
  94. package/dist/operations.service.d.ts.map +1 -1
  95. package/dist/operations.service.js +1931 -165
  96. package/dist/operations.service.js.map +1 -1
  97. package/dist/operations.service.spec.js +315 -1
  98. package/dist/operations.service.spec.js.map +1 -1
  99. package/dist/services/shared/operations-access.service.d.ts +16 -0
  100. package/dist/services/shared/operations-access.service.d.ts.map +1 -0
  101. package/dist/services/shared/operations-access.service.js +48 -0
  102. package/dist/services/shared/operations-access.service.js.map +1 -0
  103. package/hedhog/data/dashboard.yaml +20 -0
  104. package/hedhog/data/dashboard_component.yaml +274 -0
  105. package/hedhog/data/dashboard_component_role.yaml +174 -0
  106. package/hedhog/data/dashboard_item.yaml +299 -0
  107. package/hedhog/data/dashboard_role.yaml +20 -0
  108. package/hedhog/data/menu.yaml +30 -13
  109. package/hedhog/data/operations_collaborator_type.yaml +76 -0
  110. package/hedhog/data/route.yaml +196 -0
  111. package/hedhog/frontend/app/_components/async-options-combobox.tsx.ejs +231 -0
  112. package/hedhog/frontend/app/_components/collaborator-details-screen.tsx.ejs +125 -40
  113. package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +740 -106
  114. package/hedhog/frontend/app/_components/collaborator-select-with-create.tsx.ejs +256 -256
  115. package/hedhog/frontend/app/_components/contract-form-screen.tsx.ejs +7 -7
  116. package/hedhog/frontend/app/_components/contract-template-form-screen.tsx.ejs +306 -306
  117. package/hedhog/frontend/app/_components/contract-template-select-with-create.tsx.ejs +247 -247
  118. package/hedhog/frontend/app/_components/contract-wizard-sheet.tsx.ejs +3520 -3520
  119. package/hedhog/frontend/app/_components/department-select-with-create.tsx.ejs +38 -16
  120. package/hedhog/frontend/app/_components/project-details-screen.tsx.ejs +1504 -52
  121. package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +1017 -649
  122. package/hedhog/frontend/app/_components/section-card.tsx.ejs +25 -18
  123. package/hedhog/frontend/app/_components/system-user-select-with-create.tsx.ejs +609 -0
  124. package/hedhog/frontend/app/_components/timesheet-task-create-sheet.tsx.ejs +213 -0
  125. package/hedhog/frontend/app/_lib/api.ts.ejs +30 -1
  126. package/hedhog/frontend/app/_lib/types.ts.ejs +147 -39
  127. package/hedhog/frontend/app/_lib/utils/format.ts.ejs +40 -9
  128. package/hedhog/frontend/app/_lib/utils/forms.ts.ejs +48 -1
  129. package/hedhog/frontend/app/approvals/page.tsx.ejs +116 -98
  130. package/hedhog/frontend/app/collaborator-types/page.tsx.ejs +502 -0
  131. package/hedhog/frontend/app/collaborators/page.tsx.ejs +116 -72
  132. package/hedhog/frontend/app/contracts/page.tsx.ejs +938 -938
  133. package/hedhog/frontend/app/contracts/templates/page.tsx.ejs +11 -9
  134. package/hedhog/frontend/app/departments/page.tsx.ejs +1 -1
  135. package/hedhog/frontend/app/projects/[id]/edit/page.tsx.ejs +1 -1
  136. package/hedhog/frontend/app/projects/page.tsx.ejs +364 -133
  137. package/hedhog/frontend/app/schedule-adjustments/page.tsx.ejs +244 -120
  138. package/hedhog/frontend/app/team/page.tsx.ejs +15 -2
  139. package/hedhog/frontend/app/time-off/page.tsx.ejs +158 -82
  140. package/hedhog/frontend/app/timesheets/page.tsx.ejs +814 -357
  141. package/hedhog/frontend/messages/en.json +268 -53
  142. package/hedhog/frontend/messages/pt.json +484 -271
  143. package/hedhog/table/operations_collaborator.yaml +26 -13
  144. package/hedhog/table/operations_collaborator_equity_participation.yaml +43 -0
  145. package/hedhog/table/operations_collaborator_type.yaml +33 -0
  146. package/hedhog/table/operations_job_title.yaml +24 -0
  147. package/hedhog/table/operations_project.yaml +9 -0
  148. package/hedhog/table/operations_project_assignment.yaml +9 -0
  149. package/hedhog/table/operations_project_role.yaml +39 -0
  150. package/hedhog/table/operations_task.yaml +69 -0
  151. package/hedhog/table/operations_timesheet_entry.yaml +12 -0
  152. package/package.json +6 -6
  153. package/src/controllers/operations-approvals.controller.ts +24 -0
  154. package/src/controllers/operations-collaborators.controller.ts +60 -0
  155. package/src/controllers/operations-contracts.controller.ts +138 -0
  156. package/src/controllers/operations-org-structure.controller.ts +92 -0
  157. package/src/controllers/operations-projects.controller.ts +50 -0
  158. package/src/controllers/operations-tasks.controller.ts +63 -0
  159. package/src/controllers/operations-timesheets.controller.ts +100 -0
  160. package/src/dto/create-collaborator-type.dto.ts +43 -0
  161. package/src/dto/create-collaborator.dto.ts +223 -0
  162. package/src/dto/create-schedule-adjustment-request.dto.ts +91 -0
  163. package/src/dto/create-task.dto.ts +75 -0
  164. package/src/dto/create-time-off-request.dto.ts +53 -0
  165. package/src/dto/create-timesheet-entry.dto.ts +67 -0
  166. package/src/dto/list-collaborator-types.dto.ts +15 -0
  167. package/src/dto/list-collaborators.dto.ts +30 -0
  168. package/src/dto/list-project-options.dto.ts +3 -0
  169. package/src/dto/list-tasks.dto.ts +25 -0
  170. package/src/dto/list-timesheet-entries.dto.ts +40 -0
  171. package/src/dto/update-collaborator-type.dto.ts +3 -0
  172. package/src/dto/update-collaborator.dto.ts +3 -0
  173. package/src/dto/update-task.dto.ts +76 -0
  174. package/src/operations.controller.ts +1 -278
  175. package/src/operations.module.ts +23 -2
  176. package/src/operations.service.spec.ts +450 -0
  177. package/src/operations.service.ts +4507 -1561
  178. package/src/services/shared/operations-access.service.ts +52 -0
@@ -0,0 +1,42 @@
1
+ declare class CollaboratorWeeklyScheduleDayDto {
2
+ weekday: 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
3
+ isWorkingDay?: boolean;
4
+ startTime?: string | null;
5
+ endTime?: string | null;
6
+ breakMinutes?: number | null;
7
+ }
8
+ export declare class CollaboratorEquityParticipationDto {
9
+ participationType?: 'partner_quota_holder' | 'common_shareholder' | 'preferred_shareholder' | 'administrator' | 'other';
10
+ percentage?: number | null;
11
+ votingPower?: number | null;
12
+ startDate?: string | null;
13
+ endDate?: string | null;
14
+ notes?: string | null;
15
+ }
16
+ export declare class CreateCollaboratorDto {
17
+ userId?: number | null;
18
+ personId?: number | null;
19
+ code?: string | null;
20
+ displayName?: string | null;
21
+ collaboratorTypeId?: number | null;
22
+ collaboratorTypeSlug?: string | null;
23
+ collaboratorType?: string | null;
24
+ department?: string | null;
25
+ departmentId?: number | null;
26
+ jobTitleId?: number | null;
27
+ title?: string | null;
28
+ levelLabel?: string | null;
29
+ supervisorCollaboratorId?: number | null;
30
+ weeklyCapacityHours?: number | null;
31
+ status?: 'draft' | 'active' | 'on_leave' | 'inactive';
32
+ joinedAt?: string | null;
33
+ leftAt?: string | null;
34
+ compensationAmount?: number | null;
35
+ contractDescription?: string | null;
36
+ autoGenerateContractDraft?: boolean;
37
+ weeklySchedule?: CollaboratorWeeklyScheduleDayDto[];
38
+ equityParticipation?: CollaboratorEquityParticipationDto | null;
39
+ notes?: string | null;
40
+ }
41
+ export {};
42
+ //# sourceMappingURL=create-collaborator.dto.d.ts.map
@@ -0,0 +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;IAOvB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKzB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKrB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO5B,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKnC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKrC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKjC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO3B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAK3B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKtB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO3B,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"}
@@ -0,0 +1,228 @@
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.CreateCollaboratorDto = exports.CollaboratorEquityParticipationDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class CollaboratorWeeklyScheduleDayDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.IsIn)([
20
+ 'monday',
21
+ 'tuesday',
22
+ 'wednesday',
23
+ 'thursday',
24
+ 'friday',
25
+ 'saturday',
26
+ 'sunday',
27
+ ]),
28
+ __metadata("design:type", String)
29
+ ], CollaboratorWeeklyScheduleDayDto.prototype, "weekday", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsBoolean)(),
33
+ __metadata("design:type", Boolean)
34
+ ], CollaboratorWeeklyScheduleDayDto.prototype, "isWorkingDay", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsOptional)(),
37
+ (0, class_validator_1.IsString)(),
38
+ __metadata("design:type", String)
39
+ ], CollaboratorWeeklyScheduleDayDto.prototype, "startTime", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsOptional)(),
42
+ (0, class_validator_1.IsString)(),
43
+ __metadata("design:type", String)
44
+ ], CollaboratorWeeklyScheduleDayDto.prototype, "endTime", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsOptional)(),
47
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
48
+ (0, class_validator_1.IsNumber)(),
49
+ __metadata("design:type", Number)
50
+ ], CollaboratorWeeklyScheduleDayDto.prototype, "breakMinutes", void 0);
51
+ class CollaboratorEquityParticipationDto {
52
+ }
53
+ exports.CollaboratorEquityParticipationDto = CollaboratorEquityParticipationDto;
54
+ __decorate([
55
+ (0, class_validator_1.IsOptional)(),
56
+ (0, class_validator_1.IsIn)([
57
+ 'partner_quota_holder',
58
+ 'common_shareholder',
59
+ 'preferred_shareholder',
60
+ 'administrator',
61
+ 'other',
62
+ ]),
63
+ __metadata("design:type", String)
64
+ ], CollaboratorEquityParticipationDto.prototype, "participationType", void 0);
65
+ __decorate([
66
+ (0, class_validator_1.IsOptional)(),
67
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
68
+ (0, class_validator_1.IsNumber)(),
69
+ __metadata("design:type", Number)
70
+ ], CollaboratorEquityParticipationDto.prototype, "percentage", 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
+ __metadata("design:type", Number)
76
+ ], CollaboratorEquityParticipationDto.prototype, "votingPower", void 0);
77
+ __decorate([
78
+ (0, class_validator_1.IsOptional)(),
79
+ (0, class_validator_1.IsString)(),
80
+ __metadata("design:type", String)
81
+ ], CollaboratorEquityParticipationDto.prototype, "startDate", void 0);
82
+ __decorate([
83
+ (0, class_validator_1.IsOptional)(),
84
+ (0, class_validator_1.IsString)(),
85
+ __metadata("design:type", String)
86
+ ], CollaboratorEquityParticipationDto.prototype, "endDate", void 0);
87
+ __decorate([
88
+ (0, class_validator_1.IsOptional)(),
89
+ (0, class_validator_1.IsString)(),
90
+ __metadata("design:type", String)
91
+ ], CollaboratorEquityParticipationDto.prototype, "notes", void 0);
92
+ class CreateCollaboratorDto {
93
+ }
94
+ exports.CreateCollaboratorDto = CreateCollaboratorDto;
95
+ __decorate([
96
+ (0, class_validator_1.IsOptional)(),
97
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
98
+ (0, class_validator_1.IsInt)(),
99
+ __metadata("design:type", Number)
100
+ ], CreateCollaboratorDto.prototype, "userId", void 0);
101
+ __decorate([
102
+ (0, class_validator_1.IsOptional)(),
103
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
104
+ (0, class_validator_1.IsInt)(),
105
+ __metadata("design:type", Number)
106
+ ], CreateCollaboratorDto.prototype, "personId", void 0);
107
+ __decorate([
108
+ (0, class_validator_1.IsOptional)(),
109
+ (0, class_validator_1.IsString)(),
110
+ (0, class_validator_1.MaxLength)(32),
111
+ __metadata("design:type", String)
112
+ ], CreateCollaboratorDto.prototype, "code", void 0);
113
+ __decorate([
114
+ (0, class_validator_1.IsOptional)(),
115
+ (0, class_validator_1.IsString)(),
116
+ (0, class_validator_1.MaxLength)(180),
117
+ __metadata("design:type", String)
118
+ ], CreateCollaboratorDto.prototype, "displayName", void 0);
119
+ __decorate([
120
+ (0, class_validator_1.IsOptional)(),
121
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
122
+ (0, class_validator_1.IsInt)(),
123
+ __metadata("design:type", Number)
124
+ ], CreateCollaboratorDto.prototype, "collaboratorTypeId", void 0);
125
+ __decorate([
126
+ (0, class_validator_1.IsOptional)(),
127
+ (0, class_validator_1.IsString)(),
128
+ (0, class_validator_1.MaxLength)(80),
129
+ __metadata("design:type", String)
130
+ ], CreateCollaboratorDto.prototype, "collaboratorTypeSlug", void 0);
131
+ __decorate([
132
+ (0, class_validator_1.IsOptional)(),
133
+ (0, class_validator_1.IsString)(),
134
+ (0, class_validator_1.MaxLength)(80),
135
+ __metadata("design:type", String)
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
+ __decorate([
144
+ (0, class_validator_1.IsOptional)(),
145
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
146
+ (0, class_validator_1.IsInt)(),
147
+ __metadata("design:type", Number)
148
+ ], CreateCollaboratorDto.prototype, "departmentId", void 0);
149
+ __decorate([
150
+ (0, class_validator_1.IsOptional)(),
151
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
152
+ (0, class_validator_1.IsInt)(),
153
+ __metadata("design:type", Number)
154
+ ], CreateCollaboratorDto.prototype, "jobTitleId", void 0);
155
+ __decorate([
156
+ (0, class_validator_1.IsOptional)(),
157
+ (0, class_validator_1.IsString)(),
158
+ (0, class_validator_1.MaxLength)(120),
159
+ __metadata("design:type", String)
160
+ ], CreateCollaboratorDto.prototype, "title", void 0);
161
+ __decorate([
162
+ (0, class_validator_1.IsOptional)(),
163
+ (0, class_validator_1.IsString)(),
164
+ (0, class_validator_1.MaxLength)(120),
165
+ __metadata("design:type", String)
166
+ ], CreateCollaboratorDto.prototype, "levelLabel", void 0);
167
+ __decorate([
168
+ (0, class_validator_1.IsOptional)(),
169
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
170
+ (0, class_validator_1.IsInt)(),
171
+ __metadata("design:type", Number)
172
+ ], CreateCollaboratorDto.prototype, "supervisorCollaboratorId", void 0);
173
+ __decorate([
174
+ (0, class_validator_1.IsOptional)(),
175
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
176
+ (0, class_validator_1.IsNumber)(),
177
+ __metadata("design:type", Number)
178
+ ], CreateCollaboratorDto.prototype, "weeklyCapacityHours", void 0);
179
+ __decorate([
180
+ (0, class_validator_1.IsOptional)(),
181
+ (0, class_validator_1.IsIn)(['draft', 'active', 'on_leave', 'inactive']),
182
+ __metadata("design:type", String)
183
+ ], CreateCollaboratorDto.prototype, "status", void 0);
184
+ __decorate([
185
+ (0, class_validator_1.IsOptional)(),
186
+ (0, class_validator_1.IsString)(),
187
+ __metadata("design:type", String)
188
+ ], CreateCollaboratorDto.prototype, "joinedAt", void 0);
189
+ __decorate([
190
+ (0, class_validator_1.IsOptional)(),
191
+ (0, class_validator_1.IsString)(),
192
+ __metadata("design:type", String)
193
+ ], CreateCollaboratorDto.prototype, "leftAt", void 0);
194
+ __decorate([
195
+ (0, class_validator_1.IsOptional)(),
196
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
197
+ (0, class_validator_1.IsNumber)(),
198
+ __metadata("design:type", Number)
199
+ ], CreateCollaboratorDto.prototype, "compensationAmount", void 0);
200
+ __decorate([
201
+ (0, class_validator_1.IsOptional)(),
202
+ (0, class_validator_1.IsString)(),
203
+ __metadata("design:type", String)
204
+ ], CreateCollaboratorDto.prototype, "contractDescription", void 0);
205
+ __decorate([
206
+ (0, class_validator_1.IsOptional)(),
207
+ (0, class_validator_1.IsBoolean)(),
208
+ __metadata("design:type", Boolean)
209
+ ], CreateCollaboratorDto.prototype, "autoGenerateContractDraft", void 0);
210
+ __decorate([
211
+ (0, class_validator_1.IsOptional)(),
212
+ (0, class_validator_1.ValidateNested)({ each: true }),
213
+ (0, class_transformer_1.Type)(() => CollaboratorWeeklyScheduleDayDto),
214
+ __metadata("design:type", Array)
215
+ ], CreateCollaboratorDto.prototype, "weeklySchedule", void 0);
216
+ __decorate([
217
+ (0, class_validator_1.IsOptional)(),
218
+ (0, class_validator_1.IsObject)(),
219
+ (0, class_validator_1.ValidateNested)(),
220
+ (0, class_transformer_1.Type)(() => CollaboratorEquityParticipationDto),
221
+ __metadata("design:type", CollaboratorEquityParticipationDto)
222
+ ], CreateCollaboratorDto.prototype, "equityParticipation", void 0);
223
+ __decorate([
224
+ (0, class_validator_1.IsOptional)(),
225
+ (0, class_validator_1.IsString)(),
226
+ __metadata("design:type", String)
227
+ ], CreateCollaboratorDto.prototype, "notes", void 0);
228
+ //# sourceMappingURL=create-collaborator.dto.js.map
@@ -0,0 +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;QACR,UAAU;QACV,QAAQ;KACT,CAAC;;iEAQW;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;sEACW;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mEACe;AAI1B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACa;AAOxB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAClF;IACA,IAAA,0BAAQ,GAAE;;sEACkB;AAG/B,MAAa,kCAAkC;CAyC9C;AAzCD,gFAyCC;AAhCC;IARC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC;QACJ,sBAAsB;QACtB,oBAAoB;QACpB,uBAAuB;QACvB,eAAe;QACf,OAAO;KACR,CAAC;;6EAMU;AAOZ;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACv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AI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,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,17 @@
1
+ declare class ScheduleAdjustmentDayDto {
2
+ weekday: 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
3
+ isWorkingDay?: boolean;
4
+ startTime?: string | null;
5
+ endTime?: string | null;
6
+ breakMinutes?: number | null;
7
+ }
8
+ export declare class CreateScheduleAdjustmentRequestDto {
9
+ collaboratorId?: number;
10
+ requestScope?: 'temporary' | 'permanent';
11
+ effectiveStartDate: string;
12
+ effectiveEndDate?: string | null;
13
+ reason?: string;
14
+ days: ScheduleAdjustmentDayDto[];
15
+ }
16
+ export {};
17
+ //# sourceMappingURL=create-schedule-adjustment-request.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-schedule-adjustment-request.dto.d.ts","sourceRoot":"","sources":["../../src/dto/create-schedule-adjustment-request.dto.ts"],"names":[],"mappings":"AAeA,cAAM,wBAAwB;IAS5B,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;IAQxB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,qBAAa,kCAAkC;IAM7C,cAAc,CAAC,EAAE,MAAM,CAAC;IAMxB,YAAY,CAAC,EAAE,WAAW,GAAG,WAAW,CAAC;IAKzC,kBAAkB,EAAG,MAAM,CAAC;IAM5B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAOjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,IAAI,EAAG,wBAAwB,EAAE,CAAC;CACnC"}
@@ -0,0 +1,89 @@
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.CreateScheduleAdjustmentRequestDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class ScheduleAdjustmentDayDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsString)({ message: 'weekday must be a string' }),
19
+ (0, class_validator_1.IsIn)(['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'], {
20
+ message: 'weekday must be monday, tuesday, wednesday, thursday, friday, saturday, or sunday',
21
+ }),
22
+ __metadata("design:type", String)
23
+ ], ScheduleAdjustmentDayDto.prototype, "weekday", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_validator_1.IsBoolean)({ message: 'isWorkingDay must be a boolean' }),
27
+ __metadata("design:type", Boolean)
28
+ ], ScheduleAdjustmentDayDto.prototype, "isWorkingDay", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsOptional)(),
31
+ (0, class_validator_1.IsString)({ message: 'startTime must be a string' }),
32
+ __metadata("design:type", String)
33
+ ], ScheduleAdjustmentDayDto.prototype, "startTime", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsOptional)(),
36
+ (0, class_validator_1.IsString)({ message: 'endTime must be a string' }),
37
+ __metadata("design:type", String)
38
+ ], ScheduleAdjustmentDayDto.prototype, "endTime", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsOptional)(),
41
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
42
+ (0, class_validator_1.IsNumber)({}, { message: 'breakMinutes must be a number' }),
43
+ (0, class_validator_1.Min)(0, { message: 'breakMinutes must be 0 or greater' }),
44
+ __metadata("design:type", Number)
45
+ ], ScheduleAdjustmentDayDto.prototype, "breakMinutes", void 0);
46
+ class CreateScheduleAdjustmentRequestDto {
47
+ }
48
+ exports.CreateScheduleAdjustmentRequestDto = CreateScheduleAdjustmentRequestDto;
49
+ __decorate([
50
+ (0, class_validator_1.IsOptional)(),
51
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
52
+ (0, class_validator_1.IsInt)({ message: 'collaboratorId must be an integer' }),
53
+ __metadata("design:type", Number)
54
+ ], CreateScheduleAdjustmentRequestDto.prototype, "collaboratorId", void 0);
55
+ __decorate([
56
+ (0, class_validator_1.IsOptional)(),
57
+ (0, class_validator_1.IsIn)(['temporary', 'permanent'], {
58
+ message: 'requestScope must be temporary or permanent',
59
+ }),
60
+ __metadata("design:type", String)
61
+ ], CreateScheduleAdjustmentRequestDto.prototype, "requestScope", void 0);
62
+ __decorate([
63
+ (0, class_validator_1.IsDateString)({}, {
64
+ message: 'effectiveStartDate must be a valid ISO date string',
65
+ }),
66
+ __metadata("design:type", String)
67
+ ], CreateScheduleAdjustmentRequestDto.prototype, "effectiveStartDate", void 0);
68
+ __decorate([
69
+ (0, class_validator_1.IsOptional)(),
70
+ (0, class_validator_1.IsDateString)({}, {
71
+ message: 'effectiveEndDate must be a valid ISO date string',
72
+ }),
73
+ __metadata("design:type", String)
74
+ ], CreateScheduleAdjustmentRequestDto.prototype, "effectiveEndDate", void 0);
75
+ __decorate([
76
+ (0, class_validator_1.IsOptional)(),
77
+ (0, class_validator_1.IsString)({ message: 'reason must be a string' }),
78
+ (0, class_validator_1.MaxLength)(500, {
79
+ message: 'reason must have at most 500 characters',
80
+ }),
81
+ __metadata("design:type", String)
82
+ ], CreateScheduleAdjustmentRequestDto.prototype, "reason", void 0);
83
+ __decorate([
84
+ (0, class_validator_1.ValidateNested)({ each: true }),
85
+ (0, class_transformer_1.Type)(() => ScheduleAdjustmentDayDto),
86
+ (0, class_validator_1.ArrayMinSize)(1, { message: 'days must contain at least one schedule day' }),
87
+ __metadata("design:type", Array)
88
+ ], CreateScheduleAdjustmentRequestDto.prototype, "days", void 0);
89
+ //# sourceMappingURL=create-schedule-adjustment-request.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-schedule-adjustment-request.dto.js","sourceRoot":"","sources":["../../src/dto/create-schedule-adjustment-request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAoD;AACpD,qDAYyB;AAEzB,MAAM,wBAAwB;CAqC7B;AA5BC;IARC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,0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AmC,EAAE,CAAC;;0EAChC;AAMxB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE;QAChC,OAAO,EAAE,6CAA6C;KACvD,CAAC;;wEACuC;AAKzC;IAHC,IAAA,8BAAY,EAAC,EAAE,EAAE;QAChB,OAAO,EAAE,oDAAoD;KAC9D,CAAC;;8EAC0B;AAM5B;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,EAAC,EAAE,EAAE;QAChB,OAAO,EAAE,kDAAkD;KAC5D,CAAC;;4EAC+B;AAOjC;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IAChD,IAAA,2BAAS,EAAC,GAAG,EAAE;QACd,OAAO,EAAE,yCAAyC;KACnD,CAAC;;kEACc;AAKhB;IAHC,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;IACpC,IAAA,8BAAY,EAAC,CAAC,EAAE,EAAE,OAAO,EAAE,6CAA6C,EAAE,CAAC;;gEAC1C"}
@@ -0,0 +1,14 @@
1
+ export declare class CreateOperationsTaskDto {
2
+ projectId?: number;
3
+ projectAssignmentId?: number;
4
+ assigneeCollaboratorId?: number;
5
+ name: string;
6
+ description?: string;
7
+ priority?: 'low' | 'medium' | 'high';
8
+ status?: 'todo' | 'doing' | 'review' | 'done';
9
+ dueDate?: string;
10
+ estimateHours?: number;
11
+ position?: number;
12
+ tags?: string;
13
+ }
14
+ //# sourceMappingURL=create-task.dto.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,83 @@
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.CreateOperationsTaskDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class CreateOperationsTaskDto {
16
+ }
17
+ exports.CreateOperationsTaskDto = CreateOperationsTaskDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsOptional)(),
20
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
21
+ (0, class_validator_1.IsInt)({ message: 'projectId must be an integer' }),
22
+ __metadata("design:type", Number)
23
+ ], CreateOperationsTaskDto.prototype, "projectId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
27
+ (0, class_validator_1.IsInt)({ message: 'projectAssignmentId must be an integer' }),
28
+ __metadata("design:type", Number)
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);
36
+ __decorate([
37
+ (0, class_validator_1.IsString)({ message: 'name must be a string' }),
38
+ (0, class_validator_1.MaxLength)(180, { message: 'name must have at most 180 characters' }),
39
+ __metadata("design:type", String)
40
+ ], CreateOperationsTaskDto.prototype, "name", void 0);
41
+ __decorate([
42
+ (0, class_validator_1.IsOptional)(),
43
+ (0, class_validator_1.IsString)({ message: 'description must be a string' }),
44
+ (0, class_validator_1.MaxLength)(2000, { message: 'description must have at most 2000 characters' }),
45
+ __metadata("design:type", String)
46
+ ], CreateOperationsTaskDto.prototype, "description", void 0);
47
+ __decorate([
48
+ (0, class_validator_1.IsOptional)(),
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',
58
+ }),
59
+ __metadata("design:type", String)
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);
83
+ //# sourceMappingURL=create-task.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-task.dto.js","sourceRoot":"","sources":["../../src/dto/create-task.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAOyB;AAEzB,MAAa,uBAAuB;CAgEnC;AAhED,0DAgEC;AA1DC;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,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,IA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C4C;AAI9C;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,0BAA0B,EAAE,CAAC;;wDACjC;AAOjB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAClF;IACA,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;;8DACrC;AAOvB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAClF;IACA,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;;yDAChC;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;;qDACjC"}
@@ -0,0 +1,9 @@
1
+ export declare class CreateTimeOffRequestDto {
2
+ collaboratorId?: number;
3
+ requestType?: 'vacation' | 'personal_time' | 'sick_leave' | 'unpaid_leave' | 'other';
4
+ startDate: string;
5
+ endDate: string;
6
+ totalDays?: number | null;
7
+ reason?: string;
8
+ }
9
+ //# sourceMappingURL=create-time-off-request.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-time-off-request.dto.d.ts","sourceRoot":"","sources":["../../src/dto/create-time-off-request.dto.ts"],"names":[],"mappings":"AAYA,qBAAa,uBAAuB;IAMlC,cAAc,CAAC,EAAE,MAAM,CAAC;IAOxB,WAAW,CAAC,EACR,UAAU,GACV,eAAe,GACf,YAAY,GACZ,cAAc,GACd,OAAO,CAAC;IAGZ,SAAS,EAAG,MAAM,CAAC;IAGnB,OAAO,EAAG,MAAM,CAAC;IAQjB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,54 @@
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.CreateTimeOffRequestDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class CreateTimeOffRequestDto {
16
+ }
17
+ exports.CreateTimeOffRequestDto = CreateTimeOffRequestDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsOptional)(),
20
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
21
+ (0, class_validator_1.IsInt)({ message: 'collaboratorId must be an integer' }),
22
+ __metadata("design:type", Number)
23
+ ], CreateTimeOffRequestDto.prototype, "collaboratorId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_validator_1.IsIn)(['vacation', 'personal_time', 'sick_leave', 'unpaid_leave', 'other'], {
27
+ message: 'requestType must be vacation, personal_time, sick_leave, unpaid_leave, or other',
28
+ }),
29
+ __metadata("design:type", String)
30
+ ], CreateTimeOffRequestDto.prototype, "requestType", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsDateString)({}, { message: 'startDate must be a valid ISO date string' }),
33
+ __metadata("design:type", String)
34
+ ], CreateTimeOffRequestDto.prototype, "startDate", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsDateString)({}, { message: 'endDate must be a valid ISO date string' }),
37
+ __metadata("design:type", String)
38
+ ], CreateTimeOffRequestDto.prototype, "endDate", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsOptional)(),
41
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
42
+ (0, class_validator_1.IsNumber)({}, { message: 'totalDays must be a number' }),
43
+ (0, class_validator_1.Min)(0.01, { message: 'totalDays must be greater than 0' }),
44
+ __metadata("design:type", Number)
45
+ ], CreateTimeOffRequestDto.prototype, "totalDays", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsOptional)(),
48
+ (0, class_validator_1.IsString)({ message: 'reason must be a string' }),
49
+ (0, class_validator_1.MaxLength)(500, {
50
+ message: 'reason must have at most 500 characters',
51
+ }),
52
+ __metadata("design:type", String)
53
+ ], CreateTimeOffRequestDto.prototype, "reason", void 0);
54
+ //# sourceMappingURL=create-time-off-request.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-time-off-request.dto.js","sourceRoot":"","sources":["../../src/dto/create-time-off-request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDASyB;AAEzB,MAAa,uBAAuB;CAwCnC;AAxCD,0DAwCC;AAlCC;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,mCAAmC,EAAE,CAAC;;+DAChC;AAOxB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE;QAC1E,OAAO,EACL,iFAAiF;KACpF,CAAC;;4DAMU;AAGZ;IADC,IAAA,8BAAY,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,2CAA2C,EAAE,CAAC;;0DACxD;AAGnB;IADC,IAAA,8BAAY,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;;wDACxD;AAQjB;IANC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAClF;IACA,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACvD,IAAA,qBAAG,EAAC,IAAI,EAAE,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;;0DACjC;AAO1B;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IAChD,IAAA,2BAAS,EAAC,GAAG,EAAE;QACd,OAAO,EAAE,yCAAyC;KACnD,CAAC;;uDACc"}
@@ -0,0 +1,12 @@
1
+ export declare class CreateTimesheetEntryDto {
2
+ projectId?: number;
3
+ projectAssignmentId?: number;
4
+ taskId?: number;
5
+ taskName?: string;
6
+ activityLabel?: string;
7
+ workDate: string;
8
+ duration: number;
9
+ unit?: 'hours' | 'minutes';
10
+ description?: string;
11
+ }
12
+ //# sourceMappingURL=create-timesheet-entry.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-timesheet-entry.dto.d.ts","sourceRoot":"","sources":["../../src/dto/create-timesheet-entry.dto.ts"],"names":[],"mappings":"AAYA,qBAAa,uBAAuB;IAMlC,SAAS,CAAC,EAAE,MAAM,CAAC;IAOnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAO7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAOlB,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,QAAQ,EAAG,MAAM,CAAC;IAKlB,QAAQ,EAAG,MAAM,CAAC;IAMlB,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAO3B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}