@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.
- package/dist/controllers/operations-collaborators.controller.d.ts +0 -54
- package/dist/controllers/operations-collaborators.controller.d.ts.map +1 -1
- package/dist/controllers/operations-collaborators.controller.js +0 -100
- package/dist/controllers/operations-collaborators.controller.js.map +1 -1
- package/dist/controllers/operations-contracts.controller.d.ts +12 -12
- package/dist/operations.service.d.ts +0 -76
- package/dist/operations.service.d.ts.map +1 -1
- package/dist/operations.service.js +7 -230
- package/dist/operations.service.js.map +1 -1
- package/dist/operations.service.spec.js +6 -0
- package/dist/operations.service.spec.js.map +1 -1
- package/hedhog/data/menu.yaml +8 -27
- package/hedhog/data/route.yaml +0 -72
- package/hedhog/frontend/app/_components/collaborator-details-screen.tsx.ejs +476 -0
- package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +3 -39
- package/hedhog/frontend/app/_components/collaborator-select-with-create.tsx.ejs +261 -0
- package/hedhog/frontend/app/_components/collaborator-tasks-tab.tsx.ejs +358 -358
- package/hedhog/frontend/app/_components/collaborator-timesheets-tab.tsx.ejs +6 -6
- package/hedhog/frontend/app/_components/contract-content-editor.tsx.ejs +258 -0
- package/hedhog/frontend/app/_components/my-project-summary-screen.tsx.ejs +5 -4
- package/hedhog/frontend/app/_components/person-select-with-create.tsx.ejs +1 -0
- package/hedhog/frontend/app/_components/project-assignments-tab.tsx.ejs +10 -218
- package/hedhog/frontend/app/_components/project-cost-report-screen.tsx.ejs +23 -23
- package/hedhog/frontend/app/_components/project-details-screen.tsx.ejs +24 -708
- package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +38 -158
- package/hedhog/frontend/app/_components/task-detail-sheet.tsx.ejs +1 -5
- package/hedhog/frontend/app/_components/task-form-sheet.tsx.ejs +629 -629
- package/hedhog/frontend/app/_lib/api.ts.ejs +0 -151
- package/hedhog/frontend/app/_lib/types.ts.ejs +0 -1
- package/hedhog/frontend/app/_lib/utils/task-ui.ts.ejs +0 -18
- package/hedhog/frontend/app/my-projects/page.tsx.ejs +2 -16
- package/hedhog/frontend/app/my-tasks/page.tsx.ejs +86 -24
- package/hedhog/frontend/app/projects/page.tsx.ejs +6 -42
- package/hedhog/frontend/messages/en.json +2 -96
- package/hedhog/frontend/messages/operations/operations/en.json +2100 -0
- package/hedhog/frontend/messages/operations/operations/pt.json +2111 -0
- package/hedhog/frontend/messages/pt.json +2 -96
- package/hedhog/frontend/widgets/capacity-distribution.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/effort-by-project.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/headcount-by-area.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/index.ts.ejs +25 -25
- package/hedhog/frontend/widgets/managed-projects-status.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/my-hours-period-kpi.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/my-open-requests-kpi.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/my-pending-requests-list.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/my-project-allocations-kpi.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/my-quick-actions.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/my-relevant-deadlines.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/my-timesheet-status-kpi.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/my-weekly-journey.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/portfolio-costs-kpi.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/portfolio-effort-kpi.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/portfolio-projects-kpi.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/portfolio-risk-kpi.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/project-status-overview.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/shared-operations-widget.tsx.ejs +169 -169
- package/hedhog/frontend/widgets/strategic-deadlines.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/team-approval-queue.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/team-capacity-kpi.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/team-headcount-kpi.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/team-hours-kpi.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/team-pending-approvals-kpi.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/team-utilization-overview.tsx.ejs +16 -16
- package/hedhog/frontend/widgets/team-workload-alerts.tsx.ejs +16 -16
- package/hedhog/table/operations_collaborator.yaml +8 -8
- package/hedhog/table/operations_task.yaml +76 -76
- package/hedhog/table/operations_task_activity.yaml +51 -51
- package/package.json +6 -6
- package/src/controllers/operations-collaborators.controller.ts +8 -117
- package/src/controllers/operations-tasks.controller.ts +156 -156
- package/src/dashboard/widgets/MyQuickActions.tsx +22 -22
- package/src/dto/create-collaborator.dto.ts +4 -4
- package/src/operations.service.spec.ts +1006 -988
- package/src/operations.service.ts +7 -323
- package/dist/dto/create-collaborator-invoice.dto.d.ts +0 -11
- package/dist/dto/create-collaborator-invoice.dto.d.ts.map +0 -1
- package/dist/dto/create-collaborator-invoice.dto.js +0 -55
- package/dist/dto/create-collaborator-invoice.dto.js.map +0 -1
- package/dist/dto/create-collaborator-payment.dto.d.ts +0 -10
- package/dist/dto/create-collaborator-payment.dto.d.ts.map +0 -1
- package/dist/dto/create-collaborator-payment.dto.js +0 -50
- package/dist/dto/create-collaborator-payment.dto.js.map +0 -1
- package/dist/dto/list-collaborator-invoice.dto.d.ts +0 -4
- package/dist/dto/list-collaborator-invoice.dto.d.ts.map +0 -1
- package/dist/dto/list-collaborator-invoice.dto.js +0 -8
- package/dist/dto/list-collaborator-invoice.dto.js.map +0 -1
- package/dist/dto/list-collaborator-payment.dto.d.ts +0 -4
- package/dist/dto/list-collaborator-payment.dto.d.ts.map +0 -1
- package/dist/dto/list-collaborator-payment.dto.js +0 -8
- package/dist/dto/list-collaborator-payment.dto.js.map +0 -1
- package/dist/dto/update-collaborator-invoice.dto.d.ts +0 -6
- package/dist/dto/update-collaborator-invoice.dto.d.ts.map +0 -1
- package/dist/dto/update-collaborator-invoice.dto.js +0 -9
- package/dist/dto/update-collaborator-invoice.dto.js.map +0 -1
- package/dist/dto/update-collaborator-payment.dto.d.ts +0 -6
- package/dist/dto/update-collaborator-payment.dto.d.ts.map +0 -1
- package/dist/dto/update-collaborator-payment.dto.js +0 -9
- package/dist/dto/update-collaborator-payment.dto.js.map +0 -1
- package/hedhog/frontend/app/_components/collaborator-invoices-tab.tsx.ejs +0 -443
- package/hedhog/frontend/app/_components/collaborator-payment-history-tab.tsx.ejs +0 -429
- package/hedhog/frontend/app/tasks-gantt/page.tsx.ejs +0 -953
- package/hedhog/table/operations_collaborator_invoice.yaml +0 -35
- package/hedhog/table/operations_collaborator_payment.yaml +0 -32
- package/src/dto/create-collaborator-invoice.dto.ts +0 -39
- package/src/dto/create-collaborator-payment.dto.ts +0 -35
- package/src/dto/list-collaborator-invoice.dto.ts +0 -3
- package/src/dto/list-collaborator-payment.dto.ts +0 -3
- package/src/dto/update-collaborator-invoice.dto.ts +0 -6
- 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
|
-
}
|