@hed-hog/operations 0.0.303 → 0.0.304
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +200 -43
- package/dist/controllers/operations-approvals.controller.d.ts +9 -0
- package/dist/controllers/operations-approvals.controller.d.ts.map +1 -0
- package/dist/controllers/operations-approvals.controller.js +64 -0
- package/dist/controllers/operations-approvals.controller.js.map +1 -0
- package/dist/controllers/operations-collaborators.controller.d.ts +223 -0
- package/dist/controllers/operations-collaborators.controller.d.ts.map +1 -0
- package/dist/controllers/operations-collaborators.controller.js +96 -0
- package/dist/controllers/operations-collaborators.controller.js.map +1 -0
- package/dist/controllers/operations-contracts.controller.d.ts +683 -0
- package/dist/controllers/operations-contracts.controller.d.ts.map +1 -0
- package/dist/controllers/operations-contracts.controller.js +198 -0
- package/dist/controllers/operations-contracts.controller.js.map +1 -0
- package/dist/controllers/operations-org-structure.controller.d.ts +108 -0
- package/dist/controllers/operations-org-structure.controller.d.ts.map +1 -0
- package/dist/controllers/operations-org-structure.controller.js +143 -0
- package/dist/controllers/operations-org-structure.controller.js.map +1 -0
- package/dist/controllers/operations-projects.controller.d.ts +169 -0
- package/dist/controllers/operations-projects.controller.d.ts.map +1 -0
- package/dist/controllers/operations-projects.controller.js +87 -0
- package/dist/controllers/operations-projects.controller.js.map +1 -0
- package/dist/controllers/operations-tasks.controller.d.ts +54 -0
- package/dist/controllers/operations-tasks.controller.d.ts.map +1 -0
- package/dist/controllers/operations-tasks.controller.js +79 -0
- package/dist/controllers/operations-tasks.controller.js.map +1 -0
- package/dist/controllers/operations-timesheets.controller.d.ts +99 -0
- package/dist/controllers/operations-timesheets.controller.d.ts.map +1 -0
- package/dist/controllers/operations-timesheets.controller.js +154 -0
- package/dist/controllers/operations-timesheets.controller.js.map +1 -0
- package/dist/dto/create-collaborator-type.dto.d.ts +10 -0
- package/dist/dto/create-collaborator-type.dto.d.ts.map +1 -0
- package/dist/dto/create-collaborator-type.dto.js +56 -0
- package/dist/dto/create-collaborator-type.dto.js.map +1 -0
- package/dist/dto/create-collaborator.dto.d.ts +42 -0
- package/dist/dto/create-collaborator.dto.d.ts.map +1 -0
- package/dist/dto/create-collaborator.dto.js +228 -0
- package/dist/dto/create-collaborator.dto.js.map +1 -0
- package/dist/dto/create-schedule-adjustment-request.dto.d.ts +17 -0
- package/dist/dto/create-schedule-adjustment-request.dto.d.ts.map +1 -0
- package/dist/dto/create-schedule-adjustment-request.dto.js +89 -0
- package/dist/dto/create-schedule-adjustment-request.dto.js.map +1 -0
- package/dist/dto/create-task.dto.d.ts +8 -0
- package/dist/dto/create-task.dto.d.ts.map +1 -0
- package/dist/dto/create-task.dto.js +50 -0
- package/dist/dto/create-task.dto.js.map +1 -0
- package/dist/dto/create-time-off-request.dto.d.ts +9 -0
- package/dist/dto/create-time-off-request.dto.d.ts.map +1 -0
- package/dist/dto/create-time-off-request.dto.js +54 -0
- package/dist/dto/create-time-off-request.dto.js.map +1 -0
- package/dist/dto/create-timesheet-entry.dto.d.ts +12 -0
- package/dist/dto/create-timesheet-entry.dto.d.ts.map +1 -0
- package/dist/dto/create-timesheet-entry.dto.js +75 -0
- package/dist/dto/create-timesheet-entry.dto.js.map +1 -0
- package/dist/dto/list-collaborator-types.dto.d.ts +4 -0
- package/dist/dto/list-collaborator-types.dto.d.ts.map +1 -0
- package/dist/dto/list-collaborator-types.dto.js +29 -0
- package/dist/dto/list-collaborator-types.dto.js.map +1 -0
- package/dist/dto/list-collaborators.dto.d.ts +8 -0
- package/dist/dto/list-collaborators.dto.d.ts.map +1 -0
- package/dist/dto/list-collaborators.dto.js +42 -0
- package/dist/dto/list-collaborators.dto.js.map +1 -0
- package/dist/dto/list-project-options.dto.d.ts +4 -0
- package/dist/dto/list-project-options.dto.d.ts.map +1 -0
- package/dist/dto/list-project-options.dto.js +8 -0
- package/dist/dto/list-project-options.dto.js.map +1 -0
- package/dist/dto/list-tasks.dto.d.ts +7 -0
- package/dist/dto/list-tasks.dto.d.ts.map +1 -0
- package/dist/dto/list-tasks.dto.js +38 -0
- package/dist/dto/list-tasks.dto.js.map +1 -0
- package/dist/dto/list-timesheet-entries.dto.d.ts +10 -0
- package/dist/dto/list-timesheet-entries.dto.d.ts.map +1 -0
- package/dist/dto/list-timesheet-entries.dto.js +54 -0
- package/dist/dto/list-timesheet-entries.dto.js.map +1 -0
- package/dist/dto/update-collaborator-type.dto.d.ts +4 -0
- package/dist/dto/update-collaborator-type.dto.d.ts.map +1 -0
- package/dist/dto/update-collaborator-type.dto.js +8 -0
- package/dist/dto/update-collaborator-type.dto.js.map +1 -0
- package/dist/dto/update-collaborator.dto.d.ts +4 -0
- package/dist/dto/update-collaborator.dto.d.ts.map +1 -0
- package/dist/dto/update-collaborator.dto.js +8 -0
- package/dist/dto/update-collaborator.dto.js.map +1 -0
- package/dist/dto/update-task.dto.d.ts +8 -0
- package/dist/dto/update-task.dto.d.ts.map +1 -0
- package/dist/dto/update-task.dto.js +51 -0
- package/dist/dto/update-task.dto.js.map +1 -0
- package/dist/operations.controller.d.ts +0 -1045
- package/dist/operations.controller.d.ts.map +1 -1
- package/dist/operations.controller.js +0 -429
- package/dist/operations.controller.js.map +1 -1
- package/dist/operations.module.d.ts.map +1 -1
- package/dist/operations.module.js +23 -2
- package/dist/operations.module.js.map +1 -1
- package/dist/operations.service.d.ts +373 -8
- package/dist/operations.service.d.ts.map +1 -1
- package/dist/operations.service.js +1598 -111
- package/dist/operations.service.js.map +1 -1
- package/dist/operations.service.spec.js +315 -1
- package/dist/operations.service.spec.js.map +1 -1
- package/dist/services/shared/operations-access.service.d.ts +16 -0
- package/dist/services/shared/operations-access.service.d.ts.map +1 -0
- package/dist/services/shared/operations-access.service.js +48 -0
- package/dist/services/shared/operations-access.service.js.map +1 -0
- package/hedhog/data/dashboard.yaml +20 -0
- package/hedhog/data/dashboard_component.yaml +274 -0
- package/hedhog/data/dashboard_component_role.yaml +174 -0
- package/hedhog/data/dashboard_item.yaml +299 -0
- package/hedhog/data/dashboard_role.yaml +20 -0
- package/hedhog/data/menu.yaml +30 -13
- package/hedhog/data/operations_collaborator_type.yaml +76 -0
- package/hedhog/data/route.yaml +183 -0
- package/hedhog/frontend/app/_components/async-options-combobox.tsx.ejs +231 -0
- package/hedhog/frontend/app/_components/collaborator-details-screen.tsx.ejs +134 -49
- package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +772 -93
- package/hedhog/frontend/app/_components/department-select-with-create.tsx.ejs +38 -16
- package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +875 -632
- package/hedhog/frontend/app/_components/timesheet-task-create-sheet.tsx.ejs +213 -0
- package/hedhog/frontend/app/_lib/api.ts.ejs +30 -1
- package/hedhog/frontend/app/_lib/types.ts.ejs +142 -39
- package/hedhog/frontend/app/_lib/utils/format.ts.ejs +33 -2
- package/hedhog/frontend/app/approvals/page.tsx.ejs +116 -98
- package/hedhog/frontend/app/collaborator-types/page.tsx.ejs +502 -0
- package/hedhog/frontend/app/collaborators/page.tsx.ejs +109 -68
- package/hedhog/frontend/app/contracts/templates/page.tsx.ejs +11 -9
- package/hedhog/frontend/app/departments/page.tsx.ejs +1 -1
- package/hedhog/frontend/app/projects/page.tsx.ejs +5 -1
- package/hedhog/frontend/app/schedule-adjustments/page.tsx.ejs +244 -120
- package/hedhog/frontend/app/team/page.tsx.ejs +15 -2
- package/hedhog/frontend/app/time-off/page.tsx.ejs +158 -82
- package/hedhog/frontend/app/timesheets/page.tsx.ejs +814 -357
- package/hedhog/frontend/messages/en.json +243 -51
- package/hedhog/frontend/messages/pt.json +458 -268
- package/hedhog/table/operations_collaborator.yaml +26 -13
- package/hedhog/table/operations_collaborator_equity_participation.yaml +43 -0
- package/hedhog/table/operations_collaborator_type.yaml +33 -0
- package/hedhog/table/operations_job_title.yaml +24 -0
- package/hedhog/table/operations_project_assignment.yaml +9 -0
- package/hedhog/table/operations_project_role.yaml +39 -0
- package/hedhog/table/operations_task.yaml +30 -0
- package/hedhog/table/operations_timesheet_entry.yaml +12 -0
- package/package.json +6 -6
- package/src/controllers/operations-approvals.controller.ts +24 -0
- package/src/controllers/operations-collaborators.controller.ts +60 -0
- package/src/controllers/operations-contracts.controller.ts +138 -0
- package/src/controllers/operations-org-structure.controller.ts +92 -0
- package/src/controllers/operations-projects.controller.ts +50 -0
- package/src/controllers/operations-tasks.controller.ts +52 -0
- package/src/controllers/operations-timesheets.controller.ts +100 -0
- package/src/dto/create-collaborator-type.dto.ts +43 -0
- package/src/dto/create-collaborator.dto.ts +223 -0
- package/src/dto/create-schedule-adjustment-request.dto.ts +91 -0
- package/src/dto/create-task.dto.ts +35 -0
- package/src/dto/create-time-off-request.dto.ts +53 -0
- package/src/dto/create-timesheet-entry.dto.ts +67 -0
- package/src/dto/list-collaborator-types.dto.ts +15 -0
- package/src/dto/list-collaborators.dto.ts +30 -0
- package/src/dto/list-project-options.dto.ts +3 -0
- package/src/dto/list-tasks.dto.ts +25 -0
- package/src/dto/list-timesheet-entries.dto.ts +40 -0
- package/src/dto/update-collaborator-type.dto.ts +3 -0
- package/src/dto/update-collaborator.dto.ts +3 -0
- package/src/dto/update-task.dto.ts +36 -0
- package/src/operations.controller.ts +1 -278
- package/src/operations.module.ts +23 -2
- package/src/operations.service.spec.ts +450 -0
- package/src/operations.service.ts +4641 -2163
- package/src/services/shared/operations-access.service.ts +52 -0
|
@@ -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,eAA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AA,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;;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,0BAA0B,EAAE,CAAC;IACjD,IAAA,sBAAI,EACH,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,EAC9E;QACE,OAAO,EACL,mFAAmF;KACtF,CACF;;yDAQY;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;;8DAClC;AAIvB;IAFC,IAA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AY,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 @@
|
|
|
1
|
+
{"version":3,"file":"create-task.dto.d.ts","sourceRoot":"","sources":["../../src/dto/create-task.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,uBAAuB;IAMlC,SAAS,CAAC,EAAE,MAAM,CAAC;IAOnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAI7B,IAAI,EAAG,MAAM,CAAC;IAOd,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,UAAU,CAAC;CAC9C"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.IsString)({ message: 'name must be a string' }),
|
|
32
|
+
(0, class_validator_1.MaxLength)(180, { message: 'name must have at most 180 characters' }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CreateOperationsTaskDto.prototype, "name", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
(0, class_validator_1.IsString)({ message: 'description must be a string' }),
|
|
38
|
+
(0, class_validator_1.MaxLength)(500, {
|
|
39
|
+
message: 'description must have at most 500 characters',
|
|
40
|
+
}),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CreateOperationsTaskDto.prototype, "description", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.IsIn)(['active', 'completed', 'archived'], {
|
|
46
|
+
message: 'status must be active, completed, or archived',
|
|
47
|
+
}),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], CreateOperationsTaskDto.prototype, "status", void 0);
|
|
50
|
+
//# 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,qDAA+E;AAE/E,MAAa,uBAAuB;CA+BnC;AA/BD,0DA+BC;AAzBC;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAClF;IACA,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;;0DAChC;AAOnB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAClF;IACA,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;;oEAChC;AAI7B;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;IAC9C,IAAA,2BAAS,EAAC,GAAG,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;;qDACvD;AAOd;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IACrD,IAAA,2BAAS,EAAC,GAAG,EAAE;QACd,OAAO,EAAE,8CAA8C;KACxD,CAAC;;4DACmB;AAMrB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,UAAU,CAAC,EAAE;QACzC,OAAO,EAAE,+CAA+C;KACzD,CAAC;;uDAC2C"}
|
|
@@ -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,K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ectAssignmentId?: 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"}
|
|
@@ -0,0 +1,75 @@
|
|
|
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.CreateTimesheetEntryDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class CreateTimesheetEntryDto {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateTimesheetEntryDto = CreateTimesheetEntryDto;
|
|
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
|
+
], CreateTimesheetEntryDto.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
|
+
], CreateTimesheetEntryDto.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: 'taskId must be an integer' }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], CreateTimesheetEntryDto.prototype, "taskId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
(0, class_validator_1.IsString)({ message: 'taskName must be a string' }),
|
|
39
|
+
(0, class_validator_1.MaxLength)(180, { message: 'taskName must have at most 180 characters' }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CreateTimesheetEntryDto.prototype, "taskName", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsString)({ message: 'activityLabel must be a string' }),
|
|
45
|
+
(0, class_validator_1.MaxLength)(180, {
|
|
46
|
+
message: 'activityLabel must have at most 180 characters',
|
|
47
|
+
}),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], CreateTimesheetEntryDto.prototype, "activityLabel", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsDateString)({}, { message: 'workDate must be a valid ISO date string' }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], CreateTimesheetEntryDto.prototype, "workDate", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_transformer_1.Transform)(({ value }) => Number(value)),
|
|
56
|
+
(0, class_validator_1.IsNumber)({}, { message: 'duration must be a number' }),
|
|
57
|
+
(0, class_validator_1.Min)(0.01, { message: 'duration must be greater than 0' }),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], CreateTimesheetEntryDto.prototype, "duration", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
(0, class_validator_1.IsIn)(['hours', 'minutes'], {
|
|
63
|
+
message: 'unit must be either hours or minutes',
|
|
64
|
+
}),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], CreateTimesheetEntryDto.prototype, "unit", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_validator_1.IsString)({ message: 'description must be a string' }),
|
|
70
|
+
(0, class_validator_1.MaxLength)(500, {
|
|
71
|
+
message: 'description must have at most 500 characters',
|
|
72
|
+
}),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], CreateTimesheetEntryDto.prototype, "description", void 0);
|
|
75
|
+
//# sourceMappingURL=create-timesheet-entry.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-timesheet-entry.dto.js","sourceRoot":"","sources":["../../src/dto/create-timesheet-entry.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDASyB;AAEzB,MAAa,uBAAuB;CAsDnC;AAtDD,0DAsDC;AAhDC;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAClF;IACA,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;;0DAChC;AAOnB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAClF;IACA,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;;oEAChC;AAO7B;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,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,2BAA2B,EAAE,CAAC;;uDAChC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IAClD,IAAA,2BAAS,EAAC,GAAG,EAAE,EAAE,OAAO,EAAE,2CAA2C,EAAE,CAAC;;yDACvD;AAOlB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;IACvD,IAAA,2BAAS,EAAC,GAAG,EAAE;QACd,OAAO,EAAE,gDAAgD;KAC1D,CAAC;;8DACqB;AAGvB;IADC,IAAA,8BAAY,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC;;yDACxD;AAKlB;IAHC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IACtD,IAAA,qBAAG,EAAC,IAAI,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;;yDACxC;AAMlB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE;QAC1B,OAAO,EAAE,sCAAsC;KAChD,CAAC;;qDACyB;AAO3B;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IACrD,IAAA,2BAAS,EAAC,GAAG,EAAE;QACd,OAAO,EAAE,8CAA8C;KACxD,CAAC;;4DACmB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-collaborator-types.dto.d.ts","sourceRoot":"","sources":["../../src/dto/list-collaborator-types.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,wBAAwB;IAUnC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.ListCollaboratorTypesDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class ListCollaboratorTypesDto {
|
|
16
|
+
}
|
|
17
|
+
exports.ListCollaboratorTypesDto = ListCollaboratorTypesDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
|
20
|
+
(0, class_transformer_1.Transform)(({ value }) => {
|
|
21
|
+
if (value === '' || value === undefined || value === null) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
return value === true || value === 'true' || value === '1';
|
|
25
|
+
}),
|
|
26
|
+
(0, class_validator_1.IsBoolean)(),
|
|
27
|
+
__metadata("design:type", Boolean)
|
|
28
|
+
], ListCollaboratorTypesDto.prototype, "active", void 0);
|
|
29
|
+
//# sourceMappingURL=list-collaborator-types.dto.js.map
|