@hed-hog/operations 0.0.306 → 0.0.309
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-approvals.controller.d.ts +114 -1
- package/dist/controllers/operations-approvals.controller.d.ts.map +1 -1
- package/dist/controllers/operations-approvals.controller.js +16 -3
- package/dist/controllers/operations-approvals.controller.js.map +1 -1
- package/dist/controllers/operations-collaborators.controller.d.ts +16 -1
- package/dist/controllers/operations-collaborators.controller.d.ts.map +1 -1
- package/dist/controllers/operations-collaborators.controller.js +16 -3
- package/dist/controllers/operations-collaborators.controller.js.map +1 -1
- package/dist/controllers/operations-contracts.controller.d.ts +14 -453
- package/dist/controllers/operations-contracts.controller.d.ts.map +1 -1
- package/dist/controllers/operations-contracts.controller.js +11 -112
- package/dist/controllers/operations-contracts.controller.js.map +1 -1
- package/dist/controllers/operations-org-structure.controller.d.ts +65 -2
- package/dist/controllers/operations-org-structure.controller.d.ts.map +1 -1
- package/dist/controllers/operations-org-structure.controller.js +18 -5
- package/dist/controllers/operations-org-structure.controller.js.map +1 -1
- package/dist/controllers/operations-projects.controller.d.ts +28 -4
- package/dist/controllers/operations-projects.controller.d.ts.map +1 -1
- package/dist/controllers/operations-projects.controller.js +17 -5
- package/dist/controllers/operations-projects.controller.js.map +1 -1
- package/dist/controllers/operations-timesheets.controller.d.ts +31 -4
- package/dist/controllers/operations-timesheets.controller.d.ts.map +1 -1
- package/dist/controllers/operations-timesheets.controller.js +16 -11
- package/dist/controllers/operations-timesheets.controller.js.map +1 -1
- package/dist/dto/list-approvals.dto.d.ts +6 -0
- package/dist/dto/list-approvals.dto.d.ts.map +1 -0
- package/dist/dto/list-approvals.dto.js +28 -0
- package/dist/dto/list-approvals.dto.js.map +1 -0
- package/dist/dto/list-collaborator-types.dto.d.ts +3 -1
- package/dist/dto/list-collaborator-types.dto.d.ts.map +1 -1
- package/dist/dto/list-collaborator-types.dto.js +7 -1
- package/dist/dto/list-collaborator-types.dto.js.map +1 -1
- package/dist/dto/list-collaborators.dto.d.ts +1 -0
- package/dist/dto/list-collaborators.dto.d.ts.map +1 -1
- package/dist/dto/list-collaborators.dto.js +5 -0
- package/dist/dto/list-collaborators.dto.js.map +1 -1
- package/dist/dto/list-contracts.dto.d.ts +8 -0
- package/dist/dto/list-contracts.dto.d.ts.map +1 -0
- package/dist/dto/list-contracts.dto.js +38 -0
- package/dist/dto/list-contracts.dto.js.map +1 -0
- package/dist/dto/list-departments.dto.d.ts +5 -0
- package/dist/dto/list-departments.dto.d.ts.map +1 -0
- package/dist/dto/list-departments.dto.js +23 -0
- package/dist/dto/list-departments.dto.js.map +1 -0
- package/dist/dto/list-projects.dto.d.ts +5 -0
- package/dist/dto/list-projects.dto.d.ts.map +1 -0
- package/dist/dto/list-projects.dto.js +23 -0
- package/dist/dto/list-projects.dto.js.map +1 -0
- package/dist/dto/list-schedule-adjustments.dto.d.ts +5 -0
- package/dist/dto/list-schedule-adjustments.dto.d.ts.map +1 -0
- package/dist/dto/list-schedule-adjustments.dto.js +23 -0
- package/dist/dto/list-schedule-adjustments.dto.js.map +1 -0
- package/dist/dto/list-time-off-requests.dto.d.ts +5 -0
- package/dist/dto/list-time-off-requests.dto.d.ts.map +1 -0
- package/dist/dto/list-time-off-requests.dto.js +23 -0
- package/dist/dto/list-time-off-requests.dto.js.map +1 -0
- package/dist/dto/list-timesheets.dto.d.ts +5 -0
- package/dist/dto/list-timesheets.dto.d.ts.map +1 -0
- package/dist/dto/list-timesheets.dto.js +23 -0
- package/dist/dto/list-timesheets.dto.js.map +1 -0
- package/dist/dto/reorder-collaborator-types.dto.d.ts +4 -0
- package/dist/dto/reorder-collaborator-types.dto.d.ts.map +1 -0
- package/dist/dto/reorder-collaborator-types.dto.js +25 -0
- package/dist/dto/reorder-collaborator-types.dto.js.map +1 -0
- package/dist/operations.service.d.ts +340 -271
- package/dist/operations.service.d.ts.map +1 -1
- package/dist/operations.service.js +1007 -1043
- package/dist/operations.service.js.map +1 -1
- package/dist/operations.service.spec.js +0 -22
- package/dist/operations.service.spec.js.map +1 -1
- package/hedhog/data/menu.yaml +0 -36
- package/hedhog/data/route.yaml +42 -73
- package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +8 -1
- package/hedhog/frontend/app/_components/collaborator-select-with-create.tsx.ejs +15 -10
- package/hedhog/frontend/app/_components/contract-details-screen.tsx.ejs +108 -213
- package/hedhog/frontend/app/_components/contract-form-screen.tsx.ejs +251 -2039
- package/hedhog/frontend/app/_components/project-details-screen.tsx.ejs +167 -60
- package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +70 -301
- package/hedhog/frontend/app/_components/system-user-select-with-create.tsx.ejs +102 -51
- package/hedhog/frontend/app/_lib/types.ts.ejs +19 -24
- package/hedhog/frontend/app/_lib/utils/format.ts.ejs +14 -9
- package/hedhog/frontend/app/approvals/page.tsx.ejs +842 -150
- package/hedhog/frontend/app/collaborator-types/page.tsx.ejs +445 -153
- package/hedhog/frontend/app/collaborators/page.tsx.ejs +118 -49
- package/hedhog/frontend/app/contracts/[id]/page.tsx.ejs +2 -2
- package/hedhog/frontend/app/contracts/page.tsx.ejs +215 -617
- package/hedhog/frontend/app/departments/page.tsx.ejs +257 -113
- package/hedhog/frontend/app/projects/page.tsx.ejs +90 -51
- package/hedhog/frontend/app/schedule-adjustments/page.tsx.ejs +412 -147
- package/hedhog/frontend/app/time-off/page.tsx.ejs +400 -123
- package/hedhog/frontend/app/timesheets/page.tsx.ejs +460 -365
- package/hedhog/frontend/messages/en.json +143 -14
- package/hedhog/frontend/messages/pt.json +192 -54
- package/hedhog/table/operations_contract.yaml +0 -9
- package/package.json +5 -5
- package/src/controllers/operations-approvals.controller.ts +9 -3
- package/src/controllers/operations-collaborators.controller.ts +15 -2
- package/src/controllers/operations-contracts.controller.ts +8 -92
- package/src/controllers/operations-org-structure.controller.ts +17 -4
- package/src/controllers/operations-projects.controller.ts +10 -4
- package/src/controllers/operations-timesheets.controller.ts +17 -8
- package/src/dto/list-approvals.dto.ts +12 -0
- package/src/dto/list-collaborator-types.dto.ts +7 -2
- package/src/dto/list-collaborators.dto.ts +4 -0
- package/src/dto/list-contracts.dto.ts +20 -0
- package/src/dto/list-departments.dto.ts +8 -0
- package/src/dto/list-projects.dto.ts +8 -0
- package/src/dto/list-schedule-adjustments.dto.ts +8 -0
- package/src/dto/list-time-off-requests.dto.ts +8 -0
- package/src/dto/list-timesheets.dto.ts +8 -0
- package/src/dto/reorder-collaborator-types.dto.ts +10 -0
- package/src/operations.service.spec.ts +0 -30
- package/src/operations.service.ts +1557 -1806
- package/hedhog/frontend/app/_components/contract-creation-wizard.tsx.ejs +0 -631
- package/hedhog/frontend/app/_components/contract-template-form-screen.tsx.ejs +0 -526
- package/hedhog/frontend/app/_components/contract-template-select-with-create.tsx.ejs +0 -247
- package/hedhog/frontend/app/_components/contract-wizard-sheet.tsx.ejs +0 -3520
- package/hedhog/frontend/app/contracts/templates/page.tsx.ejs +0 -380
- package/hedhog/frontend/app/team/page.tsx.ejs +0 -352
- package/hedhog/table/operations_contract_financial_term.yaml +0 -40
- package/hedhog/table/operations_contract_revision.yaml +0 -38
- package/hedhog/table/operations_contract_signature.yaml +0 -38
- package/hedhog/table/operations_contract_template.yaml +0 -58
|
@@ -1,60 +1,23 @@
|
|
|
1
|
+
import { ListContractsDto } from '../dto/list-contracts.dto';
|
|
1
2
|
import { OperationsService } from '../operations.service';
|
|
2
3
|
export declare class OperationsContractsController {
|
|
3
4
|
private readonly operationsService;
|
|
4
5
|
constructor(operationsService: OperationsService);
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
contractType: string | null;
|
|
14
|
-
billingModel: string | null;
|
|
15
|
-
signatureStatus: string | null;
|
|
16
|
-
isActive: boolean;
|
|
17
|
-
status: string | null;
|
|
18
|
-
contentHtml: string | null;
|
|
19
|
-
usageCount: number;
|
|
20
|
-
createdAt: Date;
|
|
21
|
-
updatedAt: Date;
|
|
6
|
+
listContracts(user: any, filters: ListContractsDto): Promise<Record<string, unknown>[] | {
|
|
7
|
+
total: number;
|
|
8
|
+
lastPage: number;
|
|
9
|
+
page: number;
|
|
10
|
+
pageSize: number;
|
|
11
|
+
prev: number;
|
|
12
|
+
next: number;
|
|
13
|
+
data: Record<string, unknown>[];
|
|
22
14
|
}>;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
description: string | null;
|
|
29
|
-
contractCategory: string | null;
|
|
30
|
-
contractType: string | null;
|
|
31
|
-
billingModel: string | null;
|
|
32
|
-
signatureStatus: string | null;
|
|
33
|
-
isActive: boolean;
|
|
34
|
-
status: string | null;
|
|
35
|
-
contentHtml: string | null;
|
|
36
|
-
usageCount: number;
|
|
37
|
-
createdAt: Date;
|
|
38
|
-
updatedAt: Date;
|
|
39
|
-
}>;
|
|
40
|
-
updateContractTemplate(user: any, id: number, data: any): Promise<{
|
|
41
|
-
id: number;
|
|
42
|
-
slug: string;
|
|
43
|
-
code: string | null;
|
|
44
|
-
name: string;
|
|
45
|
-
description: string | null;
|
|
46
|
-
contractCategory: string | null;
|
|
47
|
-
contractType: string | null;
|
|
48
|
-
billingModel: string | null;
|
|
49
|
-
signatureStatus: string | null;
|
|
50
|
-
isActive: boolean;
|
|
51
|
-
status: string | null;
|
|
52
|
-
contentHtml: string | null;
|
|
53
|
-
usageCount: number;
|
|
54
|
-
createdAt: Date;
|
|
55
|
-
updatedAt: Date;
|
|
15
|
+
getContractStats(user: any): Promise<{
|
|
16
|
+
total: number;
|
|
17
|
+
active: number;
|
|
18
|
+
inactive: number;
|
|
19
|
+
withFile: number;
|
|
56
20
|
}>;
|
|
57
|
-
listContracts(user: any): Promise<Record<string, unknown>[]>;
|
|
58
21
|
getContract(user: any, id: number): Promise<{
|
|
59
22
|
id: number;
|
|
60
23
|
code: string;
|
|
@@ -67,10 +30,6 @@ export declare class OperationsContractsController {
|
|
|
67
30
|
billingModel: "time_and_material" | "monthly_retainer" | "fixed_price";
|
|
68
31
|
accountManagerCollaboratorId: number | null;
|
|
69
32
|
relatedCollaboratorId: number | null;
|
|
70
|
-
contractTemplateId: number | null;
|
|
71
|
-
contractTemplateName: string | null;
|
|
72
|
-
contractTemplateSlug: string | null;
|
|
73
|
-
contractTemplateCode: string | null;
|
|
74
33
|
originType: "manual" | "employee_hiring" | "client_project" | "crm_proposal";
|
|
75
34
|
originId: number | null;
|
|
76
35
|
startDate: string | null;
|
|
@@ -110,21 +69,6 @@ export declare class OperationsContractsController {
|
|
|
110
69
|
phone?: string | null;
|
|
111
70
|
isPrimary?: boolean;
|
|
112
71
|
}[]>;
|
|
113
|
-
signatures: NonNullable<{
|
|
114
|
-
signerName: string;
|
|
115
|
-
signerRole?: string | null;
|
|
116
|
-
signerEmail?: string | null;
|
|
117
|
-
status?: "pending" | "signed" | "rejected";
|
|
118
|
-
signedAt?: string | null;
|
|
119
|
-
}[]>;
|
|
120
|
-
financialTerms: NonNullable<{
|
|
121
|
-
termType?: "value" | "payment" | "revenue" | "fine" | "other";
|
|
122
|
-
label: string;
|
|
123
|
-
amount: number;
|
|
124
|
-
recurrence?: "one_time" | "monthly" | "quarterly" | "yearly" | "other";
|
|
125
|
-
dueDay?: number | null;
|
|
126
|
-
notes?: string | null;
|
|
127
|
-
}[]>;
|
|
128
72
|
documents: {
|
|
129
73
|
id: number;
|
|
130
74
|
documentType: "other" | "source_upload" | "generated_pdf" | "attachment";
|
|
@@ -138,112 +82,6 @@ export declare class OperationsContractsController {
|
|
|
138
82
|
notes: string | null;
|
|
139
83
|
createdAt: string;
|
|
140
84
|
}[];
|
|
141
|
-
revisions: NonNullable<{
|
|
142
|
-
revisionType?: "amendment" | "renewal" | "revision" | "addendum" | "other";
|
|
143
|
-
title: string;
|
|
144
|
-
effectiveDate?: string | null;
|
|
145
|
-
status?: "draft" | "active" | "completed" | "cancelled";
|
|
146
|
-
summary?: string | null;
|
|
147
|
-
}[]>;
|
|
148
|
-
history: {
|
|
149
|
-
id: number;
|
|
150
|
-
actorUserId: number | null;
|
|
151
|
-
action: string;
|
|
152
|
-
note: string | null;
|
|
153
|
-
metadataJson: string | null;
|
|
154
|
-
createdAt: string;
|
|
155
|
-
}[];
|
|
156
|
-
}>;
|
|
157
|
-
createContractDraft(user: any, data: any): Promise<{
|
|
158
|
-
id: number;
|
|
159
|
-
code: string;
|
|
160
|
-
name: string | null;
|
|
161
|
-
contractCategory: "other" | "client" | "internal" | "employee" | "contractor" | "supplier" | "vendor" | "partner";
|
|
162
|
-
contractType: "other" | "clt" | "pj" | "freelancer_agreement" | "service_agreement" | "fixed_term" | "recurring_service" | "nda" | "amendment" | "addendum";
|
|
163
|
-
clientName: string | null;
|
|
164
|
-
signatureStatus: "pending" | "expired" | "not_started" | "partially_signed" | "signed";
|
|
165
|
-
isActive: boolean;
|
|
166
|
-
billingModel: "time_and_material" | "monthly_retainer" | "fixed_price";
|
|
167
|
-
accountManagerCollaboratorId: number | null;
|
|
168
|
-
relatedCollaboratorId: number | null;
|
|
169
|
-
contractTemplateId: number | null;
|
|
170
|
-
contractTemplateName: string | null;
|
|
171
|
-
contractTemplateSlug: string | null;
|
|
172
|
-
contractTemplateCode: string | null;
|
|
173
|
-
originType: "manual" | "employee_hiring" | "client_project" | "crm_proposal";
|
|
174
|
-
originId: number | null;
|
|
175
|
-
startDate: string | null;
|
|
176
|
-
endDate: string | null;
|
|
177
|
-
signedAt: string | null;
|
|
178
|
-
effectiveDate: string | null;
|
|
179
|
-
budgetAmount: number | null;
|
|
180
|
-
monthlyHourCap: number | null;
|
|
181
|
-
status: "active" | "draft" | "expired" | "archived" | "closed" | "under_review" | "renewal";
|
|
182
|
-
creationMode: ("blank" | "template" | "upload" | "duplicate") | null;
|
|
183
|
-
wizardStep: number | null;
|
|
184
|
-
description: string | null;
|
|
185
|
-
contentHtml: string | null;
|
|
186
|
-
accountManagerName: string | null;
|
|
187
|
-
relatedCollaboratorName: string | null;
|
|
188
|
-
} & {
|
|
189
|
-
mainRelatedPartyName: string | null;
|
|
190
|
-
projects: {
|
|
191
|
-
id: number;
|
|
192
|
-
code: string;
|
|
193
|
-
name: string;
|
|
194
|
-
status: string;
|
|
195
|
-
}[];
|
|
196
|
-
scheduleSummary: {
|
|
197
|
-
weekday: string;
|
|
198
|
-
isWorkingDay: boolean;
|
|
199
|
-
startTime: string | null;
|
|
200
|
-
endTime: string | null;
|
|
201
|
-
breakMinutes: number | null;
|
|
202
|
-
}[];
|
|
203
|
-
parties: NonNullable<{
|
|
204
|
-
partyRole?: "employee" | "employer" | "client" | "supplier" | "vendor" | "partner" | "witness" | "internal_owner" | "other";
|
|
205
|
-
partyType?: "individual" | "company" | "internal_team" | "other";
|
|
206
|
-
displayName: string;
|
|
207
|
-
documentNumber?: string | null;
|
|
208
|
-
email?: string | null;
|
|
209
|
-
phone?: string | null;
|
|
210
|
-
isPrimary?: boolean;
|
|
211
|
-
}[]>;
|
|
212
|
-
signatures: NonNullable<{
|
|
213
|
-
signerName: string;
|
|
214
|
-
signerRole?: string | null;
|
|
215
|
-
signerEmail?: string | null;
|
|
216
|
-
status?: "pending" | "signed" | "rejected";
|
|
217
|
-
signedAt?: string | null;
|
|
218
|
-
}[]>;
|
|
219
|
-
financialTerms: NonNullable<{
|
|
220
|
-
termType?: "value" | "payment" | "revenue" | "fine" | "other";
|
|
221
|
-
label: string;
|
|
222
|
-
amount: number;
|
|
223
|
-
recurrence?: "one_time" | "monthly" | "quarterly" | "yearly" | "other";
|
|
224
|
-
dueDay?: number | null;
|
|
225
|
-
notes?: string | null;
|
|
226
|
-
}[]>;
|
|
227
|
-
documents: {
|
|
228
|
-
id: number;
|
|
229
|
-
documentType: "other" | "source_upload" | "generated_pdf" | "attachment";
|
|
230
|
-
fileId: number | null;
|
|
231
|
-
fileName: string;
|
|
232
|
-
mimeType: string;
|
|
233
|
-
fileContentBase64: string | null;
|
|
234
|
-
isCurrent: boolean;
|
|
235
|
-
extractionStatus: ("pending" | "processing" | "failed" | "completed" | "skipped") | null;
|
|
236
|
-
extractionSummary: string | null;
|
|
237
|
-
notes: string | null;
|
|
238
|
-
createdAt: string;
|
|
239
|
-
}[];
|
|
240
|
-
revisions: NonNullable<{
|
|
241
|
-
revisionType?: "amendment" | "renewal" | "revision" | "addendum" | "other";
|
|
242
|
-
title: string;
|
|
243
|
-
effectiveDate?: string | null;
|
|
244
|
-
status?: "draft" | "active" | "completed" | "cancelled";
|
|
245
|
-
summary?: string | null;
|
|
246
|
-
}[]>;
|
|
247
85
|
history: {
|
|
248
86
|
id: number;
|
|
249
87
|
actorUserId: number | null;
|
|
@@ -265,219 +103,6 @@ export declare class OperationsContractsController {
|
|
|
265
103
|
billingModel: "time_and_material" | "monthly_retainer" | "fixed_price";
|
|
266
104
|
accountManagerCollaboratorId: number | null;
|
|
267
105
|
relatedCollaboratorId: number | null;
|
|
268
|
-
contractTemplateId: number | null;
|
|
269
|
-
contractTemplateName: string | null;
|
|
270
|
-
contractTemplateSlug: string | null;
|
|
271
|
-
contractTemplateCode: string | null;
|
|
272
|
-
originType: "manual" | "employee_hiring" | "client_project" | "crm_proposal";
|
|
273
|
-
originId: number | null;
|
|
274
|
-
startDate: string | null;
|
|
275
|
-
endDate: string | null;
|
|
276
|
-
signedAt: string | null;
|
|
277
|
-
effectiveDate: string | null;
|
|
278
|
-
budgetAmount: number | null;
|
|
279
|
-
monthlyHourCap: number | null;
|
|
280
|
-
status: "active" | "draft" | "expired" | "archived" | "closed" | "under_review" | "renewal";
|
|
281
|
-
creationMode: ("blank" | "template" | "upload" | "duplicate") | null;
|
|
282
|
-
wizardStep: number | null;
|
|
283
|
-
description: string | null;
|
|
284
|
-
contentHtml: string | null;
|
|
285
|
-
accountManagerName: string | null;
|
|
286
|
-
relatedCollaboratorName: string | null;
|
|
287
|
-
} & {
|
|
288
|
-
mainRelatedPartyName: string | null;
|
|
289
|
-
projects: {
|
|
290
|
-
id: number;
|
|
291
|
-
code: string;
|
|
292
|
-
name: string;
|
|
293
|
-
status: string;
|
|
294
|
-
}[];
|
|
295
|
-
scheduleSummary: {
|
|
296
|
-
weekday: string;
|
|
297
|
-
isWorkingDay: boolean;
|
|
298
|
-
startTime: string | null;
|
|
299
|
-
endTime: string | null;
|
|
300
|
-
breakMinutes: number | null;
|
|
301
|
-
}[];
|
|
302
|
-
parties: NonNullable<{
|
|
303
|
-
partyRole?: "employee" | "employer" | "client" | "supplier" | "vendor" | "partner" | "witness" | "internal_owner" | "other";
|
|
304
|
-
partyType?: "individual" | "company" | "internal_team" | "other";
|
|
305
|
-
displayName: string;
|
|
306
|
-
documentNumber?: string | null;
|
|
307
|
-
email?: string | null;
|
|
308
|
-
phone?: string | null;
|
|
309
|
-
isPrimary?: boolean;
|
|
310
|
-
}[]>;
|
|
311
|
-
signatures: NonNullable<{
|
|
312
|
-
signerName: string;
|
|
313
|
-
signerRole?: string | null;
|
|
314
|
-
signerEmail?: string | null;
|
|
315
|
-
status?: "pending" | "signed" | "rejected";
|
|
316
|
-
signedAt?: string | null;
|
|
317
|
-
}[]>;
|
|
318
|
-
financialTerms: NonNullable<{
|
|
319
|
-
termType?: "value" | "payment" | "revenue" | "fine" | "other";
|
|
320
|
-
label: string;
|
|
321
|
-
amount: number;
|
|
322
|
-
recurrence?: "one_time" | "monthly" | "quarterly" | "yearly" | "other";
|
|
323
|
-
dueDay?: number | null;
|
|
324
|
-
notes?: string | null;
|
|
325
|
-
}[]>;
|
|
326
|
-
documents: {
|
|
327
|
-
id: number;
|
|
328
|
-
documentType: "other" | "source_upload" | "generated_pdf" | "attachment";
|
|
329
|
-
fileId: number | null;
|
|
330
|
-
fileName: string;
|
|
331
|
-
mimeType: string;
|
|
332
|
-
fileContentBase64: string | null;
|
|
333
|
-
isCurrent: boolean;
|
|
334
|
-
extractionStatus: ("pending" | "processing" | "failed" | "completed" | "skipped") | null;
|
|
335
|
-
extractionSummary: string | null;
|
|
336
|
-
notes: string | null;
|
|
337
|
-
createdAt: string;
|
|
338
|
-
}[];
|
|
339
|
-
revisions: NonNullable<{
|
|
340
|
-
revisionType?: "amendment" | "renewal" | "revision" | "addendum" | "other";
|
|
341
|
-
title: string;
|
|
342
|
-
effectiveDate?: string | null;
|
|
343
|
-
status?: "draft" | "active" | "completed" | "cancelled";
|
|
344
|
-
summary?: string | null;
|
|
345
|
-
}[]>;
|
|
346
|
-
history: {
|
|
347
|
-
id: number;
|
|
348
|
-
actorUserId: number | null;
|
|
349
|
-
action: string;
|
|
350
|
-
note: string | null;
|
|
351
|
-
metadataJson: string | null;
|
|
352
|
-
createdAt: string;
|
|
353
|
-
}[];
|
|
354
|
-
}>;
|
|
355
|
-
extractContractDraft(user: any, data: any): Promise<{
|
|
356
|
-
warnings: string[];
|
|
357
|
-
summary: string;
|
|
358
|
-
missingFields: string[];
|
|
359
|
-
code: string;
|
|
360
|
-
name: string;
|
|
361
|
-
clientName: string;
|
|
362
|
-
contractCategory: "other" | "client" | "internal" | "employee" | "contractor" | "supplier" | "vendor" | "partner";
|
|
363
|
-
contractType: "other" | "clt" | "pj" | "freelancer_agreement" | "service_agreement" | "fixed_term" | "recurring_service" | "nda" | "amendment" | "addendum";
|
|
364
|
-
signatureStatus: "pending" | "expired" | "not_started" | "partially_signed" | "signed";
|
|
365
|
-
isActive: boolean;
|
|
366
|
-
billingModel: "time_and_material" | "monthly_retainer" | "fixed_price";
|
|
367
|
-
originType: "manual" | "employee_hiring" | "client_project" | "crm_proposal";
|
|
368
|
-
originId: string;
|
|
369
|
-
startDate: string;
|
|
370
|
-
endDate: string;
|
|
371
|
-
signedAt: string;
|
|
372
|
-
effectiveDate: string;
|
|
373
|
-
budgetAmount: string | number;
|
|
374
|
-
monthlyHourCap: string | number;
|
|
375
|
-
status: "active" | "draft" | "expired" | "archived" | "closed" | "under_review" | "renewal";
|
|
376
|
-
description: string;
|
|
377
|
-
contentHtml: string;
|
|
378
|
-
parties: {
|
|
379
|
-
displayName: string;
|
|
380
|
-
partyRole: "other" | "client" | "employee" | "supplier" | "vendor" | "partner" | "employer" | "witness" | "internal_owner";
|
|
381
|
-
partyType: "other" | "individual" | "company" | "internal_team";
|
|
382
|
-
documentNumber: string;
|
|
383
|
-
email: string;
|
|
384
|
-
phone: string;
|
|
385
|
-
isPrimary: boolean;
|
|
386
|
-
}[];
|
|
387
|
-
signatures: {
|
|
388
|
-
signerName: string;
|
|
389
|
-
signerRole: string;
|
|
390
|
-
signerEmail: string;
|
|
391
|
-
status: "rejected" | "pending" | "signed";
|
|
392
|
-
signedAt: string;
|
|
393
|
-
}[];
|
|
394
|
-
financialTerms: {
|
|
395
|
-
label: string;
|
|
396
|
-
termType: "value" | "other" | "revenue" | "payment" | "fine";
|
|
397
|
-
amount: string | number;
|
|
398
|
-
recurrence: "other" | "one_time" | "monthly" | "quarterly" | "yearly";
|
|
399
|
-
dueDay: string | number;
|
|
400
|
-
notes: string;
|
|
401
|
-
}[];
|
|
402
|
-
revisions: {
|
|
403
|
-
title: string;
|
|
404
|
-
revisionType: "other" | "amendment" | "addendum" | "renewal" | "revision";
|
|
405
|
-
effectiveDate: string;
|
|
406
|
-
status: "active" | "draft" | "completed" | "cancelled";
|
|
407
|
-
summary: string;
|
|
408
|
-
}[];
|
|
409
|
-
}>;
|
|
410
|
-
extractContractSource(user: any, id: number, data: any): Promise<{
|
|
411
|
-
warnings: string[];
|
|
412
|
-
summary: string;
|
|
413
|
-
missingFields: string[];
|
|
414
|
-
code: string;
|
|
415
|
-
name: string;
|
|
416
|
-
clientName: string;
|
|
417
|
-
contractCategory: "other" | "client" | "internal" | "employee" | "contractor" | "supplier" | "vendor" | "partner";
|
|
418
|
-
contractType: "other" | "clt" | "pj" | "freelancer_agreement" | "service_agreement" | "fixed_term" | "recurring_service" | "nda" | "amendment" | "addendum";
|
|
419
|
-
signatureStatus: "pending" | "expired" | "not_started" | "partially_signed" | "signed";
|
|
420
|
-
isActive: boolean;
|
|
421
|
-
billingModel: "time_and_material" | "monthly_retainer" | "fixed_price";
|
|
422
|
-
originType: "manual" | "employee_hiring" | "client_project" | "crm_proposal";
|
|
423
|
-
originId: string;
|
|
424
|
-
startDate: string;
|
|
425
|
-
endDate: string;
|
|
426
|
-
signedAt: string;
|
|
427
|
-
effectiveDate: string;
|
|
428
|
-
budgetAmount: string | number;
|
|
429
|
-
monthlyHourCap: string | number;
|
|
430
|
-
status: "active" | "draft" | "expired" | "archived" | "closed" | "under_review" | "renewal";
|
|
431
|
-
description: string;
|
|
432
|
-
contentHtml: string;
|
|
433
|
-
parties: {
|
|
434
|
-
displayName: string;
|
|
435
|
-
partyRole: "other" | "client" | "employee" | "supplier" | "vendor" | "partner" | "employer" | "witness" | "internal_owner";
|
|
436
|
-
partyType: "other" | "individual" | "company" | "internal_team";
|
|
437
|
-
documentNumber: string;
|
|
438
|
-
email: string;
|
|
439
|
-
phone: string;
|
|
440
|
-
isPrimary: boolean;
|
|
441
|
-
}[];
|
|
442
|
-
signatures: {
|
|
443
|
-
signerName: string;
|
|
444
|
-
signerRole: string;
|
|
445
|
-
signerEmail: string;
|
|
446
|
-
status: "rejected" | "pending" | "signed";
|
|
447
|
-
signedAt: string;
|
|
448
|
-
}[];
|
|
449
|
-
financialTerms: {
|
|
450
|
-
label: string;
|
|
451
|
-
termType: "value" | "other" | "revenue" | "payment" | "fine";
|
|
452
|
-
amount: string | number;
|
|
453
|
-
recurrence: "other" | "one_time" | "monthly" | "quarterly" | "yearly";
|
|
454
|
-
dueDay: string | number;
|
|
455
|
-
notes: string;
|
|
456
|
-
}[];
|
|
457
|
-
revisions: {
|
|
458
|
-
title: string;
|
|
459
|
-
revisionType: "other" | "amendment" | "addendum" | "renewal" | "revision";
|
|
460
|
-
effectiveDate: string;
|
|
461
|
-
status: "active" | "draft" | "completed" | "cancelled";
|
|
462
|
-
summary: string;
|
|
463
|
-
}[];
|
|
464
|
-
}>;
|
|
465
|
-
generateContractContent(user: any, id: number, data: any): Promise<{
|
|
466
|
-
id: number;
|
|
467
|
-
code: string;
|
|
468
|
-
name: string | null;
|
|
469
|
-
contractCategory: "other" | "client" | "internal" | "employee" | "contractor" | "supplier" | "vendor" | "partner";
|
|
470
|
-
contractType: "other" | "clt" | "pj" | "freelancer_agreement" | "service_agreement" | "fixed_term" | "recurring_service" | "nda" | "amendment" | "addendum";
|
|
471
|
-
clientName: string | null;
|
|
472
|
-
signatureStatus: "pending" | "expired" | "not_started" | "partially_signed" | "signed";
|
|
473
|
-
isActive: boolean;
|
|
474
|
-
billingModel: "time_and_material" | "monthly_retainer" | "fixed_price";
|
|
475
|
-
accountManagerCollaboratorId: number | null;
|
|
476
|
-
relatedCollaboratorId: number | null;
|
|
477
|
-
contractTemplateId: number | null;
|
|
478
|
-
contractTemplateName: string | null;
|
|
479
|
-
contractTemplateSlug: string | null;
|
|
480
|
-
contractTemplateCode: string | null;
|
|
481
106
|
originType: "manual" | "employee_hiring" | "client_project" | "crm_proposal";
|
|
482
107
|
originId: number | null;
|
|
483
108
|
startDate: string | null;
|
|
@@ -517,21 +142,6 @@ export declare class OperationsContractsController {
|
|
|
517
142
|
phone?: string | null;
|
|
518
143
|
isPrimary?: boolean;
|
|
519
144
|
}[]>;
|
|
520
|
-
signatures: NonNullable<{
|
|
521
|
-
signerName: string;
|
|
522
|
-
signerRole?: string | null;
|
|
523
|
-
signerEmail?: string | null;
|
|
524
|
-
status?: "pending" | "signed" | "rejected";
|
|
525
|
-
signedAt?: string | null;
|
|
526
|
-
}[]>;
|
|
527
|
-
financialTerms: NonNullable<{
|
|
528
|
-
termType?: "value" | "payment" | "revenue" | "fine" | "other";
|
|
529
|
-
label: string;
|
|
530
|
-
amount: number;
|
|
531
|
-
recurrence?: "one_time" | "monthly" | "quarterly" | "yearly" | "other";
|
|
532
|
-
dueDay?: number | null;
|
|
533
|
-
notes?: string | null;
|
|
534
|
-
}[]>;
|
|
535
145
|
documents: {
|
|
536
146
|
id: number;
|
|
537
147
|
documentType: "other" | "source_upload" | "generated_pdf" | "attachment";
|
|
@@ -545,13 +155,6 @@ export declare class OperationsContractsController {
|
|
|
545
155
|
notes: string | null;
|
|
546
156
|
createdAt: string;
|
|
547
157
|
}[];
|
|
548
|
-
revisions: NonNullable<{
|
|
549
|
-
revisionType?: "amendment" | "renewal" | "revision" | "addendum" | "other";
|
|
550
|
-
title: string;
|
|
551
|
-
effectiveDate?: string | null;
|
|
552
|
-
status?: "draft" | "active" | "completed" | "cancelled";
|
|
553
|
-
summary?: string | null;
|
|
554
|
-
}[]>;
|
|
555
158
|
history: {
|
|
556
159
|
id: number;
|
|
557
160
|
actorUserId: number | null;
|
|
@@ -561,14 +164,6 @@ export declare class OperationsContractsController {
|
|
|
561
164
|
createdAt: string;
|
|
562
165
|
}[];
|
|
563
166
|
}>;
|
|
564
|
-
reviewContractLegally(user: any, id: number, data: any): Promise<{
|
|
565
|
-
summary: string;
|
|
566
|
-
missingFields: string[];
|
|
567
|
-
warnings: string[];
|
|
568
|
-
checklist: string[];
|
|
569
|
-
status: "ready_for_revision" | "attention_required";
|
|
570
|
-
reviewedAt: string;
|
|
571
|
-
}>;
|
|
572
167
|
updateContract(user: any, id: number, data: any): Promise<{
|
|
573
168
|
id: number;
|
|
574
169
|
code: string;
|
|
@@ -581,10 +176,6 @@ export declare class OperationsContractsController {
|
|
|
581
176
|
billingModel: "time_and_material" | "monthly_retainer" | "fixed_price";
|
|
582
177
|
accountManagerCollaboratorId: number | null;
|
|
583
178
|
relatedCollaboratorId: number | null;
|
|
584
|
-
contractTemplateId: number | null;
|
|
585
|
-
contractTemplateName: string | null;
|
|
586
|
-
contractTemplateSlug: string | null;
|
|
587
|
-
contractTemplateCode: string | null;
|
|
588
179
|
originType: "manual" | "employee_hiring" | "client_project" | "crm_proposal";
|
|
589
180
|
originId: number | null;
|
|
590
181
|
startDate: string | null;
|
|
@@ -624,21 +215,6 @@ export declare class OperationsContractsController {
|
|
|
624
215
|
phone?: string | null;
|
|
625
216
|
isPrimary?: boolean;
|
|
626
217
|
}[]>;
|
|
627
|
-
signatures: NonNullable<{
|
|
628
|
-
signerName: string;
|
|
629
|
-
signerRole?: string | null;
|
|
630
|
-
signerEmail?: string | null;
|
|
631
|
-
status?: "pending" | "signed" | "rejected";
|
|
632
|
-
signedAt?: string | null;
|
|
633
|
-
}[]>;
|
|
634
|
-
financialTerms: NonNullable<{
|
|
635
|
-
termType?: "value" | "payment" | "revenue" | "fine" | "other";
|
|
636
|
-
label: string;
|
|
637
|
-
amount: number;
|
|
638
|
-
recurrence?: "one_time" | "monthly" | "quarterly" | "yearly" | "other";
|
|
639
|
-
dueDay?: number | null;
|
|
640
|
-
notes?: string | null;
|
|
641
|
-
}[]>;
|
|
642
218
|
documents: {
|
|
643
219
|
id: number;
|
|
644
220
|
documentType: "other" | "source_upload" | "generated_pdf" | "attachment";
|
|
@@ -652,13 +228,6 @@ export declare class OperationsContractsController {
|
|
|
652
228
|
notes: string | null;
|
|
653
229
|
createdAt: string;
|
|
654
230
|
}[];
|
|
655
|
-
revisions: NonNullable<{
|
|
656
|
-
revisionType?: "amendment" | "renewal" | "revision" | "addendum" | "other";
|
|
657
|
-
title: string;
|
|
658
|
-
effectiveDate?: string | null;
|
|
659
|
-
status?: "draft" | "active" | "completed" | "cancelled";
|
|
660
|
-
summary?: string | null;
|
|
661
|
-
}[]>;
|
|
662
231
|
history: {
|
|
663
232
|
id: number;
|
|
664
233
|
actorUserId: number | null;
|
|
@@ -671,13 +240,5 @@ export declare class OperationsContractsController {
|
|
|
671
240
|
removeContract(user: any, id: number): Promise<{
|
|
672
241
|
success: boolean;
|
|
673
242
|
}>;
|
|
674
|
-
generateContractPdf(user: any, id: number): Promise<{
|
|
675
|
-
contractId: number;
|
|
676
|
-
fileId: number;
|
|
677
|
-
fileName: string;
|
|
678
|
-
mimeType: string;
|
|
679
|
-
documentType: string;
|
|
680
|
-
downloadUrl: string;
|
|
681
|
-
}>;
|
|
682
243
|
}
|
|
683
244
|
//# sourceMappingURL=operations-contracts.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations-contracts.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-contracts.controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"operations-contracts.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-contracts.controller.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAEa,6BAA6B;IAC5B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAGjE,aAAa,CAAS,IAAI,KAAA,EAAW,OAAO,EAAE,gBAAgB;;;;;;;;;IAK9D,gBAAgB,CAAS,IAAI,KAAA;;;;;;IAK7B,WAAW,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK/D,cAAc,CAAS,IAAI,KAAA,EAAU,IAAI,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKzC,cAAc,CACJ,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EAC7B,IAAI,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMd,cAAc,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;CAGnE"}
|