easywork-common-lib 1.0.316 → 1.0.318

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 (51) hide show
  1. package/.gitattributes +2 -2
  2. package/.github/workflows/npm-publish.yml +33 -33
  3. package/.vscode/settings.json +12 -12
  4. package/dist/entities/helpers/sales/contact/contact_sources.entity.d.ts +5 -0
  5. package/dist/entities/helpers/sales/contact/contact_sources.entity.js +36 -0
  6. package/dist/entities/helpers/sales/contact/contact_sources.entity.js.map +1 -0
  7. package/dist/entities/helpers/sales/contact/contact_types.entity.d.ts +5 -0
  8. package/dist/entities/helpers/sales/contact/contact_types.entity.js +36 -0
  9. package/dist/entities/helpers/sales/contact/contact_types.entity.js.map +1 -0
  10. package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.d.ts +5 -0
  11. package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js +30 -0
  12. package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js.map +1 -0
  13. package/dist/entities/imap-folder.entity.d.ts +7 -0
  14. package/dist/entities/imap-folder.entity.js +41 -0
  15. package/dist/entities/imap-folder.entity.js.map +1 -0
  16. package/dist/entities/oauth.entity.d.ts +16 -0
  17. package/dist/entities/oauth.entity.js +83 -0
  18. package/dist/entities/oauth.entity.js.map +1 -0
  19. package/dist/entities/sales/receipt.entity.d.ts +1 -0
  20. package/dist/entities/sales/receipt.entity.js +6 -0
  21. package/dist/entities/sales/receipt.entity.js.map +1 -1
  22. package/dist/entities/thirdparty/email-config.entity.js +1 -2
  23. package/dist/entities/thirdparty/email-config.entity.js.map +1 -1
  24. package/dist/grpc/drive/drive.proto +69 -69
  25. package/dist/modules/notifier/notifier.module.d.ts +4 -0
  26. package/dist/modules/notifier/notifier.module.js +52 -0
  27. package/dist/modules/notifier/notifier.module.js.map +1 -0
  28. package/dist/modules/notifier/notifier.service.d.ts +19 -0
  29. package/dist/modules/notifier/notifier.service.js +231 -0
  30. package/dist/modules/notifier/notifier.service.js.map +1 -0
  31. package/dist/modules/notifier/scheduler.service.d.ts +9 -0
  32. package/dist/modules/notifier/scheduler.service.js +40 -0
  33. package/dist/modules/notifier/scheduler.service.js.map +1 -0
  34. package/dist/modules/queue/subservices/calendar.service.d.ts +2 -0
  35. package/dist/modules/queue/subservices/calendar.service.js +17 -0
  36. package/dist/modules/queue/subservices/calendar.service.js.map +1 -0
  37. package/dist/modules/queue/subservices/contact.service.d.ts +7 -0
  38. package/dist/modules/queue/subservices/contact.service.js +49 -0
  39. package/dist/modules/queue/subservices/contact.service.js.map +1 -0
  40. package/dist/modules/queue/subservices/index.d.ts +3 -0
  41. package/dist/modules/queue/subservices/index.js +20 -0
  42. package/dist/modules/queue/subservices/index.js.map +1 -0
  43. package/dist/modules/queue/subservices/task.service.d.ts +12 -0
  44. package/dist/modules/queue/subservices/task.service.js +173 -0
  45. package/dist/modules/queue/subservices/task.service.js.map +1 -0
  46. package/package.json +42 -42
  47. package/scripts/bump.sh +5 -5
  48. package/test.bat +15 -15
  49. package/tsconfig.build.json +4 -4
  50. package/tsconfig.json +26 -26
  51. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,173 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TaskNotifierService = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const notifier_service_1 = require("../notifier.service");
15
+ const common_2 = require("../../../common");
16
+ let TaskNotifierService = class TaskNotifierService {
17
+ parent;
18
+ constructor(parent) {
19
+ this.parent = parent;
20
+ }
21
+ async notifyTaskCompletion(task, recipientsId) {
22
+ const metadata = {
23
+ taskId: task.id,
24
+ taskOwnerId: task.createdBy.id,
25
+ taskResponsibleId: task.responsible[0].id,
26
+ };
27
+ const notificationDto = {
28
+ title: "Task Completed",
29
+ content: `The task ${task.name} has been completed`,
30
+ recipientsId,
31
+ entityId: task.id,
32
+ channels: [common_2.NotificationChannel.APP],
33
+ category: common_2.NotificationCategory.TASK,
34
+ subCategory: common_2.NotificationSubcategory.TASK_COMPLETED,
35
+ metadata,
36
+ };
37
+ await this.parent.sendNotification(notificationDto);
38
+ }
39
+ async notifyTaskOverdue(task, recipientsId) {
40
+ const metadata = {
41
+ taskId: task.id,
42
+ taskOwnerId: task.createdBy.id,
43
+ taskResponsibleId: task.responsible[0].id,
44
+ };
45
+ const notificationDto = {
46
+ title: "Task Overdue",
47
+ content: `La tarea [#${task.number}] - ${task.name} está atrasada`,
48
+ recipientsId,
49
+ entityId: task.id,
50
+ channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
51
+ category: common_2.NotificationCategory.TASK,
52
+ subCategory: common_2.NotificationSubcategory.TASK_OVERDUE,
53
+ metadata,
54
+ };
55
+ await this.parent.sendNotification(notificationDto);
56
+ }
57
+ async notifyTaskContinue(task, recipientsId) {
58
+ const metadata = {
59
+ taskId: task.id,
60
+ taskOwnerId: task.createdBy.id,
61
+ taskResponsibleId: task.responsible[0].id,
62
+ };
63
+ const notificationDto = {
64
+ title: "Task Continue",
65
+ content: `La tarea #${task.number} - ${task.name}, ha sido reanudada`,
66
+ recipientsId,
67
+ entityId: task.id,
68
+ channels: [common_2.NotificationChannel.APP],
69
+ category: common_2.NotificationCategory.TASK,
70
+ subCategory: common_2.NotificationSubcategory.TASK_UPDATED,
71
+ metadata,
72
+ };
73
+ await this.parent.sendNotification(notificationDto);
74
+ }
75
+ async notifyNewTask(task, recipientsId) {
76
+ const fechaLimite = task.deadline ? `<br/>Fecha Limite:${new Date(task.deadline)}` : ``;
77
+ const observadores = task.observers.length > 0 ? `<br/>Observadores: ${task.observers.map(observer => observer.username).join(", ")}` : ``;
78
+ const responsible = task.responsible.length > 0 ? `<br/>Persona Responsable: ${task.responsible.map(responsible => responsible.username).join(", ")}` : ``;
79
+ const participants = task.participants.length > 0 ? `<br/>Participantes: ${task.participants.map(participant => participant.username).join(", ")}` : ``;
80
+ const content = `Nueva Tarea agregada: <a href="/tools/tasks/task/${task.id}?show=true" style="color:blue">[${task.name}]</a>${responsible}${observadores}${participants}${fechaLimite}`;
81
+ const metadata = {
82
+ taskId: task.id,
83
+ taskOwnerId: task.createdBy.id,
84
+ taskResponsibleId: task.responsible[0].id,
85
+ };
86
+ const notificationDto = {
87
+ title: "New Task",
88
+ content,
89
+ recipientsId,
90
+ entityId: task.id,
91
+ channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
92
+ category: common_2.NotificationCategory.TASK,
93
+ subCategory: common_2.NotificationSubcategory.NEW_TASK,
94
+ metadata,
95
+ };
96
+ await this.parent.sendNotification(notificationDto);
97
+ }
98
+ async notifyTaskUpdate(task, recipientsId, changedFields) {
99
+ const metadata = {
100
+ taskId: task.id,
101
+ taskOwnerId: task.createdBy.id,
102
+ taskResponsibleId: task.responsible[0].id,
103
+ };
104
+ const createNotificationDto = (content, recipients) => ({
105
+ title: "Task Update",
106
+ content,
107
+ recipientsId: recipients,
108
+ entityId: task.id,
109
+ channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
110
+ category: common_2.NotificationCategory.TASK,
111
+ subCategory: common_2.NotificationSubcategory.TASK_UPDATED,
112
+ metadata,
113
+ });
114
+ const taskLink = `<a href="/tools/tasks/task/${task.id}?show=true" style="color:blue">[${task.name}]</a>`;
115
+ let content = `Tarea #${task.number} - ${taskLink}`;
116
+ if (changedFields.length === 0) {
117
+ content += " - ha sido actualizada";
118
+ await this.parent.sendNotification(createNotificationDto(content, recipientsId));
119
+ return;
120
+ }
121
+ content += " - se actualizó:";
122
+ if (changedFields.includes("deadline")) {
123
+ if (task.deadline) {
124
+ const deadLine = new Date(task.deadline);
125
+ content += `<br/>Fecha Limite cambiada: ${deadLine.getDate()}/${deadLine.getMonth() + 1}/${deadLine.getFullYear()}`;
126
+ }
127
+ else {
128
+ content += `<br/>Fecha Limite cambiada: Ninguna`;
129
+ }
130
+ }
131
+ if (changedFields.includes("responsible")) {
132
+ content = `Se le asignó la tarea #${task.number} - ${taskLink}`;
133
+ await this.parent.sendNotification(createNotificationDto(content, [task.responsible[0].id]));
134
+ }
135
+ else {
136
+ if (changedFields.includes("name"))
137
+ content += `<br/>Nombre: ${task.name}`;
138
+ if (changedFields.includes("description"))
139
+ content += `<br/>Descripción: ${task.description}`;
140
+ if (changedFields.includes("status"))
141
+ content += `<br/>Estado: ${task.status}`;
142
+ await this.parent.sendNotification(createNotificationDto(content, recipientsId));
143
+ }
144
+ }
145
+ async notifyNewComment(task, comment, recipientsId) {
146
+ const commentText = comment.comment.slice(0, 20);
147
+ const content = `${comment.createdBy.name} comentó en la tarea: <a href="/tools/tasks/task/${task.id}?show=true" style="color:#170f6b">[${task.name}]</a>. Texto del comentario: ${commentText}`;
148
+ const metadata = {
149
+ taskId: task.id,
150
+ commentId: comment.id,
151
+ taskOwnerId: task.createdBy.id,
152
+ commentOwnerId: comment.createdBy.id,
153
+ taskResponsibleId: task.responsible[0].id,
154
+ };
155
+ const notificationDto = {
156
+ title: "New Comment",
157
+ content,
158
+ recipientsId,
159
+ entityId: task.id,
160
+ channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
161
+ category: common_2.NotificationCategory.TASK,
162
+ subCategory: common_2.NotificationSubcategory.TASK_NEW_COMMNET,
163
+ metadata,
164
+ };
165
+ await this.parent.sendNotification(notificationDto);
166
+ }
167
+ };
168
+ exports.TaskNotifierService = TaskNotifierService;
169
+ exports.TaskNotifierService = TaskNotifierService = __decorate([
170
+ (0, common_1.Injectable)(),
171
+ __metadata("design:paramtypes", [notifier_service_1.EasyNotifierService])
172
+ ], TaskNotifierService);
173
+ //# sourceMappingURL=task.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task.service.js","sourceRoot":"","sources":["../../../../src/modules/queue/subservices/task.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,0DAA0D;AAC1D,4CAA0H;AAInH,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IACD;IAA7B,YAA6B,MAA2B;QAA3B,WAAM,GAAN,MAAM,CAAqB;IAAG,CAAC;IAE5D,KAAK,CAAC,oBAAoB,CAAC,IAAU,EAAE,YAAsB;QAC3D,MAAM,QAAQ,GAAG;YACb,MAAM,EAAE,IAAI,CAAC,EAAE;YACf,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE;YAC9B,iBAAiB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE;SAC5C,CAAC;QACF,MAAM,eAAe,GAAwB;YACzC,KAAK,EAAE,gBAAgB;YACvB,OAAO,EAAE,YAAY,IAAI,CAAC,IAAI,qBAAqB;YACnD,YAAY;YACZ,QAAQ,EAAE,IAAI,CAAC,EAAE;YACjB,QAAQ,EAAE,CAAC,4BAAmB,CAAC,GAAG,CAAC;YACnC,QAAQ,EAAE,6BAAoB,CAAC,IAAI;YACnC,WAAW,EAAE,gCAAuB,CAAC,cAAc;YACnD,QAAQ;SACX,CAAC;QAEF,MAAM,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,IAAU,EAAE,YAAsB;QACtD,M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;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;qCAE0B,sCAAmB;GAD7C,mBAAmB,CA4K/B"}
package/package.json CHANGED
@@ -1,42 +1,42 @@
1
- {
2
- "name": "easywork-common-lib",
3
- "version": "1.0.316",
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": "./scripts/bump.sh"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/criptopreto/easywork-common-lib.git"
13
- },
14
- "keywords": [
15
- "nodejs"
16
- ],
17
- "author": "Rosmer Campos",
18
- "license": "MIT",
19
- "bugs": {
20
- "url": "https://github.com/criptopreto/easywork-common-lib/issues"
21
- },
22
- "homepage": "https://github.com/criptopreto/easywork-common-lib#readme",
23
- "dependencies": {
24
- "@golevelup/nestjs-rabbitmq": "^5.3.0",
25
- "@nestjs/common": "^10.3.8",
26
- "@nestjs/swagger": "^7.4.0",
27
- "@nestjs/typeorm": "^10.0.2",
28
- "class-transformer": "^0.5.1",
29
- "class-validator": "^0.14.1",
30
- "nanoid": "3",
31
- "rxjs": "^7.8.1",
32
- "sharp": "^0.33.5",
33
- "typeorm": "^0.3.20"
34
- },
35
- "devDependencies": {
36
- "@rubiin/tsconfig": "^1.1.2",
37
- "@types/node": "^20.12.12",
38
- "cpx-fixed": "^1.6.0",
39
- "ts-loader": "^9.5.1",
40
- "typescript": "^5.4.5"
41
- }
42
- }
1
+ {
2
+ "name": "easywork-common-lib",
3
+ "version": "1.0.318",
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": "./scripts/bump.sh"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/criptopreto/easywork-common-lib.git"
13
+ },
14
+ "keywords": [
15
+ "nodejs"
16
+ ],
17
+ "author": "Rosmer Campos",
18
+ "license": "MIT",
19
+ "bugs": {
20
+ "url": "https://github.com/criptopreto/easywork-common-lib/issues"
21
+ },
22
+ "homepage": "https://github.com/criptopreto/easywork-common-lib#readme",
23
+ "dependencies": {
24
+ "@golevelup/nestjs-rabbitmq": "^5.3.0",
25
+ "@nestjs/common": "^10.3.8",
26
+ "@nestjs/swagger": "^7.4.0",
27
+ "@nestjs/typeorm": "^10.0.2",
28
+ "class-transformer": "^0.5.1",
29
+ "class-validator": "^0.14.1",
30
+ "nanoid": "3",
31
+ "rxjs": "^7.8.1",
32
+ "sharp": "^0.33.5",
33
+ "typeorm": "^0.3.20"
34
+ },
35
+ "devDependencies": {
36
+ "@rubiin/tsconfig": "^1.1.2",
37
+ "@types/node": "^20.12.12",
38
+ "cpx-fixed": "^1.6.0",
39
+ "ts-loader": "^9.5.1",
40
+ "typescript": "^5.4.5"
41
+ }
42
+ }
package/scripts/bump.sh CHANGED
@@ -1,6 +1,6 @@
1
- git add .
2
- git commit -m "bump version"
3
- npm version patch
4
- yarn build
5
- npm publish
1
+ git add .
2
+ git commit -m "bump version"
3
+ npm version patch
4
+ yarn build
5
+ npm publish
6
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
  )
@@ -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"]
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"]
26
+ }