easywork-common-lib 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/database/base.entity.js +6 -39
- package/dist/common/database/base.entity.js.map +1 -1
- package/dist/common/database/index.js +1 -18
- package/dist/common/database/index.js.map +1 -1
- package/dist/entities/app_config/app-config.entity.d.ts +5 -0
- package/dist/entities/drive/folder.entity.d.ts +5 -0
- package/dist/entities/email.entity.d.ts +5 -0
- package/dist/entities/group.entity.js +1 -9
- package/dist/entities/group.entity.js.map +1 -1
- package/dist/entities/helpers/contact_email.entity.d.ts +11 -0
- package/dist/entities/helpers/contact_phone.entity.d.ts +11 -0
- package/dist/entities/helpers/contact_sources.entity.d.ts +5 -0
- package/dist/entities/helpers/contact_types.entity.d.ts +5 -0
- package/dist/entities/helpers/lead_email.entity.d.ts +11 -0
- package/dist/entities/helpers/lead_phone.entity.d.ts +11 -0
- package/dist/entities/index.d.ts +10 -0
- package/dist/entities/index.js +1 -24
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/otp-log.entity.js +4 -27
- package/dist/entities/otp-log.entity.js.map +1 -1
- package/dist/entities/permission.entity.js +3 -21
- package/dist/entities/permission.entity.js.map +1 -1
- package/dist/entities/phone.entity.d.ts +5 -0
- package/dist/entities/profile.entity.js +5 -33
- package/dist/entities/profile.entity.js.map +1 -1
- package/dist/entities/protocol.entity.js +4 -24
- package/dist/entities/protocol.entity.js.map +1 -1
- package/dist/entities/refresh-token.entity.js +3 -18
- package/dist/entities/refresh-token.entity.js.map +1 -1
- package/dist/entities/role.entity.js +2 -15
- package/dist/entities/role.entity.js.map +1 -1
- package/dist/entities/sales/contact.entity.d.ts +41 -0
- package/dist/entities/sales/lead.entity.d.ts +46 -0
- package/dist/entities/sales/poliza.entity.d.ts +58 -0
- package/dist/entities/user.entity.js +12 -75
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/eslint.config.d.ts +1 -1
- package/dist/eslint.config.js +1 -47
- package/dist/eslint.config.js.map +1 -1
- package/dist/index.js +2 -18
- package/dist/index.js.LICENSE.txt +19 -0
- package/dist/index.js.map +1 -1
- package/package.json +41 -29
- package/package.old.json +32 -0
- package/src/entities/app_config/app-config.entity.ts +13 -0
- package/src/entities/drive/folder.entity.ts +13 -0
- package/src/entities/email.entity.ts +13 -0
- package/src/entities/helpers/contact_email.entity.ts +33 -0
- package/src/entities/helpers/contact_phone.entity.ts +33 -0
- package/src/entities/helpers/contact_sources.entity.ts +13 -0
- package/src/entities/helpers/contact_types.entity.ts +13 -0
- package/src/entities/helpers/lead_email.entity.ts +31 -0
- package/src/entities/helpers/lead_phone.entity.ts +31 -0
- package/src/entities/index.ts +17 -0
- package/src/entities/phone.entity.ts +13 -0
- package/{entities → src/entities}/profile.entity.ts +1 -1
- package/src/entities/sales/contact.entity.ts +140 -0
- package/src/entities/sales/lead.entity.ts +151 -0
- package/src/entities/sales/poliza.entity.ts +220 -0
- package/tsconfig.json +4 -3
- package/webpack-hmr.js +26 -0
- package/webpack.config.js +27 -0
- package/entities/index.ts +0 -7
- /package/{common → src/common}/@types/typings/globals.d.ts +0 -0
- /package/{common → src/common}/database/base.entity.ts +0 -0
- /package/{common → src/common}/database/index.ts +0 -0
- /package/{entities → src/entities}/group.entity.ts +0 -0
- /package/{entities → src/entities}/otp-log.entity.ts +0 -0
- /package/{entities → src/entities}/permission.entity.ts +0 -0
- /package/{entities → src/entities}/protocol.entity.ts +0 -0
- /package/{entities → src/entities}/refresh-token.entity.ts +0 -0
- /package/{entities → src/entities}/role.entity.ts +0 -0
- /package/{entities → src/entities}/user.entity.ts +0 -0
- /package/{eslint.config.js → src/eslint.config.js} +0 -0
- /package/{index.ts → src/index.ts} +0 -0
|
@@ -12,45 +12,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.BaseEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
let BaseEntity = class BaseEntity extends typeorm_1.BaseEntity {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
value: void 0
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(this, "isActive", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
configurable: true,
|
|
26
|
-
writable: true,
|
|
27
|
-
value: void 0
|
|
28
|
-
});
|
|
29
|
-
Object.defineProperty(this, "isDeleted", {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
configurable: true,
|
|
32
|
-
writable: true,
|
|
33
|
-
value: void 0
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(this, "createdAt", {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
configurable: true,
|
|
38
|
-
writable: true,
|
|
39
|
-
value: void 0
|
|
40
|
-
});
|
|
41
|
-
Object.defineProperty(this, "updatedAt", {
|
|
42
|
-
enumerable: true,
|
|
43
|
-
configurable: true,
|
|
44
|
-
writable: true,
|
|
45
|
-
value: void 0
|
|
46
|
-
});
|
|
47
|
-
Object.defineProperty(this, "deletedAt", {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
configurable: true,
|
|
50
|
-
writable: true,
|
|
51
|
-
value: void 0
|
|
52
|
-
});
|
|
53
|
-
}
|
|
15
|
+
id;
|
|
16
|
+
isActive;
|
|
17
|
+
isDeleted;
|
|
18
|
+
createdAt;
|
|
19
|
+
updatedAt;
|
|
20
|
+
deletedAt;
|
|
54
21
|
};
|
|
55
22
|
exports.BaseEntity = BaseEntity;
|
|
56
23
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.entity.js","sourceRoot":"","sources":["../../../common/database/base.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AAGV,IAAe,UAAU,GAAzB,MAAe,UAAW,SAAQ,oBAAU;
|
|
1
|
+
{"version":3,"file":"base.entity.js","sourceRoot":"","sources":["../../../src/common/database/base.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AAGV,IAAe,UAAU,GAAzB,MAAe,UAAW,SAAQ,oBAAU;IAEjD,EAAE,CAAU;IAGZ,QAAQ,CAAW;IAGnB,SAAS,CAAW;IAGpB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AAlBqB,gCAAU;AAE9B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;sCACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;4CACP;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CACP;AAGpB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;6CAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;6CAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;6CAAC;qBAjBG,UAAU;IAD/B,IAAA,gBAAM,GAAE;GACa,UAAU,CAkB/B"}
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
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
|
+
'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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../common/database/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/database/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
|
|
@@ -14,15 +14,7 @@ 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 {
|
|
17
|
-
|
|
18
|
-
super(...arguments);
|
|
19
|
-
Object.defineProperty(this, "name", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
configurable: true,
|
|
22
|
-
writable: true,
|
|
23
|
-
value: void 0
|
|
24
|
-
});
|
|
25
|
-
}
|
|
17
|
+
name;
|
|
26
18
|
};
|
|
27
19
|
exports.Group = Group;
|
|
28
20
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.entity.js","sourceRoot":"","sources":["../../entities/group.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA8C;AAC9C,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,qBAAU;
|
|
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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEntity } from "typeorm";
|
|
2
|
+
import { Contact } from "../sales/contact.entity";
|
|
3
|
+
import { Email } from "../email.entity";
|
|
4
|
+
export declare class ContactEmail extends BaseEntity {
|
|
5
|
+
id?: string;
|
|
6
|
+
contactId: string;
|
|
7
|
+
emailId: string;
|
|
8
|
+
relation: string;
|
|
9
|
+
contact: Contact;
|
|
10
|
+
email: Email;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEntity } from "typeorm";
|
|
2
|
+
import { Contact } from "../sales/contact.entity";
|
|
3
|
+
import { Phone } from "../phone.entity";
|
|
4
|
+
export declare class ContactPhone extends BaseEntity {
|
|
5
|
+
id?: string;
|
|
6
|
+
contactId: string;
|
|
7
|
+
phoneId: string;
|
|
8
|
+
relation: string;
|
|
9
|
+
contact: Contact;
|
|
10
|
+
phone: Phone;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEntity } from "typeorm";
|
|
2
|
+
import { Lead } from "../sales/lead.entity";
|
|
3
|
+
import { Email } from "../email.entity";
|
|
4
|
+
export declare class LeadEmail extends BaseEntity {
|
|
5
|
+
id?: string;
|
|
6
|
+
leadId: string;
|
|
7
|
+
emailId: string;
|
|
8
|
+
relation: string;
|
|
9
|
+
lead: Lead;
|
|
10
|
+
email: Email;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -5,3 +5,13 @@ export * from "./refresh-token.entity";
|
|
|
5
5
|
export * from "./profile.entity";
|
|
6
6
|
export * from "./role.entity";
|
|
7
7
|
export * from "./permission.entity";
|
|
8
|
+
export * from "./sales/contact.entity";
|
|
9
|
+
export * from "./sales/lead.entity";
|
|
10
|
+
export * from "./sales/poliza.entity";
|
|
11
|
+
export * from "./phone.entity";
|
|
12
|
+
export * from "./email.entity";
|
|
13
|
+
export * from "./helpers/contact_phone.entity";
|
|
14
|
+
export * from "./helpers/contact_email.entity";
|
|
15
|
+
export * from "./helpers/contact_types.entity";
|
|
16
|
+
export * from "./helpers/contact_sources.entity";
|
|
17
|
+
export * from "./app_config/app-config.entity";
|
package/dist/entities/index.js
CHANGED
|
@@ -1,24 +1 @@
|
|
|
1
|
-
|
|
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
|
-
//# sourceMappingURL=index.js.map
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../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"}
|
|
@@ -14,33 +14,10 @@ const typeorm_1 = require("typeorm");
|
|
|
14
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
configurable: true,
|
|
22
|
-
writable: true,
|
|
23
|
-
value: void 0
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(this, "otpCode", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
configurable: true,
|
|
28
|
-
writable: true,
|
|
29
|
-
value: void 0
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(this, "user", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
configurable: true,
|
|
34
|
-
writable: true,
|
|
35
|
-
value: void 0
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(this, "isUsed", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
configurable: true,
|
|
40
|
-
writable: true,
|
|
41
|
-
value: void 0
|
|
42
|
-
});
|
|
43
|
-
}
|
|
17
|
+
expiresIn;
|
|
18
|
+
otpCode;
|
|
19
|
+
user;
|
|
20
|
+
isUsed;
|
|
44
21
|
};
|
|
45
22
|
exports.OtpLog = OtpLog;
|
|
46
23
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otp-log.entity.js","sourceRoot":"","sources":["../../entities/otp-log.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuE;AACvE,+CAA8C;AAC9C,+CAAqC;AAI9B,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,qBAAU;
|
|
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"}
|
|
@@ -14,27 +14,9 @@ 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 {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
enumerable: true,
|
|
21
|
-
configurable: true,
|
|
22
|
-
writable: true,
|
|
23
|
-
value: void 0
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(this, "action", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
configurable: true,
|
|
28
|
-
writable: true,
|
|
29
|
-
value: void 0
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(this, "roles", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
configurable: true,
|
|
34
|
-
writable: true,
|
|
35
|
-
value: void 0
|
|
36
|
-
});
|
|
37
|
-
}
|
|
17
|
+
resource;
|
|
18
|
+
action;
|
|
19
|
+
roles;
|
|
38
20
|
};
|
|
39
21
|
exports.Permission = Permission;
|
|
40
22
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../entities/permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA8C;AAC9C,qCAAuE;AACvE,+CAAqC;AAI9B,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,qBAAU;
|
|
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"}
|
|
@@ -14,39 +14,11 @@ const database_1 = require("@common/database");
|
|
|
14
14
|
const typeorm_1 = require("typeorm");
|
|
15
15
|
const user_entity_1 = require("./user.entity");
|
|
16
16
|
let Profile = class Profile extends database_1.BaseEntity {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
writable: true,
|
|
23
|
-
value: void 0
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(this, "lastName", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
configurable: true,
|
|
28
|
-
writable: true,
|
|
29
|
-
value: void 0
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(this, "idcard", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
configurable: true,
|
|
34
|
-
writable: true,
|
|
35
|
-
value: void 0
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(this, "birthday", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
configurable: true,
|
|
40
|
-
writable: true,
|
|
41
|
-
value: void 0
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(this, "user", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
configurable: true,
|
|
46
|
-
writable: true,
|
|
47
|
-
value: void 0
|
|
48
|
-
});
|
|
49
|
-
}
|
|
17
|
+
firstName;
|
|
18
|
+
lastName;
|
|
19
|
+
idcard;
|
|
20
|
+
birthday;
|
|
21
|
+
user;
|
|
50
22
|
};
|
|
51
23
|
exports.Profile = Profile;
|
|
52
24
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.entity.js","sourceRoot":"","sources":["../../entities/profile.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA8C;AAC9C,qCAAmD;AACnD,+CAAqC;AAG9B,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,qBAAU;
|
|
1
|
+
{"version":3,"file":"profile.entity.js","sourceRoot":"","sources":["../../src/entities/profile.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA8C;AAC9C,qCAAmD;AACnD,+CAAqC;AAG9B,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,qBAAU;IAErC,SAAS,CAAS;IAGlB,QAAQ,CAAS;IAGjB,MAAM,CAAS;IAGf,QAAQ,CAAO;IAMf,IAAI,CAAO;CACZ,CAAA;AAlBY,0BAAO;AAElB;IADC,IAAA,gBAAM,GAAE;;0CACS;AAGlB;IADC,IAAA,gBAAM,GAAE;;yCACQ;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;uCACV;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,IAAI;yCAAC;AAMf;IAJC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE;QAC5C,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACI,kBAAI;qCAAC;kBAjBA,OAAO;IADnB,IAAA,gBAAM,EAAC,cAAc,CAAC;GACV,OAAO,CAkBnB"}
|
|
@@ -13,32 +13,12 @@ exports.Protocol = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const database_1 = require("@common/database");
|
|
15
15
|
let Protocol = class Protocol extends database_1.BaseEntity {
|
|
16
|
+
loginAttemptInterval;
|
|
17
|
+
loginIntervalUnit;
|
|
18
|
+
loginMaxRetry;
|
|
19
|
+
otpExpiryInMinutes;
|
|
16
20
|
constructor(partial) {
|
|
17
21
|
super();
|
|
18
|
-
Object.defineProperty(this, "loginAttemptInterval", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
configurable: true,
|
|
21
|
-
writable: true,
|
|
22
|
-
value: void 0
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(this, "loginIntervalUnit", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
configurable: true,
|
|
27
|
-
writable: true,
|
|
28
|
-
value: void 0
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(this, "loginMaxRetry", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
configurable: true,
|
|
33
|
-
writable: true,
|
|
34
|
-
value: void 0
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(this, "otpExpiryInMinutes", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
configurable: true,
|
|
39
|
-
writable: true,
|
|
40
|
-
value: void 0
|
|
41
|
-
});
|
|
42
22
|
Object.assign(this, partial);
|
|
43
23
|
}
|
|
44
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.entity.js","sourceRoot":"","sources":["../../entities/protocol.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,+CAA8C;AAKvC,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,qBAAU;
|
|
1
|
+
{"version":3,"file":"protocol.entity.js","sourceRoot":"","sources":["../../src/entities/protocol.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,+CAA8C;AAKvC,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,qBAAU;IAEtC,oBAAoB,CAAU;IAG9B,iBAAiB,CAAU;IAG3B,aAAa,CAAU;IAGvB,kBAAkB,CAAU;IAE5B,YAAY,OAA2B;QACrC,KAAK,EAAE,CAAC;QACR,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;CACF,CAAA;AAjBY,4BAAQ;AAEnB;IADC,IAAA,gBAAM,GAAE;;sDACqB;AAG9B;IADC,IAAA,gBAAM,GAAE;;mDACkB;AAG3B;IADC,IAAA,gBAAM,GAAE;;+CACc;AAGvB;IADC,IAAA,gBAAM,GAAE;;oDACmB;mBAXjB,QAAQ;IADpB,IAAA,gBAAM,GAAE;;GACI,QAAQ,CAiBpB"}
|
|
@@ -14,26 +14,11 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
const database_1 = require("@common/database");
|
|
15
15
|
const user_entity_1 = require("./user.entity");
|
|
16
16
|
let RefreshToken = class RefreshToken extends database_1.BaseEntity {
|
|
17
|
+
expiresIn;
|
|
18
|
+
user;
|
|
19
|
+
isRevoked;
|
|
17
20
|
constructor(partial) {
|
|
18
21
|
super();
|
|
19
|
-
Object.defineProperty(this, "expiresIn", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
configurable: true,
|
|
22
|
-
writable: true,
|
|
23
|
-
value: void 0
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(this, "user", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
configurable: true,
|
|
28
|
-
writable: true,
|
|
29
|
-
value: void 0
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(this, "isRevoked", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
configurable: true,
|
|
34
|
-
writable: true,
|
|
35
|
-
value: void 0
|
|
36
|
-
});
|
|
37
22
|
Object.assign(this, partial);
|
|
38
23
|
}
|
|
39
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refresh-token.entity.js","sourceRoot":"","sources":["../../entities/refresh-token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,+CAA8C;AAC9C,+CAAqC;AAG9B,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,qBAAU;
|
|
1
|
+
{"version":3,"file":"refresh-token.entity.js","sourceRoot":"","sources":["../../src/entities/refresh-token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,+CAA8C;AAC9C,+CAAqC;AAG9B,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,qBAAU;IAE1C,SAAS,CAAQ;IAOjB,IAAI,CAAQ;IAGZ,SAAS,CAAW;IAEpB,YAAY,OAA+B;QACzC,KAAK,EAAE,CAAC;QACR,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;CACF,CAAA;AAlBY,oCAAY;AAEvB;IADC,IAAA,gBAAM,GAAE;8BACG,IAAI;+CAAC;AAOjB;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACK,kBAAI;0CAAC;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;+CACP;uBAZT,YAAY;IADxB,IAAA,gBAAM,GAAE;;GACI,YAAY,CAkBxB"}
|
|
@@ -14,21 +14,8 @@ 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 Role = class Role extends database_1.BaseEntity {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
Object.defineProperty(this, "name", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
configurable: true,
|
|
22
|
-
writable: true,
|
|
23
|
-
value: void 0
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(this, "isDefault", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
configurable: true,
|
|
28
|
-
writable: true,
|
|
29
|
-
value: void 0
|
|
30
|
-
});
|
|
31
|
-
}
|
|
17
|
+
name;
|
|
18
|
+
isDefault;
|
|
32
19
|
};
|
|
33
20
|
exports.Role = Role;
|
|
34
21
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../entities/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA8C;AAC9C,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;
|
|
1
|
+
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA8C;AAC9C,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;IAGlC,IAAI,CAAS;IAGb,SAAS,CAAU;CACpB,CAAA;AAPY,oBAAI;AAGf;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;kCACZ;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;uCACR;eANR,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CAOhB"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { BaseEntity } from "@common/database";
|
|
2
|
+
import { ContactEmail } from "../helpers/contact_email.entity";
|
|
3
|
+
import { ContactPhone } from "../helpers/contact_phone.entity";
|
|
4
|
+
import { ContactSource } from "../helpers/contact_sources.entity";
|
|
5
|
+
import { ContactType } from "../helpers/contact_types.entity";
|
|
6
|
+
import { User } from "../user.entity";
|
|
7
|
+
export declare class Contact extends BaseEntity {
|
|
8
|
+
curp: string;
|
|
9
|
+
idBitrix: number;
|
|
10
|
+
cua: string;
|
|
11
|
+
cargo: string;
|
|
12
|
+
fullName: string;
|
|
13
|
+
name: string;
|
|
14
|
+
lastName: string;
|
|
15
|
+
secondName: string;
|
|
16
|
+
photo: string;
|
|
17
|
+
post: string;
|
|
18
|
+
address: string;
|
|
19
|
+
comments: string;
|
|
20
|
+
lead: string;
|
|
21
|
+
export: boolean;
|
|
22
|
+
originatorId: string;
|
|
23
|
+
originId: string;
|
|
24
|
+
originVersion: string;
|
|
25
|
+
birthdate: Date;
|
|
26
|
+
honorific: string;
|
|
27
|
+
hasPhone: boolean;
|
|
28
|
+
hasEmail: boolean;
|
|
29
|
+
hasImol: boolean;
|
|
30
|
+
faceId: string;
|
|
31
|
+
opened: boolean;
|
|
32
|
+
company: string;
|
|
33
|
+
sourceDescription: string;
|
|
34
|
+
assignedBy: User;
|
|
35
|
+
createdBy: User;
|
|
36
|
+
observador: User;
|
|
37
|
+
type: ContactType;
|
|
38
|
+
source: ContactSource;
|
|
39
|
+
phones?: ContactPhone[];
|
|
40
|
+
emails?: ContactEmail[];
|
|
41
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { BaseEntity } from "@common/database";
|
|
2
|
+
import { LeadEmail } from "../helpers/lead_email.entity";
|
|
3
|
+
import { LeadPhone } from "../helpers/lead_phone.entity";
|
|
4
|
+
import { User } from "../user.entity";
|
|
5
|
+
import { Contact } from "./contact.entity";
|
|
6
|
+
export declare class Lead extends BaseEntity {
|
|
7
|
+
curp: string;
|
|
8
|
+
idBitrix: number;
|
|
9
|
+
cua: string;
|
|
10
|
+
fullName: string;
|
|
11
|
+
name: string;
|
|
12
|
+
lastName: string;
|
|
13
|
+
secondName: string;
|
|
14
|
+
photo: string;
|
|
15
|
+
opportunity: number;
|
|
16
|
+
post: string;
|
|
17
|
+
address: string;
|
|
18
|
+
comments: string;
|
|
19
|
+
lead: string;
|
|
20
|
+
export: boolean;
|
|
21
|
+
originatorId: string;
|
|
22
|
+
originId: string;
|
|
23
|
+
originVersion: string;
|
|
24
|
+
birthdate: Date;
|
|
25
|
+
honorific: string;
|
|
26
|
+
hasPhone: boolean;
|
|
27
|
+
hasEmail: boolean;
|
|
28
|
+
hasImol: boolean;
|
|
29
|
+
faceId: string;
|
|
30
|
+
opened: boolean;
|
|
31
|
+
company: string;
|
|
32
|
+
statusId: string;
|
|
33
|
+
companyTitle: string;
|
|
34
|
+
accountCurrencyId: string;
|
|
35
|
+
title: string;
|
|
36
|
+
source: string;
|
|
37
|
+
sourceDescription: string;
|
|
38
|
+
isReturnCustomer: boolean;
|
|
39
|
+
isManualOpportunity: boolean;
|
|
40
|
+
assignedBy: User;
|
|
41
|
+
createdBy: User;
|
|
42
|
+
observador: User;
|
|
43
|
+
contact: Contact;
|
|
44
|
+
phones?: LeadPhone[];
|
|
45
|
+
emails?: LeadEmail[];
|
|
46
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { BaseEntity } from "@common/database";
|
|
2
|
+
import { User } from "../user.entity";
|
|
3
|
+
import { Contact } from "./contact.entity";
|
|
4
|
+
export declare class Poliza extends BaseEntity {
|
|
5
|
+
idBitrix: number;
|
|
6
|
+
noPoliza: string;
|
|
7
|
+
title: string;
|
|
8
|
+
version: string;
|
|
9
|
+
vigenciaDesde: Date;
|
|
10
|
+
vigenciaHasta: Date;
|
|
11
|
+
beginDate: Date;
|
|
12
|
+
closeDate: Date;
|
|
13
|
+
opened?: boolean;
|
|
14
|
+
stageSemantic?: string;
|
|
15
|
+
stage: string;
|
|
16
|
+
isNew: boolean;
|
|
17
|
+
primaNeta?: number;
|
|
18
|
+
recargoFraccionado?: number;
|
|
19
|
+
derechoPoliza?: number;
|
|
20
|
+
iva?: number;
|
|
21
|
+
importePagar?: number;
|
|
22
|
+
isRecurring?: boolean;
|
|
23
|
+
isReturnCustomer?: boolean;
|
|
24
|
+
isRepeatedApproach?: boolean;
|
|
25
|
+
closed?: boolean;
|
|
26
|
+
typeId?: string;
|
|
27
|
+
opportunity?: number;
|
|
28
|
+
isManualOpportunity?: boolean;
|
|
29
|
+
currencyId?: string;
|
|
30
|
+
taxValue?: number;
|
|
31
|
+
opportunityAccount?: number;
|
|
32
|
+
taxValueAccount?: number;
|
|
33
|
+
accountCurrencyId?: string;
|
|
34
|
+
probability?: number;
|
|
35
|
+
comments?: string;
|
|
36
|
+
eventDate?: Date;
|
|
37
|
+
eventId?: string;
|
|
38
|
+
eventDescription?: string;
|
|
39
|
+
exchRate?: number;
|
|
40
|
+
product?: string;
|
|
41
|
+
sourceId: string;
|
|
42
|
+
sourceDescription: string;
|
|
43
|
+
contact: Contact;
|
|
44
|
+
assignedBy?: User;
|
|
45
|
+
createdBy?: User;
|
|
46
|
+
descripcionMovimiento?: string;
|
|
47
|
+
especificacionesPlan: string;
|
|
48
|
+
agenteReclamo?: User;
|
|
49
|
+
agenteReembolso?: User;
|
|
50
|
+
agenteProgramaciones?: User;
|
|
51
|
+
agenteReembolsoSubsecuente?: User;
|
|
52
|
+
agenteRescateFondos?: User;
|
|
53
|
+
agenteSaludGMM?: User;
|
|
54
|
+
agenteVida?: User;
|
|
55
|
+
agenteAutos?: User;
|
|
56
|
+
fechaReferidaPago?: Date;
|
|
57
|
+
modifyBy?: User;
|
|
58
|
+
}
|