@hed-hog/contact 0.0.329 → 0.0.331
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/proposal/proposal.controller.d.ts +2 -2
- package/dist/proposal/proposal.controller.d.ts.map +1 -1
- package/dist/proposal/proposal.controller.js +8 -6
- package/dist/proposal/proposal.controller.js.map +1 -1
- package/dist/proposal/proposal.service.d.ts +8 -2
- package/dist/proposal/proposal.service.d.ts.map +1 -1
- package/dist/proposal/proposal.service.js +595 -162
- package/dist/proposal/proposal.service.js.map +1 -1
- package/hedhog/data/role.yaml +9 -1
- package/hedhog/data/route.yaml +4 -1
- package/hedhog/data/setting_group.yaml +16 -5
- package/hedhog/frontend/app/_components/person-picker.tsx.ejs +71 -16
- package/hedhog/frontend/app/accounts/_components/account-form-sheet.tsx.ejs +7 -2
- package/hedhog/frontend/app/accounts/page.tsx.ejs +1 -1
- package/hedhog/frontend/app/activities/page.tsx.ejs +1 -1
- package/hedhog/frontend/app/follow-ups/page.tsx.ejs +1 -1
- package/hedhog/frontend/app/person/page.tsx.ejs +1 -1
- package/hedhog/frontend/app/pipeline/_components/lead-proposals-tab.tsx.ejs +103 -1302
- package/hedhog/frontend/app/proposals/_components/proposal-form-sheet.tsx.ejs +1306 -0
- package/hedhog/frontend/app/proposals/_components/proposal-types.ts.ejs +172 -0
- package/hedhog/frontend/app/proposals/_components/proposals-management-page.tsx.ejs +316 -113
- package/hedhog/frontend/messages/en.json +21 -2
- package/hedhog/frontend/messages/pt.json +21 -2
- package/package.json +7 -6
- package/src/proposal/proposal.controller.ts +7 -5
- package/src/proposal/proposal.service.ts +662 -192
|
@@ -500,6 +500,7 @@
|
|
|
500
500
|
},
|
|
501
501
|
"CrmMenu": {
|
|
502
502
|
"breadcrumbs": {
|
|
503
|
+
"home": "Home",
|
|
503
504
|
"crm": "CRM"
|
|
504
505
|
},
|
|
505
506
|
"current": "Atual",
|
|
@@ -818,6 +819,9 @@
|
|
|
818
819
|
"refresh": "Atualizar",
|
|
819
820
|
"viewPending": "Ver pendentes",
|
|
820
821
|
"showAll": "Mostrar todas"
|
|
822
|
+
},
|
|
823
|
+
"approval": {
|
|
824
|
+
"progress": "{count}/{required} aprovações"
|
|
821
825
|
}
|
|
822
826
|
},
|
|
823
827
|
"CrmPipeline": {
|
|
@@ -976,7 +980,7 @@
|
|
|
976
980
|
"submit": "Enviar para aprovação",
|
|
977
981
|
"approve": "Aprovar",
|
|
978
982
|
"reject": "Rejeitar",
|
|
979
|
-
"generatePdf": "
|
|
983
|
+
"generatePdf": "Exportar em PDF",
|
|
980
984
|
"openPdf": "Abrir PDF",
|
|
981
985
|
"delete": "Excluir"
|
|
982
986
|
},
|
|
@@ -1034,7 +1038,11 @@
|
|
|
1034
1038
|
"summary": "Resumo",
|
|
1035
1039
|
"summaryPlaceholder": "Escreva um resumo comercial desta proposta...",
|
|
1036
1040
|
"notes": "Notas internas",
|
|
1037
|
-
"notesPlaceholder": "Observações para a equipe..."
|
|
1041
|
+
"notesPlaceholder": "Observações para a equipe...",
|
|
1042
|
+
"client": "Cliente",
|
|
1043
|
+
"clientEntity": "Cliente",
|
|
1044
|
+
"clientPlaceholder": "Pesquisar ou selecionar cliente...",
|
|
1045
|
+
"editClient": "Editar cliente"
|
|
1038
1046
|
},
|
|
1039
1047
|
"toasts": {
|
|
1040
1048
|
"createSuccess": "Proposta criada com sucesso",
|
|
@@ -1051,6 +1059,9 @@
|
|
|
1051
1059
|
"generatePdfError": "Falha ao gerar o PDF da proposta",
|
|
1052
1060
|
"deleteSuccess": "Proposta excluída com sucesso",
|
|
1053
1061
|
"deleteError": "Falha ao excluir proposta"
|
|
1062
|
+
},
|
|
1063
|
+
"approval": {
|
|
1064
|
+
"progress": "{count}/{required} aprovações"
|
|
1054
1065
|
}
|
|
1055
1066
|
},
|
|
1056
1067
|
"tooltips": {
|
|
@@ -1384,5 +1395,13 @@
|
|
|
1384
1395
|
"stateMaxLength": "O estado deve ter no maximo 2 caracteres"
|
|
1385
1396
|
}
|
|
1386
1397
|
}
|
|
1398
|
+
},
|
|
1399
|
+
"components": {
|
|
1400
|
+
"entityPicker": {
|
|
1401
|
+
"collaborators": {
|
|
1402
|
+
"empty": "Nenhum colaborador encontrado.",
|
|
1403
|
+
"loading": "Carregando colaboradores..."
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1387
1406
|
}
|
|
1388
1407
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/contact",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.331",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -9,13 +9,14 @@
|
|
|
9
9
|
"@nestjs/core": "^11",
|
|
10
10
|
"@nestjs/jwt": "^11",
|
|
11
11
|
"@nestjs/mapped-types": "*",
|
|
12
|
+
"playwright": "^1.49.0",
|
|
12
13
|
"@hed-hog/api-locale": "0.0.14",
|
|
13
|
-
"@hed-hog/api-mail": "0.0.9",
|
|
14
|
-
"@hed-hog/api-pagination": "0.0.7",
|
|
15
|
-
"@hed-hog/core": "0.0.329",
|
|
16
14
|
"@hed-hog/api": "0.0.8",
|
|
17
|
-
"@hed-hog/
|
|
18
|
-
"@hed-hog/api-prisma": "0.0.6"
|
|
15
|
+
"@hed-hog/api-mail": "0.0.9",
|
|
16
|
+
"@hed-hog/api-prisma": "0.0.6",
|
|
17
|
+
"@hed-hog/address": "0.0.331",
|
|
18
|
+
"@hed-hog/core": "0.0.331",
|
|
19
|
+
"@hed-hog/api-pagination": "0.0.7"
|
|
19
20
|
},
|
|
20
21
|
"exports": {
|
|
21
22
|
".": {
|
|
@@ -30,11 +30,12 @@ export class ProposalController {
|
|
|
30
30
|
async list(
|
|
31
31
|
@Pagination() paginationParams,
|
|
32
32
|
@Query() query: ProposalListQueryDto,
|
|
33
|
+
@User() user,
|
|
33
34
|
) {
|
|
34
|
-
return this.proposalService.list(
|
|
35
|
-
...paginationParams,
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
return this.proposalService.list(
|
|
36
|
+
{ ...paginationParams, ...query },
|
|
37
|
+
Number(user?.id || 0) || undefined,
|
|
38
|
+
);
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
@Get('stats')
|
|
@@ -46,8 +47,9 @@ export class ProposalController {
|
|
|
46
47
|
async getById(
|
|
47
48
|
@Param('id', ParseIntPipe) id: number,
|
|
48
49
|
@Locale() locale: string,
|
|
50
|
+
@User() user,
|
|
49
51
|
) {
|
|
50
|
-
return this.proposalService.getById(id, locale);
|
|
52
|
+
return this.proposalService.getById(id, locale, Number(user?.id || 0) || undefined);
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
@Post(':id/generate-pdf')
|