@hed-hog/operations 0.0.332 → 0.0.338

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 (109) hide show
  1. package/dist/controllers/operations-collaborators.controller.d.ts +0 -54
  2. package/dist/controllers/operations-collaborators.controller.d.ts.map +1 -1
  3. package/dist/controllers/operations-collaborators.controller.js +0 -100
  4. package/dist/controllers/operations-collaborators.controller.js.map +1 -1
  5. package/dist/controllers/operations-contracts.controller.d.ts +12 -12
  6. package/dist/operations.service.d.ts +0 -76
  7. package/dist/operations.service.d.ts.map +1 -1
  8. package/dist/operations.service.js +7 -230
  9. package/dist/operations.service.js.map +1 -1
  10. package/dist/operations.service.spec.js +6 -0
  11. package/dist/operations.service.spec.js.map +1 -1
  12. package/hedhog/data/menu.yaml +8 -27
  13. package/hedhog/data/route.yaml +0 -72
  14. package/hedhog/frontend/app/_components/collaborator-details-screen.tsx.ejs +476 -0
  15. package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +3 -39
  16. package/hedhog/frontend/app/_components/collaborator-select-with-create.tsx.ejs +261 -0
  17. package/hedhog/frontend/app/_components/collaborator-tasks-tab.tsx.ejs +358 -358
  18. package/hedhog/frontend/app/_components/collaborator-timesheets-tab.tsx.ejs +6 -6
  19. package/hedhog/frontend/app/_components/contract-content-editor.tsx.ejs +258 -0
  20. package/hedhog/frontend/app/_components/my-project-summary-screen.tsx.ejs +5 -4
  21. package/hedhog/frontend/app/_components/person-select-with-create.tsx.ejs +1 -0
  22. package/hedhog/frontend/app/_components/project-assignments-tab.tsx.ejs +10 -218
  23. package/hedhog/frontend/app/_components/project-cost-report-screen.tsx.ejs +23 -23
  24. package/hedhog/frontend/app/_components/project-details-screen.tsx.ejs +24 -708
  25. package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +38 -158
  26. package/hedhog/frontend/app/_components/task-detail-sheet.tsx.ejs +1 -5
  27. package/hedhog/frontend/app/_components/task-form-sheet.tsx.ejs +629 -629
  28. package/hedhog/frontend/app/_lib/api.ts.ejs +0 -151
  29. package/hedhog/frontend/app/_lib/types.ts.ejs +0 -1
  30. package/hedhog/frontend/app/_lib/utils/task-ui.ts.ejs +0 -18
  31. package/hedhog/frontend/app/my-projects/page.tsx.ejs +2 -16
  32. package/hedhog/frontend/app/my-tasks/page.tsx.ejs +86 -24
  33. package/hedhog/frontend/app/projects/page.tsx.ejs +6 -42
  34. package/hedhog/frontend/messages/en.json +2 -96
  35. package/hedhog/frontend/messages/operations/operations/en.json +2100 -0
  36. package/hedhog/frontend/messages/operations/operations/pt.json +2111 -0
  37. package/hedhog/frontend/messages/pt.json +2 -96
  38. package/hedhog/frontend/widgets/capacity-distribution.tsx.ejs +16 -16
  39. package/hedhog/frontend/widgets/effort-by-project.tsx.ejs +16 -16
  40. package/hedhog/frontend/widgets/headcount-by-area.tsx.ejs +16 -16
  41. package/hedhog/frontend/widgets/index.ts.ejs +25 -25
  42. package/hedhog/frontend/widgets/managed-projects-status.tsx.ejs +16 -16
  43. package/hedhog/frontend/widgets/my-hours-period-kpi.tsx.ejs +16 -16
  44. package/hedhog/frontend/widgets/my-open-requests-kpi.tsx.ejs +16 -16
  45. package/hedhog/frontend/widgets/my-pending-requests-list.tsx.ejs +16 -16
  46. package/hedhog/frontend/widgets/my-project-allocations-kpi.tsx.ejs +16 -16
  47. package/hedhog/frontend/widgets/my-quick-actions.tsx.ejs +16 -16
  48. package/hedhog/frontend/widgets/my-relevant-deadlines.tsx.ejs +16 -16
  49. package/hedhog/frontend/widgets/my-timesheet-status-kpi.tsx.ejs +16 -16
  50. package/hedhog/frontend/widgets/my-weekly-journey.tsx.ejs +16 -16
  51. package/hedhog/frontend/widgets/portfolio-costs-kpi.tsx.ejs +16 -16
  52. package/hedhog/frontend/widgets/portfolio-effort-kpi.tsx.ejs +16 -16
  53. package/hedhog/frontend/widgets/portfolio-projects-kpi.tsx.ejs +16 -16
  54. package/hedhog/frontend/widgets/portfolio-risk-kpi.tsx.ejs +16 -16
  55. package/hedhog/frontend/widgets/project-status-overview.tsx.ejs +16 -16
  56. package/hedhog/frontend/widgets/shared-operations-widget.tsx.ejs +169 -169
  57. package/hedhog/frontend/widgets/strategic-deadlines.tsx.ejs +16 -16
  58. package/hedhog/frontend/widgets/team-approval-queue.tsx.ejs +16 -16
  59. package/hedhog/frontend/widgets/team-capacity-kpi.tsx.ejs +16 -16
  60. package/hedhog/frontend/widgets/team-headcount-kpi.tsx.ejs +16 -16
  61. package/hedhog/frontend/widgets/team-hours-kpi.tsx.ejs +16 -16
  62. package/hedhog/frontend/widgets/team-pending-approvals-kpi.tsx.ejs +16 -16
  63. package/hedhog/frontend/widgets/team-utilization-overview.tsx.ejs +16 -16
  64. package/hedhog/frontend/widgets/team-workload-alerts.tsx.ejs +16 -16
  65. package/hedhog/table/operations_collaborator.yaml +8 -8
  66. package/hedhog/table/operations_task.yaml +76 -76
  67. package/hedhog/table/operations_task_activity.yaml +51 -51
  68. package/package.json +6 -6
  69. package/src/controllers/operations-collaborators.controller.ts +8 -117
  70. package/src/controllers/operations-tasks.controller.ts +156 -156
  71. package/src/dashboard/widgets/MyQuickActions.tsx +22 -22
  72. package/src/dto/create-collaborator.dto.ts +4 -4
  73. package/src/operations.service.spec.ts +1006 -988
  74. package/src/operations.service.ts +7 -323
  75. package/dist/dto/create-collaborator-invoice.dto.d.ts +0 -11
  76. package/dist/dto/create-collaborator-invoice.dto.d.ts.map +0 -1
  77. package/dist/dto/create-collaborator-invoice.dto.js +0 -55
  78. package/dist/dto/create-collaborator-invoice.dto.js.map +0 -1
  79. package/dist/dto/create-collaborator-payment.dto.d.ts +0 -10
  80. package/dist/dto/create-collaborator-payment.dto.d.ts.map +0 -1
  81. package/dist/dto/create-collaborator-payment.dto.js +0 -50
  82. package/dist/dto/create-collaborator-payment.dto.js.map +0 -1
  83. package/dist/dto/list-collaborator-invoice.dto.d.ts +0 -4
  84. package/dist/dto/list-collaborator-invoice.dto.d.ts.map +0 -1
  85. package/dist/dto/list-collaborator-invoice.dto.js +0 -8
  86. package/dist/dto/list-collaborator-invoice.dto.js.map +0 -1
  87. package/dist/dto/list-collaborator-payment.dto.d.ts +0 -4
  88. package/dist/dto/list-collaborator-payment.dto.d.ts.map +0 -1
  89. package/dist/dto/list-collaborator-payment.dto.js +0 -8
  90. package/dist/dto/list-collaborator-payment.dto.js.map +0 -1
  91. package/dist/dto/update-collaborator-invoice.dto.d.ts +0 -6
  92. package/dist/dto/update-collaborator-invoice.dto.d.ts.map +0 -1
  93. package/dist/dto/update-collaborator-invoice.dto.js +0 -9
  94. package/dist/dto/update-collaborator-invoice.dto.js.map +0 -1
  95. package/dist/dto/update-collaborator-payment.dto.d.ts +0 -6
  96. package/dist/dto/update-collaborator-payment.dto.d.ts.map +0 -1
  97. package/dist/dto/update-collaborator-payment.dto.js +0 -9
  98. package/dist/dto/update-collaborator-payment.dto.js.map +0 -1
  99. package/hedhog/frontend/app/_components/collaborator-invoices-tab.tsx.ejs +0 -443
  100. package/hedhog/frontend/app/_components/collaborator-payment-history-tab.tsx.ejs +0 -429
  101. package/hedhog/frontend/app/tasks-gantt/page.tsx.ejs +0 -953
  102. package/hedhog/table/operations_collaborator_invoice.yaml +0 -35
  103. package/hedhog/table/operations_collaborator_payment.yaml +0 -32
  104. package/src/dto/create-collaborator-invoice.dto.ts +0 -39
  105. package/src/dto/create-collaborator-payment.dto.ts +0 -35
  106. package/src/dto/list-collaborator-invoice.dto.ts +0 -3
  107. package/src/dto/list-collaborator-payment.dto.ts +0 -3
  108. package/src/dto/update-collaborator-invoice.dto.ts +0 -6
  109. package/src/dto/update-collaborator-payment.dto.ts +0 -6
@@ -1,35 +0,0 @@
1
- columns:
2
- - type: pk
3
- - name: collaborator_id
4
- type: fk
5
- references:
6
- table: operations_collaborator
7
- column: id
8
- onDelete: CASCADE
9
- onUpdate: CASCADE
10
- - name: invoice_number
11
- type: varchar
12
- length: 50
13
- isNullable: true
14
- - name: amount
15
- type: decimal
16
- precision: 14
17
- scale: 2
18
- - name: issue_date
19
- type: date
20
- - name: due_date
21
- type: date
22
- isNullable: true
23
- - name: status
24
- type: enum
25
- values: [pending, paid, cancelled, overdue]
26
- default: pending
27
- - name: description
28
- type: text
29
- isNullable: true
30
- - type: created_at
31
-
32
- indices:
33
- - columns: [collaborator_id]
34
- - columns: [issue_date]
35
- - columns: [status]
@@ -1,32 +0,0 @@
1
- columns:
2
- - type: pk
3
- - name: collaborator_id
4
- type: fk
5
- references:
6
- table: operations_collaborator
7
- column: id
8
- onDelete: CASCADE
9
- onUpdate: CASCADE
10
- - name: amount
11
- type: decimal
12
- precision: 14
13
- scale: 2
14
- - name: payment_date
15
- type: date
16
- - name: reference_month
17
- type: varchar
18
- length: 7
19
- isNullable: true
20
- - name: payment_method
21
- type: enum
22
- values: [bank_transfer, pix, check, other]
23
- default: pix
24
- - name: notes
25
- type: text
26
- isNullable: true
27
- - type: created_at
28
-
29
- indices:
30
- - columns: [collaborator_id]
31
- - columns: [payment_date]
32
- - columns: [reference_month]
@@ -1,39 +0,0 @@
1
- import { Transform } from 'class-transformer';
2
- import { IsIn, IsNumber, IsOptional, IsString, MaxLength, Min } from 'class-validator';
3
-
4
- export const INVOICE_STATUS_VALUES = [
5
- 'pending',
6
- 'paid',
7
- 'cancelled',
8
- 'overdue',
9
- ] as const;
10
- export type InvoiceStatus = (typeof INVOICE_STATUS_VALUES)[number];
11
-
12
- export class CreateCollaboratorInvoiceDto {
13
- @IsOptional()
14
- @IsString()
15
- @MaxLength(50)
16
- invoiceNumber?: string | null;
17
-
18
- @Transform(({ value }) =>
19
- value === '' || value === undefined || value === null ? undefined : Number(value),
20
- )
21
- @IsNumber()
22
- @Min(0)
23
- amount!: number;
24
-
25
- @IsString()
26
- issueDate!: string;
27
-
28
- @IsOptional()
29
- @IsString()
30
- dueDate?: string | null;
31
-
32
- @IsOptional()
33
- @IsIn(INVOICE_STATUS_VALUES)
34
- status?: InvoiceStatus;
35
-
36
- @IsOptional()
37
- @IsString()
38
- description?: string | null;
39
- }
@@ -1,35 +0,0 @@
1
- import { Transform } from 'class-transformer';
2
- import { IsIn, IsNumber, IsOptional, IsString, MaxLength, Min } from 'class-validator';
3
-
4
- export const PAYMENT_METHOD_VALUES = [
5
- 'bank_transfer',
6
- 'pix',
7
- 'check',
8
- 'other',
9
- ] as const;
10
- export type PaymentMethod = (typeof PAYMENT_METHOD_VALUES)[number];
11
-
12
- export class CreateCollaboratorPaymentDto {
13
- @Transform(({ value }) =>
14
- value === '' || value === undefined || value === null ? undefined : Number(value),
15
- )
16
- @IsNumber()
17
- @Min(0)
18
- amount!: number;
19
-
20
- @IsString()
21
- paymentDate!: string;
22
-
23
- @IsOptional()
24
- @IsString()
25
- @MaxLength(7)
26
- referenceMonth?: string | null;
27
-
28
- @IsOptional()
29
- @IsIn(PAYMENT_METHOD_VALUES)
30
- paymentMethod?: PaymentMethod;
31
-
32
- @IsOptional()
33
- @IsString()
34
- notes?: string | null;
35
- }
@@ -1,3 +0,0 @@
1
- import { PaginationDTO } from '@hed-hog/api-pagination';
2
-
3
- export class ListCollaboratorInvoiceDto extends PaginationDTO {}
@@ -1,3 +0,0 @@
1
- import { PaginationDTO } from '@hed-hog/api-pagination';
2
-
3
- export class ListCollaboratorPaymentDto extends PaginationDTO {}
@@ -1,6 +0,0 @@
1
- import { PartialType } from '@nestjs/mapped-types';
2
- import { CreateCollaboratorInvoiceDto } from './create-collaborator-invoice.dto';
3
-
4
- export class UpdateCollaboratorInvoiceDto extends PartialType(
5
- CreateCollaboratorInvoiceDto,
6
- ) {}
@@ -1,6 +0,0 @@
1
- import { PartialType } from '@nestjs/mapped-types';
2
- import { CreateCollaboratorPaymentDto } from './create-collaborator-payment.dto';
3
-
4
- export class UpdateCollaboratorPaymentDto extends PartialType(
5
- CreateCollaboratorPaymentDto,
6
- ) {}