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
|
@@ -1,52 +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.TaskComment = void 0;
|
|
13
|
-
const common_1 = require("../../common");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const user_entity_1 = require("../user.entity");
|
|
16
|
-
const typeorm_1 = require("typeorm");
|
|
17
|
-
const task_entity_1 = require("./task.entity");
|
|
18
|
-
let TaskComment = class TaskComment extends common_1.BaseEntity {
|
|
19
|
-
comment;
|
|
20
|
-
isSummary;
|
|
21
|
-
createdBy;
|
|
22
|
-
task;
|
|
23
|
-
};
|
|
24
|
-
exports.TaskComment = TaskComment;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.MinLength)(1),
|
|
27
|
-
(0, typeorm_1.Column)({ type: "text" }),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], TaskComment.prototype, "comment", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
32
|
-
__metadata("design:type", Boolean)
|
|
33
|
-
], TaskComment.prototype, "isSummary", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
36
|
-
onDelete: "SET NULL",
|
|
37
|
-
onUpdate: "CASCADE",
|
|
38
|
-
nullable: true,
|
|
39
|
-
}),
|
|
40
|
-
__metadata("design:type", user_entity_1.User)
|
|
41
|
-
], TaskComment.prototype, "createdBy", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.ManyToOne)(() => task_entity_1.Task, {
|
|
44
|
-
onDelete: "CASCADE",
|
|
45
|
-
onUpdate: "CASCADE",
|
|
46
|
-
}),
|
|
47
|
-
__metadata("design:type", task_entity_1.Task)
|
|
48
|
-
], TaskComment.prototype, "task", void 0);
|
|
49
|
-
exports.TaskComment = TaskComment = __decorate([
|
|
50
|
-
(0, typeorm_1.Entity)()
|
|
51
|
-
], TaskComment);
|
|
52
|
-
//# sourceMappingURL=task-comment.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/tools/task-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA0C;AAC1C,qDAA4C;AAC5C,gDAAsC;AACtC,qCAAoD;AACpD,+CAAqC;AAG9B,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,mBAAU;IAGvC,OAAO,CAAS;IAGhB,SAAS,CAAU;IAOnB,SAAS,CAAO;IAMhB,IAAI,CAAO;CACd,CAAA;AApBY,kCAAW;AAGpB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACT;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8CACR;AAOnB;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACnB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACjB,CAAC;8BACS,kBAAI;8CAAC;AAMhB;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;8BACI,kBAAI;yCAAC;sBAnBF,WAAW;IADvB,IAAA,gBAAM,GAAE;GACI,WAAW,CAoBvB"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.TaskListField = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
class TaskListField {
|
|
16
|
-
text;
|
|
17
|
-
completed;
|
|
18
|
-
child;
|
|
19
|
-
}
|
|
20
|
-
exports.TaskListField = TaskListField;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsString)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], TaskListField.prototype, "text", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsBoolean)(),
|
|
27
|
-
__metadata("design:type", Boolean)
|
|
28
|
-
], TaskListField.prototype, "completed", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsOptional)(),
|
|
31
|
-
(0, class_validator_1.ValidateNested)(),
|
|
32
|
-
(0, class_transformer_1.Type)(() => TaskListField),
|
|
33
|
-
__metadata("design:type", Array)
|
|
34
|
-
], TaskListField.prototype, "child", void 0);
|
|
35
|
-
//# sourceMappingURL=task-list-field.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-list-field.js","sourceRoot":"","sources":["../../../src/entities/tools/task-list-field.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAAkF;AAElF,MAAa,aAAa;IAEtB,IAAI,CAAS;IAGb,SAAS,CAAU;IAKnB,KAAK,CAAiB;CACzB;AAXD,sCAWC;AATG;IADC,IAAA,0BAAQ,GAAE;;2CACE;AAGb;IADC,IAAA,2BAAS,GAAE;;gDACO;AAKnB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,aAAa,CAAC;;4CACJ"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { User } from "../user.entity";
|
|
2
|
-
import { TaskComment } from "./task-comment.entity";
|
|
3
|
-
import { Tag } from "../tag.entity";
|
|
4
|
-
import { BaseEntity } from "../../common";
|
|
5
|
-
import { TaskStatus } from "../../common/enums";
|
|
6
|
-
import { TaskListField } from "./task-list-field";
|
|
7
|
-
import { TaskCRM } from "../../entities/helpers";
|
|
8
|
-
export declare class Task extends BaseEntity {
|
|
9
|
-
name: string;
|
|
10
|
-
description: string;
|
|
11
|
-
deadline: Date;
|
|
12
|
-
startTime: Date;
|
|
13
|
-
completedTime: Date;
|
|
14
|
-
requireRevision: boolean;
|
|
15
|
-
requireSummary: boolean;
|
|
16
|
-
responsibleCanChangeDate: boolean;
|
|
17
|
-
status: TaskStatus;
|
|
18
|
-
isCompleted: boolean;
|
|
19
|
-
reviewed: boolean;
|
|
20
|
-
createdBy: User;
|
|
21
|
-
reviewedBy: User;
|
|
22
|
-
participants?: User[];
|
|
23
|
-
responsible?: User[];
|
|
24
|
-
observers?: User[];
|
|
25
|
-
tags: Tag[];
|
|
26
|
-
listField: TaskListField[];
|
|
27
|
-
comments: TaskComment;
|
|
28
|
-
crm?: TaskCRM[];
|
|
29
|
-
}
|
|
@@ -1,160 +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.Task = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const user_entity_1 = require("../user.entity");
|
|
15
|
-
const typeorm_1 = require("typeorm");
|
|
16
|
-
const task_comment_entity_1 = require("./task-comment.entity");
|
|
17
|
-
const tag_entity_1 = require("../tag.entity");
|
|
18
|
-
const common_1 = require("../../common");
|
|
19
|
-
const enums_1 = require("../../common/enums");
|
|
20
|
-
const helpers_1 = require("../../entities/helpers");
|
|
21
|
-
let Task = class Task extends common_1.BaseEntity {
|
|
22
|
-
name;
|
|
23
|
-
description;
|
|
24
|
-
deadline;
|
|
25
|
-
startTime;
|
|
26
|
-
completedTime;
|
|
27
|
-
requireRevision;
|
|
28
|
-
requireSummary;
|
|
29
|
-
responsibleCanChangeDate;
|
|
30
|
-
status;
|
|
31
|
-
isCompleted;
|
|
32
|
-
reviewed;
|
|
33
|
-
createdBy;
|
|
34
|
-
reviewedBy;
|
|
35
|
-
participants;
|
|
36
|
-
responsible;
|
|
37
|
-
observers;
|
|
38
|
-
tags;
|
|
39
|
-
listField;
|
|
40
|
-
comments;
|
|
41
|
-
crm;
|
|
42
|
-
};
|
|
43
|
-
exports.Task = Task;
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, class_validator_1.MinLength)(3),
|
|
46
|
-
(0, typeorm_1.Column)({ unique: false, nullable: false }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], Task.prototype, "name", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: "text" }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], Task.prototype, "description", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
55
|
-
__metadata("design:type", Date)
|
|
56
|
-
], Task.prototype, "deadline", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
59
|
-
__metadata("design:type", Date)
|
|
60
|
-
], Task.prototype, "startTime", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
63
|
-
__metadata("design:type", Date)
|
|
64
|
-
], Task.prototype, "completedTime", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
67
|
-
__metadata("design:type", Boolean)
|
|
68
|
-
], Task.prototype, "requireRevision", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
71
|
-
__metadata("design:type", Boolean)
|
|
72
|
-
], Task.prototype, "requireSummary", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
75
|
-
__metadata("design:type", Boolean)
|
|
76
|
-
], Task.prototype, "responsibleCanChangeDate", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, typeorm_1.Column)({
|
|
79
|
-
type: "enum",
|
|
80
|
-
enum: enums_1.TaskStatus,
|
|
81
|
-
default: enums_1.TaskStatus.PENDING
|
|
82
|
-
}),
|
|
83
|
-
__metadata("design:type", String)
|
|
84
|
-
], Task.prototype, "status", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
87
|
-
__metadata("design:type", Boolean)
|
|
88
|
-
], Task.prototype, "isCompleted", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
91
|
-
__metadata("design:type", Boolean)
|
|
92
|
-
], Task.prototype, "reviewed", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
95
|
-
onDelete: "SET NULL",
|
|
96
|
-
onUpdate: "CASCADE",
|
|
97
|
-
nullable: true,
|
|
98
|
-
}),
|
|
99
|
-
__metadata("design:type", user_entity_1.User)
|
|
100
|
-
], Task.prototype, "createdBy", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
103
|
-
onDelete: "SET NULL",
|
|
104
|
-
onUpdate: "CASCADE",
|
|
105
|
-
nullable: true,
|
|
106
|
-
}),
|
|
107
|
-
__metadata("design:type", user_entity_1.User)
|
|
108
|
-
], Task.prototype, "reviewedBy", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
(0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
|
|
111
|
-
onDelete: "CASCADE",
|
|
112
|
-
onUpdate: "CASCADE",
|
|
113
|
-
}),
|
|
114
|
-
(0, typeorm_1.JoinTable)(),
|
|
115
|
-
__metadata("design:type", Array)
|
|
116
|
-
], Task.prototype, "participants", void 0);
|
|
117
|
-
__decorate([
|
|
118
|
-
(0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
|
|
119
|
-
onDelete: "CASCADE",
|
|
120
|
-
onUpdate: "CASCADE",
|
|
121
|
-
}),
|
|
122
|
-
(0, typeorm_1.JoinTable)(),
|
|
123
|
-
__metadata("design:type", Array)
|
|
124
|
-
], Task.prototype, "responsible", void 0);
|
|
125
|
-
__decorate([
|
|
126
|
-
(0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
|
|
127
|
-
onDelete: "CASCADE",
|
|
128
|
-
onUpdate: "CASCADE",
|
|
129
|
-
}),
|
|
130
|
-
(0, typeorm_1.JoinTable)(),
|
|
131
|
-
__metadata("design:type", Array)
|
|
132
|
-
], Task.prototype, "observers", void 0);
|
|
133
|
-
__decorate([
|
|
134
|
-
(0, typeorm_1.ManyToMany)(() => tag_entity_1.Tag, tag => tag.tasks, {
|
|
135
|
-
onDelete: "CASCADE",
|
|
136
|
-
onUpdate: "CASCADE",
|
|
137
|
-
}),
|
|
138
|
-
(0, typeorm_1.JoinTable)(),
|
|
139
|
-
__metadata("design:type", Array)
|
|
140
|
-
], Task.prototype, "tags", void 0);
|
|
141
|
-
__decorate([
|
|
142
|
-
(0, typeorm_1.Column)("json", { nullable: true }),
|
|
143
|
-
__metadata("design:type", Array)
|
|
144
|
-
], Task.prototype, "listField", void 0);
|
|
145
|
-
__decorate([
|
|
146
|
-
(0, typeorm_1.OneToMany)(() => task_comment_entity_1.TaskComment, taskComment => taskComment.task),
|
|
147
|
-
(0, typeorm_1.JoinColumn)(),
|
|
148
|
-
__metadata("design:type", task_comment_entity_1.TaskComment)
|
|
149
|
-
], Task.prototype, "comments", void 0);
|
|
150
|
-
__decorate([
|
|
151
|
-
(0, typeorm_1.OneToMany)(() => helpers_1.TaskCRM, (taskCRM) => taskCRM.task, {
|
|
152
|
-
onDelete: "CASCADE",
|
|
153
|
-
onUpdate: "CASCADE",
|
|
154
|
-
}),
|
|
155
|
-
__metadata("design:type", Array)
|
|
156
|
-
], Task.prototype, "crm", void 0);
|
|
157
|
-
exports.Task = Task = __decorate([
|
|
158
|
-
(0, typeorm_1.Entity)()
|
|
159
|
-
], Task);
|
|
160
|
-
//# sourceMappingURL=task.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task.entity.js","sourceRoot":"","sources":["../../../src/entities/tools/task.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4C;AAC5C,gDAAsC;AACtC,qCAAkG;AAClG,+DAAoD;AACpD,8CAAoC;AACpC,yCAA0C;AAC1C,8CAAgD;AAEhD,oDAAiD;AAG1C,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,mBAAU;IAGhC,IAAI,CAAS;IAGb,WAAW,CAAS;IAGpB,QAAQ,CAAO;IAGf,SAAS,CAAO;IAGhB,aAAa,CAAO;IAGpB,eAAe,CAAU;IAGzB,cAAc,CAAU;IAGxB,wBAAwB,CAAU;IAOlC,MAAM,CAAa;IAGnB,WAAW,CAAU;IAGrB,QAAQ,CAAU;IAOlB,SAAS,CAAO;IAOhB,UAAU,CAAO;IAOjB,YAAY,CAAU;IAOtB,WAAW,CAAU;IAOrB,SAAS,CAAU;IAQnB,IAAI,CAAQ;IAGZ,SAAS,CAAkB;IAI3B,QAAQ,CAAc;IAMtB,GAAG,CAAa;CACnB,CAAA;AA9FY,oBAAI;AAGb;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;kCAC9B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCACL;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,IAAI;sCAAC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAChB,IAAI;uCAAC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,IAAI;2CAAC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CACF;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;4CACH;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;sDACO;AAOlC;IALC,IAAA,gBAAM,EAAC;QACJ,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,kBAAU;QAChB,OAAO,EAAE,kBAAU,CAAC,OAAO;KAC9B,CAAC;;oCACiB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;yCACN;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;sCACT;AAOlB;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACnB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACjB,CAAC;8BACS,kBAAI;uCAAC;AAOhB;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;wCAAC;AAOjB;IALC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;IACD,IAAA,mBAAS,GAAE;;0CACU;AAOtB;IALC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;IACD,IAAA,mBAAS,GAAE;;yCACS;AAOrB;IALC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;IACD,IAAA,mBAAS,GAAE;;uCACO;AAQnB;IALC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,gBAAG,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE;QACrC,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;IACD,IAAA,mBAAS,GAAE;;kCACA;AAGZ;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACR;AAI3B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iCAAW,EAAE,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC;IAC7D,IAAA,oBAAU,GAAE;8BACH,iCAAW;sCAAC;AAMtB;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iBAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE;QACjD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;;iCACc;eA7FP,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CA8FhB"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseEntity } from "../common/database";
|
|
2
|
-
import { Profile } from "./profile.entity";
|
|
3
|
-
import { Role } from "./role.entity";
|
|
4
|
-
import { Tag } from "./tag.entity";
|
|
5
|
-
export declare class User extends BaseEntity {
|
|
6
|
-
username: string;
|
|
7
|
-
email: string;
|
|
8
|
-
bio: string;
|
|
9
|
-
avatar: string;
|
|
10
|
-
hash: string;
|
|
11
|
-
twoFactorSecret?: string;
|
|
12
|
-
isTwoFactorEnabled?: boolean;
|
|
13
|
-
phone?: string;
|
|
14
|
-
isVerified?: boolean;
|
|
15
|
-
lastLogin?: Date;
|
|
16
|
-
profile: Profile;
|
|
17
|
-
roles?: Role[];
|
|
18
|
-
tags: Tag[];
|
|
19
|
-
get name(): string;
|
|
20
|
-
}
|
|
@@ -1,104 +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.User = void 0;
|
|
13
|
-
const database_1 = require("../common/database");
|
|
14
|
-
const typeorm_1 = require("typeorm");
|
|
15
|
-
const class_transformer_1 = require("class-transformer");
|
|
16
|
-
const profile_entity_1 = require("./profile.entity");
|
|
17
|
-
const role_entity_1 = require("./role.entity");
|
|
18
|
-
const tag_entity_1 = require("./tag.entity");
|
|
19
|
-
let User = class User extends database_1.BaseEntity {
|
|
20
|
-
username;
|
|
21
|
-
email;
|
|
22
|
-
bio;
|
|
23
|
-
avatar;
|
|
24
|
-
hash;
|
|
25
|
-
twoFactorSecret;
|
|
26
|
-
isTwoFactorEnabled;
|
|
27
|
-
phone;
|
|
28
|
-
isVerified;
|
|
29
|
-
lastLogin;
|
|
30
|
-
profile;
|
|
31
|
-
roles;
|
|
32
|
-
tags;
|
|
33
|
-
get name() {
|
|
34
|
-
return `${this.profile?.firstName ?? ''} ${this.profile?.lastName ?? ''}`.trim();
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
exports.User = User;
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ unique: true }),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], User.prototype, "username", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ unique: true }),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], User.prototype, "email", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: "text" }),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], User.prototype, "bio", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: "text" }),
|
|
52
|
-
__metadata("design:type", String)
|
|
53
|
-
], User.prototype, "avatar", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, class_transformer_1.Exclude)(),
|
|
56
|
-
(0, typeorm_1.Column)({ type: "text" }),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], User.prototype, "hash", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, class_transformer_1.Exclude)(),
|
|
61
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
62
|
-
__metadata("design:type", String)
|
|
63
|
-
], User.prototype, "twoFactorSecret", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
66
|
-
__metadata("design:type", Boolean)
|
|
67
|
-
], User.prototype, "isTwoFactorEnabled", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ unique: true }),
|
|
70
|
-
__metadata("design:type", String)
|
|
71
|
-
], User.prototype, "phone", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
74
|
-
__metadata("design:type", Boolean)
|
|
75
|
-
], User.prototype, "isVerified", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
78
|
-
__metadata("design:type", Date)
|
|
79
|
-
], User.prototype, "lastLogin", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, typeorm_1.OneToOne)(() => profile_entity_1.Profile, {
|
|
82
|
-
onDelete: "CASCADE",
|
|
83
|
-
onUpdate: "CASCADE",
|
|
84
|
-
eager: true
|
|
85
|
-
}),
|
|
86
|
-
(0, typeorm_1.JoinColumn)(),
|
|
87
|
-
__metadata("design:type", profile_entity_1.Profile)
|
|
88
|
-
], User.prototype, "profile", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, typeorm_1.ManyToMany)(() => role_entity_1.Role, {
|
|
91
|
-
onDelete: "CASCADE",
|
|
92
|
-
onUpdate: "CASCADE",
|
|
93
|
-
}),
|
|
94
|
-
(0, typeorm_1.JoinTable)(),
|
|
95
|
-
__metadata("design:type", Array)
|
|
96
|
-
], User.prototype, "roles", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
(0, typeorm_1.OneToMany)(() => tag_entity_1.Tag, (tag) => tag.user),
|
|
99
|
-
__metadata("design:type", Array)
|
|
100
|
-
], User.prototype, "tags", void 0);
|
|
101
|
-
exports.User = User = __decorate([
|
|
102
|
-
(0, typeorm_1.Entity)()
|
|
103
|
-
], User);
|
|
104
|
-
//# sourceMappingURL=user.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,qCAAiG;AACjG,yDAA4C;AAC5C,qDAA2C;AAC3C,+CAAqC;AACrC,6CAAmC;AAG5B,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;IAQjB,OAAO,CAAU;IAOjB,KAAK,CAAU;IAIf,IAAI,CAAO;IAEX,IAAI,IAAI;QACN,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,SAAS,IAAI,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;IACnF,CAAC;CACF,CAAA;AAvDY,oBAAI;AAEf;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;sCACP;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;mCACV;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iCACZ;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oCACT;AAIhB;IAFC,IAAA,2BAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kCACX;AAId;IAFC,IAAA,2BAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACF;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;gDACE;AAG7B;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;mCACV;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;wCACN;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAClC,IAAI;uCAAC;AAQjB;IANC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE;QACvB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC;IACD,IAAA,oBAAU,GAAE;8BACJ,wBAAO;qCAAC;AAOjB;IALC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACtB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,mBAAS,GAAE;;mCACG;AAIf;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gBAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;;kCAC7B;eAlDA,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CAuDhB"}
|
package/dist/eslint.config.d.ts
DELETED
package/dist/eslint.config.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
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 +0,0 @@
|
|
|
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"}
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,19 +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("./entities"), exports);
|
|
18
|
-
__exportStar(require("./common"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,2CAAyB"}
|