@hed-hog/operations 0.0.331 → 0.0.332

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 (62) hide show
  1. package/dist/controllers/operations-collaborators.controller.d.ts +54 -0
  2. package/dist/controllers/operations-collaborators.controller.d.ts.map +1 -1
  3. package/dist/controllers/operations-collaborators.controller.js +100 -0
  4. package/dist/controllers/operations-collaborators.controller.js.map +1 -1
  5. package/dist/dto/create-collaborator-invoice.dto.d.ts +11 -0
  6. package/dist/dto/create-collaborator-invoice.dto.d.ts.map +1 -0
  7. package/dist/dto/create-collaborator-invoice.dto.js +55 -0
  8. package/dist/dto/create-collaborator-invoice.dto.js.map +1 -0
  9. package/dist/dto/create-collaborator-payment.dto.d.ts +10 -0
  10. package/dist/dto/create-collaborator-payment.dto.d.ts.map +1 -0
  11. package/dist/dto/create-collaborator-payment.dto.js +50 -0
  12. package/dist/dto/create-collaborator-payment.dto.js.map +1 -0
  13. package/dist/dto/list-collaborator-invoice.dto.d.ts +4 -0
  14. package/dist/dto/list-collaborator-invoice.dto.d.ts.map +1 -0
  15. package/dist/dto/list-collaborator-invoice.dto.js +8 -0
  16. package/dist/dto/list-collaborator-invoice.dto.js.map +1 -0
  17. package/dist/dto/list-collaborator-payment.dto.d.ts +4 -0
  18. package/dist/dto/list-collaborator-payment.dto.d.ts.map +1 -0
  19. package/dist/dto/list-collaborator-payment.dto.js +8 -0
  20. package/dist/dto/list-collaborator-payment.dto.js.map +1 -0
  21. package/dist/dto/update-collaborator-invoice.dto.d.ts +6 -0
  22. package/dist/dto/update-collaborator-invoice.dto.d.ts.map +1 -0
  23. package/dist/dto/update-collaborator-invoice.dto.js +9 -0
  24. package/dist/dto/update-collaborator-invoice.dto.js.map +1 -0
  25. package/dist/dto/update-collaborator-payment.dto.d.ts +6 -0
  26. package/dist/dto/update-collaborator-payment.dto.d.ts.map +1 -0
  27. package/dist/dto/update-collaborator-payment.dto.js +9 -0
  28. package/dist/dto/update-collaborator-payment.dto.js.map +1 -0
  29. package/dist/operations.service.d.ts +76 -0
  30. package/dist/operations.service.d.ts.map +1 -1
  31. package/dist/operations.service.js +235 -5
  32. package/dist/operations.service.js.map +1 -1
  33. package/hedhog/data/menu.yaml +27 -8
  34. package/hedhog/data/route.yaml +72 -0
  35. package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +39 -3
  36. package/hedhog/frontend/app/_components/collaborator-invoices-tab.tsx.ejs +443 -0
  37. package/hedhog/frontend/app/_components/collaborator-payment-history-tab.tsx.ejs +429 -0
  38. package/hedhog/frontend/app/_components/my-project-summary-screen.tsx.ejs +86 -87
  39. package/hedhog/frontend/app/_components/project-assignments-tab.tsx.ejs +218 -10
  40. package/hedhog/frontend/app/_components/project-details-screen.tsx.ejs +710 -26
  41. package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +158 -38
  42. package/hedhog/frontend/app/_components/task-detail-sheet.tsx.ejs +807 -803
  43. package/hedhog/frontend/app/_lib/api.ts.ejs +631 -480
  44. package/hedhog/frontend/app/_lib/types.ts.ejs +6 -5
  45. package/hedhog/frontend/app/_lib/utils/task-ui.ts.ejs +18 -0
  46. package/hedhog/frontend/app/my-projects/page.tsx.ejs +16 -2
  47. package/hedhog/frontend/app/my-tasks/page.tsx.ejs +95 -157
  48. package/hedhog/frontend/app/projects/page.tsx.ejs +42 -6
  49. package/hedhog/frontend/app/tasks-gantt/page.tsx.ejs +953 -0
  50. package/hedhog/frontend/messages/en.json +96 -2
  51. package/hedhog/frontend/messages/pt.json +96 -2
  52. package/hedhog/table/operations_collaborator_invoice.yaml +35 -0
  53. package/hedhog/table/operations_collaborator_payment.yaml +32 -0
  54. package/package.json +5 -5
  55. package/src/controllers/operations-collaborators.controller.ts +117 -8
  56. package/src/dto/create-collaborator-invoice.dto.ts +39 -0
  57. package/src/dto/create-collaborator-payment.dto.ts +35 -0
  58. package/src/dto/list-collaborator-invoice.dto.ts +3 -0
  59. package/src/dto/list-collaborator-payment.dto.ts +3 -0
  60. package/src/dto/update-collaborator-invoice.dto.ts +6 -0
  61. package/src/dto/update-collaborator-payment.dto.ts +6 -0
  62. package/src/operations.service.ts +328 -5
@@ -1,6 +1,10 @@
1
+ import { CreateCollaboratorInvoiceDto } from '../dto/create-collaborator-invoice.dto';
2
+ import { CreateCollaboratorPaymentDto } from '../dto/create-collaborator-payment.dto';
1
3
  import { CreateCollaboratorProjectAssignmentDto } from '../dto/create-collaborator-project-assignment.dto';
2
4
  import { CreateCollaboratorDto } from '../dto/create-collaborator.dto';
3
5
  import { ListCollaboratorsDto } from '../dto/list-collaborators.dto';
6
+ import { UpdateCollaboratorInvoiceDto } from '../dto/update-collaborator-invoice.dto';
7
+ import { UpdateCollaboratorPaymentDto } from '../dto/update-collaborator-payment.dto';
4
8
  import { UpdateCollaboratorProjectAssignmentDto } from '../dto/update-collaborator-project-assignment.dto';
5
9
  import { UpdateCollaboratorDto } from '../dto/update-collaborator.dto';
6
10
  import { OperationsService } from '../operations.service';
@@ -43,6 +47,56 @@ export declare class OperationsCollaboratorsController {
43
47
  amountType: string;
44
48
  createdAt: string;
45
49
  }[]>;
50
+ getCollaboratorPaymentHistory(user: any, id: number): Promise<any>;
51
+ getCollaboratorInvoices(user: any, id: number): Promise<any>;
52
+ createCollaboratorPayment(user: any, collaboratorId: number, data: CreateCollaboratorPaymentDto): Promise<{
53
+ id: any;
54
+ collaboratorId: any;
55
+ amount: any;
56
+ paymentDate: any;
57
+ referenceMonth: any;
58
+ paymentMethod: any;
59
+ notes: any;
60
+ createdAt: any;
61
+ }>;
62
+ updateCollaboratorPayment(user: any, collaboratorId: number, paymentId: number, data: UpdateCollaboratorPaymentDto): Promise<{
63
+ id: any;
64
+ collaboratorId: any;
65
+ amount: any;
66
+ paymentDate: any;
67
+ referenceMonth: any;
68
+ paymentMethod: any;
69
+ notes: any;
70
+ createdAt: any;
71
+ }>;
72
+ deleteCollaboratorPayment(user: any, collaboratorId: number, paymentId: number): Promise<{
73
+ success: boolean;
74
+ }>;
75
+ createCollaboratorInvoice(user: any, collaboratorId: number, data: CreateCollaboratorInvoiceDto): Promise<{
76
+ id: any;
77
+ collaboratorId: any;
78
+ invoiceNumber: any;
79
+ amount: any;
80
+ issueDate: any;
81
+ dueDate: any;
82
+ status: any;
83
+ description: any;
84
+ createdAt: any;
85
+ }>;
86
+ updateCollaboratorInvoice(user: any, collaboratorId: number, invoiceId: number, data: UpdateCollaboratorInvoiceDto): Promise<{
87
+ id: any;
88
+ collaboratorId: any;
89
+ invoiceNumber: any;
90
+ amount: any;
91
+ issueDate: any;
92
+ dueDate: any;
93
+ status: any;
94
+ description: any;
95
+ createdAt: any;
96
+ }>;
97
+ deleteCollaboratorInvoice(user: any, collaboratorId: number, invoiceId: number): Promise<{
98
+ success: boolean;
99
+ }>;
46
100
  getCollaborator(user: any, id: number): Promise<any>;
47
101
  createCollaborator(user: any, data: CreateCollaboratorDto): Promise<any>;
48
102
  updateCollaborator(user: any, id: number, data: UpdateCollaboratorDto): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"operations-collaborators.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-collaborators.controller.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,sCAAsC,EAAE,MAAM,mDAAmD,CAAC;AAC3G,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,sCAAsC,EAAE,MAAM,mDAAmD,CAAC;AAC3G,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAEa,iCAAiC;IAChC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAGjE,iBAAiB,CAAS,IAAI,KAAA,EAAW,OAAO,EAAE,oBAAoB;;;;;;;;;IAQtE,qBAAqB,CAAS,IAAI,KAAA,EAAW,OAAO,EAAE,oBAAoB;IAQ1E,iBAAiB,CAAS,IAAI,KAAA;IAK9B,OAAO,CAAS,IAAI,KAAA;;;;;;;;;;;;;;IAKpB,kCAAkC,CACxB,IAAI,KAAA,EACe,EAAE,EAAE,MAAM;;;;;;;;;;;IASvC,eAAe,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;IAQnE,kBAAkB,CAAS,IAAI,KAAA,EAAU,IAAI,EAAE,qBAAqB;IAKpE,kBAAkB,CACR,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,qBAAqB;IAUrC,gCAAgC,CACS,cAAc,EAAE,MAAM,EACrD,IAAI,EAAE,sCAAsC;;;;IAStD,mCAAmC,CACM,cAAc,EAAE,MAAM,EAC3B,SAAS,EAAE,MAAM,EAC3C,IAAI,EAAE,sCAAsC;;;CAQvD"}
1
+ {"version":3,"file":"operations-collaborators.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-collaborators.controller.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,sCAAsC,EAAE,MAAM,mDAAmD,CAAC;AAC3G,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,sCAAsC,EAAE,MAAM,mDAAmD,CAAC;AAC3G,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAEa,iCAAiC;IAChC,OAAO,C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rC,gCAAgC,CACS,cAAc,EAAE,MAAM,EACrD,IAAI,EAAE,sCAAsC;;;;IAStD,mCAAmC,CACM,cAAc,EAAE,MAAM,EAC3B,SAAS,EAAE,MAAM,EAC3C,IAAI,EAAE,sCAAsC;;;CAQvD"}
@@ -15,9 +15,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.OperationsCollaboratorsController = void 0;
16
16
  const api_1 = require("@hed-hog/api");
17
17
  const common_1 = require("@nestjs/common");
18
+ const create_collaborator_invoice_dto_1 = require("../dto/create-collaborator-invoice.dto");
19
+ const create_collaborator_payment_dto_1 = require("../dto/create-collaborator-payment.dto");
18
20
  const create_collaborator_project_assignment_dto_1 = require("../dto/create-collaborator-project-assignment.dto");
19
21
  const create_collaborator_dto_1 = require("../dto/create-collaborator.dto");
20
22
  const list_collaborators_dto_1 = require("../dto/list-collaborators.dto");
23
+ const update_collaborator_invoice_dto_1 = require("../dto/update-collaborator-invoice.dto");
24
+ const update_collaborator_payment_dto_1 = require("../dto/update-collaborator-payment.dto");
21
25
  const update_collaborator_project_assignment_dto_1 = require("../dto/update-collaborator-project-assignment.dto");
22
26
  const update_collaborator_dto_1 = require("../dto/update-collaborator.dto");
23
27
  const operations_service_1 = require("../operations.service");
@@ -40,6 +44,30 @@ let OperationsCollaboratorsController = class OperationsCollaboratorsController
40
44
  getCollaboratorCompensationHistory(user, id) {
41
45
  return this.operationsService.getCollaboratorCompensationHistory(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id);
42
46
  }
47
+ getCollaboratorPaymentHistory(user, id) {
48
+ return this.operationsService.getCollaboratorPaymentHistory(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id);
49
+ }
50
+ getCollaboratorInvoices(user, id) {
51
+ return this.operationsService.getCollaboratorInvoices(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id);
52
+ }
53
+ createCollaboratorPayment(user, collaboratorId, data) {
54
+ return this.operationsService.createCollaboratorPayment(Number((user === null || user === void 0 ? void 0 : user.id) || 0), collaboratorId, data);
55
+ }
56
+ updateCollaboratorPayment(user, collaboratorId, paymentId, data) {
57
+ return this.operationsService.updateCollaboratorPayment(Number((user === null || user === void 0 ? void 0 : user.id) || 0), collaboratorId, paymentId, data);
58
+ }
59
+ deleteCollaboratorPayment(user, collaboratorId, paymentId) {
60
+ return this.operationsService.deleteCollaboratorPayment(Number((user === null || user === void 0 ? void 0 : user.id) || 0), collaboratorId, paymentId);
61
+ }
62
+ createCollaboratorInvoice(user, collaboratorId, data) {
63
+ return this.operationsService.createCollaboratorInvoice(Number((user === null || user === void 0 ? void 0 : user.id) || 0), collaboratorId, data);
64
+ }
65
+ updateCollaboratorInvoice(user, collaboratorId, invoiceId, data) {
66
+ return this.operationsService.updateCollaboratorInvoice(Number((user === null || user === void 0 ? void 0 : user.id) || 0), collaboratorId, invoiceId, data);
67
+ }
68
+ deleteCollaboratorInvoice(user, collaboratorId, invoiceId) {
69
+ return this.operationsService.deleteCollaboratorInvoice(Number((user === null || user === void 0 ? void 0 : user.id) || 0), collaboratorId, invoiceId);
70
+ }
43
71
  getCollaborator(user, id) {
44
72
  return this.operationsService.getCollaboratorByIdForUser(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id);
45
73
  }
@@ -95,6 +123,78 @@ __decorate([
95
123
  __metadata("design:paramtypes", [Object, Number]),
96
124
  __metadata("design:returntype", void 0)
97
125
  ], OperationsCollaboratorsController.prototype, "getCollaboratorCompensationHistory", null);
126
+ __decorate([
127
+ (0, common_1.Get)('collaborators/:id/payment-history'),
128
+ __param(0, (0, api_1.User)()),
129
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
130
+ __metadata("design:type", Function),
131
+ __metadata("design:paramtypes", [Object, Number]),
132
+ __metadata("design:returntype", void 0)
133
+ ], OperationsCollaboratorsController.prototype, "getCollaboratorPaymentHistory", null);
134
+ __decorate([
135
+ (0, common_1.Get)('collaborators/:id/invoices'),
136
+ __param(0, (0, api_1.User)()),
137
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
138
+ __metadata("design:type", Function),
139
+ __metadata("design:paramtypes", [Object, Number]),
140
+ __metadata("design:returntype", void 0)
141
+ ], OperationsCollaboratorsController.prototype, "getCollaboratorInvoices", null);
142
+ __decorate([
143
+ (0, common_1.Post)('collaborators/:id/payment-history'),
144
+ __param(0, (0, api_1.User)()),
145
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
146
+ __param(2, (0, common_1.Body)()),
147
+ __metadata("design:type", Function),
148
+ __metadata("design:paramtypes", [Object, Number, create_collaborator_payment_dto_1.CreateCollaboratorPaymentDto]),
149
+ __metadata("design:returntype", void 0)
150
+ ], OperationsCollaboratorsController.prototype, "createCollaboratorPayment", null);
151
+ __decorate([
152
+ (0, common_1.Patch)('collaborators/:id/payment-history/:paymentId'),
153
+ __param(0, (0, api_1.User)()),
154
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
155
+ __param(2, (0, common_1.Param)('paymentId', common_1.ParseIntPipe)),
156
+ __param(3, (0, common_1.Body)()),
157
+ __metadata("design:type", Function),
158
+ __metadata("design:paramtypes", [Object, Number, Number, update_collaborator_payment_dto_1.UpdateCollaboratorPaymentDto]),
159
+ __metadata("design:returntype", void 0)
160
+ ], OperationsCollaboratorsController.prototype, "updateCollaboratorPayment", null);
161
+ __decorate([
162
+ (0, common_1.Delete)('collaborators/:id/payment-history/:paymentId'),
163
+ __param(0, (0, api_1.User)()),
164
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
165
+ __param(2, (0, common_1.Param)('paymentId', common_1.ParseIntPipe)),
166
+ __metadata("design:type", Function),
167
+ __metadata("design:paramtypes", [Object, Number, Number]),
168
+ __metadata("design:returntype", void 0)
169
+ ], OperationsCollaboratorsController.prototype, "deleteCollaboratorPayment", null);
170
+ __decorate([
171
+ (0, common_1.Post)('collaborators/:id/invoices'),
172
+ __param(0, (0, api_1.User)()),
173
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
174
+ __param(2, (0, common_1.Body)()),
175
+ __metadata("design:type", Function),
176
+ __metadata("design:paramtypes", [Object, Number, create_collaborator_invoice_dto_1.CreateCollaboratorInvoiceDto]),
177
+ __metadata("design:returntype", void 0)
178
+ ], OperationsCollaboratorsController.prototype, "createCollaboratorInvoice", null);
179
+ __decorate([
180
+ (0, common_1.Patch)('collaborators/:id/invoices/:invoiceId'),
181
+ __param(0, (0, api_1.User)()),
182
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
183
+ __param(2, (0, common_1.Param)('invoiceId', common_1.ParseIntPipe)),
184
+ __param(3, (0, common_1.Body)()),
185
+ __metadata("design:type", Function),
186
+ __metadata("design:paramtypes", [Object, Number, Number, update_collaborator_invoice_dto_1.UpdateCollaboratorInvoiceDto]),
187
+ __metadata("design:returntype", void 0)
188
+ ], OperationsCollaboratorsController.prototype, "updateCollaboratorInvoice", null);
189
+ __decorate([
190
+ (0, common_1.Delete)('collaborators/:id/invoices/:invoiceId'),
191
+ __param(0, (0, api_1.User)()),
192
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
193
+ __param(2, (0, common_1.Param)('invoiceId', common_1.ParseIntPipe)),
194
+ __metadata("design:type", Function),
195
+ __metadata("design:paramtypes", [Object, Number, Number]),
196
+ __metadata("design:returntype", void 0)
197
+ ], OperationsCollaboratorsController.prototype, "deleteCollaboratorInvoice", null);
98
198
  __decorate([
99
199
  (0, common_1.Get)('collaborators/:id'),
100
200
  __param(0, (0, api_1.User)()),
@@ -1 +1 @@
1
- {"version":3,"file":"operations-collaborators.controller.js","sourceRoot":"","sources":["../../src/controllers/operations-collaborators.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,2CASwB;AACxB,kHAA2G;AAC3G,4EAAuE;AACvE,0EAAqE;AACrE,kHAA2G;AAC3G,4EAAuE;AACvE,8DAA0D;AAInD,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;IAC5C,YA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AF7C,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,YAAY,CAAC;qCAEyB,sCAAiB;GADtD,iCAAiC,CAiM7C"}
@@ -0,0 +1,11 @@
1
+ export declare const INVOICE_STATUS_VALUES: readonly ["pending", "paid", "cancelled", "overdue"];
2
+ export type InvoiceStatus = (typeof INVOICE_STATUS_VALUES)[number];
3
+ export declare class CreateCollaboratorInvoiceDto {
4
+ invoiceNumber?: string | null;
5
+ amount: number;
6
+ issueDate: string;
7
+ dueDate?: string | null;
8
+ status?: InvoiceStatus;
9
+ description?: string | null;
10
+ }
11
+ //# sourceMappingURL=create-collaborator-invoice.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-collaborator-invoice.dto.d.ts","sourceRoot":"","sources":["../../src/dto/create-collaborator-invoice.dto.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,sDAKxB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,qBAAa,4BAA4B;IAIvC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO9B,MAAM,EAAG,MAAM,CAAC;IAGhB,SAAS,EAAG,MAAM,CAAC;IAInB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAIxB,MAAM,CAAC,EAAE,aAAa,CAAC;IAIvB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B"}
@@ -0,0 +1,55 @@
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.CreateCollaboratorInvoiceDto = exports.INVOICE_STATUS_VALUES = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ exports.INVOICE_STATUS_VALUES = [
16
+ 'pending',
17
+ 'paid',
18
+ 'cancelled',
19
+ 'overdue',
20
+ ];
21
+ class CreateCollaboratorInvoiceDto {
22
+ }
23
+ exports.CreateCollaboratorInvoiceDto = CreateCollaboratorInvoiceDto;
24
+ __decorate([
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_validator_1.IsString)(),
27
+ (0, class_validator_1.MaxLength)(50),
28
+ __metadata("design:type", String)
29
+ ], CreateCollaboratorInvoiceDto.prototype, "invoiceNumber", void 0);
30
+ __decorate([
31
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
32
+ (0, class_validator_1.IsNumber)(),
33
+ (0, class_validator_1.Min)(0),
34
+ __metadata("design:type", Number)
35
+ ], CreateCollaboratorInvoiceDto.prototype, "amount", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsString)(),
38
+ __metadata("design:type", String)
39
+ ], CreateCollaboratorInvoiceDto.prototype, "issueDate", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsOptional)(),
42
+ (0, class_validator_1.IsString)(),
43
+ __metadata("design:type", String)
44
+ ], CreateCollaboratorInvoiceDto.prototype, "dueDate", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsOptional)(),
47
+ (0, class_validator_1.IsIn)(exports.INVOICE_STATUS_VALUES),
48
+ __metadata("design:type", String)
49
+ ], CreateCollaboratorInvoiceDto.prototype, "status", void 0);
50
+ __decorate([
51
+ (0, class_validator_1.IsOptional)(),
52
+ (0, class_validator_1.IsString)(),
53
+ __metadata("design:type", String)
54
+ ], CreateCollaboratorInvoiceDto.prototype, "description", void 0);
55
+ //# sourceMappingURL=create-collaborator-invoice.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-collaborator-invoice.dto.js","sourceRoot":"","sources":["../../src/dto/create-collaborator-invoice.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAAuF;AAE1E,QAAA,qBAAqB,GAAG;IACnC,SAAS;IACT,MAAM;IACN,WAAW;IACX,SAAS;CACD,CAAC;AAGX,MAAa,4BAA4B;CA2BxC;AA3BD,oEA2BC;AAvBC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;;mEACgB;AAO9B;IALC,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;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;4DACS;AAGhB;IADC,IAAA,0BAAQ,GAAE;;+DACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACa;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,6BAAqB,CAAC;;4DACL;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACiB"}
@@ -0,0 +1,10 @@
1
+ export declare const PAYMENT_METHOD_VALUES: readonly ["bank_transfer", "pix", "check", "other"];
2
+ export type PaymentMethod = (typeof PAYMENT_METHOD_VALUES)[number];
3
+ export declare class CreateCollaboratorPaymentDto {
4
+ amount: number;
5
+ paymentDate: string;
6
+ referenceMonth?: string | null;
7
+ paymentMethod?: PaymentMethod;
8
+ notes?: string | null;
9
+ }
10
+ //# sourceMappingURL=create-collaborator-payment.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-collaborator-payment.dto.d.ts","sourceRoot":"","sources":["../../src/dto/create-collaborator-payment.dto.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,qDAKxB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,qBAAa,4BAA4B;IAMvC,MAAM,EAAG,MAAM,CAAC;IAGhB,WAAW,EAAG,MAAM,CAAC;IAKrB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAI/B,aAAa,CAAC,EAAE,aAAa,CAAC;IAI9B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB"}
@@ -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.CreateCollaboratorPaymentDto = exports.PAYMENT_METHOD_VALUES = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ exports.PAYMENT_METHOD_VALUES = [
16
+ 'bank_transfer',
17
+ 'pix',
18
+ 'check',
19
+ 'other',
20
+ ];
21
+ class CreateCollaboratorPaymentDto {
22
+ }
23
+ exports.CreateCollaboratorPaymentDto = CreateCollaboratorPaymentDto;
24
+ __decorate([
25
+ (0, class_transformer_1.Transform)(({ value }) => value === '' || value === undefined || value === null ? undefined : Number(value)),
26
+ (0, class_validator_1.IsNumber)(),
27
+ (0, class_validator_1.Min)(0),
28
+ __metadata("design:type", Number)
29
+ ], CreateCollaboratorPaymentDto.prototype, "amount", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsString)(),
32
+ __metadata("design:type", String)
33
+ ], CreateCollaboratorPaymentDto.prototype, "paymentDate", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsOptional)(),
36
+ (0, class_validator_1.IsString)(),
37
+ (0, class_validator_1.MaxLength)(7),
38
+ __metadata("design:type", String)
39
+ ], CreateCollaboratorPaymentDto.prototype, "referenceMonth", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsOptional)(),
42
+ (0, class_validator_1.IsIn)(exports.PAYMENT_METHOD_VALUES),
43
+ __metadata("design:type", String)
44
+ ], CreateCollaboratorPaymentDto.prototype, "paymentMethod", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsOptional)(),
47
+ (0, class_validator_1.IsString)(),
48
+ __metadata("design:type", String)
49
+ ], CreateCollaboratorPaymentDto.prototype, "notes", void 0);
50
+ //# sourceMappingURL=create-collaborator-payment.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-collaborator-payment.dto.js","sourceRoot":"","sources":["../../src/dto/create-collaborator-payment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAAuF;AAE1E,QAAA,qBAAqB,GAAG;IACnC,eAAe;IACf,KAAK;IACL,OAAO;IACP,OAAO;CACC,CAAC;AAGX,MAAa,4BAA4B;CAuBxC;AAvBD,oEAuBC;AAjBC;IALC,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;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;4DACS;AAGhB;IADC,IAAA,0BAAQ,GAAE;;iEACU;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;;oEACkB;AAI/B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,6BAAqB,CAAC;;mEACE;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACW"}
@@ -0,0 +1,4 @@
1
+ import { PaginationDTO } from '@hed-hog/api-pagination';
2
+ export declare class ListCollaboratorInvoiceDto extends PaginationDTO {
3
+ }
4
+ //# sourceMappingURL=list-collaborator-invoice.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-collaborator-invoice.dto.d.ts","sourceRoot":"","sources":["../../src/dto/list-collaborator-invoice.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,qBAAa,0BAA2B,SAAQ,aAAa;CAAG"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListCollaboratorInvoiceDto = void 0;
4
+ const api_pagination_1 = require("@hed-hog/api-pagination");
5
+ class ListCollaboratorInvoiceDto extends api_pagination_1.PaginationDTO {
6
+ }
7
+ exports.ListCollaboratorInvoiceDto = ListCollaboratorInvoiceDto;
8
+ //# sourceMappingURL=list-collaborator-invoice.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-collaborator-invoice.dto.js","sourceRoot":"","sources":["../../src/dto/list-collaborator-invoice.dto.ts"],"names":[],"mappings":";;;AAAA,4DAAwD;AAExD,MAAa,0BAA2B,SAAQ,8BAAa;CAAG;AAAhE,gEAAgE"}
@@ -0,0 +1,4 @@
1
+ import { PaginationDTO } from '@hed-hog/api-pagination';
2
+ export declare class ListCollaboratorPaymentDto extends PaginationDTO {
3
+ }
4
+ //# sourceMappingURL=list-collaborator-payment.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-collaborator-payment.dto.d.ts","sourceRoot":"","sources":["../../src/dto/list-collaborator-payment.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,qBAAa,0BAA2B,SAAQ,aAAa;CAAG"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListCollaboratorPaymentDto = void 0;
4
+ const api_pagination_1 = require("@hed-hog/api-pagination");
5
+ class ListCollaboratorPaymentDto extends api_pagination_1.PaginationDTO {
6
+ }
7
+ exports.ListCollaboratorPaymentDto = ListCollaboratorPaymentDto;
8
+ //# sourceMappingURL=list-collaborator-payment.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-collaborator-payment.dto.js","sourceRoot":"","sources":["../../src/dto/list-collaborator-payment.dto.ts"],"names":[],"mappings":";;;AAAA,4DAAwD;AAExD,MAAa,0BAA2B,SAAQ,8BAAa;CAAG;AAAhE,gEAAgE"}
@@ -0,0 +1,6 @@
1
+ import { CreateCollaboratorInvoiceDto } from './create-collaborator-invoice.dto';
2
+ declare const UpdateCollaboratorInvoiceDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateCollaboratorInvoiceDto>>;
3
+ export declare class UpdateCollaboratorInvoiceDto extends UpdateCollaboratorInvoiceDto_base {
4
+ }
5
+ export {};
6
+ //# sourceMappingURL=update-collaborator-invoice.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-collaborator-invoice.dto.d.ts","sourceRoot":"","sources":["../../src/dto/update-collaborator-invoice.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;;AAEjF,qBAAa,4BAA6B,SAAQ,iCAEjD;CAAG"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateCollaboratorInvoiceDto = void 0;
4
+ const mapped_types_1 = require("@nestjs/mapped-types");
5
+ const create_collaborator_invoice_dto_1 = require("./create-collaborator-invoice.dto");
6
+ class UpdateCollaboratorInvoiceDto extends (0, mapped_types_1.PartialType)(create_collaborator_invoice_dto_1.CreateCollaboratorInvoiceDto) {
7
+ }
8
+ exports.UpdateCollaboratorInvoiceDto = UpdateCollaboratorInvoiceDto;
9
+ //# sourceMappingURL=update-collaborator-invoice.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-collaborator-invoice.dto.js","sourceRoot":"","sources":["../../src/dto/update-collaborator-invoice.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AACnD,uFAAiF;AAEjF,MAAa,4BAA6B,SAAQ,IAAA,0BAAW,EAC3D,8DAA4B,CAC7B;CAAG;AAFJ,oEAEI"}
@@ -0,0 +1,6 @@
1
+ import { CreateCollaboratorPaymentDto } from './create-collaborator-payment.dto';
2
+ declare const UpdateCollaboratorPaymentDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateCollaboratorPaymentDto>>;
3
+ export declare class UpdateCollaboratorPaymentDto extends UpdateCollaboratorPaymentDto_base {
4
+ }
5
+ export {};
6
+ //# sourceMappingURL=update-collaborator-payment.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-collaborator-payment.dto.d.ts","sourceRoot":"","sources":["../../src/dto/update-collaborator-payment.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;;AAEjF,qBAAa,4BAA6B,SAAQ,iCAEjD;CAAG"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateCollaboratorPaymentDto = void 0;
4
+ const mapped_types_1 = require("@nestjs/mapped-types");
5
+ const create_collaborator_payment_dto_1 = require("./create-collaborator-payment.dto");
6
+ class UpdateCollaboratorPaymentDto extends (0, mapped_types_1.PartialType)(create_collaborator_payment_dto_1.CreateCollaboratorPaymentDto) {
7
+ }
8
+ exports.UpdateCollaboratorPaymentDto = UpdateCollaboratorPaymentDto;
9
+ //# sourceMappingURL=update-collaborator-payment.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-collaborator-payment.dto.js","sourceRoot":"","sources":["../../src/dto/update-collaborator-payment.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AACnD,uFAAiF;AAEjF,MAAa,4BAA6B,SAAQ,IAAA,0BAAW,EAC3D,8DAA4B,CAC7B;CAAG;AAFJ,oEAEI"}
@@ -681,6 +681,82 @@ export declare class OperationsService {
681
681
  amountType: string;
682
682
  createdAt: string;
683
683
  }[]>;
684
+ getCollaboratorPaymentHistory(userId: number, collaboratorId: number): Promise<any>;
685
+ getCollaboratorInvoices(userId: number, collaboratorId: number): Promise<any>;
686
+ createCollaboratorPayment(userId: number, collaboratorId: number, data: {
687
+ amount: number;
688
+ paymentDate: string;
689
+ referenceMonth?: string | null;
690
+ paymentMethod?: string;
691
+ notes?: string | null;
692
+ }): Promise<{
693
+ id: any;
694
+ collaboratorId: any;
695
+ amount: any;
696
+ paymentDate: any;
697
+ referenceMonth: any;
698
+ paymentMethod: any;
699
+ notes: any;
700
+ createdAt: any;
701
+ }>;
702
+ updateCollaboratorPayment(userId: number, collaboratorId: number, paymentId: number, data: Partial<{
703
+ amount: number;
704
+ paymentDate: string;
705
+ referenceMonth: string | null;
706
+ paymentMethod: string;
707
+ notes: string | null;
708
+ }>): Promise<{
709
+ id: any;
710
+ collaboratorId: any;
711
+ amount: any;
712
+ paymentDate: any;
713
+ referenceMonth: any;
714
+ paymentMethod: any;
715
+ notes: any;
716
+ createdAt: any;
717
+ }>;
718
+ deleteCollaboratorPayment(userId: number, collaboratorId: number, paymentId: number): Promise<{
719
+ success: boolean;
720
+ }>;
721
+ createCollaboratorInvoice(userId: number, collaboratorId: number, data: {
722
+ invoiceNumber?: string | null;
723
+ amount: number;
724
+ issueDate: string;
725
+ dueDate?: string | null;
726
+ status?: string;
727
+ description?: string | null;
728
+ }): Promise<{
729
+ id: any;
730
+ collaboratorId: any;
731
+ invoiceNumber: any;
732
+ amount: any;
733
+ issueDate: any;
734
+ dueDate: any;
735
+ status: any;
736
+ description: any;
737
+ createdAt: any;
738
+ }>;
739
+ updateCollaboratorInvoice(userId: number, collaboratorId: number, invoiceId: number, data: Partial<{
740
+ invoiceNumber: string | null;
741
+ amount: number;
742
+ issueDate: string;
743
+ dueDate: string | null;
744
+ status: string;
745
+ description: string | null;
746
+ }>): Promise<{
747
+ id: any;
748
+ collaboratorId: any;
749
+ invoiceNumber: any;
750
+ amount: any;
751
+ issueDate: any;
752
+ dueDate: any;
753
+ status: any;
754
+ description: any;
755
+ createdAt: any;
756
+ }>;
757
+ deleteCollaboratorInvoice(userId: number, collaboratorId: number, invoiceId: number): Promise<{
758
+ success: boolean;
759
+ }>;
684
760
  listDepartments(userId: number, filters?: {
685
761
  page?: number;
686
762
  pageSize?: number;