easywork-common-lib 1.0.160 → 1.0.161
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/package.json +1 -1
- package/dist/common/@types/enums/crm.enum.d.ts +0 -8
- package/dist/common/@types/enums/crm.enum.js +0 -14
- package/dist/common/@types/enums/crm.enum.js.map +0 -1
- package/dist/common/@types/enums/index.d.ts +0 -3
- package/dist/common/@types/enums/index.js +0 -20
- package/dist/common/@types/enums/index.js.map +0 -1
- package/dist/common/@types/enums/misc.enum.d.ts +0 -60
- package/dist/common/@types/enums/misc.enum.js +0 -81
- package/dist/common/@types/enums/misc.enum.js.map +0 -1
- package/dist/common/@types/enums/permission.enum.d.ts +0 -13
- package/dist/common/@types/enums/permission.enum.js +0 -19
- package/dist/common/@types/enums/permission.enum.js.map +0 -1
- package/dist/common/@types/index.d.ts +0 -2
- package/dist/common/@types/index.js +0 -19
- package/dist/common/@types/index.js.map +0 -1
- package/dist/common/@types/interfaces/authentication.interface.d.ts +0 -17
- package/dist/common/@types/interfaces/authentication.interface.js +0 -3
- package/dist/common/@types/interfaces/authentication.interface.js.map +0 -1
- package/dist/common/@types/interfaces/crm.interface.d.ts +0 -131
- package/dist/common/@types/interfaces/crm.interface.js +0 -3
- package/dist/common/@types/interfaces/crm.interface.js.map +0 -1
- package/dist/common/@types/interfaces/file.interface.d.ts +0 -16
- package/dist/common/@types/interfaces/file.interface.js +0 -3
- package/dist/common/@types/interfaces/file.interface.js.map +0 -1
- package/dist/common/@types/interfaces/index.d.ts +0 -5
- package/dist/common/@types/interfaces/index.js +0 -22
- package/dist/common/@types/interfaces/index.js.map +0 -1
- package/dist/common/@types/interfaces/mail.interface.d.ts +0 -9
- package/dist/common/@types/interfaces/mail.interface.js +0 -3
- package/dist/common/@types/interfaces/mail.interface.js.map +0 -1
- package/dist/common/@types/interfaces/validator.interface.d.ts +0 -41
- package/dist/common/@types/interfaces/validator.interface.js +0 -3
- package/dist/common/@types/interfaces/validator.interface.js.map +0 -1
- package/dist/common/constants/index.d.ts +0 -1
- package/dist/common/constants/index.js +0 -18
- package/dist/common/constants/index.js.map +0 -1
- package/dist/common/constants/regex.constant.d.ts +0 -6
- package/dist/common/constants/regex.constant.js +0 -10
- package/dist/common/constants/regex.constant.js.map +0 -1
- package/dist/common/database/base.entity.d.ts +0 -26
- package/dist/common/database/base.entity.js +0 -133
- package/dist/common/database/base.entity.js.map +0 -1
- package/dist/common/database/index.d.ts +0 -1
- package/dist/common/database/index.js +0 -18
- package/dist/common/database/index.js.map +0 -1
- package/dist/common/dtos/index.d.ts +0 -1
- package/dist/common/dtos/index.js +0 -18
- package/dist/common/dtos/index.js.map +0 -1
- package/dist/common/dtos/send-notification.dto.d.ts +0 -10
- package/dist/common/dtos/send-notification.dto.js +0 -54
- package/dist/common/dtos/send-notification.dto.js.map +0 -1
- package/dist/common/enums/index.d.ts +0 -3
- package/dist/common/enums/index.js +0 -20
- package/dist/common/enums/index.js.map +0 -1
- package/dist/common/enums/notification.enum.d.ts +0 -30
- package/dist/common/enums/notification.enum.js +0 -37
- package/dist/common/enums/notification.enum.js.map +0 -1
- package/dist/common/enums/sales.enum.d.ts +0 -12
- package/dist/common/enums/sales.enum.js +0 -18
- package/dist/common/enums/sales.enum.js.map +0 -1
- package/dist/common/enums/tools.enum.d.ts +0 -10
- package/dist/common/enums/tools.enum.js +0 -16
- package/dist/common/enums/tools.enum.js.map +0 -1
- package/dist/common/helpers/app.utils.d.ts +0 -5
- package/dist/common/helpers/app.utils.js +0 -32
- package/dist/common/helpers/app.utils.js.map +0 -1
- package/dist/common/helpers/helpers.utils.d.ts +0 -5
- package/dist/common/helpers/helpers.utils.js +0 -26
- package/dist/common/helpers/helpers.utils.js.map +0 -1
- package/dist/common/helpers/index.d.ts +0 -2
- package/dist/common/helpers/index.js +0 -19
- package/dist/common/helpers/index.js.map +0 -1
- package/dist/common/index.d.ts +0 -7
- package/dist/common/index.js +0 -24
- package/dist/common/index.js.map +0 -1
- package/dist/common/interceptors/index.d.ts +0 -1
- package/dist/common/interceptors/index.js +0 -18
- package/dist/common/interceptors/index.js.map +0 -1
- package/dist/common/interceptors/security.interceptor.d.ts +0 -5
- package/dist/common/interceptors/security.interceptor.js +0 -22
- package/dist/common/interceptors/security.interceptor.js.map +0 -1
- package/dist/entities/app_config/app-config.entity.d.ts +0 -5
- package/dist/entities/app_config/app-config.entity.js +0 -33
- package/dist/entities/app_config/app-config.entity.js.map +0 -1
- package/dist/entities/drive/file.entity.d.ts +0 -13
- package/dist/entities/drive/file.entity.js +0 -72
- package/dist/entities/drive/file.entity.js.map +0 -1
- package/dist/entities/drive/folder.entity.d.ts +0 -10
- package/dist/entities/drive/folder.entity.js +0 -64
- package/dist/entities/drive/folder.entity.js.map +0 -1
- package/dist/entities/drive/index.d.ts +0 -2
- package/dist/entities/drive/index.js +0 -19
- package/dist/entities/drive/index.js.map +0 -1
- package/dist/entities/easyapp/filter-view.entity.d.ts +0 -7
- package/dist/entities/easyapp/filter-view.entity.js +0 -41
- package/dist/entities/easyapp/filter-view.entity.js.map +0 -1
- package/dist/entities/easyapp/filter.entity.d.ts +0 -7
- package/dist/entities/easyapp/filter.entity.js +0 -41
- package/dist/entities/easyapp/filter.entity.js.map +0 -1
- package/dist/entities/easyapp/index.d.ts +0 -1
- package/dist/entities/easyapp/index.js +0 -18
- package/dist/entities/easyapp/index.js.map +0 -1
- package/dist/entities/email.entity.d.ts +0 -5
- package/dist/entities/email.entity.js +0 -33
- package/dist/entities/email.entity.js.map +0 -1
- package/dist/entities/group.entity.d.ts +0 -4
- package/dist/entities/group.entity.js +0 -28
- package/dist/entities/group.entity.js.map +0 -1
- package/dist/entities/helpers/entity_file.entity.d.ts +0 -10
- package/dist/entities/helpers/entity_file.entity.js +0 -54
- package/dist/entities/helpers/entity_file.entity.js.map +0 -1
- package/dist/entities/helpers/entity_folder.entity.d.ts +0 -10
- package/dist/entities/helpers/entity_folder.entity.js +0 -54
- package/dist/entities/helpers/entity_folder.entity.js.map +0 -1
- package/dist/entities/helpers/index.d.ts +0 -4
- package/dist/entities/helpers/index.js +0 -21
- package/dist/entities/helpers/index.js.map +0 -1
- package/dist/entities/helpers/sales/contact/contact_email.entity.d.ts +0 -11
- package/dist/entities/helpers/sales/contact/contact_email.entity.js +0 -61
- package/dist/entities/helpers/sales/contact/contact_email.entity.js.map +0 -1
- package/dist/entities/helpers/sales/contact/contact_phone.entity.d.ts +0 -11
- package/dist/entities/helpers/sales/contact/contact_phone.entity.js +0 -61
- package/dist/entities/helpers/sales/contact/contact_phone.entity.js.map +0 -1
- package/dist/entities/helpers/sales/contact/contact_sources.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/contact/contact_sources.entity.js +0 -33
- package/dist/entities/helpers/sales/contact/contact_sources.entity.js.map +0 -1
- package/dist/entities/helpers/sales/contact/contact_types.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/contact/contact_types.entity.js +0 -33
- package/dist/entities/helpers/sales/contact/contact_types.entity.js.map +0 -1
- package/dist/entities/helpers/sales/contact/index.d.ts +0 -4
- package/dist/entities/helpers/sales/contact/index.js +0 -21
- package/dist/entities/helpers/sales/contact/index.js.map +0 -1
- package/dist/entities/helpers/sales/index.d.ts +0 -6
- package/dist/entities/helpers/sales/index.js +0 -23
- package/dist/entities/helpers/sales/index.js.map +0 -1
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.d.ts +0 -4
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.js +0 -28
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.js.map +0 -1
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js +0 -33
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js.map +0 -1
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.d.ts +0 -4
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.js +0 -28
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.js.map +0 -1
- package/dist/entities/helpers/sales/lead/index.d.ts +0 -5
- package/dist/entities/helpers/sales/lead/index.js +0 -22
- package/dist/entities/helpers/sales/lead/index.js.map +0 -1
- package/dist/entities/helpers/sales/lead/lead_email.entity.d.ts +0 -11
- package/dist/entities/helpers/sales/lead/lead_email.entity.js +0 -59
- package/dist/entities/helpers/sales/lead/lead_email.entity.js.map +0 -1
- package/dist/entities/helpers/sales/lead/lead_phone.entity.d.ts +0 -11
- package/dist/entities/helpers/sales/lead/lead_phone.entity.js +0 -59
- package/dist/entities/helpers/sales/lead/lead_phone.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js +0 -30
- package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.d.ts +0 -6
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js +0 -35
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.d.ts +0 -6
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js +0 -35
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js +0 -30
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/index.d.ts +0 -5
- package/dist/entities/helpers/sales/poliza/index.js +0 -22
- package/dist/entities/helpers/sales/poliza/index.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.d.ts +0 -11
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js +0 -61
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js.map +0 -1
- package/dist/entities/helpers/tools/index.d.ts +0 -1
- package/dist/entities/helpers/tools/index.js +0 -18
- package/dist/entities/helpers/tools/index.js.map +0 -1
- package/dist/entities/helpers/tools/task_crm.entity.d.ts +0 -14
- package/dist/entities/helpers/tools/task_crm.entity.js +0 -85
- package/dist/entities/helpers/tools/task_crm.entity.js.map +0 -1
- package/dist/entities/imap-config.entity.d.ts +0 -11
- package/dist/entities/imap-config.entity.js +0 -61
- package/dist/entities/imap-config.entity.js.map +0 -1
- package/dist/entities/imap-folder.entity.d.ts +0 -7
- package/dist/entities/imap-folder.entity.js +0 -41
- package/dist/entities/imap-folder.entity.js.map +0 -1
- package/dist/entities/index.d.ts +0 -21
- package/dist/entities/index.js +0 -38
- package/dist/entities/index.js.map +0 -1
- package/dist/entities/notifications/index.d.ts +0 -1
- package/dist/entities/notifications/index.js +0 -18
- package/dist/entities/notifications/index.js.map +0 -1
- package/dist/entities/notifications/notification.entity.d.ts +0 -14
- package/dist/entities/notifications/notification.entity.js +0 -84
- package/dist/entities/notifications/notification.entity.js.map +0 -1
- package/dist/entities/oauth.entity.d.ts +0 -14
- package/dist/entities/oauth.entity.js +0 -76
- package/dist/entities/oauth.entity.js.map +0 -1
- package/dist/entities/otp-log.entity.d.ts +0 -8
- package/dist/entities/otp-log.entity.js +0 -44
- package/dist/entities/otp-log.entity.js.map +0 -1
- package/dist/entities/permission.entity.d.ts +0 -7
- package/dist/entities/permission.entity.js +0 -42
- package/dist/entities/permission.entity.js.map +0 -1
- package/dist/entities/phone.entity.d.ts +0 -5
- package/dist/entities/phone.entity.js +0 -33
- package/dist/entities/phone.entity.js.map +0 -1
- package/dist/entities/profile.entity.d.ts +0 -9
- package/dist/entities/profile.entity.js +0 -50
- package/dist/entities/profile.entity.js.map +0 -1
- package/dist/entities/protocol.entity.d.ts +0 -8
- package/dist/entities/protocol.entity.js +0 -46
- package/dist/entities/protocol.entity.js.map +0 -1
- package/dist/entities/refresh-token.entity.d.ts +0 -8
- package/dist/entities/refresh-token.entity.js +0 -46
- package/dist/entities/refresh-token.entity.js.map +0 -1
- package/dist/entities/role.entity.d.ts +0 -5
- package/dist/entities/role.entity.js +0 -33
- package/dist/entities/role.entity.js.map +0 -1
- package/dist/entities/sales/contact.entity.d.ts +0 -42
- package/dist/entities/sales/contact.entity.js +0 -222
- package/dist/entities/sales/contact.entity.js.map +0 -1
- package/dist/entities/sales/index.d.ts +0 -4
- package/dist/entities/sales/index.js +0 -21
- package/dist/entities/sales/index.js.map +0 -1
- package/dist/entities/sales/lead.entity.d.ts +0 -49
- package/dist/entities/sales/lead.entity.js +0 -270
- package/dist/entities/sales/lead.entity.js.map +0 -1
- package/dist/entities/sales/poliza.entity.d.ts +0 -67
- package/dist/entities/sales/poliza.entity.js +0 -399
- package/dist/entities/sales/poliza.entity.js.map +0 -1
- package/dist/entities/sales/poliza_siniestro.entity.d.ts +0 -12
- package/dist/entities/sales/poliza_siniestro.entity.js +0 -65
- package/dist/entities/sales/poliza_siniestro.entity.js.map +0 -1
- package/dist/entities/tag.entity.d.ts +0 -8
- package/dist/entities/tag.entity.js +0 -49
- package/dist/entities/tag.entity.js.map +0 -1
- package/dist/entities/tools/index.d.ts +0 -3
- package/dist/entities/tools/index.js +0 -20
- package/dist/entities/tools/index.js.map +0 -1
- package/dist/entities/tools/task-comment.entity.d.ts +0 -9
- package/dist/entities/tools/task-comment.entity.js +0 -52
- package/dist/entities/tools/task-comment.entity.js.map +0 -1
- package/dist/entities/tools/task-list-field.d.ts +0 -5
- package/dist/entities/tools/task-list-field.js +0 -35
- package/dist/entities/tools/task-list-field.js.map +0 -1
- package/dist/entities/tools/task.entity.d.ts +0 -29
- package/dist/entities/tools/task.entity.js +0 -160
- package/dist/entities/tools/task.entity.js.map +0 -1
- package/dist/entities/user.entity.d.ts +0 -20
- package/dist/entities/user.entity.js +0 -104
- package/dist/entities/user.entity.js.map +0 -1
- package/dist/eslint.config.d.ts +0 -2
- package/dist/eslint.config.js +0 -47
- package/dist/eslint.config.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -19
- package/dist/index.js.map +0 -1
package/dist/entities/index.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export * from "./user.entity";
|
|
2
|
-
export * from "./protocol.entity";
|
|
3
|
-
export * from "./otp-log.entity";
|
|
4
|
-
export * from "./refresh-token.entity";
|
|
5
|
-
export * from "./profile.entity";
|
|
6
|
-
export * from "./role.entity";
|
|
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 "./app_config/app-config.entity";
|
|
14
|
-
export * from "./imap-config.entity";
|
|
15
|
-
export * from "./imap-folder.entity";
|
|
16
|
-
export * from "./tag.entity";
|
|
17
|
-
export * from "./oauth.entity";
|
|
18
|
-
export * from "./tools";
|
|
19
|
-
export * from "./drive";
|
|
20
|
-
export * from "./helpers";
|
|
21
|
-
export * from "./notifications";
|
package/dist/entities/index.js
DELETED
|
@@ -1,38 +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("./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("./app_config/app-config.entity"), exports);
|
|
30
|
-
__exportStar(require("./imap-config.entity"), exports);
|
|
31
|
-
__exportStar(require("./imap-folder.entity"), exports);
|
|
32
|
-
__exportStar(require("./tag.entity"), exports);
|
|
33
|
-
__exportStar(require("./oauth.entity"), exports);
|
|
34
|
-
__exportStar(require("./tools"), exports);
|
|
35
|
-
__exportStar(require("./drive"), exports);
|
|
36
|
-
__exportStar(require("./helpers"), exports);
|
|
37
|
-
__exportStar(require("./notifications"), exports);
|
|
38
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,uDAAqC;AACrC,uDAAqC;AACrC,+CAA6B;AAC7B,iDAA+B;AAC/B,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,kDAAgC"}
|
|
@@ -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,14 +0,0 @@
|
|
|
1
|
-
import { User } from "../user.entity";
|
|
2
|
-
import { BaseEntitySimple } from "../../common";
|
|
3
|
-
import { NotificationCategory, NotificationChannel, NotificationSubcategory } from "../../common/enums";
|
|
4
|
-
export declare class Notification extends BaseEntitySimple {
|
|
5
|
-
content: string;
|
|
6
|
-
title: string;
|
|
7
|
-
category: NotificationCategory;
|
|
8
|
-
subCategory: NotificationSubcategory;
|
|
9
|
-
channels: NotificationChannel[];
|
|
10
|
-
entityId: string;
|
|
11
|
-
readAt: Date;
|
|
12
|
-
canceledAt: Date;
|
|
13
|
-
recipient?: User;
|
|
14
|
-
}
|
|
@@ -1,84 +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
|
-
const enums_1 = require("../../common/enums");
|
|
17
|
-
let Notification = class Notification extends common_1.BaseEntitySimple {
|
|
18
|
-
content;
|
|
19
|
-
title;
|
|
20
|
-
category;
|
|
21
|
-
subCategory;
|
|
22
|
-
channels;
|
|
23
|
-
entityId;
|
|
24
|
-
readAt;
|
|
25
|
-
canceledAt;
|
|
26
|
-
recipient;
|
|
27
|
-
};
|
|
28
|
-
exports.Notification = Notification;
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: "text" }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], Notification.prototype, "content", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], Notification.prototype, "title", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({
|
|
39
|
-
type: "enum",
|
|
40
|
-
enum: enums_1.NotificationCategory,
|
|
41
|
-
default: enums_1.NotificationCategory.DEFAULT
|
|
42
|
-
}),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], Notification.prototype, "category", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({
|
|
47
|
-
type: "enum",
|
|
48
|
-
enum: enums_1.NotificationSubcategory,
|
|
49
|
-
default: enums_1.NotificationSubcategory.DEFAULT
|
|
50
|
-
}),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], Notification.prototype, "subCategory", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({
|
|
55
|
-
type: "enum",
|
|
56
|
-
enum: enums_1.NotificationChannel,
|
|
57
|
-
array: true,
|
|
58
|
-
}),
|
|
59
|
-
__metadata("design:type", Array)
|
|
60
|
-
], Notification.prototype, "channels", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], Notification.prototype, "entityId", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
67
|
-
__metadata("design:type", Date)
|
|
68
|
-
], Notification.prototype, "readAt", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
71
|
-
__metadata("design:type", Date)
|
|
72
|
-
], Notification.prototype, "canceledAt", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
75
|
-
onDelete: "SET NULL",
|
|
76
|
-
onUpdate: "CASCADE",
|
|
77
|
-
nullable: true,
|
|
78
|
-
}),
|
|
79
|
-
__metadata("design:type", user_entity_1.User)
|
|
80
|
-
], Notification.prototype, "recipient", void 0);
|
|
81
|
-
exports.Notification = Notification = __decorate([
|
|
82
|
-
(0, typeorm_1.Entity)()
|
|
83
|
-
], Notification);
|
|
84
|
-
//# 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,yCAAgD;AAChD,qCAAoD;AACpD,8CAAwG;AAGjG,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,4BAAoB;QAC1B,OAAO,EAAE,4BAAoB,CAAC,OAAO;KACxC,CAAC;;8CAC6B;AAO/B;IALC,IAAA,gBAAM,EAAC;QACJ,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,+BAAuB;QAC7B,OAAO,EAAE,+BAAuB,CAAC,OAAO;KAC3C,CAAC;;iDACmC;AAOrC;IALC,IAAA,gBAAM,EAAC;QACJ,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,2BAAmB;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"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseEntity } from "../common/database";
|
|
2
|
-
export declare class Oauth extends BaseEntity {
|
|
3
|
-
service: number;
|
|
4
|
-
refresh_token: string;
|
|
5
|
-
access_token: string;
|
|
6
|
-
expires_in: number;
|
|
7
|
-
userId: string;
|
|
8
|
-
usergoogle_id: string;
|
|
9
|
-
family_name: string;
|
|
10
|
-
given_name: string;
|
|
11
|
-
email: string;
|
|
12
|
-
picture: string;
|
|
13
|
-
id_token: string;
|
|
14
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.Oauth = void 0;
|
|
13
|
-
const database_1 = require("../common/database");
|
|
14
|
-
const typeorm_1 = require("typeorm");
|
|
15
|
-
let Oauth = class Oauth extends database_1.BaseEntity {
|
|
16
|
-
service;
|
|
17
|
-
refresh_token;
|
|
18
|
-
access_token;
|
|
19
|
-
expires_in;
|
|
20
|
-
userId;
|
|
21
|
-
usergoogle_id;
|
|
22
|
-
family_name;
|
|
23
|
-
given_name;
|
|
24
|
-
email;
|
|
25
|
-
picture;
|
|
26
|
-
id_token;
|
|
27
|
-
};
|
|
28
|
-
exports.Oauth = Oauth;
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)("int", { unique: true }),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], Oauth.prototype, "service", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)(),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], Oauth.prototype, "refresh_token", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], Oauth.prototype, "access_token", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)("int"),
|
|
43
|
-
__metadata("design:type", Number)
|
|
44
|
-
], Oauth.prototype, "expires_in", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)(),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], Oauth.prototype, "userId", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], Oauth.prototype, "usergoogle_id", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], Oauth.prototype, "family_name", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
59
|
-
__metadata("design:type", String)
|
|
60
|
-
], Oauth.prototype, "given_name", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], Oauth.prototype, "email", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
67
|
-
__metadata("design:type", String)
|
|
68
|
-
], Oauth.prototype, "picture", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
71
|
-
__metadata("design:type", String)
|
|
72
|
-
], Oauth.prototype, "id_token", void 0);
|
|
73
|
-
exports.Oauth = Oauth = __decorate([
|
|
74
|
-
(0, typeorm_1.Entity)()
|
|
75
|
-
], Oauth);
|
|
76
|
-
//# sourceMappingURL=oauth.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.entity.js","sourceRoot":"","sources":["../../src/entities/oauth.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,qCAAyC;AAGlC,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,qBAAU;IAEnC,OAAO,CAAS;IAGhB,aAAa,CAAS;IAGtB,YAAY,CAAS;IAGrB,UAAU,CAAS;IAGnB,MAAM,CAAS;IAGf,aAAa,CAAS;IAGtB,WAAW,CAAS;IAGpB,UAAU,CAAS;IAGnB,KAAK,CAAS;IAGd,OAAO,CAAS;IAGhB,QAAQ,CAAS;CAClB,CAAA;AAjCY,sBAAK;AAEhB;IADC,IAAA,gBAAM,EAAC,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;sCAChB;AAGhB;IADC,IAAA,gBAAM,GAAE;;4CACa;AAGtB;IADC,IAAA,gBAAM,GAAE;;2CACY;AAGrB;IADC,IAAA,gBAAM,EAAC,KAAK,CAAC;;yCACK;AAGnB;IADC,IAAA,gBAAM,GAAE;;qCACM;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACL;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACR;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACb;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACX;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACV;gBAhCN,KAAK;IADjB,IAAA,gBAAM,GAAE;GACI,KAAK,CAiCjB"}
|
|
@@ -1,44 +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.OtpLog = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const database_1 = require("../common/database");
|
|
15
|
-
const user_entity_1 = require("./user.entity");
|
|
16
|
-
let OtpLog = class OtpLog extends database_1.BaseEntity {
|
|
17
|
-
expiresIn;
|
|
18
|
-
otpCode;
|
|
19
|
-
user;
|
|
20
|
-
isUsed;
|
|
21
|
-
};
|
|
22
|
-
exports.OtpLog = OtpLog;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ type: "timestamp" }),
|
|
25
|
-
__metadata("design:type", Date)
|
|
26
|
-
], OtpLog.prototype, "expiresIn", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ length: 20, nullable: true }),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], OtpLog.prototype, "otpCode", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { eager: false, nullable: false }),
|
|
33
|
-
(0, typeorm_1.JoinColumn)(),
|
|
34
|
-
__metadata("design:type", user_entity_1.User)
|
|
35
|
-
], OtpLog.prototype, "user", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
38
|
-
__metadata("design:type", Boolean)
|
|
39
|
-
], OtpLog.prototype, "isUsed", void 0);
|
|
40
|
-
exports.OtpLog = OtpLog = __decorate([
|
|
41
|
-
(0, typeorm_1.Entity)(),
|
|
42
|
-
(0, typeorm_1.Index)(["otpCode"], { unique: true })
|
|
43
|
-
], OtpLog);
|
|
44
|
-
//# sourceMappingURL=otp-log.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,42 +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.Permission = void 0;
|
|
13
|
-
const database_1 = require("../common/database");
|
|
14
|
-
const typeorm_1 = require("typeorm");
|
|
15
|
-
const role_entity_1 = require("./role.entity");
|
|
16
|
-
let Permission = class Permission extends database_1.BaseEntity {
|
|
17
|
-
resource;
|
|
18
|
-
action;
|
|
19
|
-
roles;
|
|
20
|
-
};
|
|
21
|
-
exports.Permission = Permission;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)(),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], Permission.prototype, "resource", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], Permission.prototype, "action", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.ManyToMany)(() => role_entity_1.Role, {
|
|
32
|
-
onDelete: "CASCADE",
|
|
33
|
-
onUpdate: "CASCADE",
|
|
34
|
-
}),
|
|
35
|
-
(0, typeorm_1.JoinTable)(),
|
|
36
|
-
__metadata("design:type", Array)
|
|
37
|
-
], Permission.prototype, "roles", void 0);
|
|
38
|
-
exports.Permission = Permission = __decorate([
|
|
39
|
-
(0, typeorm_1.Entity)(),
|
|
40
|
-
(0, typeorm_1.Index)(["resource", "action"], { unique: true })
|
|
41
|
-
], Permission);
|
|
42
|
-
//# sourceMappingURL=permission.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,33 +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.Phone = 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 Phone = class Phone extends database_1.BaseEntity {
|
|
17
|
-
number;
|
|
18
|
-
isDefault;
|
|
19
|
-
};
|
|
20
|
-
exports.Phone = Phone;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.MinLength)(3),
|
|
23
|
-
(0, typeorm_1.Column)({ unique: true }),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], Phone.prototype, "number", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({ name: "is_default", default: false }),
|
|
28
|
-
__metadata("design:type", Boolean)
|
|
29
|
-
], Phone.prototype, "isDefault", void 0);
|
|
30
|
-
exports.Phone = Phone = __decorate([
|
|
31
|
-
(0, typeorm_1.Entity)()
|
|
32
|
-
], Phone);
|
|
33
|
-
//# sourceMappingURL=phone.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"phone.entity.js","sourceRoot":"","sources":["../../src/entities/phone.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,qBAAU;IAGnC,MAAM,CAAS;IAGf,SAAS,CAAU;CACpB,CAAA;AAPY,sBAAK;AAGhB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;qCACV;AAGf;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,50 +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.Profile = void 0;
|
|
13
|
-
const database_1 = require("../common/database");
|
|
14
|
-
const typeorm_1 = require("typeorm");
|
|
15
|
-
const user_entity_1 = require("./user.entity");
|
|
16
|
-
let Profile = class Profile extends database_1.BaseEntity {
|
|
17
|
-
firstName;
|
|
18
|
-
lastName;
|
|
19
|
-
idcard;
|
|
20
|
-
birthday;
|
|
21
|
-
user;
|
|
22
|
-
};
|
|
23
|
-
exports.Profile = Profile;
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], Profile.prototype, "firstName", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], Profile.prototype, "lastName", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ unique: true, nullable: true }),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], Profile.prototype, "idcard", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
38
|
-
__metadata("design:type", Date)
|
|
39
|
-
], Profile.prototype, "birthday", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.OneToOne)(() => user_entity_1.User, user => user.profile, {
|
|
42
|
-
onDelete: "CASCADE",
|
|
43
|
-
onUpdate: "CASCADE",
|
|
44
|
-
}),
|
|
45
|
-
__metadata("design:type", user_entity_1.User)
|
|
46
|
-
], Profile.prototype, "user", void 0);
|
|
47
|
-
exports.Profile = Profile = __decorate([
|
|
48
|
-
(0, typeorm_1.Entity)("user_profile")
|
|
49
|
-
], Profile);
|
|
50
|
-
//# sourceMappingURL=profile.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profile.entity.js","sourceRoot":"","sources":["../../src/entities/profile.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,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,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACT;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACV;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCAC1B;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,IAAI;yCAAC;AAMf;IAJC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE;QAC1C,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACI,kBAAI;qCAAC;kBAjBA,OAAO;IADnB,IAAA,gBAAM,EAAC,cAAc,CAAC;GACV,OAAO,CAkBnB"}
|
|
@@ -1,46 +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.Protocol = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const database_1 = require("../common/database");
|
|
15
|
-
let Protocol = class Protocol extends database_1.BaseEntity {
|
|
16
|
-
loginAttemptInterval;
|
|
17
|
-
loginIntervalUnit;
|
|
18
|
-
loginMaxRetry;
|
|
19
|
-
otpExpiryInMinutes;
|
|
20
|
-
constructor(partial) {
|
|
21
|
-
super();
|
|
22
|
-
Object.assign(this, partial);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
exports.Protocol = Protocol;
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)(),
|
|
28
|
-
__metadata("design:type", Number)
|
|
29
|
-
], Protocol.prototype, "loginAttemptInterval", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)(),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], Protocol.prototype, "loginIntervalUnit", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)(),
|
|
36
|
-
__metadata("design:type", Number)
|
|
37
|
-
], Protocol.prototype, "loginMaxRetry", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)(),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], Protocol.prototype, "otpExpiryInMinutes", void 0);
|
|
42
|
-
exports.Protocol = Protocol = __decorate([
|
|
43
|
-
(0, typeorm_1.Entity)(),
|
|
44
|
-
__metadata("design:paramtypes", [Object])
|
|
45
|
-
], Protocol);
|
|
46
|
-
//# sourceMappingURL=protocol.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.entity.js","sourceRoot":"","sources":["../../src/entities/protocol.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,iDAAgD;AAKzC,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"}
|
|
@@ -1,46 +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.RefreshToken = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const database_1 = require("../common/database");
|
|
15
|
-
const user_entity_1 = require("./user.entity");
|
|
16
|
-
let RefreshToken = class RefreshToken extends database_1.BaseEntity {
|
|
17
|
-
expiresIn;
|
|
18
|
-
user;
|
|
19
|
-
isRevoked;
|
|
20
|
-
constructor(partial) {
|
|
21
|
-
super();
|
|
22
|
-
Object.assign(this, partial);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
exports.RefreshToken = RefreshToken;
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)(),
|
|
28
|
-
__metadata("design:type", Date)
|
|
29
|
-
], RefreshToken.prototype, "expiresIn", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
32
|
-
eager: false,
|
|
33
|
-
onDelete: "CASCADE",
|
|
34
|
-
onUpdate: "CASCADE",
|
|
35
|
-
}),
|
|
36
|
-
__metadata("design:type", user_entity_1.User)
|
|
37
|
-
], RefreshToken.prototype, "user", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
40
|
-
__metadata("design:type", Boolean)
|
|
41
|
-
], RefreshToken.prototype, "isRevoked", void 0);
|
|
42
|
-
exports.RefreshToken = RefreshToken = __decorate([
|
|
43
|
-
(0, typeorm_1.Entity)(),
|
|
44
|
-
__metadata("design:paramtypes", [Object])
|
|
45
|
-
], RefreshToken);
|
|
46
|
-
//# sourceMappingURL=refresh-token.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"refresh-token.entity.js","sourceRoot":"","sources":["../../src/entities/refresh-token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,iDAAgD;AAChD,+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"}
|