easywork-common-lib 1.0.548 → 1.0.549
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/.gitattributes +2 -2
- package/.github/workflows/npm-publish.yml +33 -33
- package/.vscode/settings.json +12 -12
- package/dist/entities/capacitation/capacitation.entity.js +1 -1
- package/dist/entities/capacitation/capacitation.entity.js.map +1 -1
- package/dist/grpc/drive/drive.proto +225 -225
- package/dist/grpc/drive/leads.proto +114 -114
- package/justfile +8 -8
- package/package.json +45 -45
- package/scripts/bump.sh +6 -6
- package/test.bat +15 -15
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +25 -25
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.d.ts +0 -11
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js +0 -68
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js.map +0 -1
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package leads;
|
|
4
|
-
|
|
5
|
-
// Definición del mensaje principal para crear un Lead
|
|
6
|
-
message CreateLeadRequest {
|
|
7
|
-
// Representa la foto del lead
|
|
8
|
-
bytes photo = 1;
|
|
9
|
-
|
|
10
|
-
// Especifica el tipo de persona para el lead
|
|
11
|
-
PersonType typePerson = 2;
|
|
12
|
-
|
|
13
|
-
// Nombre del lead
|
|
14
|
-
string name = 3;
|
|
15
|
-
|
|
16
|
-
// Apellido del lead
|
|
17
|
-
string lastName = 4;
|
|
18
|
-
|
|
19
|
-
// Nombre completo del lead
|
|
20
|
-
string fullName = 5;
|
|
21
|
-
|
|
22
|
-
// Segundo nombre del lead
|
|
23
|
-
string secondName = 6;
|
|
24
|
-
|
|
25
|
-
// RFC del lead
|
|
26
|
-
string rfc = 7;
|
|
27
|
-
|
|
28
|
-
// Dirección del lead
|
|
29
|
-
string address = 8;
|
|
30
|
-
|
|
31
|
-
// Cargo del lead
|
|
32
|
-
string cargo = 9;
|
|
33
|
-
|
|
34
|
-
// Fecha de nacimiento del lead
|
|
35
|
-
string birthdate = 10;
|
|
36
|
-
|
|
37
|
-
// Género del lead
|
|
38
|
-
string gender = 11;
|
|
39
|
-
|
|
40
|
-
// CURP del lead
|
|
41
|
-
string curp = 12;
|
|
42
|
-
|
|
43
|
-
// CUA del lead
|
|
44
|
-
string cua = 13;
|
|
45
|
-
|
|
46
|
-
// Puesto del lead
|
|
47
|
-
string post = 14;
|
|
48
|
-
|
|
49
|
-
// Observaciones sobre el lead
|
|
50
|
-
string observations = 15;
|
|
51
|
-
|
|
52
|
-
// ¿El lead es exportado?
|
|
53
|
-
bool export = 16;
|
|
54
|
-
|
|
55
|
-
// Descripción de la fuente del lead
|
|
56
|
-
string sourceDescription = 17;
|
|
57
|
-
|
|
58
|
-
// Compañía del lead
|
|
59
|
-
string company = 18;
|
|
60
|
-
|
|
61
|
-
// ID Tipo de Cliente
|
|
62
|
-
string typeId = 19;
|
|
63
|
-
|
|
64
|
-
// ID Origen del lead
|
|
65
|
-
string sourceId = 20;
|
|
66
|
-
|
|
67
|
-
// Números de teléfono asociados con el lead
|
|
68
|
-
repeated PhoneDto phones = 21;
|
|
69
|
-
|
|
70
|
-
// Emails asociados con el lead
|
|
71
|
-
repeated EmailDto emails = 22;
|
|
72
|
-
|
|
73
|
-
// Códigos de aseguradora asociados con el lead
|
|
74
|
-
repeated CodigoDto codigos = 23;
|
|
75
|
-
|
|
76
|
-
// ID del usuario asignado al lead
|
|
77
|
-
string assignedById = 24;
|
|
78
|
-
|
|
79
|
-
// ID del usuario observador
|
|
80
|
-
string observerId = 25;
|
|
81
|
-
|
|
82
|
-
// Monto de la cotización
|
|
83
|
-
double quoteAmount = 26;
|
|
84
|
-
|
|
85
|
-
// ID de la moneda de la cotización
|
|
86
|
-
string quoteCurrencyId = 27;
|
|
87
|
-
|
|
88
|
-
// IDs de los archivos
|
|
89
|
-
repeated string filesIds = 28;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Definición del enum PersonType
|
|
93
|
-
enum PersonType {
|
|
94
|
-
FISICA = 0;
|
|
95
|
-
MORAL = 1;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Definición de PhoneDto
|
|
99
|
-
message PhoneDto {
|
|
100
|
-
string number = 1;
|
|
101
|
-
string relation = 2;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Definición de EmailDto
|
|
105
|
-
message EmailDto {
|
|
106
|
-
string email = 1;
|
|
107
|
-
string relation = 2;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// Definición de CodigoDto
|
|
111
|
-
message CodigoDto {
|
|
112
|
-
string codigo = 1;
|
|
113
|
-
string insuranceId = 2;
|
|
114
|
-
}
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package leads;
|
|
4
|
+
|
|
5
|
+
// Definición del mensaje principal para crear un Lead
|
|
6
|
+
message CreateLeadRequest {
|
|
7
|
+
// Representa la foto del lead
|
|
8
|
+
bytes photo = 1;
|
|
9
|
+
|
|
10
|
+
// Especifica el tipo de persona para el lead
|
|
11
|
+
PersonType typePerson = 2;
|
|
12
|
+
|
|
13
|
+
// Nombre del lead
|
|
14
|
+
string name = 3;
|
|
15
|
+
|
|
16
|
+
// Apellido del lead
|
|
17
|
+
string lastName = 4;
|
|
18
|
+
|
|
19
|
+
// Nombre completo del lead
|
|
20
|
+
string fullName = 5;
|
|
21
|
+
|
|
22
|
+
// Segundo nombre del lead
|
|
23
|
+
string secondName = 6;
|
|
24
|
+
|
|
25
|
+
// RFC del lead
|
|
26
|
+
string rfc = 7;
|
|
27
|
+
|
|
28
|
+
// Dirección del lead
|
|
29
|
+
string address = 8;
|
|
30
|
+
|
|
31
|
+
// Cargo del lead
|
|
32
|
+
string cargo = 9;
|
|
33
|
+
|
|
34
|
+
// Fecha de nacimiento del lead
|
|
35
|
+
string birthdate = 10;
|
|
36
|
+
|
|
37
|
+
// Género del lead
|
|
38
|
+
string gender = 11;
|
|
39
|
+
|
|
40
|
+
// CURP del lead
|
|
41
|
+
string curp = 12;
|
|
42
|
+
|
|
43
|
+
// CUA del lead
|
|
44
|
+
string cua = 13;
|
|
45
|
+
|
|
46
|
+
// Puesto del lead
|
|
47
|
+
string post = 14;
|
|
48
|
+
|
|
49
|
+
// Observaciones sobre el lead
|
|
50
|
+
string observations = 15;
|
|
51
|
+
|
|
52
|
+
// ¿El lead es exportado?
|
|
53
|
+
bool export = 16;
|
|
54
|
+
|
|
55
|
+
// Descripción de la fuente del lead
|
|
56
|
+
string sourceDescription = 17;
|
|
57
|
+
|
|
58
|
+
// Compañía del lead
|
|
59
|
+
string company = 18;
|
|
60
|
+
|
|
61
|
+
// ID Tipo de Cliente
|
|
62
|
+
string typeId = 19;
|
|
63
|
+
|
|
64
|
+
// ID Origen del lead
|
|
65
|
+
string sourceId = 20;
|
|
66
|
+
|
|
67
|
+
// Números de teléfono asociados con el lead
|
|
68
|
+
repeated PhoneDto phones = 21;
|
|
69
|
+
|
|
70
|
+
// Emails asociados con el lead
|
|
71
|
+
repeated EmailDto emails = 22;
|
|
72
|
+
|
|
73
|
+
// Códigos de aseguradora asociados con el lead
|
|
74
|
+
repeated CodigoDto codigos = 23;
|
|
75
|
+
|
|
76
|
+
// ID del usuario asignado al lead
|
|
77
|
+
string assignedById = 24;
|
|
78
|
+
|
|
79
|
+
// ID del usuario observador
|
|
80
|
+
string observerId = 25;
|
|
81
|
+
|
|
82
|
+
// Monto de la cotización
|
|
83
|
+
double quoteAmount = 26;
|
|
84
|
+
|
|
85
|
+
// ID de la moneda de la cotización
|
|
86
|
+
string quoteCurrencyId = 27;
|
|
87
|
+
|
|
88
|
+
// IDs de los archivos
|
|
89
|
+
repeated string filesIds = 28;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Definición del enum PersonType
|
|
93
|
+
enum PersonType {
|
|
94
|
+
FISICA = 0;
|
|
95
|
+
MORAL = 1;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Definición de PhoneDto
|
|
99
|
+
message PhoneDto {
|
|
100
|
+
string number = 1;
|
|
101
|
+
string relation = 2;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Definición de EmailDto
|
|
105
|
+
message EmailDto {
|
|
106
|
+
string email = 1;
|
|
107
|
+
string relation = 2;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Definición de CodigoDto
|
|
111
|
+
message CodigoDto {
|
|
112
|
+
string codigo = 1;
|
|
113
|
+
string insuranceId = 2;
|
|
114
|
+
}
|
package/justfile
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
# prints all available commands
|
|
3
|
-
default:
|
|
4
|
-
just --list
|
|
5
|
-
|
|
6
|
-
# Upgrade and publish
|
|
7
|
-
bump:
|
|
8
|
-
pnpm bump
|
|
1
|
+
|
|
2
|
+
# prints all available commands
|
|
3
|
+
default:
|
|
4
|
+
just --list
|
|
5
|
+
|
|
6
|
+
# Upgrade and publish
|
|
7
|
+
bump:
|
|
8
|
+
pnpm bump
|
package/package.json
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "easywork-common-lib",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Librería común de Easywork",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "tsc && cpx-fixed src/**/*.proto dist/",
|
|
8
|
-
"bump": "sh ./scripts/bump.sh",
|
|
9
|
-
"bump-win": "cross-env ./scripts/bump.sh"
|
|
10
|
-
},
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "git+https://github.com/blindariesgos/easywork-common-lib.git"
|
|
14
|
-
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
"nodejs"
|
|
17
|
-
],
|
|
18
|
-
"author": "Rosmer Campos",
|
|
19
|
-
"license": "MIT",
|
|
20
|
-
"bugs": {
|
|
21
|
-
"url": "https://github.com/blindariesgos/easywork-common-lib/issues"
|
|
22
|
-
},
|
|
23
|
-
"homepage": "https://github.com/blindariesgos/easywork-common-lib#readme",
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"@golevelup/nestjs-rabbitmq": "^5.6.0",
|
|
26
|
-
"@nestjs/common": "^10.4.7",
|
|
27
|
-
"@nestjs/swagger": "^7.4.2",
|
|
28
|
-
"@nestjs/typeorm": "^10.0.2",
|
|
29
|
-
"class-transformer": "^0.5.1",
|
|
30
|
-
"class-validator": "^0.14.1",
|
|
31
|
-
"googleapis": "^144.0.0",
|
|
32
|
-
"nanoid": "^3.3.7",
|
|
33
|
-
"rxjs": "^7.8.1",
|
|
34
|
-
"sharp": "^0.33.5",
|
|
35
|
-
"typeorm": "^0.3.20"
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@rubiin/tsconfig": "^1.2.1",
|
|
39
|
-
"@types/node": "^20.17.6",
|
|
40
|
-
"cpx-fixed": "^1.6.0",
|
|
41
|
-
"ts-loader": "^9.5.1",
|
|
42
|
-
"typescript": "^5.6.3"
|
|
43
|
-
},
|
|
44
|
-
"packageManager": "pnpm@9.12.2+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228"
|
|
45
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "easywork-common-lib",
|
|
3
|
+
"version": "1.0.549",
|
|
4
|
+
"description": "Librería común de Easywork",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc && cpx-fixed src/**/*.proto dist/",
|
|
8
|
+
"bump": "sh ./scripts/bump.sh",
|
|
9
|
+
"bump-win": "cross-env ./scripts/bump.sh"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/blindariesgos/easywork-common-lib.git"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"nodejs"
|
|
17
|
+
],
|
|
18
|
+
"author": "Rosmer Campos",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/blindariesgos/easywork-common-lib/issues"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://github.com/blindariesgos/easywork-common-lib#readme",
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@golevelup/nestjs-rabbitmq": "^5.6.0",
|
|
26
|
+
"@nestjs/common": "^10.4.7",
|
|
27
|
+
"@nestjs/swagger": "^7.4.2",
|
|
28
|
+
"@nestjs/typeorm": "^10.0.2",
|
|
29
|
+
"class-transformer": "^0.5.1",
|
|
30
|
+
"class-validator": "^0.14.1",
|
|
31
|
+
"googleapis": "^144.0.0",
|
|
32
|
+
"nanoid": "^3.3.7",
|
|
33
|
+
"rxjs": "^7.8.1",
|
|
34
|
+
"sharp": "^0.33.5",
|
|
35
|
+
"typeorm": "^0.3.20"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@rubiin/tsconfig": "^1.2.1",
|
|
39
|
+
"@types/node": "^20.17.6",
|
|
40
|
+
"cpx-fixed": "^1.6.0",
|
|
41
|
+
"ts-loader": "^9.5.1",
|
|
42
|
+
"typescript": "^5.6.3"
|
|
43
|
+
},
|
|
44
|
+
"packageManager": "pnpm@9.12.2+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228"
|
|
45
|
+
}
|
package/scripts/bump.sh
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
git add .
|
|
2
|
-
git commit -m "bump version"
|
|
3
|
-
npm version patch
|
|
4
|
-
npm run build
|
|
5
|
-
npm publish
|
|
6
|
-
git push
|
|
1
|
+
git add .
|
|
2
|
+
git commit -m "bump version"
|
|
3
|
+
npm version patch
|
|
4
|
+
npm run build
|
|
5
|
+
npm publish
|
|
6
|
+
git push
|
package/test.bat
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@echo off
|
|
2
|
-
setlocal enabledelayedexpansion
|
|
3
|
-
|
|
4
|
-
rem Define the root directory
|
|
5
|
-
set "root=C:\Users\ROSME\Documents\GitHub\easywork-common-lib"
|
|
6
|
-
|
|
7
|
-
rem Iterate through all directories and subdirectories
|
|
8
|
-
for /f "delims=" %%d in ('dir "%root%" /ad /b /s') do (
|
|
9
|
-
rem Check if the directory name contains node_modules
|
|
10
|
-
echo %%d | findstr /i /c:"\node_modules" >nul
|
|
11
|
-
echo %%d | findstr /i /c:"\.git" >nul
|
|
12
|
-
if errorlevel 1 (
|
|
13
|
-
rem If not, list the directory contents
|
|
14
|
-
dir "%%d"
|
|
15
|
-
)
|
|
1
|
+
@echo off
|
|
2
|
+
setlocal enabledelayedexpansion
|
|
3
|
+
|
|
4
|
+
rem Define the root directory
|
|
5
|
+
set "root=C:\Users\ROSME\Documents\GitHub\easywork-common-lib"
|
|
6
|
+
|
|
7
|
+
rem Iterate through all directories and subdirectories
|
|
8
|
+
for /f "delims=" %%d in ('dir "%root%" /ad /b /s') do (
|
|
9
|
+
rem Check if the directory name contains node_modules
|
|
10
|
+
echo %%d | findstr /i /c:"\node_modules" >nul
|
|
11
|
+
echo %%d | findstr /i /c:"\.git" >nul
|
|
12
|
+
if errorlevel 1 (
|
|
13
|
+
rem If not, list the directory contents
|
|
14
|
+
dir "%%d"
|
|
15
|
+
)
|
|
16
16
|
)
|
package/tsconfig.build.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"exclude": ["node_modules", "test", "dist", "**/*spec.ts", "eslint.config.js"]
|
|
4
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"exclude": ["node_modules", "test", "dist", "**/*spec.ts", "eslint.config.js"]
|
|
4
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@rubiin/tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"removeComments": true,
|
|
7
|
-
"emitDecoratorMetadata": true,
|
|
8
|
-
"experimentalDecorators": true,
|
|
9
|
-
"allowSyntheticDefaultImports": true,
|
|
10
|
-
"target": "ES2022",
|
|
11
|
-
"sourceMap": true,
|
|
12
|
-
"outDir": "./dist",
|
|
13
|
-
"rootDir": "./src",
|
|
14
|
-
"baseUrl": "./src",
|
|
15
|
-
"incremental": true,
|
|
16
|
-
"strict": true,
|
|
17
|
-
"skipLibCheck": true,
|
|
18
|
-
"strictNullChecks": false,
|
|
19
|
-
"noImplicitAny": false,
|
|
20
|
-
"strictBindCallApply": false,
|
|
21
|
-
"forceConsistentCasingInFileNames": true,
|
|
22
|
-
"noFallthroughCasesInSwitch": false
|
|
23
|
-
},
|
|
24
|
-
"include": ["test/**/*", "src/**/*", "eslint.config.js"],
|
|
25
|
-
"typeRoots": ["./src/common/@types/typings"]
|
|
1
|
+
{
|
|
2
|
+
"extends": "@rubiin/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"removeComments": true,
|
|
7
|
+
"emitDecoratorMetadata": true,
|
|
8
|
+
"experimentalDecorators": true,
|
|
9
|
+
"allowSyntheticDefaultImports": true,
|
|
10
|
+
"target": "ES2022",
|
|
11
|
+
"sourceMap": true,
|
|
12
|
+
"outDir": "./dist",
|
|
13
|
+
"rootDir": "./src",
|
|
14
|
+
"baseUrl": "./src",
|
|
15
|
+
"incremental": true,
|
|
16
|
+
"strict": true,
|
|
17
|
+
"skipLibCheck": true,
|
|
18
|
+
"strictNullChecks": false,
|
|
19
|
+
"noImplicitAny": false,
|
|
20
|
+
"strictBindCallApply": false,
|
|
21
|
+
"forceConsistentCasingInFileNames": true,
|
|
22
|
+
"noFallthroughCasesInSwitch": false
|
|
23
|
+
},
|
|
24
|
+
"include": ["test/**/*", "src/**/*", "eslint.config.js"],
|
|
25
|
+
"typeRoots": ["./src/common/@types/typings"]
|
|
26
26
|
}
|