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
|
@@ -16,81 +16,18 @@ const class_transformer_1 = require("class-transformer");
|
|
|
16
16
|
const profile_entity_1 = require("./profile.entity");
|
|
17
17
|
const role_entity_1 = require("./role.entity");
|
|
18
18
|
let User = class User extends database_1.BaseEntity {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
value: void 0
|
|
32
|
-
});
|
|
33
|
-
Object.defineProperty(this, "bio", {
|
|
34
|
-
enumerable: true,
|
|
35
|
-
configurable: true,
|
|
36
|
-
writable: true,
|
|
37
|
-
value: void 0
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(this, "avatar", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
configurable: true,
|
|
42
|
-
writable: true,
|
|
43
|
-
value: void 0
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperty(this, "hash", {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
configurable: true,
|
|
48
|
-
writable: true,
|
|
49
|
-
value: void 0
|
|
50
|
-
});
|
|
51
|
-
Object.defineProperty(this, "twoFactorSecret", {
|
|
52
|
-
enumerable: true,
|
|
53
|
-
configurable: true,
|
|
54
|
-
writable: true,
|
|
55
|
-
value: void 0
|
|
56
|
-
});
|
|
57
|
-
Object.defineProperty(this, "isTwoFactorEnabled", {
|
|
58
|
-
enumerable: true,
|
|
59
|
-
configurable: true,
|
|
60
|
-
writable: true,
|
|
61
|
-
value: void 0
|
|
62
|
-
});
|
|
63
|
-
Object.defineProperty(this, "phone", {
|
|
64
|
-
enumerable: true,
|
|
65
|
-
configurable: true,
|
|
66
|
-
writable: true,
|
|
67
|
-
value: void 0
|
|
68
|
-
});
|
|
69
|
-
Object.defineProperty(this, "isVerified", {
|
|
70
|
-
enumerable: true,
|
|
71
|
-
configurable: true,
|
|
72
|
-
writable: true,
|
|
73
|
-
value: void 0
|
|
74
|
-
});
|
|
75
|
-
Object.defineProperty(this, "lastLogin", {
|
|
76
|
-
enumerable: true,
|
|
77
|
-
configurable: true,
|
|
78
|
-
writable: true,
|
|
79
|
-
value: void 0
|
|
80
|
-
});
|
|
81
|
-
Object.defineProperty(this, "profile", {
|
|
82
|
-
enumerable: true,
|
|
83
|
-
configurable: true,
|
|
84
|
-
writable: true,
|
|
85
|
-
value: void 0
|
|
86
|
-
});
|
|
87
|
-
Object.defineProperty(this, "roles", {
|
|
88
|
-
enumerable: true,
|
|
89
|
-
configurable: true,
|
|
90
|
-
writable: true,
|
|
91
|
-
value: void 0
|
|
92
|
-
});
|
|
93
|
-
}
|
|
19
|
+
username;
|
|
20
|
+
email;
|
|
21
|
+
bio;
|
|
22
|
+
avatar;
|
|
23
|
+
hash;
|
|
24
|
+
twoFactorSecret;
|
|
25
|
+
isTwoFactorEnabled;
|
|
26
|
+
phone;
|
|
27
|
+
isVerified;
|
|
28
|
+
lastLogin;
|
|
29
|
+
profile;
|
|
30
|
+
roles;
|
|
94
31
|
};
|
|
95
32
|
exports.User = User;
|
|
96
33
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA8C;AAC9C,qCAAsF;AACtF,yDAA4C;AAC5C,qDAA2C;AAC3C,+CAAqC;AAG9B,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA8C;AAC9C,qCAAsF;AACtF,yDAA4C;AAC5C,qDAA2C;AAC3C,+CAAqC;AAG9B,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;IAElC,QAAQ,CAAU;IAGlB,KAAK,CAAU;IAGf,GAAG,CAAU;IAGb,MAAM,CAAU;IAIhB,IAAI,CAAU;IAId,eAAe,CAAU;IAGzB,kBAAkB,CAAW;IAG7B,KAAK,CAAU;IAGf,UAAU,CAAW;IAGrB,SAAS,CAAQ;IAOjB,OAAO,CAAU;IAOjB,KAAK,CAAU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AAI,CA8ChB"}
|
package/dist/eslint.config.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _exports:
|
|
1
|
+
declare const _exports: import("eslint-flat-config-utils/index").FlatConfigComposer<import("@antfu/eslint-config").TypedFlatConfigItem, import("@antfu/eslint-config").ConfigNames>;
|
|
2
2
|
export = _exports;
|
package/dist/eslint.config.js
CHANGED
|
@@ -1,47 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const rubiin = require("@antfu/eslint-config").default;
|
|
4
|
-
module.exports = rubiin({
|
|
5
|
-
stylistic: {
|
|
6
|
-
semi: true,
|
|
7
|
-
quotes: "double",
|
|
8
|
-
},
|
|
9
|
-
yaml: true,
|
|
10
|
-
jsonc: true,
|
|
11
|
-
markdown: false,
|
|
12
|
-
gitignore: true,
|
|
13
|
-
typescript: {
|
|
14
|
-
tsconfigPath: "tsconfig.json",
|
|
15
|
-
},
|
|
16
|
-
overrides: {
|
|
17
|
-
test: {
|
|
18
|
-
"ts/unbound-method": "off",
|
|
19
|
-
},
|
|
20
|
-
typescript: {
|
|
21
|
-
"ts/no-misused-promises": [
|
|
22
|
-
"error",
|
|
23
|
-
{
|
|
24
|
-
checksVoidReturn: false,
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
"ts/no-floating-promises": [
|
|
28
|
-
"error",
|
|
29
|
-
{
|
|
30
|
-
ignoreIIFE: true,
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
"unicorn/prefer-top-level-await": "off",
|
|
34
|
-
"unicorn/prevent-abbreviations": [
|
|
35
|
-
"error",
|
|
36
|
-
{
|
|
37
|
-
ignore: ["\\.e2e*", "\\.spec*", "\\.decorator*", "\\*idx*"],
|
|
38
|
-
allowList: {
|
|
39
|
-
ProcessEnv: true,
|
|
40
|
-
UUIDParam: true,
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
//# sourceMappingURL=eslint.config.js.map
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});const rubiin=require('@antfu/eslint-config').default;module.exports=rubiin({stylistic:{semi:true,quotes:'double'},yaml:true,jsonc:true,markdown:false,gitignore:true,typescript:{tsconfigPath:'tsconfig.json'},overrides:{test:{'ts/unbound-method':'off'},typescript:{'ts/no-misused-promises':['error',{checksVoidReturn:false}],'ts/no-floating-promises':['error',{ignoreIIFE:true}],'unicorn/prefer-top-level-await':'off','unicorn/prevent-abbreviations':['error',{ignore:['\\.e2e*','\\.spec*','\\.decorator*','\\*idx*'],allowList:{ProcessEnv:true,UUIDParam:true}}]}}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint.config.js","sourceRoot":"","sources":["../eslint.config.js"],"names":[],"mappings":";;AAAA,MAAM,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC,OAAO,CAAC;AAEvD,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC;IACtB,SAAS,EAAE;QACT,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,QAAQ;KACjB;IACD,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV,YAAY,EAAE,eAAe;KAC9B;IACD,SAAS,EAAE;QACT,IAAI,EAAE;YACJ,mBAAmB,EAAE,KAAK;SAC3B;QACD,UAAU,EAAE;YACV,wBAAwB,EAAE;gBACxB,OAAO;gBACP;oBACE,gBAAgB,EAAE,KAAK;iBACxB;aACF;YACD,yBAAyB,EAAE;gBACzB,OAAO;gBACP;oBACE,UAAU,EAAE,IAAI;iBACjB;aACF;YACD,gCAAgC,EAAE,KAAK;YACvC,+BAA+B,EAAE;gBAC/B,OAAO;gBACP;oBACE,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,CAAC;oBAC3D,SAAS,EAAE;wBACT,UAAU,EAAE,IAAI;wBAChB,SAAS,EAAE,IAAI;qBAChB;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"eslint.config.js","sourceRoot":"","sources":["../src/eslint.config.js"],"names":[],"mappings":";;AAAA,MAAM,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC,OAAO,CAAC;AAEvD,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC;IACtB,SAAS,EAAE;QACT,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,QAAQ;KACjB;IACD,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV,YAAY,EAAE,eAAe;KAC9B;IACD,SAAS,EAAE;QACT,IAAI,EAAE;YACJ,mBAAmB,EAAE,KAAK;SAC3B;QACD,UAAU,EAAE;YACV,wBAAwB,EAAE;gBACxB,OAAO;gBACP;oBACE,gBAAgB,EAAE,KAAK;iBACxB;aACF;YACD,yBAAyB,EAAE;gBACzB,OAAO;gBACP;oBACE,UAAU,EAAE,IAAI;iBACjB;aACF;YACD,gCAAgC,EAAE,KAAK;YACvC,+BAA+B,EAAE;gBAC/B,OAAO;gBACP;oBACE,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,CAAC;oBAC3D,SAAS,EAAE;wBACT,UAAU,EAAE,IAAI;wBAChB,SAAS,EAAE,IAAI;qBAChB;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAC"}
|