easywork-common-lib 1.0.114 → 1.0.116

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 (72) hide show
  1. package/dist/common/enums/notification.enum.d.ts +0 -22
  2. package/dist/common/enums/notification.enum.js +1 -25
  3. package/dist/common/enums/notification.enum.js.map +1 -1
  4. package/dist/common/index.d.ts +0 -4
  5. package/dist/common/index.js +0 -4
  6. package/dist/common/index.js.map +1 -1
  7. package/dist/entities/index.d.ts +0 -1
  8. package/dist/entities/index.js +0 -1
  9. package/dist/entities/index.js.map +1 -1
  10. package/package.json +1 -1
  11. package/scripts/bump.sh +5 -5
  12. package/tsconfig.tsbuildinfo +1 -1
  13. package/dist/common/constants/index.d.ts +0 -1
  14. package/dist/common/constants/index.js +0 -18
  15. package/dist/common/constants/index.js.map +0 -1
  16. package/dist/common/constants/regex.constant.d.ts +0 -6
  17. package/dist/common/constants/regex.constant.js +0 -10
  18. package/dist/common/constants/regex.constant.js.map +0 -1
  19. package/dist/common/dtos/index.d.ts +0 -1
  20. package/dist/common/dtos/index.js +0 -18
  21. package/dist/common/dtos/index.js.map +0 -1
  22. package/dist/common/dtos/send-notification.dto.d.ts +0 -10
  23. package/dist/common/dtos/send-notification.dto.js +0 -54
  24. package/dist/common/dtos/send-notification.dto.js.map +0 -1
  25. package/dist/common/helpers/app.utils.d.ts +0 -5
  26. package/dist/common/helpers/app.utils.js +0 -32
  27. package/dist/common/helpers/app.utils.js.map +0 -1
  28. package/dist/common/helpers/helpers.utils.d.ts +0 -5
  29. package/dist/common/helpers/helpers.utils.js +0 -26
  30. package/dist/common/helpers/helpers.utils.js.map +0 -1
  31. package/dist/common/helpers/index.d.ts +0 -2
  32. package/dist/common/helpers/index.js +0 -19
  33. package/dist/common/helpers/index.js.map +0 -1
  34. package/dist/common/interceptors/index.d.ts +0 -1
  35. package/dist/common/interceptors/index.js +0 -18
  36. package/dist/common/interceptors/index.js.map +0 -1
  37. package/dist/common/interceptors/security.interceptor.d.ts +0 -5
  38. package/dist/common/interceptors/security.interceptor.js +0 -22
  39. package/dist/common/interceptors/security.interceptor.js.map +0 -1
  40. package/dist/entities/helpers/contact_email.entity.d.ts +0 -11
  41. package/dist/entities/helpers/contact_email.entity.js +0 -61
  42. package/dist/entities/helpers/contact_email.entity.js.map +0 -1
  43. package/dist/entities/helpers/contact_phone.entity.d.ts +0 -11
  44. package/dist/entities/helpers/contact_phone.entity.js +0 -61
  45. package/dist/entities/helpers/contact_phone.entity.js.map +0 -1
  46. package/dist/entities/helpers/contact_sources.entity.d.ts +0 -5
  47. package/dist/entities/helpers/contact_sources.entity.js +0 -33
  48. package/dist/entities/helpers/contact_sources.entity.js.map +0 -1
  49. package/dist/entities/helpers/contact_types.entity.d.ts +0 -5
  50. package/dist/entities/helpers/contact_types.entity.js +0 -33
  51. package/dist/entities/helpers/contact_types.entity.js.map +0 -1
  52. package/dist/entities/helpers/lead_email.entity.d.ts +0 -11
  53. package/dist/entities/helpers/lead_email.entity.js +0 -59
  54. package/dist/entities/helpers/lead_email.entity.js.map +0 -1
  55. package/dist/entities/helpers/lead_phone.entity.d.ts +0 -11
  56. package/dist/entities/helpers/lead_phone.entity.js +0 -59
  57. package/dist/entities/helpers/lead_phone.entity.js.map +0 -1
  58. package/dist/entities/helpers/sales/h_poliza_forma_cobro.entity.d.ts +0 -5
  59. package/dist/entities/helpers/sales/h_poliza_forma_cobro.entity.js +0 -30
  60. package/dist/entities/helpers/sales/h_poliza_forma_cobro.entity.js.map +0 -1
  61. package/dist/entities/helpers/sales/h_poliza_frecuencia_pago.entity.d.ts +0 -6
  62. package/dist/entities/helpers/sales/h_poliza_frecuencia_pago.entity.js +0 -35
  63. package/dist/entities/helpers/sales/h_poliza_frecuencia_pago.entity.js.map +0 -1
  64. package/dist/entities/helpers/sales/h_poliza_type.entity.d.ts +0 -5
  65. package/dist/entities/helpers/sales/h_poliza_type.entity.js +0 -30
  66. package/dist/entities/helpers/sales/h_poliza_type.entity.js.map +0 -1
  67. package/dist/entities/notifications/index.d.ts +0 -1
  68. package/dist/entities/notifications/index.js +0 -18
  69. package/dist/entities/notifications/index.js.map +0 -1
  70. package/dist/entities/notifications/notification.entity.d.ts +0 -13
  71. package/dist/entities/notifications/notification.entity.js +0 -83
  72. package/dist/entities/notifications/notification.entity.js.map +0 -1
@@ -1,59 +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.LeadEmail = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const lead_entity_1 = require("../sales/lead.entity");
15
- const email_entity_1 = require("../email.entity");
16
- let LeadEmail = class LeadEmail extends typeorm_1.BaseEntity {
17
- id;
18
- leadId;
19
- emailId;
20
- relation;
21
- lead;
22
- email;
23
- };
24
- exports.LeadEmail = LeadEmail;
25
- __decorate([
26
- (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
27
- __metadata("design:type", String)
28
- ], LeadEmail.prototype, "id", void 0);
29
- __decorate([
30
- (0, typeorm_1.Column)(),
31
- __metadata("design:type", String)
32
- ], LeadEmail.prototype, "leadId", void 0);
33
- __decorate([
34
- (0, typeorm_1.Column)(),
35
- __metadata("design:type", String)
36
- ], LeadEmail.prototype, "emailId", void 0);
37
- __decorate([
38
- (0, typeorm_1.Column)({ nullable: true }),
39
- __metadata("design:type", String)
40
- ], LeadEmail.prototype, "relation", void 0);
41
- __decorate([
42
- (0, typeorm_1.ManyToOne)(() => lead_entity_1.Lead, (lead) => lead.emails, {
43
- onDelete: "CASCADE",
44
- onUpdate: "CASCADE",
45
- }),
46
- __metadata("design:type", lead_entity_1.Lead)
47
- ], LeadEmail.prototype, "lead", void 0);
48
- __decorate([
49
- (0, typeorm_1.ManyToOne)(() => email_entity_1.Email, {
50
- onDelete: "CASCADE",
51
- onUpdate: "CASCADE",
52
- eager: true,
53
- }),
54
- __metadata("design:type", email_entity_1.Email)
55
- ], LeadEmail.prototype, "email", void 0);
56
- exports.LeadEmail = LeadEmail = __decorate([
57
- (0, typeorm_1.Entity)()
58
- ], LeadEmail);
59
- //# sourceMappingURL=lead_email.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lead_email.entity.js","sourceRoot":"","sources":["../../../src/entities/helpers/lead_email.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,sDAA4C;AAC5C,kDAAwC;AAGjC,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,oBAAU;IAEvC,EAAE,CAAU;IAGZ,MAAM,CAAS;IAGf,OAAO,CAAS;IAGhB,QAAQ,CAAS;IAMV,IAAI,CAAO;IAOX,KAAK,CAAQ;CACrB,CAAA;AAzBY,8BAAS;AAEpB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;qCACnB;AAGZ;IADC,IAAA,gBAAM,GAAE;;yCACM;AAGf;IADC,IAAA,gBAAM,GAAE;;0CACO;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACV;AAMV;IAJN,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE;QAC5C,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACW,kBAAI;uCAAC;AAOX;IALN,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE;QACtB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC;8BACY,oBAAK;wCAAC;oBAxBT,SAAS;IADrB,IAAA,gBAAM,GAAE;GACI,SAAS,CAyBrB"}
@@ -1,11 +0,0 @@
1
- import { BaseEntity } from "typeorm";
2
- import { Lead } from "../sales/lead.entity";
3
- import { Phone } from "../phone.entity";
4
- export declare class LeadPhone extends BaseEntity {
5
- id?: string;
6
- leadId: string;
7
- phoneId: string;
8
- relation: string;
9
- lead: Lead;
10
- phone: Phone;
11
- }
@@ -1,59 +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.LeadPhone = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const lead_entity_1 = require("../sales/lead.entity");
15
- const phone_entity_1 = require("../phone.entity");
16
- let LeadPhone = class LeadPhone extends typeorm_1.BaseEntity {
17
- id;
18
- leadId;
19
- phoneId;
20
- relation;
21
- lead;
22
- phone;
23
- };
24
- exports.LeadPhone = LeadPhone;
25
- __decorate([
26
- (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
27
- __metadata("design:type", String)
28
- ], LeadPhone.prototype, "id", void 0);
29
- __decorate([
30
- (0, typeorm_1.Column)(),
31
- __metadata("design:type", String)
32
- ], LeadPhone.prototype, "leadId", void 0);
33
- __decorate([
34
- (0, typeorm_1.Column)(),
35
- __metadata("design:type", String)
36
- ], LeadPhone.prototype, "phoneId", void 0);
37
- __decorate([
38
- (0, typeorm_1.Column)({ nullable: true }),
39
- __metadata("design:type", String)
40
- ], LeadPhone.prototype, "relation", void 0);
41
- __decorate([
42
- (0, typeorm_1.ManyToOne)(() => lead_entity_1.Lead, (lead) => lead.phones, {
43
- onDelete: "CASCADE",
44
- onUpdate: "CASCADE",
45
- }),
46
- __metadata("design:type", lead_entity_1.Lead)
47
- ], LeadPhone.prototype, "lead", void 0);
48
- __decorate([
49
- (0, typeorm_1.ManyToOne)(() => phone_entity_1.Phone, {
50
- onDelete: "CASCADE",
51
- onUpdate: "CASCADE",
52
- eager: true,
53
- }),
54
- __metadata("design:type", phone_entity_1.Phone)
55
- ], LeadPhone.prototype, "phone", void 0);
56
- exports.LeadPhone = LeadPhone = __decorate([
57
- (0, typeorm_1.Entity)()
58
- ], LeadPhone);
59
- //# sourceMappingURL=lead_phone.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lead_phone.entity.js","sourceRoot":"","sources":["../../../src/entities/helpers/lead_phone.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,sDAA4C;AAC5C,kDAAwC;AAGjC,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,oBAAU;IAEvC,EAAE,CAAU;IAGZ,MAAM,CAAS;IAGf,OAAO,CAAS;IAGhB,QAAQ,CAAS;IAMV,IAAI,CAAO;IAOX,KAAK,CAAQ;CACrB,CAAA;AAzBY,8BAAS;AAEpB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;qCACnB;AAGZ;IADC,IAAA,gBAAM,GAAE;;yCACM;AAGf;IADC,IAAA,gBAAM,GAAE;;0CACO;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACV;AAMV;IAJN,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE;QAC5C,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACW,kBAAI;uCAAC;AAOX;IALN,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE;QACtB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC;8BACY,oBAAK;wCAAC;oBAxBT,SAAS;IADrB,IAAA,gBAAM,GAAE;GACI,SAAS,CAyBrB"}
@@ -1,5 +0,0 @@
1
- import { BaseEntity } from "typeorm";
2
- export declare class PolizaFormaCobro 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.PolizaFormaCobro = void 0;
13
- const typeorm_1 = require("typeorm");
14
- let PolizaFormaCobro = class PolizaFormaCobro extends typeorm_1.BaseEntity {
15
- id;
16
- name;
17
- };
18
- exports.PolizaFormaCobro = PolizaFormaCobro;
19
- __decorate([
20
- (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
21
- __metadata("design:type", String)
22
- ], PolizaFormaCobro.prototype, "id", void 0);
23
- __decorate([
24
- (0, typeorm_1.Column)({ unique: true }),
25
- __metadata("design:type", String)
26
- ], PolizaFormaCobro.prototype, "name", void 0);
27
- exports.PolizaFormaCobro = PolizaFormaCobro = __decorate([
28
- (0, typeorm_1.Entity)()
29
- ], PolizaFormaCobro);
30
- //# sourceMappingURL=h_poliza_forma_cobro.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"h_poliza_forma_cobro.entity.js","sourceRoot":"","sources":["../../../../src/entities/helpers/sales/h_poliza_forma_cobro.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA8E;AAGvE,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oBAAU;IAE5C,EAAE,CAAU;IAGZ,IAAI,CAAS;CAChB,CAAA;AANY,4CAAgB;AAEzB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;4CACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;8CACZ;2BALJ,gBAAgB;IAD5B,IAAA,gBAAM,GAAE;GACI,gBAAgB,CAM5B"}
@@ -1,6 +0,0 @@
1
- import { BaseEntity } from "typeorm";
2
- export declare class PolizaFrecuenciaPago extends BaseEntity {
3
- id?: string;
4
- name: string;
5
- cobrosEsperados: number;
6
- }
@@ -1,35 +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.PolizaFrecuenciaPago = void 0;
13
- const typeorm_1 = require("typeorm");
14
- let PolizaFrecuenciaPago = class PolizaFrecuenciaPago extends typeorm_1.BaseEntity {
15
- id;
16
- name;
17
- cobrosEsperados;
18
- };
19
- exports.PolizaFrecuenciaPago = PolizaFrecuenciaPago;
20
- __decorate([
21
- (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
22
- __metadata("design:type", String)
23
- ], PolizaFrecuenciaPago.prototype, "id", void 0);
24
- __decorate([
25
- (0, typeorm_1.Column)({ unique: true }),
26
- __metadata("design:type", String)
27
- ], PolizaFrecuenciaPago.prototype, "name", void 0);
28
- __decorate([
29
- (0, typeorm_1.Column)(),
30
- __metadata("design:type", Number)
31
- ], PolizaFrecuenciaPago.prototype, "cobrosEsperados", void 0);
32
- exports.PolizaFrecuenciaPago = PolizaFrecuenciaPago = __decorate([
33
- (0, typeorm_1.Entity)()
34
- ], PolizaFrecuenciaPago);
35
- //# sourceMappingURL=h_poliza_frecuencia_pago.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"h_poliza_frecuencia_pago.entity.js","sourceRoot":"","sources":["../../../../src/entities/helpers/sales/h_poliza_frecuencia_pago.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA8E;AAGvE,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oBAAU;IAEhD,EAAE,CAAU;IAGZ,IAAI,CAAS;IAGb,eAAe,CAAS;CAC3B,CAAA;AATY,oDAAoB;AAE7B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;gDACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;kDACZ;AAGb;IADC,IAAA,gBAAM,GAAE;;6DACe;+BARf,oBAAoB;IADhC,IAAA,gBAAM,GAAE;GACI,oBAAoB,CAShC"}
@@ -1,5 +0,0 @@
1
- import { BaseEntity } from "typeorm";
2
- export declare class PolizaType 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.PolizaType = void 0;
13
- const typeorm_1 = require("typeorm");
14
- let PolizaType = class PolizaType extends typeorm_1.BaseEntity {
15
- id;
16
- name;
17
- };
18
- exports.PolizaType = PolizaType;
19
- __decorate([
20
- (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
21
- __metadata("design:type", String)
22
- ], PolizaType.prototype, "id", void 0);
23
- __decorate([
24
- (0, typeorm_1.Column)({ unique: true }),
25
- __metadata("design:type", String)
26
- ], PolizaType.prototype, "name", void 0);
27
- exports.PolizaType = PolizaType = __decorate([
28
- (0, typeorm_1.Entity)()
29
- ], PolizaType);
30
- //# sourceMappingURL=h_poliza_type.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"h_poliza_type.entity.js","sourceRoot":"","sources":["../../../../src/entities/helpers/sales/h_poliza_type.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA8E;AAGvE,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,oBAAU;IAEtC,EAAE,CAAU;IAGZ,IAAI,CAAS;CAChB,CAAA;AANY,gCAAU;AAEnB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;sCACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;wCACZ;qBALJ,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CAMtB"}
@@ -1 +0,0 @@
1
- export * from "./notification.entity";
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./notification.entity"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
@@ -1,13 +0,0 @@
1
- import { User } from "../user.entity";
2
- import { BaseEntitySimple, NotificationCategory, NotificationChannel, NotificationSubcategory } from "../../common";
3
- export declare class Notification extends BaseEntitySimple {
4
- content: string;
5
- title: string;
6
- category: NotificationCategory;
7
- subCategory: NotificationSubcategory;
8
- channels: NotificationChannel[];
9
- entityId: string;
10
- readAt: Date;
11
- canceledAt: Date;
12
- recipient?: User;
13
- }
@@ -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.Notification = void 0;
13
- const user_entity_1 = require("../user.entity");
14
- const common_1 = require("../../common");
15
- const typeorm_1 = require("typeorm");
16
- let Notification = class Notification extends common_1.BaseEntitySimple {
17
- content;
18
- title;
19
- category;
20
- subCategory;
21
- channels;
22
- entityId;
23
- readAt;
24
- canceledAt;
25
- recipient;
26
- };
27
- exports.Notification = Notification;
28
- __decorate([
29
- (0, typeorm_1.Column)({ type: "text" }),
30
- __metadata("design:type", String)
31
- ], Notification.prototype, "content", void 0);
32
- __decorate([
33
- (0, typeorm_1.Column)({ nullable: false }),
34
- __metadata("design:type", String)
35
- ], Notification.prototype, "title", void 0);
36
- __decorate([
37
- (0, typeorm_1.Column)({
38
- type: "enum",
39
- enum: common_1.NotificationCategory,
40
- default: common_1.NotificationCategory.DEFAULT
41
- }),
42
- __metadata("design:type", String)
43
- ], Notification.prototype, "category", void 0);
44
- __decorate([
45
- (0, typeorm_1.Column)({
46
- type: "enum",
47
- enum: common_1.NotificationSubcategory,
48
- default: common_1.NotificationSubcategory.DEFAULT
49
- }),
50
- __metadata("design:type", String)
51
- ], Notification.prototype, "subCategory", void 0);
52
- __decorate([
53
- (0, typeorm_1.Column)({
54
- type: "enum",
55
- enum: common_1.NotificationChannel,
56
- array: true,
57
- }),
58
- __metadata("design:type", Array)
59
- ], Notification.prototype, "channels", void 0);
60
- __decorate([
61
- (0, typeorm_1.Column)({ nullable: true }),
62
- __metadata("design:type", String)
63
- ], Notification.prototype, "entityId", void 0);
64
- __decorate([
65
- (0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
66
- __metadata("design:type", Date)
67
- ], Notification.prototype, "readAt", void 0);
68
- __decorate([
69
- (0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
70
- __metadata("design:type", Date)
71
- ], Notification.prototype, "canceledAt", void 0);
72
- __decorate([
73
- (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
74
- onDelete: "SET NULL",
75
- onUpdate: "CASCADE",
76
- nullable: true,
77
- }),
78
- __metadata("design:type", user_entity_1.User)
79
- ], Notification.prototype, "recipient", void 0);
80
- exports.Notification = Notification = __decorate([
81
- (0, typeorm_1.Entity)()
82
- ], Notification);
83
- //# sourceMappingURL=notification.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.entity.js","sourceRoot":"","sources":["../../../src/entities/notifications/notification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAAsC;AACtC,yCAAoH;AACpH,qCAAoD;AAG7C,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,yBAAgB;IAE9C,OAAO,CAAS;IAGhB,KAAK,CAAS;IAOd,QAAQ,CAAuB;IAO/B,WAAW,CAA0B;IAOrC,QAAQ,CAAwB;IAGhC,QAAQ,CAAS;IAGjB,MAAM,CAAO;IAGb,UAAU,CAAO;IAOjB,SAAS,CAAQ;CACpB,CAAA;AA3CY,oCAAY;AAErB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CACT;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2CACd;AAOd;IALC,IAAA,gBAAM,EAAC;QACJ,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,6BAAoB;QAC1B,OAAO,EAAE,6BAAoB,CAAC,OAAO;KACxC,CAAC;;8CAC6B;AAO/B;IALC,IAAA,gBAAM,EAAC;QACJ,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,gCAAuB;QAC7B,OAAO,EAAE,gCAAuB,CAAC,OAAO;KAC3C,CAAC;;iDACmC;AAOrC;IALC,IAAA,gBAAM,EAAC;QACJ,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,4BAAmB;QACzB,KAAK,EAAE,IAAI;KACd,CAAC;;8CAC8B;AAGhC;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACV;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtC,IAAI;4CAAC;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAClC,IAAI;gDAAC;AAOjB;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACnB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACjB,CAAC;8BACU,kBAAI;+CAAC;uBA1CR,YAAY;IADxB,IAAA,gBAAM,GAAE;GACI,YAAY,CA2CxB"}