easywork-common-lib 1.0.321 → 1.0.323

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 (52) 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/tools/task_crm.entity.d.ts +5 -3
  5. package/dist/entities/helpers/tools/task_crm.entity.js +35 -16
  6. package/dist/entities/helpers/tools/task_crm.entity.js.map +1 -1
  7. package/dist/entities/thirdparty/email-config.entity.d.ts +6 -6
  8. package/dist/entities/thirdparty/email-config.entity.js +22 -22
  9. package/dist/entities/thirdparty/email-config.entity.js.map +1 -1
  10. package/dist/grpc/drive/drive.proto +73 -73
  11. package/package.json +42 -42
  12. package/scripts/bump.sh +5 -5
  13. package/test.bat +15 -15
  14. package/tsconfig.build.json +4 -4
  15. package/tsconfig.json +26 -26
  16. package/tsconfig.tsbuildinfo +1 -1
  17. package/dist/entities/helpers/sales/contact/contact_sources.entity.d.ts +0 -5
  18. package/dist/entities/helpers/sales/contact/contact_sources.entity.js +0 -36
  19. package/dist/entities/helpers/sales/contact/contact_sources.entity.js.map +0 -1
  20. package/dist/entities/helpers/sales/contact/contact_types.entity.d.ts +0 -5
  21. package/dist/entities/helpers/sales/contact/contact_types.entity.js +0 -36
  22. package/dist/entities/helpers/sales/contact/contact_types.entity.js.map +0 -1
  23. package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.d.ts +0 -5
  24. package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js +0 -30
  25. package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js.map +0 -1
  26. package/dist/entities/imap-folder.entity.d.ts +0 -7
  27. package/dist/entities/imap-folder.entity.js +0 -41
  28. package/dist/entities/imap-folder.entity.js.map +0 -1
  29. package/dist/entities/oauth.entity.d.ts +0 -16
  30. package/dist/entities/oauth.entity.js +0 -83
  31. package/dist/entities/oauth.entity.js.map +0 -1
  32. package/dist/modules/notifier/notifier.module.d.ts +0 -4
  33. package/dist/modules/notifier/notifier.module.js +0 -52
  34. package/dist/modules/notifier/notifier.module.js.map +0 -1
  35. package/dist/modules/notifier/notifier.service.d.ts +0 -19
  36. package/dist/modules/notifier/notifier.service.js +0 -231
  37. package/dist/modules/notifier/notifier.service.js.map +0 -1
  38. package/dist/modules/notifier/scheduler.service.d.ts +0 -9
  39. package/dist/modules/notifier/scheduler.service.js +0 -40
  40. package/dist/modules/notifier/scheduler.service.js.map +0 -1
  41. package/dist/modules/queue/subservices/calendar.service.d.ts +0 -2
  42. package/dist/modules/queue/subservices/calendar.service.js +0 -17
  43. package/dist/modules/queue/subservices/calendar.service.js.map +0 -1
  44. package/dist/modules/queue/subservices/contact.service.d.ts +0 -7
  45. package/dist/modules/queue/subservices/contact.service.js +0 -49
  46. package/dist/modules/queue/subservices/contact.service.js.map +0 -1
  47. package/dist/modules/queue/subservices/index.d.ts +0 -3
  48. package/dist/modules/queue/subservices/index.js +0 -20
  49. package/dist/modules/queue/subservices/index.js.map +0 -1
  50. package/dist/modules/queue/subservices/task.service.d.ts +0 -12
  51. package/dist/modules/queue/subservices/task.service.js +0 -173
  52. package/dist/modules/queue/subservices/task.service.js.map +0 -1
@@ -1,5 +0,0 @@
1
- import { BaseEntity } from "../../../../common/database";
2
- export declare class ContactSource extends BaseEntity {
3
- name: string;
4
- isDefault: boolean;
5
- }
@@ -1,36 +0,0 @@
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.ContactSource = void 0;
13
- const database_1 = require("../../../../common/database");
14
- const class_validator_1 = require("class-validator");
15
- const typeorm_1 = require("typeorm");
16
- const swagger_1 = require("@nestjs/swagger");
17
- let ContactSource = class ContactSource extends database_1.BaseEntity {
18
- name;
19
- isDefault;
20
- };
21
- exports.ContactSource = ContactSource;
22
- __decorate([
23
- (0, swagger_1.ApiProperty)({ type: String, description: 'Name of the contact source', minLength: 3 }),
24
- (0, class_validator_1.MinLength)(3),
25
- (0, typeorm_1.Column)({ unique: true }),
26
- __metadata("design:type", String)
27
- ], ContactSource.prototype, "name", void 0);
28
- __decorate([
29
- (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is this the default contact source?', default: false }),
30
- (0, typeorm_1.Column)({ default: false }),
31
- __metadata("design:type", Boolean)
32
- ], ContactSource.prototype, "isDefault", void 0);
33
- exports.ContactSource = ContactSource = __decorate([
34
- (0, typeorm_1.Entity)()
35
- ], ContactSource);
36
- //# sourceMappingURL=contact_sources.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contact_sources.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/contact/contact_sources.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0DAAyD;AACzD,qDAA4C;AAC5C,qCAAyC;AACzC,6CAA8C;AAGvC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,qBAAU;IAI3C,IAAI,CAAS;IAIb,SAAS,CAAU;CACpB,CAAA;AATY,sCAAa;AAIxB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,4BAA4B,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACtF,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;2CACZ;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,qCAAqC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAClG,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;gDACR;wBARR,aAAa;IADzB,IAAA,gBAAM,GAAE;GACI,aAAa,CASzB"}
@@ -1,5 +0,0 @@
1
- import { BaseEntity } from "../../../../common/database";
2
- export declare class ContactType extends BaseEntity {
3
- name: string;
4
- isDefault: boolean;
5
- }
@@ -1,36 +0,0 @@
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.ContactType = void 0;
13
- const database_1 = require("../../../../common/database");
14
- const class_validator_1 = require("class-validator");
15
- const typeorm_1 = require("typeorm");
16
- const swagger_1 = require("@nestjs/swagger");
17
- let ContactType = class ContactType extends database_1.BaseEntity {
18
- name;
19
- isDefault;
20
- };
21
- exports.ContactType = ContactType;
22
- __decorate([
23
- (0, swagger_1.ApiProperty)({ type: String, description: 'Name of the contact type', minLength: 3 }),
24
- (0, class_validator_1.MinLength)(3),
25
- (0, typeorm_1.Column)({ unique: true }),
26
- __metadata("design:type", String)
27
- ], ContactType.prototype, "name", void 0);
28
- __decorate([
29
- (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is this the default contact type?', default: false }),
30
- (0, typeorm_1.Column)({ default: false }),
31
- __metadata("design:type", Boolean)
32
- ], ContactType.prototype, "isDefault", void 0);
33
- exports.ContactType = ContactType = __decorate([
34
- (0, typeorm_1.Entity)()
35
- ], ContactType);
36
- //# sourceMappingURL=contact_types.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contact_types.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/contact/contact_types.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0DAAyD;AACzD,qDAA4C;AAC5C,qCAAyC;AACzC,6CAA8C;AAGvC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,qBAAU;IAIzC,IAAI,CAAS;IAIb,SAAS,CAAU;CACpB,CAAA;AATY,kCAAW;AAItB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,0BAA0B,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACpF,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;yCACZ;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,mCAAmC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAChG,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8CACR;sBARR,WAAW;IADvB,IAAA,gBAAM,GAAE;GACI,WAAW,CASvB"}
@@ -1,5 +0,0 @@
1
- import { BaseEntity } from "typeorm";
2
- export declare class PolizaCompany extends BaseEntity {
3
- id?: string;
4
- name: string;
5
- }
@@ -1,30 +0,0 @@
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.PolizaCompany = void 0;
13
- const typeorm_1 = require("typeorm");
14
- let PolizaCompany = class PolizaCompany extends typeorm_1.BaseEntity {
15
- id;
16
- name;
17
- };
18
- exports.PolizaCompany = PolizaCompany;
19
- __decorate([
20
- (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
21
- __metadata("design:type", String)
22
- ], PolizaCompany.prototype, "id", void 0);
23
- __decorate([
24
- (0, typeorm_1.Column)({ unique: true }),
25
- __metadata("design:type", String)
26
- ], PolizaCompany.prototype, "name", void 0);
27
- exports.PolizaCompany = PolizaCompany = __decorate([
28
- (0, typeorm_1.Entity)()
29
- ], PolizaCompany);
30
- //# sourceMappingURL=h_poliza_company.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"h_poliza_company.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/h_poliza_company.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA8E;AAGvE,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,oBAAU;IAEzC,EAAE,CAAU;IAGZ,IAAI,CAAS;CAChB,CAAA;AANY,sCAAa;AAEtB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;yCACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;2CACZ;wBALJ,aAAa;IADzB,IAAA,gBAAM,GAAE;GACI,aAAa,CAMzB"}
@@ -1,7 +0,0 @@
1
- import { BaseEntity } from "../common/database";
2
- export declare class ImapFolder extends BaseEntity {
3
- imapFolderId: string;
4
- mailboxName: string;
5
- userId: string;
6
- type: string;
7
- }
@@ -1,41 +0,0 @@
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.ImapFolder = void 0;
13
- const database_1 = require("../common/database");
14
- const typeorm_1 = require("typeorm");
15
- let ImapFolder = class ImapFolder extends database_1.BaseEntity {
16
- imapFolderId;
17
- mailboxName;
18
- userId;
19
- type;
20
- };
21
- exports.ImapFolder = ImapFolder;
22
- __decorate([
23
- (0, typeorm_1.Column)(),
24
- __metadata("design:type", String)
25
- ], ImapFolder.prototype, "imapFolderId", void 0);
26
- __decorate([
27
- (0, typeorm_1.Column)(),
28
- __metadata("design:type", String)
29
- ], ImapFolder.prototype, "mailboxName", void 0);
30
- __decorate([
31
- (0, typeorm_1.Column)(),
32
- __metadata("design:type", String)
33
- ], ImapFolder.prototype, "userId", void 0);
34
- __decorate([
35
- (0, typeorm_1.Column)(),
36
- __metadata("design:type", String)
37
- ], ImapFolder.prototype, "type", void 0);
38
- exports.ImapFolder = ImapFolder = __decorate([
39
- (0, typeorm_1.Entity)()
40
- ], ImapFolder);
41
- //# sourceMappingURL=imap-folder.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"imap-folder.entity.js","sourceRoot":"","sources":["../../src/entities/imap-folder.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,qCAAyC;AAGlC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,qBAAU;IAEtC,YAAY,CAAS;IAGrB,WAAW,CAAS;IAGpB,MAAM,CAAS;IAGf,IAAI,CAAS;CAChB,CAAA;AAZY,gCAAU;AAEnB;IADC,IAAA,gBAAM,GAAE;;gDACY;AAGrB;IADC,IAAA,gBAAM,GAAE;;+CACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;0CACM;AAGf;IADC,IAAA,gBAAM,GAAE;;wCACI;qBAXJ,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CAYtB"}
@@ -1,16 +0,0 @@
1
- import { BaseEntity } from "../common/database";
2
- import { EmailThirdparty } from "./thirdparty/email.entity";
3
- export declare class Oauth extends BaseEntity {
4
- service: number;
5
- refresh_token: string;
6
- access_token: string;
7
- expires_in: number;
8
- userId: string;
9
- usergoogle_id: string;
10
- family_name: string;
11
- given_name: string;
12
- email: string;
13
- picture: string;
14
- id_token: string;
15
- emails: EmailThirdparty[];
16
- }
@@ -1,83 +0,0 @@
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.Oauth = void 0;
13
- const database_1 = require("../common/database");
14
- const typeorm_1 = require("typeorm");
15
- const email_entity_1 = require("./thirdparty/email.entity");
16
- let Oauth = class Oauth extends database_1.BaseEntity {
17
- service;
18
- refresh_token;
19
- access_token;
20
- expires_in;
21
- userId;
22
- usergoogle_id;
23
- family_name;
24
- given_name;
25
- email;
26
- picture;
27
- id_token;
28
- emails;
29
- };
30
- exports.Oauth = Oauth;
31
- __decorate([
32
- (0, typeorm_1.Column)("int"),
33
- __metadata("design:type", Number)
34
- ], Oauth.prototype, "service", void 0);
35
- __decorate([
36
- (0, typeorm_1.Column)(),
37
- __metadata("design:type", String)
38
- ], Oauth.prototype, "refresh_token", void 0);
39
- __decorate([
40
- (0, typeorm_1.Column)(),
41
- __metadata("design:type", String)
42
- ], Oauth.prototype, "access_token", void 0);
43
- __decorate([
44
- (0, typeorm_1.Column)("int"),
45
- __metadata("design:type", Number)
46
- ], Oauth.prototype, "expires_in", void 0);
47
- __decorate([
48
- (0, typeorm_1.Column)(),
49
- __metadata("design:type", String)
50
- ], Oauth.prototype, "userId", void 0);
51
- __decorate([
52
- (0, typeorm_1.Column)({ nullable: true }),
53
- __metadata("design:type", String)
54
- ], Oauth.prototype, "usergoogle_id", void 0);
55
- __decorate([
56
- (0, typeorm_1.Column)({ nullable: true }),
57
- __metadata("design:type", String)
58
- ], Oauth.prototype, "family_name", void 0);
59
- __decorate([
60
- (0, typeorm_1.Column)({ nullable: true }),
61
- __metadata("design:type", String)
62
- ], Oauth.prototype, "given_name", void 0);
63
- __decorate([
64
- (0, typeorm_1.Column)({ nullable: true }),
65
- __metadata("design:type", String)
66
- ], Oauth.prototype, "email", void 0);
67
- __decorate([
68
- (0, typeorm_1.Column)({ nullable: true }),
69
- __metadata("design:type", String)
70
- ], Oauth.prototype, "picture", void 0);
71
- __decorate([
72
- (0, typeorm_1.Column)({ nullable: true }),
73
- __metadata("design:type", String)
74
- ], Oauth.prototype, "id_token", void 0);
75
- __decorate([
76
- (0, typeorm_1.OneToMany)(() => email_entity_1.EmailThirdparty, email => email.id),
77
- __metadata("design:type", Array)
78
- ], Oauth.prototype, "emails", void 0);
79
- exports.Oauth = Oauth = __decorate([
80
- (0, typeorm_1.Entity)(),
81
- (0, typeorm_1.Index)(["email"], { unique: true })
82
- ], Oauth);
83
- //# sourceMappingURL=oauth.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oauth.entity.js","sourceRoot":"","sources":["../../src/entities/oauth.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,qCAA2D;AAC3D,4DAA2D;AAIpD,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,qBAAU;IAEnC,OAAO,CAAS;IAGhB,aAAa,CAAS;IAGtB,YAAY,CAAS;IAGrB,UAAU,CAAS;IAGnB,MAAM,CAAS;IAGf,aAAa,CAAS;IAGtB,WAAW,CAAS;IAGpB,UAAU,CAAS;IAGnB,KAAK,CAAS;IAGd,OAAO,CAAS;IAGhB,QAAQ,CAAS;IAGjB,MAAM,CAAoB;CAC3B,CAAA;AApCY,sBAAK;AAEhB;IADC,IAAA,gBAAM,EAAC,KAAK,CAAC;;sCACE;AAGhB;IADC,IAAA,gBAAM,GAAE;;4CACa;AAGtB;IADC,IAAA,gBAAM,GAAE;;2CACY;AAGrB;IADC,IAAA,gBAAM,EAAC,KAAK,CAAC;;yCACK;AAGnB;IADC,IAAA,gBAAM,GAAE;;qCACM;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACL;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACR;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACb;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACX;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACV;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;;qCAC1B;gBAnCf,KAAK;IAFjB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACtB,KAAK,CAoCjB"}
@@ -1,4 +0,0 @@
1
- import { DynamicModule } from '@nestjs/common';
2
- export declare class EasyNotifierModule {
3
- static register(exchangeName: string, routingKey: string, rabbitMQUri: string): DynamicModule;
4
- }
@@ -1,52 +0,0 @@
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 EasyNotifierModule_1;
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.EasyNotifierModule = void 0;
11
- const common_1 = require("@nestjs/common");
12
- const notifier_service_1 = require("./notifier.service");
13
- const nestjs_rabbitmq_1 = require("@golevelup/nestjs-rabbitmq");
14
- const scheduler_service_1 = require("./scheduler.service");
15
- let EasyNotifierModule = EasyNotifierModule_1 = class EasyNotifierModule {
16
- static register(exchangeName, routingKey, rabbitMQUri) {
17
- console.log(`EasyNotifierModule.register: exchangeName=${exchangeName}, routingKey=${routingKey}, rabbitMQUri=${rabbitMQUri}`);
18
- return {
19
- module: EasyNotifierModule_1,
20
- imports: [
21
- nestjs_rabbitmq_1.RabbitMQModule.forRoot(nestjs_rabbitmq_1.RabbitMQModule, {
22
- exchanges: [
23
- {
24
- name: exchangeName,
25
- type: 'topic',
26
- },
27
- ],
28
- uri: rabbitMQUri,
29
- }),
30
- ],
31
- providers: [
32
- {
33
- provide: 'EXCHANGE_NAME',
34
- useValue: exchangeName,
35
- },
36
- {
37
- provide: 'ROUTING_KEY',
38
- useValue: routingKey,
39
- },
40
- notifier_service_1.EasyNotifierService,
41
- scheduler_service_1.EasySchedulerService,
42
- ],
43
- exports: [notifier_service_1.EasyNotifierService, scheduler_service_1.EasySchedulerService],
44
- };
45
- }
46
- };
47
- exports.EasyNotifierModule = EasyNotifierModule;
48
- exports.EasyNotifierModule = EasyNotifierModule = EasyNotifierModule_1 = __decorate([
49
- (0, common_1.Global)(),
50
- (0, common_1.Module)({})
51
- ], EasyNotifierModule);
52
- //# sourceMappingURL=notifier.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notifier.module.js","sourceRoot":"","sources":["../../../src/modules/notifier/notifier.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA+D;AAC/D,yDAAyD;AACzD,gEAA4D;AAC5D,2DAA2D;AAIpD,IAAM,kBAAkB,0BAAxB,MAAM,kBAAkB;IAC3B,MAAM,CAAC,QAAQ,CAAC,YAAoB,EAAE,UAAkB,EAAE,WAAmB;QAEzE,OAAO,CAAC,GAAG,CAAC,6CAA6C,YAAY,gBAAgB,UAAU,iBAAiB,WAAW,EAAE,CAAC,CAAC;QAC/H,OAAO;YACH,MAAM,EAAE,oBAAkB;YAC1B,OAAO,EAAE;gBACL,gCAAc,CAAC,OAAO,CAAC,gCAAc,EAAE;oBACnC,SAAS,EAAE;wBACP;4BACI,IAAI,EAAE,YAAY;4BAClB,IAAI,EAAE,OAAO;yBAChB;qBACJ;oBACD,GAAG,EAAE,WAAW;iBACnB,CAAC;aACL;YACD,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,eAAe;oBACxB,QAAQ,EAAE,YAAY;iBACzB;gBACD;oBACI,OAAO,EAAE,aAAa;oBACtB,QAAQ,EAAE,UAAU;iBACvB;gBACD,sCAAmB;gBACnB,wCAAoB;aACvB;YACD,OAAO,EAAE,CAAC,sCAAmB,EAAE,wCAAoB,CAAC;SACvD,CAAC;IACN,CAAC;CACJ,CAAA;AAhCY,gDAAkB;6BAAlB,kBAAkB;IAF9B,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,kBAAkB,CAgC9B"}
@@ -1,19 +0,0 @@
1
- import { AmqpConnection } from "@golevelup/nestjs-rabbitmq";
2
- import { SendNotificationDto } from "../../common";
3
- import { Contact, ContactComment, Task, TaskComment } from "../../entities";
4
- export declare class EasyNotifierService {
5
- private readonly amqpConnection;
6
- private readonly exchangeName;
7
- private readonly routingKey;
8
- constructor(amqpConnection: AmqpConnection, exchangeName: string, routingKey: string);
9
- sendNotification(data: SendNotificationDto): Promise<void>;
10
- notifyTaskCompletion(task: Task, recipientsId: string[]): Promise<void>;
11
- notifyTaskOverdue(task: Task, recipientsId: string[]): Promise<void>;
12
- notifyTaskContinue(task: Task, recipientsId: string[]): Promise<void>;
13
- notifyNewTask(task: Task, recipientsId: string[]): Promise<void>;
14
- notifyTaskUpdate(task: Task, recipientsId: string[], changedFields: string[]): Promise<void>;
15
- notifyNewComment(task: Task, comment: TaskComment, recipientsId: string[]): Promise<void>;
16
- notifyNewCommentContact(contact: Contact, comment: ContactComment, recipientsId: string[]): Promise<void>;
17
- sendOTPPhone(code: string, recipientsId: string[]): Promise<void>;
18
- sendOTPEmail(code: string, recipientsId: string[]): Promise<void>;
19
- }
@@ -1,231 +0,0 @@
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
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.EasyNotifierService = void 0;
16
- const nestjs_rabbitmq_1 = require("@golevelup/nestjs-rabbitmq");
17
- const common_1 = require("@nestjs/common");
18
- const common_2 = require("../../common");
19
- const logger = new common_1.Logger("EasyNotifierService");
20
- let EasyNotifierService = class EasyNotifierService {
21
- amqpConnection;
22
- exchangeName;
23
- routingKey;
24
- constructor(amqpConnection, exchangeName, routingKey) {
25
- this.amqpConnection = amqpConnection;
26
- this.exchangeName = exchangeName;
27
- this.routingKey = routingKey;
28
- }
29
- async sendNotification(data) {
30
- logger.debug(`Sending notification: ${JSON.stringify(data)}`);
31
- await this.amqpConnection.publish(this.exchangeName, this.routingKey, data);
32
- }
33
- async notifyTaskCompletion(task, recipientsId) {
34
- const metadata = {
35
- taskId: task.id,
36
- taskOwnerId: task.createdBy.id,
37
- taskResponsibleId: task.responsible[0].id,
38
- };
39
- const notificationDto = {
40
- title: "Task Completed",
41
- content: `The task ${task.name} has been completed`,
42
- recipientsId,
43
- entityId: task.id,
44
- channels: [common_2.NotificationChannel.APP],
45
- category: common_2.NotificationCategory.TASK,
46
- subCategory: common_2.NotificationSubcategory.TASK_COMPLETED,
47
- metadata,
48
- };
49
- await this.sendNotification(notificationDto);
50
- }
51
- async notifyTaskOverdue(task, recipientsId) {
52
- const metadata = {
53
- taskId: task.id,
54
- taskOwnerId: task.createdBy.id,
55
- taskResponsibleId: task.responsible[0].id,
56
- };
57
- const notificationDto = {
58
- title: "Task Overdue",
59
- content: `La tarea [#${task.number}] - ${task.name} está atrasada`,
60
- recipientsId,
61
- entityId: task.id,
62
- channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
63
- category: common_2.NotificationCategory.TASK,
64
- subCategory: common_2.NotificationSubcategory.TASK_OVERDUE,
65
- metadata,
66
- };
67
- await this.sendNotification(notificationDto);
68
- }
69
- async notifyTaskContinue(task, recipientsId) {
70
- const metadata = {
71
- taskId: task.id,
72
- taskOwnerId: task.createdBy.id,
73
- taskResponsibleId: task.responsible[0].id,
74
- };
75
- const notificationDto = {
76
- title: "Task Continue",
77
- content: `La tarea #${task.number} - ${task.name}, ha sido reanudada`,
78
- recipientsId,
79
- entityId: task.id,
80
- channels: [common_2.NotificationChannel.APP],
81
- category: common_2.NotificationCategory.TASK,
82
- subCategory: common_2.NotificationSubcategory.TASK_UPDATED,
83
- metadata,
84
- };
85
- await this.sendNotification(notificationDto);
86
- }
87
- async notifyNewTask(task, recipientsId) {
88
- const fechaLimite = task.deadline ? `<br/>Fecha Limite:${new Date(task.deadline)}` : ``;
89
- const observadores = task.observers.length > 0 ? `<br/>Observadores: ${task.observers.map(observer => observer.username).join(", ")}` : ``;
90
- const responsible = task.responsible.length > 0 ? `<br/>Persona Responsable: ${task.responsible.map(responsible => responsible.username).join(", ")}` : ``;
91
- const participants = task.participants.length > 0 ? `<br/>Participantes: ${task.participants.map(participant => participant.username).join(", ")}` : ``;
92
- const content = `Nueva Tarea agregada: <a href="/tools/tasks/task/${task.id}?show=true" style="color:blue">[${task.name}]</a>${responsible}${observadores}${participants}${fechaLimite}`;
93
- const metadata = {
94
- taskId: task.id,
95
- taskOwnerId: task.createdBy.id,
96
- taskResponsibleId: task.responsible[0].id,
97
- };
98
- const notificationDto = {
99
- title: "New Task",
100
- content,
101
- recipientsId,
102
- entityId: task.id,
103
- channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
104
- category: common_2.NotificationCategory.TASK,
105
- subCategory: common_2.NotificationSubcategory.NEW_TASK,
106
- metadata,
107
- };
108
- await this.sendNotification(notificationDto);
109
- }
110
- async notifyTaskUpdate(task, recipientsId, changedFields) {
111
- const metadata = {
112
- taskId: task.id,
113
- taskOwnerId: task.createdBy.id,
114
- taskResponsibleId: task.responsible[0].id,
115
- };
116
- const createNotificationDto = (content, recipients) => ({
117
- title: "Task Update",
118
- content,
119
- recipientsId: recipients,
120
- entityId: task.id,
121
- channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
122
- category: common_2.NotificationCategory.TASK,
123
- subCategory: common_2.NotificationSubcategory.TASK_UPDATED,
124
- metadata,
125
- });
126
- const taskLink = `<a href="/tools/tasks/task/${task.id}?show=true" style="color:blue">[${task.name}]</a>`;
127
- let content = `Tarea #${task.number} - ${taskLink}`;
128
- if (changedFields.length === 0) {
129
- content += " - ha sido actualizada";
130
- await this.sendNotification(createNotificationDto(content, recipientsId));
131
- return;
132
- }
133
- content += " - se actualizó:";
134
- if (changedFields.includes("deadline")) {
135
- if (task.deadline) {
136
- const deadLine = new Date(task.deadline);
137
- content += `<br/>Fecha Limite cambiada: ${deadLine.getDate()}/${deadLine.getMonth() + 1}/${deadLine.getFullYear()}`;
138
- }
139
- else {
140
- content += `<br/>Fecha Limite cambiada: Ninguna`;
141
- }
142
- }
143
- if (changedFields.includes("responsible")) {
144
- content = `Se le asignó la tarea #${task.number} - ${taskLink}`;
145
- await this.sendNotification(createNotificationDto(content, [task.responsible[0].id]));
146
- }
147
- else {
148
- if (changedFields.includes("name"))
149
- content += `<br/>Nombre: ${task.name}`;
150
- if (changedFields.includes("description"))
151
- content += `<br/>Descripción: ${task.description}`;
152
- if (changedFields.includes("status"))
153
- content += `<br/>Estado: ${task.status}`;
154
- await this.sendNotification(createNotificationDto(content, recipientsId));
155
- }
156
- }
157
- async notifyNewComment(task, comment, recipientsId) {
158
- const commentText = comment.comment.slice(0, 20);
159
- 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}`;
160
- const metadata = {
161
- taskId: task.id,
162
- commentId: comment.id,
163
- taskOwnerId: task.createdBy.id,
164
- commentOwnerId: comment.createdBy.id,
165
- taskResponsibleId: task.responsible[0].id,
166
- };
167
- const notificationDto = {
168
- title: "New Comment",
169
- content,
170
- recipientsId,
171
- entityId: task.id,
172
- channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
173
- category: common_2.NotificationCategory.TASK,
174
- subCategory: common_2.NotificationSubcategory.TASK_NEW_COMMNET,
175
- metadata,
176
- };
177
- await this.sendNotification(notificationDto);
178
- }
179
- async notifyNewCommentContact(contact, comment, recipientsId) {
180
- const commentText = comment.comment.slice(0, 20);
181
- const content = `${comment.createdBy.name} comentó en el contacto: <a href="/sales/contacts/contact/${contact.id}?show=true" style="color:#170f6b">[${contact.name}]</a>. Texto del comentario: ${commentText}`;
182
- const metadata = {
183
- contactId: contact.id,
184
- commentId: comment.id,
185
- contactOwnerId: contact.createdBy?.id,
186
- commentOwnerId: comment.createdBy?.id,
187
- contactAssignedId: contact?.assignedBy?.id,
188
- };
189
- const notificationDto = {
190
- title: "New Comment",
191
- content,
192
- recipientsId,
193
- entityId: contact.id,
194
- channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
195
- category: common_2.NotificationCategory.CRM,
196
- subCategory: common_2.NotificationSubcategory.CONTACT_NEW_COMMENT,
197
- metadata,
198
- };
199
- await this.sendNotification(notificationDto);
200
- }
201
- async sendOTPPhone(code, recipientsId) {
202
- const notificationDto = {
203
- title: "OTP Code",
204
- content: `Easywork: Your OTP code is ${code}`,
205
- recipientsId,
206
- channels: [common_2.NotificationChannel.SMS],
207
- category: common_2.NotificationCategory.OTP,
208
- subCategory: common_2.NotificationSubcategory.OTP,
209
- };
210
- await this.sendNotification(notificationDto);
211
- }
212
- async sendOTPEmail(code, recipientsId) {
213
- const notificationDto = {
214
- title: "OTP Code",
215
- content: code,
216
- recipientsId,
217
- channels: [common_2.NotificationChannel.EMAIL],
218
- category: common_2.NotificationCategory.OTP,
219
- subCategory: common_2.NotificationSubcategory.OTP,
220
- };
221
- await this.sendNotification(notificationDto);
222
- }
223
- };
224
- exports.EasyNotifierService = EasyNotifierService;
225
- exports.EasyNotifierService = EasyNotifierService = __decorate([
226
- (0, common_1.Injectable)(),
227
- __param(1, (0, common_1.Inject)('EXCHANGE_NAME')),
228
- __param(2, (0, common_1.Inject)('ROUTING_KEY')),
229
- __metadata("design:paramtypes", [nestjs_rabbitmq_1.AmqpConnection, String, String])
230
- ], EasyNotifierService);
231
- //# sourceMappingURL=notifier.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notifier.service.js","sourceRoot":"","sources":["../../../src/modules/notifier/notifier.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAA4D;AAC5D,2CAA4D;AAC5D,yCAAuH;AAGvH,MAAM,MAAM,GAAG,IAAI,eAAM,CAAC,qBAAqB,CAAC,CAAC;AAG1C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAEP;IACyB;IACF;IAH5C,YACqB,cAA8B,EACL,YAAoB,EACtB,UAAkB;QAFzC,mBAAc,GAAd,cAAc,CAAgB;QACL,iBAAY,GAAZ,YAAY,CAAQ;QACtB,eAAU,GAAV,UAAU,CAAQ;IAC1D,CAAC;IAEL,KAAK,CAAC,gBAAgB,CAAC,IAAyB;QAC5C,MAAM,CAAC,KAAK,CAAC,yBAAyB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC9D,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CA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}
@@ -1,9 +0,0 @@
1
- import { AmqpConnection } from "@golevelup/nestjs-rabbitmq";
2
- import { Task } from "../../entities";
3
- export declare class EasySchedulerService {
4
- private readonly amqpConnection;
5
- private readonly exchangeName;
6
- private readonly routingKey;
7
- constructor(amqpConnection: AmqpConnection, exchangeName: string, routingKey: string);
8
- scheduleTaskAlerts(task: Task): Promise<void>;
9
- }