easywork-common-lib 1.0.6 → 1.0.7

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 (84) hide show
  1. package/dist/common/database/index.js +18 -1
  2. package/dist/entities/app_config/app-config.entity.d.ts +1 -1
  3. package/dist/entities/app_config/app-config.entity.js +33 -0
  4. package/dist/entities/app_config/app-config.entity.js.map +1 -0
  5. package/dist/entities/drive/folder.entity.d.ts +1 -1
  6. package/dist/entities/drive/folder.entity.js +33 -0
  7. package/dist/entities/drive/folder.entity.js.map +1 -0
  8. package/dist/entities/email.entity.d.ts +1 -1
  9. package/dist/entities/email.entity.js +33 -0
  10. package/dist/entities/email.entity.js.map +1 -0
  11. package/dist/entities/group.entity.d.ts +1 -1
  12. package/dist/entities/group.entity.js +1 -1
  13. package/dist/entities/group.entity.js.map +1 -1
  14. package/dist/entities/helpers/contact_email.entity.js +61 -0
  15. package/dist/entities/helpers/contact_email.entity.js.map +1 -0
  16. package/dist/entities/helpers/contact_phone.entity.js +61 -0
  17. package/dist/entities/helpers/contact_phone.entity.js.map +1 -0
  18. package/dist/entities/helpers/contact_sources.entity.d.ts +1 -1
  19. package/dist/entities/helpers/contact_sources.entity.js +33 -0
  20. package/dist/entities/helpers/contact_sources.entity.js.map +1 -0
  21. package/dist/entities/helpers/contact_types.entity.d.ts +1 -1
  22. package/dist/entities/helpers/contact_types.entity.js +33 -0
  23. package/dist/entities/helpers/contact_types.entity.js.map +1 -0
  24. package/dist/entities/helpers/lead_email.entity.js +59 -0
  25. package/dist/entities/helpers/lead_email.entity.js.map +1 -0
  26. package/dist/entities/helpers/lead_phone.entity.js +59 -0
  27. package/dist/entities/helpers/lead_phone.entity.js.map +1 -0
  28. package/dist/entities/index.js +34 -1
  29. package/dist/entities/index.js.map +1 -1
  30. package/dist/entities/otp-log.entity.d.ts +1 -1
  31. package/dist/entities/otp-log.entity.js +1 -1
  32. package/dist/entities/otp-log.entity.js.map +1 -1
  33. package/dist/entities/permission.entity.d.ts +1 -1
  34. package/dist/entities/permission.entity.js +1 -1
  35. package/dist/entities/permission.entity.js.map +1 -1
  36. package/dist/entities/phone.entity.d.ts +1 -1
  37. package/dist/entities/phone.entity.js +33 -0
  38. package/dist/entities/phone.entity.js.map +1 -0
  39. package/dist/entities/profile.entity.d.ts +1 -1
  40. package/dist/entities/profile.entity.js +2 -2
  41. package/dist/entities/profile.entity.js.map +1 -1
  42. package/dist/entities/protocol.entity.d.ts +1 -1
  43. package/dist/entities/protocol.entity.js +1 -1
  44. package/dist/entities/protocol.entity.js.map +1 -1
  45. package/dist/entities/refresh-token.entity.d.ts +1 -1
  46. package/dist/entities/refresh-token.entity.js +1 -1
  47. package/dist/entities/refresh-token.entity.js.map +1 -1
  48. package/dist/entities/role.entity.d.ts +1 -1
  49. package/dist/entities/role.entity.js +1 -1
  50. package/dist/entities/role.entity.js.map +1 -1
  51. package/dist/entities/sales/contact.entity.d.ts +1 -1
  52. package/dist/entities/sales/contact.entity.js +221 -0
  53. package/dist/entities/sales/contact.entity.js.map +1 -0
  54. package/dist/entities/sales/lead.entity.d.ts +1 -1
  55. package/dist/entities/sales/lead.entity.js +244 -0
  56. package/dist/entities/sales/lead.entity.js.map +1 -0
  57. package/dist/entities/sales/poliza.entity.d.ts +1 -1
  58. package/dist/entities/sales/poliza.entity.js +342 -0
  59. package/dist/entities/sales/poliza.entity.js.map +1 -0
  60. package/dist/entities/user.entity.d.ts +1 -1
  61. package/dist/entities/user.entity.js +1 -1
  62. package/dist/entities/user.entity.js.map +1 -1
  63. package/dist/eslint.config.js +47 -1
  64. package/dist/index.js +18 -2
  65. package/package.json +3 -2
  66. package/src/entities/app_config/app-config.entity.ts +1 -1
  67. package/src/entities/drive/folder.entity.ts +6 -6
  68. package/src/entities/email.entity.ts +1 -1
  69. package/src/entities/group.entity.ts +1 -1
  70. package/src/entities/helpers/contact_sources.entity.ts +1 -1
  71. package/src/entities/helpers/contact_types.entity.ts +1 -1
  72. package/src/entities/otp-log.entity.ts +1 -1
  73. package/src/entities/permission.entity.ts +1 -1
  74. package/src/entities/phone.entity.ts +1 -1
  75. package/src/entities/profile.entity.ts +1 -1
  76. package/src/entities/protocol.entity.ts +1 -1
  77. package/src/entities/refresh-token.entity.ts +1 -1
  78. package/src/entities/role.entity.ts +1 -1
  79. package/src/entities/sales/contact.entity.ts +1 -1
  80. package/src/entities/sales/lead.entity.ts +1 -1
  81. package/src/entities/sales/poliza.entity.ts +1 -1
  82. package/src/entities/user.entity.ts +1 -1
  83. package/tsconfig.json +0 -4
  84. package/dist/index.js.LICENSE.txt +0 -19
@@ -1 +1,18 @@
1
- 'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __exportStar=this&&this.__exportStar||function(m,exports){for(var p in m)if(p!=='default'&&!Object.prototype.hasOwnProperty.call(exports,p))__createBinding(exports,m,p);};Object.defineProperty(exports,'__esModule',{value:true});__exportStar(require('./base.entity'),exports);
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("./base.entity"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { BaseEntity } from "@common/database";
1
+ import { BaseEntity } from "../../common/database";
2
2
  export declare class AppConfig extends BaseEntity {
3
3
  key: string;
4
4
  value: string;
@@ -0,0 +1,33 @@
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.AppConfig = void 0;
13
+ const database_1 = require("../../common/database");
14
+ const class_validator_1 = require("class-validator");
15
+ const typeorm_1 = require("typeorm");
16
+ let AppConfig = class AppConfig extends database_1.BaseEntity {
17
+ key;
18
+ value;
19
+ };
20
+ exports.AppConfig = AppConfig;
21
+ __decorate([
22
+ (0, class_validator_1.MinLength)(3),
23
+ (0, typeorm_1.Column)({ unique: true }),
24
+ __metadata("design:type", String)
25
+ ], AppConfig.prototype, "key", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ nullable: true }),
28
+ __metadata("design:type", String)
29
+ ], AppConfig.prototype, "value", void 0);
30
+ exports.AppConfig = AppConfig = __decorate([
31
+ (0, typeorm_1.Entity)()
32
+ ], AppConfig);
33
+ //# sourceMappingURL=app-config.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-config.entity.js","sourceRoot":"","sources":["../../../src/entities/app_config/app-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,qBAAU;IAGvC,GAAG,CAAS;IAGZ,KAAK,CAAS;CACf,CAAA;AAPY,8BAAS;AAGpB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;sCACb;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACb;oBANH,SAAS;IADrB,IAAA,gBAAM,GAAE;GACI,SAAS,CAOrB"}
@@ -1,4 +1,4 @@
1
- import { BaseEntity } from "@common/database";
1
+ import { BaseEntity } from "../../common/database";
2
2
  export declare class Folder extends BaseEntity {
3
3
  name: string;
4
4
  isDefault: boolean;
@@ -0,0 +1,33 @@
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.Folder = void 0;
13
+ const database_1 = require("../../common/database");
14
+ const class_validator_1 = require("class-validator");
15
+ const typeorm_1 = require("typeorm");
16
+ let Folder = class Folder extends database_1.BaseEntity {
17
+ name;
18
+ isDefault;
19
+ };
20
+ exports.Folder = Folder;
21
+ __decorate([
22
+ (0, class_validator_1.MinLength)(1),
23
+ (0, typeorm_1.Column)({ unique: true }),
24
+ __metadata("design:type", String)
25
+ ], Folder.prototype, "name", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ default: false }),
28
+ __metadata("design:type", Boolean)
29
+ ], Folder.prototype, "isDefault", void 0);
30
+ exports.Folder = Folder = __decorate([
31
+ (0, typeorm_1.Entity)()
32
+ ], Folder);
33
+ //# sourceMappingURL=folder.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder.entity.js","sourceRoot":"","sources":["../../../src/entities/drive/folder.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,qBAAU;IAGlC,IAAI,CAAS;IAGb,SAAS,CAAU;CACtB,CAAA;AAPY,wBAAM;AAGf;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;oCACZ;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;yCACR;iBANV,MAAM;IADlB,IAAA,gBAAM,GAAE;GACI,MAAM,CAOlB"}
@@ -1,4 +1,4 @@
1
- import { BaseEntity } from "@common/database";
1
+ import { BaseEntity } from "../common/database";
2
2
  export declare class Email extends BaseEntity {
3
3
  email: string;
4
4
  isDefault: boolean;
@@ -0,0 +1,33 @@
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.Email = void 0;
13
+ const database_1 = require("../common/database");
14
+ const class_validator_1 = require("class-validator");
15
+ const typeorm_1 = require("typeorm");
16
+ let Email = class Email extends database_1.BaseEntity {
17
+ email;
18
+ isDefault;
19
+ };
20
+ exports.Email = Email;
21
+ __decorate([
22
+ (0, class_validator_1.MinLength)(3),
23
+ (0, typeorm_1.Column)({ unique: true }),
24
+ __metadata("design:type", String)
25
+ ], Email.prototype, "email", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ name: "is_default", default: false }),
28
+ __metadata("design:type", Boolean)
29
+ ], Email.prototype, "isDefault", void 0);
30
+ exports.Email = Email = __decorate([
31
+ (0, typeorm_1.Entity)()
32
+ ], Email);
33
+ //# sourceMappingURL=email.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email.entity.js","sourceRoot":"","sources":["../../src/entities/email.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,qBAAU;IAGnC,KAAK,CAAS;IAGd,SAAS,CAAU;CACpB,CAAA;AAPY,sBAAK;AAGhB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;oCACX;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;wCAC5B;gBANR,KAAK;IADjB,IAAA,gBAAM,GAAE;GACI,KAAK,CAOjB"}
@@ -1,4 +1,4 @@
1
- import { BaseEntity } from "@common/database";
1
+ import { BaseEntity } from "../common/database";
2
2
  export declare class Group extends BaseEntity {
3
3
  name: string;
4
4
  }
@@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Group = void 0;
13
- const database_1 = require("@common/database");
13
+ const database_1 = require("../common/database");
14
14
  const class_validator_1 = require("class-validator");
15
15
  const typeorm_1 = require("typeorm");
16
16
  let Group = class Group extends database_1.BaseEntity {
@@ -1 +1 @@
1
- {"version":3,"file":"group.entity.js","sourceRoot":"","sources":["../../src/entities/group.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA8C;AAC9C,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,qBAAU;IAGnC,IAAI,CAAS;CACd,CAAA;AAJY,sBAAK;AAGhB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;mCACZ;gBAHF,KAAK;IADjB,IAAA,gBAAM,GAAE;GACI,KAAK,CAIjB"}
1
+ {"version":3,"file":"group.entity.js","sourceRoot":"","sources":["../../src/entities/group.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,qBAAU;IAGnC,IAAI,CAAS;CACd,CAAA;AAJY,sBAAK;AAGhB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;mCACZ;gBAHF,KAAK;IADjB,IAAA,gBAAM,GAAE;GACI,KAAK,CAIjB"}
@@ -0,0 +1,61 @@
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.ContactEmail = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const contact_entity_1 = require("../sales/contact.entity");
16
+ const email_entity_1 = require("../email.entity");
17
+ let ContactEmail = class ContactEmail extends typeorm_1.BaseEntity {
18
+ id;
19
+ contactId;
20
+ emailId;
21
+ relation;
22
+ contact;
23
+ email;
24
+ };
25
+ exports.ContactEmail = ContactEmail;
26
+ __decorate([
27
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
28
+ __metadata("design:type", String)
29
+ ], ContactEmail.prototype, "id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)(),
32
+ __metadata("design:type", String)
33
+ ], ContactEmail.prototype, "contactId", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)(),
36
+ __metadata("design:type", String)
37
+ ], ContactEmail.prototype, "emailId", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ nullable: true }),
40
+ __metadata("design:type", String)
41
+ ], ContactEmail.prototype, "relation", void 0);
42
+ __decorate([
43
+ (0, class_transformer_1.Exclude)(),
44
+ (0, typeorm_1.ManyToOne)(() => contact_entity_1.Contact, contact => contact.emails, {
45
+ onDelete: "CASCADE",
46
+ onUpdate: "CASCADE",
47
+ }),
48
+ __metadata("design:type", contact_entity_1.Contact)
49
+ ], ContactEmail.prototype, "contact", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.ManyToOne)(() => email_entity_1.Email, {
52
+ onDelete: "CASCADE",
53
+ onUpdate: "CASCADE",
54
+ eager: true,
55
+ }),
56
+ __metadata("design:type", email_entity_1.Email)
57
+ ], ContactEmail.prototype, "email", void 0);
58
+ exports.ContactEmail = ContactEmail = __decorate([
59
+ (0, typeorm_1.Entity)()
60
+ ], ContactEmail);
61
+ //# sourceMappingURL=contact_email.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact_email.entity.js","sourceRoot":"","sources":["../../../src/entities/helpers/contact_email.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,yDAA4C;AAC5C,4DAAkD;AAClD,kDAAwC;AAGjC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,oBAAU;IAE1C,EAAE,CAAU;IAGZ,SAAS,CAAS;IAGlB,OAAO,CAAS;IAGhB,QAAQ,CAAS;IAOV,OAAO,CAAU;IAOjB,KAAK,CAAQ;CACrB,CAAA;AA1BY,oCAAY;AAEvB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;wCACnB;AAGZ;IADC,IAAA,gBAAM,GAAE;;+CACS;AAGlB;IADC,IAAA,gBAAM,GAAE;;6CACO;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACV;AAOV;IALN,IAAA,2BAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE;QACnD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACc,wBAAO;6CAAC;AAOjB;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;2CAAC;uBAzBT,YAAY;IADxB,IAAA,gBAAM,GAAE;GACI,YAAY,CA0BxB"}
@@ -0,0 +1,61 @@
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.ContactPhone = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const contact_entity_1 = require("../sales/contact.entity");
16
+ const phone_entity_1 = require("../phone.entity");
17
+ let ContactPhone = class ContactPhone extends typeorm_1.BaseEntity {
18
+ id;
19
+ contactId;
20
+ phoneId;
21
+ relation;
22
+ contact;
23
+ phone;
24
+ };
25
+ exports.ContactPhone = ContactPhone;
26
+ __decorate([
27
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
28
+ __metadata("design:type", String)
29
+ ], ContactPhone.prototype, "id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)(),
32
+ __metadata("design:type", String)
33
+ ], ContactPhone.prototype, "contactId", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)(),
36
+ __metadata("design:type", String)
37
+ ], ContactPhone.prototype, "phoneId", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ nullable: true }),
40
+ __metadata("design:type", String)
41
+ ], ContactPhone.prototype, "relation", void 0);
42
+ __decorate([
43
+ (0, class_transformer_1.Exclude)(),
44
+ (0, typeorm_1.ManyToOne)(() => contact_entity_1.Contact, contact => contact.phones, {
45
+ onDelete: "CASCADE",
46
+ onUpdate: "CASCADE",
47
+ }),
48
+ __metadata("design:type", contact_entity_1.Contact)
49
+ ], ContactPhone.prototype, "contact", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.ManyToOne)(() => phone_entity_1.Phone, {
52
+ onDelete: "CASCADE",
53
+ onUpdate: "CASCADE",
54
+ eager: true,
55
+ }),
56
+ __metadata("design:type", phone_entity_1.Phone)
57
+ ], ContactPhone.prototype, "phone", void 0);
58
+ exports.ContactPhone = ContactPhone = __decorate([
59
+ (0, typeorm_1.Entity)()
60
+ ], ContactPhone);
61
+ //# sourceMappingURL=contact_phone.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact_phone.entity.js","sourceRoot":"","sources":["../../../src/entities/helpers/contact_phone.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,yDAA4C;AAC5C,4DAAkD;AAClD,kDAAwC;AAGjC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,oBAAU;IAE1C,EAAE,CAAU;IAGZ,SAAS,CAAS;IAGlB,OAAO,CAAS;IAGhB,QAAQ,CAAS;IAOV,OAAO,CAAU;IAOjB,KAAK,CAAQ;CACrB,CAAA;AA1BY,oCAAY;AAEvB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;wCACnB;AAGZ;IADC,IAAA,gBAAM,GAAE;;+CACS;AAGlB;IADC,IAAA,gBAAM,GAAE;;6CACO;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACV;AAOV;IALN,IAAA,2BAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE;QACnD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACc,wBAAO;6CAAC;AAOjB;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;2CAAC;uBAzBT,YAAY;IADxB,IAAA,gBAAM,GAAE;GACI,YAAY,CA0BxB"}
@@ -1,4 +1,4 @@
1
- import { BaseEntity } from "@common/database";
1
+ import { BaseEntity } from "../../common/database";
2
2
  export declare class ContactSource extends BaseEntity {
3
3
  name: string;
4
4
  isDefault: boolean;
@@ -0,0 +1,33 @@
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
+ let ContactSource = class ContactSource extends database_1.BaseEntity {
17
+ name;
18
+ isDefault;
19
+ };
20
+ exports.ContactSource = ContactSource;
21
+ __decorate([
22
+ (0, class_validator_1.MinLength)(3),
23
+ (0, typeorm_1.Column)({ unique: true }),
24
+ __metadata("design:type", String)
25
+ ], ContactSource.prototype, "name", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ default: false }),
28
+ __metadata("design:type", Boolean)
29
+ ], ContactSource.prototype, "isDefault", void 0);
30
+ exports.ContactSource = ContactSource = __decorate([
31
+ (0, typeorm_1.Entity)()
32
+ ], ContactSource);
33
+ //# sourceMappingURL=contact_sources.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact_sources.entity.js","sourceRoot":"","sources":["../../../src/entities/helpers/contact_sources.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,qBAAU;IAG3C,IAAI,CAAS;IAGb,SAAS,CAAU;CACpB,CAAA;AAPY,sCAAa;AAGxB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;2CACZ;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;gDACR;wBANR,aAAa;IADzB,IAAA,gBAAM,GAAE;GACI,aAAa,CAOzB"}
@@ -1,4 +1,4 @@
1
- import { BaseEntity } from "@common/database";
1
+ import { BaseEntity } from "../../common/database";
2
2
  export declare class ContactType extends BaseEntity {
3
3
  name: string;
4
4
  isDefault: boolean;
@@ -0,0 +1,33 @@
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
+ let ContactType = class ContactType extends database_1.BaseEntity {
17
+ name;
18
+ isDefault;
19
+ };
20
+ exports.ContactType = ContactType;
21
+ __decorate([
22
+ (0, class_validator_1.MinLength)(3),
23
+ (0, typeorm_1.Column)({ unique: true }),
24
+ __metadata("design:type", String)
25
+ ], ContactType.prototype, "name", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ default: false }),
28
+ __metadata("design:type", Boolean)
29
+ ], ContactType.prototype, "isDefault", void 0);
30
+ exports.ContactType = ContactType = __decorate([
31
+ (0, typeorm_1.Entity)()
32
+ ], ContactType);
33
+ //# sourceMappingURL=contact_types.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact_types.entity.js","sourceRoot":"","sources":["../../../src/entities/helpers/contact_types.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,qBAAU;IAGzC,IAAI,CAAS;IAGb,SAAS,CAAU;CACpB,CAAA;AAPY,kCAAW;AAGtB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;yCACZ;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8CACR;sBANR,WAAW;IADvB,IAAA,gBAAM,GAAE;GACI,WAAW,CAOvB"}
@@ -0,0 +1,59 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,59 @@
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
@@ -0,0 +1 @@
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 +1,34 @@
1
- 'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __exportStar=this&&this.__exportStar||function(m,exports){for(var p in m)if(p!=='default'&&!Object.prototype.hasOwnProperty.call(exports,p))__createBinding(exports,m,p);};Object.defineProperty(exports,'__esModule',{value:true});__exportStar(require('./user.entity'),exports);__exportStar(require('./protocol.entity'),exports);__exportStar(require('./otp-log.entity'),exports);__exportStar(require('./refresh-token.entity'),exports);__exportStar(require('./profile.entity'),exports);__exportStar(require('./role.entity'),exports);__exportStar(require('./permission.entity'),exports);
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("./user.entity"), exports);
18
+ __exportStar(require("./protocol.entity"), exports);
19
+ __exportStar(require("./otp-log.entity"), exports);
20
+ __exportStar(require("./refresh-token.entity"), exports);
21
+ __exportStar(require("./profile.entity"), exports);
22
+ __exportStar(require("./role.entity"), exports);
23
+ __exportStar(require("./permission.entity"), exports);
24
+ __exportStar(require("./sales/contact.entity"), exports);
25
+ __exportStar(require("./sales/lead.entity"), exports);
26
+ __exportStar(require("./sales/poliza.entity"), exports);
27
+ __exportStar(require("./phone.entity"), exports);
28
+ __exportStar(require("./email.entity"), exports);
29
+ __exportStar(require("./helpers/contact_phone.entity"), exports);
30
+ __exportStar(require("./helpers/contact_email.entity"), exports);
31
+ __exportStar(require("./helpers/contact_types.entity"), exports);
32
+ __exportStar(require("./helpers/contact_sources.entity"), exports);
33
+ __exportStar(require("./app_config/app-config.entity"), exports);
34
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,oDAAkC;AAClC,mDAAiC;AACjC,yDAAuC;AACvC,mDAAiC;AACjC,gDAA8B;AAC9B,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,oDAAkC;AAClC,mDAAiC;AACjC,yDAAuC;AACvC,mDAAiC;AACjC,gDAA8B;AAC9B,sDAAoC;AACpC,yDAAuC;AACvC,sDAAoC;AACpC,wDAAsC;AACtC,iDAA+B;AAC/B,iDAA+B;AAC/B,iEAA+C;AAC/C,iEAA+C;AAC/C,iEAA+C;AAC/C,mEAAiD;AACjD,iEAA+C"}
@@ -1,4 +1,4 @@
1
- import { BaseEntity } from "@common/database";
1
+ import { BaseEntity } from "../common/database";
2
2
  import { User } from "./user.entity";
3
3
  export declare class OtpLog extends BaseEntity {
4
4
  expiresIn: Date;
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.OtpLog = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
- const database_1 = require("@common/database");
14
+ const database_1 = require("../common/database");
15
15
  const user_entity_1 = require("./user.entity");
16
16
  let OtpLog = class OtpLog extends database_1.BaseEntity {
17
17
  expiresIn;
@@ -1 +1 @@
1
- {"version":3,"file":"otp-log.entity.js","sourceRoot":"","sources":["../../src/entities/otp-log.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuE;AACvE,+CAA8C;AAC9C,+CAAqC;AAI9B,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,qBAAU;IAEpC,SAAS,CAAQ;IAGjB,OAAO,CAAU;IAIjB,IAAI,CAAQ;IAGZ,MAAM,CAAW;CAClB,CAAA;AAbY,wBAAM;AAEjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAClB,IAAI;yCAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACtB;AAIjB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACxD,IAAA,oBAAU,GAAE;8BACN,kBAAI;oCAAC;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;sCACV;iBAZN,MAAM;IAFlB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACxB,MAAM,CAalB"}
1
+ {"version":3,"file":"otp-log.entity.js","sourceRoot":"","sources":["../../src/entities/otp-log.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuE;AACvE,iDAAgD;AAChD,+CAAqC;AAI9B,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,qBAAU;IAEpC,SAAS,CAAQ;IAGjB,OAAO,CAAU;IAIjB,IAAI,CAAQ;IAGZ,MAAM,CAAW;CAClB,CAAA;AAbY,wBAAM;AAEjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAClB,IAAI;yCAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACtB;AAIjB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACxD,IAAA,oBAAU,GAAE;8BACN,kBAAI;oCAAC;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;sCACV;iBAZN,MAAM;IAFlB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACxB,MAAM,CAalB"}
@@ -1,4 +1,4 @@
1
- import { BaseEntity } from "@common/database";
1
+ import { BaseEntity } from "../common/database";
2
2
  import { Role } from "./role.entity";
3
3
  export declare class Permission extends BaseEntity {
4
4
  resource: string;
@@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Permission = void 0;
13
- const database_1 = require("@common/database");
13
+ const database_1 = require("../common/database");
14
14
  const typeorm_1 = require("typeorm");
15
15
  const role_entity_1 = require("./role.entity");
16
16
  let Permission = class Permission extends database_1.BaseEntity {
@@ -1 +1 @@
1
- {"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../src/entities/permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA8C;AAC9C,qCAAuE;AACvE,+CAAqC;AAI9B,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,qBAAU;IAExC,QAAQ,CAAS;IAGjB,MAAM,CAAS;IAOf,KAAK,CAAU;CAChB,CAAA;AAbY,gCAAU;AAErB;IADC,IAAA,gBAAM,GAAE;;4CACQ;AAGjB;IADC,IAAA,gBAAM,GAAE;;0CACM;AAOf;IALC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACtB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,mBAAS,GAAE;;yCACG;qBAZJ,UAAU;IAFtB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACnC,UAAU,CAatB"}
1
+ {"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../src/entities/permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,qCAAuE;AACvE,+CAAqC;AAI9B,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,qBAAU;IAExC,QAAQ,CAAS;IAGjB,MAAM,CAAS;IAOf,KAAK,CAAU;CAChB,CAAA;AAbY,gCAAU;AAErB;IADC,IAAA,gBAAM,GAAE;;4CACQ;AAGjB;IADC,IAAA,gBAAM,GAAE;;0CACM;AAOf;IALC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACtB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,mBAAS,GAAE;;yCACG;qBAZJ,UAAU;IAFtB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACnC,UAAU,CAatB"}