easywork-common-lib 1.0.1027 → 1.0.1028
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/enums/common.enum.d.ts +14 -0
- package/dist/common/enums/common.enum.js +17 -1
- package/dist/common/enums/common.enum.js.map +1 -1
- package/dist/common/enums/index.d.ts +1 -0
- package/dist/common/enums/index.js +1 -0
- package/dist/common/enums/index.js.map +1 -1
- package/dist/common/enums/project.enum.d.ts +13 -0
- package/dist/common/enums/project.enum.js +19 -0
- package/dist/common/enums/project.enum.js.map +1 -0
- package/dist/entities/all-activities.entity.d.ts +38 -0
- package/dist/entities/all-activities.entity.js +261 -0
- package/dist/entities/all-activities.entity.js.map +1 -0
- package/dist/entities/index.d.ts +46 -43
- package/dist/entities/index.js +3 -0
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/project_management/activities/activities-comment.entity.d.ts +11 -0
- package/dist/entities/project_management/activities/activities-comment.entity.js +63 -0
- package/dist/entities/project_management/activities/activities-comment.entity.js.map +1 -0
- package/dist/entities/project_management/activities/activity-file.entity.d.ts +11 -0
- package/dist/entities/project_management/activities/activity-file.entity.js +64 -0
- package/dist/entities/project_management/activities/activity-file.entity.js.map +1 -0
- package/dist/entities/project_management/activities/activity.entity.d.ts +21 -0
- package/dist/entities/project_management/activities/activity.entity.js +111 -0
- package/dist/entities/project_management/activities/activity.entity.js.map +1 -0
- package/dist/entities/project_management/activities/index.d.ts +3 -0
- package/dist/entities/project_management/activities/index.js +20 -0
- package/dist/entities/project_management/activities/index.js.map +1 -0
- package/dist/entities/project_management/index.d.ts +2 -0
- package/dist/entities/project_management/index.js +19 -0
- package/dist/entities/project_management/index.js.map +1 -0
- package/dist/entities/project_management/project/index.d.ts +3 -0
- package/dist/entities/project_management/project/index.js +20 -0
- package/dist/entities/project_management/project/index.js.map +1 -0
- package/dist/entities/project_management/project/project-comment.entity.d.ts +11 -0
- package/dist/entities/project_management/project/project-comment.entity.js +63 -0
- package/dist/entities/project_management/project/project-comment.entity.js.map +1 -0
- package/dist/entities/project_management/project/project-file.entity.d.ts +11 -0
- package/dist/entities/project_management/project/project-file.entity.js +64 -0
- package/dist/entities/project_management/project/project-file.entity.js.map +1 -0
- package/dist/entities/project_management/project/project.entity.d.ts +24 -0
- package/dist/entities/project_management/project/project.entity.js +123 -0
- package/dist/entities/project_management/project/project.entity.js.map +1 -0
- package/dist/entities/protocol.entity.js.map +1 -1
- package/dist/entities/role-audit-log.entity.d.ts +29 -0
- package/dist/entities/role-audit-log.entity.js +160 -0
- package/dist/entities/role-audit-log.entity.js.map +1 -0
- package/dist/entities/sales/agent.entity.d.ts +1 -0
- package/dist/entities/sales/agent.entity.js +10 -0
- package/dist/entities/sales/agent.entity.js.map +1 -1
- package/dist/modules/authorization/authorization.module.d.ts +26 -0
- package/dist/modules/authorization/authorization.module.js +105 -0
- package/dist/modules/authorization/authorization.module.js.map +1 -0
- package/dist/modules/authorization/config/resource-configurations.d.ts +12 -0
- package/dist/modules/authorization/config/resource-configurations.js +124 -0
- package/dist/modules/authorization/config/resource-configurations.js.map +1 -0
- package/dist/modules/authorization/decorators/contact-permissions.decorator.d.ts +13 -0
- package/dist/modules/authorization/decorators/contact-permissions.decorator.js +101 -0
- package/dist/modules/authorization/decorators/contact-permissions.decorator.js.map +1 -0
- package/dist/modules/authorization/decorators/permissions.decorator.d.ts +51 -0
- package/dist/modules/authorization/decorators/permissions.decorator.js +144 -0
- package/dist/modules/authorization/decorators/permissions.decorator.js.map +1 -0
- package/dist/modules/authorization/factories/resource-authorization.factory.d.ts +55 -0
- package/dist/modules/authorization/factories/resource-authorization.factory.js +184 -0
- package/dist/modules/authorization/factories/resource-authorization.factory.js.map +1 -0
- package/dist/modules/authorization/index.d.ts +7 -0
- package/dist/modules/authorization/index.js +24 -0
- package/dist/modules/authorization/index.js.map +1 -0
- package/dist/modules/authorization/interfaces/authorization.interface.d.ts +23 -0
- package/dist/modules/authorization/interfaces/authorization.interface.js +3 -0
- package/dist/modules/authorization/interfaces/authorization.interface.js.map +1 -0
- package/dist/modules/authorization/services/authorization.service.d.ts +25 -0
- package/dist/modules/authorization/services/authorization.service.js +139 -0
- package/dist/modules/authorization/services/authorization.service.js.map +1 -0
- package/dist/modules/authorization/services/dynamic-filter.service.d.ts +9 -0
- package/dist/modules/authorization/services/dynamic-filter.service.js +238 -0
- package/dist/modules/authorization/services/dynamic-filter.service.js.map +1 -0
- package/dist/modules/authorization/services/index.d.ts +7 -0
- package/dist/modules/authorization/services/index.js +24 -0
- package/dist/modules/authorization/services/index.js.map +1 -0
- package/dist/modules/authorization/services/modules/contact-authorization.service.d.ts +29 -0
- package/dist/modules/authorization/services/modules/contact-authorization.service.js +105 -0
- package/dist/modules/authorization/services/modules/contact-authorization.service.js.map +1 -0
- package/dist/modules/authorization/services/modules/index.d.ts +4 -0
- package/dist/modules/authorization/services/modules/index.js +21 -0
- package/dist/modules/authorization/services/modules/index.js.map +1 -0
- package/dist/modules/authorization/services/modules/lead-authorization.service.d.ts +27 -0
- package/dist/modules/authorization/services/modules/lead-authorization.service.js +96 -0
- package/dist/modules/authorization/services/modules/lead-authorization.service.js.map +1 -0
- package/dist/modules/authorization/services/modules/policy-authorization.service.d.ts +28 -0
- package/dist/modules/authorization/services/modules/policy-authorization.service.js +100 -0
- package/dist/modules/authorization/services/modules/policy-authorization.service.js.map +1 -0
- package/dist/modules/authorization/services/modules/task-authorization.service.d.ts +28 -0
- package/dist/modules/authorization/services/modules/task-authorization.service.js +100 -0
- package/dist/modules/authorization/services/modules/task-authorization.service.js.map +1 -0
- package/dist/modules/authorization/services/permission-cache.service.d.ts +10 -0
- package/dist/modules/authorization/services/permission-cache.service.js +48 -0
- package/dist/modules/authorization/services/permission-cache.service.js.map +1 -0
- package/dist/modules/authorization/services/permission-evaluator.service.d.ts +26 -0
- package/dist/modules/authorization/services/permission-evaluator.service.js +349 -0
- package/dist/modules/authorization/services/permission-evaluator.service.js.map +1 -0
- package/dist/modules/authorization/services/resource-access-filter.service.d.ts +20 -0
- package/dist/modules/authorization/services/resource-access-filter.service.js +406 -0
- package/dist/modules/authorization/services/resource-access-filter.service.js.map +1 -0
- package/dist/modules/authorization/services/resource-authorization.service.d.ts +47 -0
- package/dist/modules/authorization/services/resource-authorization.service.js +192 -0
- package/dist/modules/authorization/services/resource-authorization.service.js.map +1 -0
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.js +1 -0
- package/dist/modules/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -16,3 +16,17 @@ export declare enum MeetingCRMType {
|
|
|
16
16
|
RECEIPT = "receipt",
|
|
17
17
|
AGENT = "agent"
|
|
18
18
|
}
|
|
19
|
+
export declare enum ActivityStatus {
|
|
20
|
+
PENDING = "pending",
|
|
21
|
+
IN_PROGRESS = "in_progress",
|
|
22
|
+
COMPLETED = "completed",
|
|
23
|
+
CANCELLED = "cancelled",
|
|
24
|
+
OVERDUE = "overdue",
|
|
25
|
+
PENDING_REVIEW = "pending_review"
|
|
26
|
+
}
|
|
27
|
+
export declare enum AllActivitiesType {
|
|
28
|
+
TASK_CRM = "task_crm",
|
|
29
|
+
EVENT_CRM = "event_crm",
|
|
30
|
+
MEETING_CRM = "meeting_crm",
|
|
31
|
+
COMMENT = "comment"
|
|
32
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MeetingCRMType = exports.MeetingType = exports.MeetingStatus = void 0;
|
|
3
|
+
exports.AllActivitiesType = exports.ActivityStatus = exports.MeetingCRMType = exports.MeetingType = exports.MeetingStatus = void 0;
|
|
4
4
|
var MeetingStatus;
|
|
5
5
|
(function (MeetingStatus) {
|
|
6
6
|
MeetingStatus["CANCELLED"] = "cancelled";
|
|
@@ -22,4 +22,20 @@ var MeetingCRMType;
|
|
|
22
22
|
MeetingCRMType["RECEIPT"] = "receipt";
|
|
23
23
|
MeetingCRMType["AGENT"] = "agent";
|
|
24
24
|
})(MeetingCRMType || (exports.MeetingCRMType = MeetingCRMType = {}));
|
|
25
|
+
var ActivityStatus;
|
|
26
|
+
(function (ActivityStatus) {
|
|
27
|
+
ActivityStatus["PENDING"] = "pending";
|
|
28
|
+
ActivityStatus["IN_PROGRESS"] = "in_progress";
|
|
29
|
+
ActivityStatus["COMPLETED"] = "completed";
|
|
30
|
+
ActivityStatus["CANCELLED"] = "cancelled";
|
|
31
|
+
ActivityStatus["OVERDUE"] = "overdue";
|
|
32
|
+
ActivityStatus["PENDING_REVIEW"] = "pending_review";
|
|
33
|
+
})(ActivityStatus || (exports.ActivityStatus = ActivityStatus = {}));
|
|
34
|
+
var AllActivitiesType;
|
|
35
|
+
(function (AllActivitiesType) {
|
|
36
|
+
AllActivitiesType["TASK_CRM"] = "task_crm";
|
|
37
|
+
AllActivitiesType["EVENT_CRM"] = "event_crm";
|
|
38
|
+
AllActivitiesType["MEETING_CRM"] = "meeting_crm";
|
|
39
|
+
AllActivitiesType["COMMENT"] = "comment";
|
|
40
|
+
})(AllActivitiesType || (exports.AllActivitiesType = AllActivitiesType = {}));
|
|
25
41
|
//# sourceMappingURL=common.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.enum.js","sourceRoot":"","sources":["../../../src/common/enums/common.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;AACrB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,wCAAyB,CAAA;IACzB,8BAAe,CAAA;AACjB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAED,IAAY,cAOX;AAPD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;IACnB,+BAAa,CAAA;IACb,qCAAmB,CAAA;IACnB,iCAAe,CAAA;AACjB,CAAC,EAPW,cAAc,8BAAd,cAAc,QAOzB"}
|
|
1
|
+
{"version":3,"file":"common.enum.js","sourceRoot":"","sources":["../../../src/common/enums/common.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;AACrB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,wCAAyB,CAAA;IACzB,8BAAe,CAAA;AACjB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAED,IAAY,cAOX;AAPD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;IACnB,+BAAa,CAAA;IACb,qCAAmB,CAAA;IACnB,iCAAe,CAAA;AACjB,CAAC,EAPW,cAAc,8BAAd,cAAc,QAOzB;AAED,IAAY,cAOX;AAPD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,6CAA2B,CAAA;IAC3B,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;IACvB,qCAAmB,CAAA;IACnB,mDAAiC,CAAA;AACnC,CAAC,EAPW,cAAc,8BAAd,cAAc,QAOzB;AAED,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;IACvB,gDAA2B,CAAA;IAC3B,wCAAmB,CAAA;AACrB,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B"}
|
|
@@ -19,4 +19,5 @@ __exportStar(require("./sales.enum"), exports);
|
|
|
19
19
|
__exportStar(require("./tools.enum"), exports);
|
|
20
20
|
__exportStar(require("./drive.enum"), exports);
|
|
21
21
|
__exportStar(require("./common.enum"), exports);
|
|
22
|
+
__exportStar(require("./project.enum"), exports);
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,+CAA6B;AAC7B,+CAA6B;AAC7B,+CAA6B;AAC7B,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,+CAA6B;AAC7B,+CAA6B;AAC7B,+CAA6B;AAC7B,gDAA8B;AAC9B,iDAA+B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum Priority {
|
|
2
|
+
DEFAULT = "default",
|
|
3
|
+
LOW = "low",
|
|
4
|
+
MEDIUM = "medium",
|
|
5
|
+
HIGH = "high",
|
|
6
|
+
CRITICAL = "critical"
|
|
7
|
+
}
|
|
8
|
+
export declare enum ProjectStatus {
|
|
9
|
+
PENDING = "pending",
|
|
10
|
+
IN_PROGRESS = "in_progress",
|
|
11
|
+
COMPLETED = "completed",
|
|
12
|
+
CANCELED = "canceled"
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectStatus = exports.Priority = void 0;
|
|
4
|
+
var Priority;
|
|
5
|
+
(function (Priority) {
|
|
6
|
+
Priority["DEFAULT"] = "default";
|
|
7
|
+
Priority["LOW"] = "low";
|
|
8
|
+
Priority["MEDIUM"] = "medium";
|
|
9
|
+
Priority["HIGH"] = "high";
|
|
10
|
+
Priority["CRITICAL"] = "critical";
|
|
11
|
+
})(Priority || (exports.Priority = Priority = {}));
|
|
12
|
+
var ProjectStatus;
|
|
13
|
+
(function (ProjectStatus) {
|
|
14
|
+
ProjectStatus["PENDING"] = "pending";
|
|
15
|
+
ProjectStatus["IN_PROGRESS"] = "in_progress";
|
|
16
|
+
ProjectStatus["COMPLETED"] = "completed";
|
|
17
|
+
ProjectStatus["CANCELED"] = "canceled";
|
|
18
|
+
})(ProjectStatus || (exports.ProjectStatus = ProjectStatus = {}));
|
|
19
|
+
//# sourceMappingURL=project.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.enum.js","sourceRoot":"","sources":["../../../src/common/enums/project.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,+BAAmB,CAAA;IACnB,uBAAW,CAAA;IACX,6BAAiB,CAAA;IACjB,yBAAa,CAAA;IACb,iCAAqB,CAAA;AACvB,CAAC,EANW,QAAQ,wBAAR,QAAQ,QAMnB;AACD,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,4CAA2B,CAAA;IAC3B,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;AACvB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { TaskCRM } from "./helpers/tools/task_crm.entity";
|
|
2
|
+
import { EventCRM } from "./helpers/tools/event_crm.entity";
|
|
3
|
+
import { MeetingCRM } from "./helpers/meeting_crm.entity";
|
|
4
|
+
import { CommentBase } from "../common/database/comment.base.entity";
|
|
5
|
+
import { AllActivitiesType, ActivityStatus } from "../common/enums/common.enum";
|
|
6
|
+
export declare class AllActivities {
|
|
7
|
+
id: string;
|
|
8
|
+
type: AllActivitiesType;
|
|
9
|
+
title: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
activityDate?: Date;
|
|
12
|
+
status?: ActivityStatus;
|
|
13
|
+
priority?: string;
|
|
14
|
+
taskCrmId?: string;
|
|
15
|
+
taskCrm?: TaskCRM;
|
|
16
|
+
eventCrmId?: string;
|
|
17
|
+
eventCrm?: EventCRM;
|
|
18
|
+
meetingCrmId?: string;
|
|
19
|
+
meetingCrm?: MeetingCRM;
|
|
20
|
+
commentId?: string;
|
|
21
|
+
comment?: CommentBase;
|
|
22
|
+
metadata?: Record<string, any>;
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
updatedAt: Date;
|
|
25
|
+
get activityEntity(): TaskCRM | EventCRM | MeetingCRM | CommentBase | undefined;
|
|
26
|
+
get specificEntityId(): string | undefined;
|
|
27
|
+
get isConsistent(): boolean;
|
|
28
|
+
get activitySummary(): {
|
|
29
|
+
id: string;
|
|
30
|
+
type: string;
|
|
31
|
+
title: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
date?: Date;
|
|
34
|
+
status?: string;
|
|
35
|
+
entityType?: string;
|
|
36
|
+
entityId?: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -0,0 +1,261 @@
|
|
|
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.AllActivities = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
const task_crm_entity_1 = require("./helpers/tools/task_crm.entity");
|
|
17
|
+
const event_crm_entity_1 = require("./helpers/tools/event_crm.entity");
|
|
18
|
+
const meeting_crm_entity_1 = require("./helpers/meeting_crm.entity");
|
|
19
|
+
const comment_base_entity_1 = require("../common/database/comment.base.entity");
|
|
20
|
+
const common_enum_1 = require("../common/enums/common.enum");
|
|
21
|
+
let AllActivities = class AllActivities {
|
|
22
|
+
id;
|
|
23
|
+
type;
|
|
24
|
+
title;
|
|
25
|
+
description;
|
|
26
|
+
activityDate;
|
|
27
|
+
status;
|
|
28
|
+
priority;
|
|
29
|
+
taskCrmId;
|
|
30
|
+
taskCrm;
|
|
31
|
+
eventCrmId;
|
|
32
|
+
eventCrm;
|
|
33
|
+
meetingCrmId;
|
|
34
|
+
meetingCrm;
|
|
35
|
+
commentId;
|
|
36
|
+
comment;
|
|
37
|
+
metadata;
|
|
38
|
+
createdAt;
|
|
39
|
+
updatedAt;
|
|
40
|
+
get activityEntity() {
|
|
41
|
+
switch (this.type) {
|
|
42
|
+
case common_enum_1.AllActivitiesType.TASK_CRM:
|
|
43
|
+
return this.taskCrm;
|
|
44
|
+
case common_enum_1.AllActivitiesType.EVENT_CRM:
|
|
45
|
+
return this.eventCrm;
|
|
46
|
+
case common_enum_1.AllActivitiesType.MEETING_CRM:
|
|
47
|
+
return this.meetingCrm;
|
|
48
|
+
case common_enum_1.AllActivitiesType.COMMENT:
|
|
49
|
+
return this.comment;
|
|
50
|
+
default:
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
get specificEntityId() {
|
|
55
|
+
switch (this.type) {
|
|
56
|
+
case common_enum_1.AllActivitiesType.TASK_CRM:
|
|
57
|
+
return this.taskCrmId;
|
|
58
|
+
case common_enum_1.AllActivitiesType.EVENT_CRM:
|
|
59
|
+
return this.eventCrmId;
|
|
60
|
+
case common_enum_1.AllActivitiesType.MEETING_CRM:
|
|
61
|
+
return this.meetingCrmId;
|
|
62
|
+
case common_enum_1.AllActivitiesType.COMMENT:
|
|
63
|
+
return this.commentId;
|
|
64
|
+
default:
|
|
65
|
+
return undefined;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
get isConsistent() {
|
|
69
|
+
const entityCounts = [
|
|
70
|
+
this.taskCrmId ? 1 : 0,
|
|
71
|
+
this.eventCrmId ? 1 : 0,
|
|
72
|
+
this.meetingCrmId ? 1 : 0,
|
|
73
|
+
this.commentId ? 1 : 0,
|
|
74
|
+
].reduce((a, b) => a + b, 0);
|
|
75
|
+
return entityCounts === 1;
|
|
76
|
+
}
|
|
77
|
+
get activitySummary() {
|
|
78
|
+
return {
|
|
79
|
+
id: this.id,
|
|
80
|
+
type: this.type,
|
|
81
|
+
title: this.title,
|
|
82
|
+
description: this.description,
|
|
83
|
+
date: this.activityDate,
|
|
84
|
+
status: this.status,
|
|
85
|
+
entityType: this.activityEntity?.constructor.name,
|
|
86
|
+
entityId: this.specificEntityId,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
exports.AllActivities = AllActivities;
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, swagger_1.ApiProperty)({
|
|
93
|
+
type: String,
|
|
94
|
+
description: "UUID de la actividad",
|
|
95
|
+
format: "uuid",
|
|
96
|
+
}),
|
|
97
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], AllActivities.prototype, "id", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, swagger_1.ApiProperty)({
|
|
102
|
+
enum: common_enum_1.AllActivitiesType,
|
|
103
|
+
description: "Tipo de actividad",
|
|
104
|
+
}),
|
|
105
|
+
(0, typeorm_1.Column)({
|
|
106
|
+
type: "enum",
|
|
107
|
+
enum: common_enum_1.AllActivitiesType,
|
|
108
|
+
}),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], AllActivities.prototype, "type", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, swagger_1.ApiProperty)({
|
|
113
|
+
type: String,
|
|
114
|
+
description: "Título de la actividad",
|
|
115
|
+
}),
|
|
116
|
+
(0, typeorm_1.Column)({ length: 255 }),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], AllActivities.prototype, "title", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, swagger_1.ApiProperty)({
|
|
121
|
+
type: String,
|
|
122
|
+
description: "Descripción de la actividad",
|
|
123
|
+
required: false,
|
|
124
|
+
}),
|
|
125
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
126
|
+
__metadata("design:type", String)
|
|
127
|
+
], AllActivities.prototype, "description", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, swagger_1.ApiProperty)({
|
|
130
|
+
type: Date,
|
|
131
|
+
description: "Fecha de la actividad",
|
|
132
|
+
required: false,
|
|
133
|
+
}),
|
|
134
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
135
|
+
__metadata("design:type", Date)
|
|
136
|
+
], AllActivities.prototype, "activityDate", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, swagger_1.ApiProperty)({
|
|
139
|
+
enum: common_enum_1.ActivityStatus,
|
|
140
|
+
description: "Estado de la actividad",
|
|
141
|
+
required: false,
|
|
142
|
+
}),
|
|
143
|
+
(0, typeorm_1.Column)({
|
|
144
|
+
type: "enum",
|
|
145
|
+
enum: common_enum_1.ActivityStatus,
|
|
146
|
+
nullable: true,
|
|
147
|
+
}),
|
|
148
|
+
__metadata("design:type", String)
|
|
149
|
+
], AllActivities.prototype, "status", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, swagger_1.ApiProperty)({
|
|
152
|
+
type: String,
|
|
153
|
+
description: "Prioridad de la actividad",
|
|
154
|
+
required: false,
|
|
155
|
+
}),
|
|
156
|
+
(0, typeorm_1.Column)({ length: 20, nullable: true }),
|
|
157
|
+
__metadata("design:type", String)
|
|
158
|
+
], AllActivities.prototype, "priority", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, class_transformer_1.Exclude)(),
|
|
161
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
162
|
+
(0, typeorm_1.Index)(),
|
|
163
|
+
__metadata("design:type", String)
|
|
164
|
+
], AllActivities.prototype, "taskCrmId", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, class_transformer_1.Exclude)(),
|
|
167
|
+
(0, typeorm_1.ManyToOne)(() => task_crm_entity_1.TaskCRM, { nullable: true, onDelete: "CASCADE" }),
|
|
168
|
+
(0, typeorm_1.JoinColumn)({ name: "taskCrmId" }),
|
|
169
|
+
__metadata("design:type", task_crm_entity_1.TaskCRM)
|
|
170
|
+
], AllActivities.prototype, "taskCrm", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, class_transformer_1.Exclude)(),
|
|
173
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
174
|
+
(0, typeorm_1.Index)(),
|
|
175
|
+
__metadata("design:type", String)
|
|
176
|
+
], AllActivities.prototype, "eventCrmId", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, class_transformer_1.Exclude)(),
|
|
179
|
+
(0, typeorm_1.ManyToOne)(() => event_crm_entity_1.EventCRM, { nullable: true, onDelete: "CASCADE" }),
|
|
180
|
+
(0, typeorm_1.JoinColumn)({ name: "eventCrmId" }),
|
|
181
|
+
__metadata("design:type", event_crm_entity_1.EventCRM)
|
|
182
|
+
], AllActivities.prototype, "eventCrm", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
(0, class_transformer_1.Exclude)(),
|
|
185
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
186
|
+
(0, typeorm_1.Index)(),
|
|
187
|
+
__metadata("design:type", String)
|
|
188
|
+
], AllActivities.prototype, "meetingCrmId", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
(0, class_transformer_1.Exclude)(),
|
|
191
|
+
(0, typeorm_1.ManyToOne)(() => meeting_crm_entity_1.MeetingCRM, { nullable: true, onDelete: "CASCADE" }),
|
|
192
|
+
(0, typeorm_1.JoinColumn)({ name: "meetingCrmId" }),
|
|
193
|
+
__metadata("design:type", meeting_crm_entity_1.MeetingCRM)
|
|
194
|
+
], AllActivities.prototype, "meetingCrm", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
(0, class_transformer_1.Exclude)(),
|
|
197
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
198
|
+
(0, typeorm_1.Index)(),
|
|
199
|
+
__metadata("design:type", String)
|
|
200
|
+
], AllActivities.prototype, "commentId", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, class_transformer_1.Exclude)(),
|
|
203
|
+
(0, typeorm_1.ManyToOne)(() => comment_base_entity_1.CommentBase, { nullable: true, onDelete: "CASCADE" }),
|
|
204
|
+
(0, typeorm_1.JoinColumn)({ name: "commentId" }),
|
|
205
|
+
__metadata("design:type", comment_base_entity_1.CommentBase)
|
|
206
|
+
], AllActivities.prototype, "comment", void 0);
|
|
207
|
+
__decorate([
|
|
208
|
+
(0, swagger_1.ApiProperty)({
|
|
209
|
+
type: Object,
|
|
210
|
+
description: "Metadatos adicionales de la actividad",
|
|
211
|
+
required: false,
|
|
212
|
+
}),
|
|
213
|
+
(0, typeorm_1.Column)({
|
|
214
|
+
type: "json",
|
|
215
|
+
nullable: true,
|
|
216
|
+
}),
|
|
217
|
+
__metadata("design:type", Object)
|
|
218
|
+
], AllActivities.prototype, "metadata", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
(0, swagger_1.ApiProperty)({
|
|
221
|
+
type: Date,
|
|
222
|
+
description: "Fecha de creación del registro",
|
|
223
|
+
}),
|
|
224
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
225
|
+
__metadata("design:type", Date)
|
|
226
|
+
], AllActivities.prototype, "createdAt", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
(0, swagger_1.ApiProperty)({
|
|
229
|
+
type: Date,
|
|
230
|
+
description: "Fecha de última modificación del registro",
|
|
231
|
+
}),
|
|
232
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
233
|
+
__metadata("design:type", Date)
|
|
234
|
+
], AllActivities.prototype, "updatedAt", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
(0, class_transformer_1.Expose)(),
|
|
237
|
+
__metadata("design:type", Object),
|
|
238
|
+
__metadata("design:paramtypes", [])
|
|
239
|
+
], AllActivities.prototype, "activityEntity", null);
|
|
240
|
+
__decorate([
|
|
241
|
+
(0, class_transformer_1.Expose)(),
|
|
242
|
+
__metadata("design:type", String),
|
|
243
|
+
__metadata("design:paramtypes", [])
|
|
244
|
+
], AllActivities.prototype, "specificEntityId", null);
|
|
245
|
+
__decorate([
|
|
246
|
+
(0, class_transformer_1.Expose)(),
|
|
247
|
+
__metadata("design:type", Boolean),
|
|
248
|
+
__metadata("design:paramtypes", [])
|
|
249
|
+
], AllActivities.prototype, "isConsistent", null);
|
|
250
|
+
__decorate([
|
|
251
|
+
(0, class_transformer_1.Expose)(),
|
|
252
|
+
__metadata("design:type", Object),
|
|
253
|
+
__metadata("design:paramtypes", [])
|
|
254
|
+
], AllActivities.prototype, "activitySummary", null);
|
|
255
|
+
exports.AllActivities = AllActivities = __decorate([
|
|
256
|
+
(0, typeorm_1.Entity)(),
|
|
257
|
+
(0, typeorm_1.Index)(['type']),
|
|
258
|
+
(0, typeorm_1.Index)(['activityDate']),
|
|
259
|
+
(0, typeorm_1.Index)(['status'])
|
|
260
|
+
], AllActivities);
|
|
261
|
+
//# sourceMappingURL=all-activities.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"all-activities.entity.js","sourceRoot":"","sources":["../../src/entities/all-activities.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCASiB;AACjB,yDAAoD;AACpD,6CAA8C;AAE9C,qEAA0D;AAC1D,uEAA4D;AAC5D,qEAA0D;AAC1D,gFAAqE;AACrE,6DAAgF;AAMzE,IAAM,aAAa,GAAnB,MAAM,aAAa;IAOxB,EAAE,CAAS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;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf,CAAC;;+CAC6B;AAQ/B;IALC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,IAAI;QACV,WAAW,EAAE,gCAAgC;KAC9C,CAAC;IACD,IAAA,0BAAgB,GAAE;8BACR,IAAI;gDAAC;AAOhB;IALC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,IAAI;QACV,WAAW,EAAE,2CAA2C;KACzD,CAAC;IACD,IAAA,0BAAgB,GAAE;8BACR,IAAI;gDAAC;AAGhB;IAAC,IAAA,0BAAM,GAAE;;;mDAcR;AAGD;IAAC,IAAA,0BAAM,GAAE;;;qDAcR;AAGD;IAAC,IAAA,0BAAM,GAAE;;;iDAWR;AAGD;IAAC,IAAA,0BAAM,GAAE;;;oDAqBR;wBAvMU,aAAa;IAJzB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,CAAC,MAAM,CAAC,CAAC;IACf,IAAA,eAAK,EAAC,CAAC,cAAc,CAAC,CAAC;IACvB,IAAA,eAAK,EAAC,CAAC,QAAQ,CAAC,CAAC;GACL,aAAa,CAwMzB"}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,43 +1,46 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export * from
|
|
28
|
-
export * from
|
|
29
|
-
export * from
|
|
30
|
-
export * from
|
|
31
|
-
export * from
|
|
32
|
-
export * from
|
|
33
|
-
export * from
|
|
34
|
-
export * from
|
|
35
|
-
export * from
|
|
36
|
-
export * from
|
|
37
|
-
export * from
|
|
38
|
-
export * from
|
|
39
|
-
export * from
|
|
40
|
-
export * from
|
|
41
|
-
export * from
|
|
42
|
-
export * from
|
|
43
|
-
export * from
|
|
1
|
+
export * from './app_config/app-config.entity';
|
|
2
|
+
export * from './currency.entity';
|
|
3
|
+
export * from './drive';
|
|
4
|
+
export * from './easyapp/filter-view.entity';
|
|
5
|
+
export * from './email.entity';
|
|
6
|
+
export * from './group.entity';
|
|
7
|
+
export * from './imap-config.entity';
|
|
8
|
+
export * from './login-history.entity';
|
|
9
|
+
export * from './meeting-comment.entity';
|
|
10
|
+
export * from './meeting.entity';
|
|
11
|
+
export * from './menu-permissions.entity';
|
|
12
|
+
export * from './notifications';
|
|
13
|
+
export * from './otp-log.entity';
|
|
14
|
+
export * from './permission.entity';
|
|
15
|
+
export * from './phone.entity';
|
|
16
|
+
export * from './policy';
|
|
17
|
+
export * from './profile.entity';
|
|
18
|
+
export * from './protocol.entity';
|
|
19
|
+
export * from './refresh-token.entity';
|
|
20
|
+
export * from './role.entity';
|
|
21
|
+
export * from './sales';
|
|
22
|
+
export * from './tag.entity';
|
|
23
|
+
export * from './user-invitations.entity';
|
|
24
|
+
export * from './user.entity';
|
|
25
|
+
export * from './company.entity';
|
|
26
|
+
export * from './capacitation';
|
|
27
|
+
export * from './tools';
|
|
28
|
+
export * from './project_management';
|
|
29
|
+
export * from './tools/mail/email-signature.entity';
|
|
30
|
+
export * from './tools/mail/mailbox-user-access.entity';
|
|
31
|
+
export * from './tools/mail/mailbox.entity';
|
|
32
|
+
export * from './tools/mail/mail.entity';
|
|
33
|
+
export * from './all-activities.entity';
|
|
34
|
+
export * from './thirdparty/google-webhooks-config.entity';
|
|
35
|
+
export * from './thirdparty/google-gmail-watch-record.entity';
|
|
36
|
+
export * from './thirdparty/oauth.entity';
|
|
37
|
+
export * from './thirdparty/diio-integration.entity';
|
|
38
|
+
export * from './thirdparty/wati';
|
|
39
|
+
export * from './subscriptions/plan.entity';
|
|
40
|
+
export * from './subscriptions/subscription.entity';
|
|
41
|
+
export * from './subscriptions/payment-history.entity';
|
|
42
|
+
export * from './helpers';
|
|
43
|
+
export * from './audit.entity';
|
|
44
|
+
export * from './role-audit-log.entity';
|
|
45
|
+
export * from './user-change-log.entity';
|
|
46
|
+
export * from './subgroup.entity';
|
package/dist/entities/index.js
CHANGED
|
@@ -41,10 +41,12 @@ __exportStar(require("./user.entity"), exports);
|
|
|
41
41
|
__exportStar(require("./company.entity"), exports);
|
|
42
42
|
__exportStar(require("./capacitation"), exports);
|
|
43
43
|
__exportStar(require("./tools"), exports);
|
|
44
|
+
__exportStar(require("./project_management"), exports);
|
|
44
45
|
__exportStar(require("./tools/mail/email-signature.entity"), exports);
|
|
45
46
|
__exportStar(require("./tools/mail/mailbox-user-access.entity"), exports);
|
|
46
47
|
__exportStar(require("./tools/mail/mailbox.entity"), exports);
|
|
47
48
|
__exportStar(require("./tools/mail/mail.entity"), exports);
|
|
49
|
+
__exportStar(require("./all-activities.entity"), exports);
|
|
48
50
|
__exportStar(require("./thirdparty/google-webhooks-config.entity"), exports);
|
|
49
51
|
__exportStar(require("./thirdparty/google-gmail-watch-record.entity"), exports);
|
|
50
52
|
__exportStar(require("./thirdparty/oauth.entity"), exports);
|
|
@@ -55,6 +57,7 @@ __exportStar(require("./subscriptions/subscription.entity"), exports);
|
|
|
55
57
|
__exportStar(require("./subscriptions/payment-history.entity"), exports);
|
|
56
58
|
__exportStar(require("./helpers"), exports);
|
|
57
59
|
__exportStar(require("./audit.entity"), exports);
|
|
60
|
+
__exportStar(require("./role-audit-log.entity"), exports);
|
|
58
61
|
__exportStar(require("./user-change-log.entity"), exports);
|
|
59
62
|
__exportStar(require("./subgroup.entity"), exports);
|
|
60
63
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,oDAAkC;AAClC,0CAAwB;AACxB,+DAA6C;AAC7C,iDAA+B;AAC/B,iDAA+B;AAC/B,uDAAqC;AACrC,yDAAuC;AACvC,2DAAyC;AACzC,mDAAiC;AACjC,4DAA0C;AAC1C,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,iDAA+B;AAC/B,2CAAyB;AACzB,mDAAiC;AACjC,oDAAkC;AAClC,yDAAuC;AACvC,gDAA8B;AAC9B,0CAAwB;AACxB,+CAA6B;AAC7B,4DAA0C;AAC1C,gDAA8B;AAC9B,mDAAiC;AAGjC,iDAA+B;AAG/B,0CAAwB;AAGxB,sEAAoD;AACpD,0EAAwD;AACxD,8DAA4C;AAC5C,2DAAyC;AAGzC,6EAA2D;AAC3D,gFAA8D;AAC9D,4DAA0C;AAC1C,uEAAqD;AACrD,oDAAkC;AAGlC,8DAA4C;AAC5C,sEAAoD;AACpD,yEAAuD;AAGvD,4CAA0B;AAG1B,iDAA+B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,oDAAkC;AAClC,0CAAwB;AACxB,+DAA6C;AAC7C,iDAA+B;AAC/B,iDAA+B;AAC/B,uDAAqC;AACrC,yDAAuC;AACvC,2DAAyC;AACzC,mDAAiC;AACjC,4DAA0C;AAC1C,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,iDAA+B;AAC/B,2CAAyB;AACzB,mDAAiC;AACjC,oDAAkC;AAClC,yDAAuC;AACvC,gDAA8B;AAC9B,0CAAwB;AACxB,+CAA6B;AAC7B,4DAA0C;AAC1C,gDAA8B;AAC9B,mDAAiC;AAGjC,iDAA+B;AAG/B,0CAAwB;AAGxB,uDAAqC;AAGrC,sEAAoD;AACpD,0EAAwD;AACxD,8DAA4C;AAC5C,2DAAyC;AAGzC,0DAAwC;AAGxC,6EAA2D;AAC3D,gFAA8D;AAC9D,4DAA0C;AAC1C,uEAAqD;AACrD,oDAAkC;AAGlC,8DAA4C;AAC5C,sEAAoD;AACpD,yEAAuD;AAGvD,4CAA0B;AAG1B,iDAA+B;AAC/B,0DAAwC;AAGxC,2DAAyC;AAGzC,oDAAkC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { User } from '../../user.entity';
|
|
2
|
+
import { Activity } from './activity.entity';
|
|
3
|
+
export declare class ActivityComment {
|
|
4
|
+
id: number;
|
|
5
|
+
comment: string;
|
|
6
|
+
created_at: Date;
|
|
7
|
+
last_update: Date;
|
|
8
|
+
deleted_at: Date;
|
|
9
|
+
activity: Activity;
|
|
10
|
+
user: User;
|
|
11
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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.ActivityComment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const user_entity_1 = require("../../user.entity");
|
|
15
|
+
const activity_entity_1 = require("./activity.entity");
|
|
16
|
+
let ActivityComment = class ActivityComment {
|
|
17
|
+
id;
|
|
18
|
+
comment;
|
|
19
|
+
created_at;
|
|
20
|
+
last_update;
|
|
21
|
+
deleted_at;
|
|
22
|
+
activity;
|
|
23
|
+
user;
|
|
24
|
+
};
|
|
25
|
+
exports.ActivityComment = ActivityComment;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], ActivityComment.prototype, "id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], ActivityComment.prototype, "comment", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], ActivityComment.prototype, "created_at", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
40
|
+
__metadata("design:type", Date)
|
|
41
|
+
], ActivityComment.prototype, "last_update", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
|
44
|
+
__metadata("design:type", Date)
|
|
45
|
+
], ActivityComment.prototype, "deleted_at", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.ManyToOne)(() => activity_entity_1.Activity, (activity) => activity.comments, {
|
|
48
|
+
onDelete: 'CASCADE',
|
|
49
|
+
}),
|
|
50
|
+
(0, typeorm_1.JoinColumn)({ name: 'activity_id', referencedColumnName: 'id' }),
|
|
51
|
+
__metadata("design:type", activity_entity_1.Activity)
|
|
52
|
+
], ActivityComment.prototype, "activity", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
55
|
+
onDelete: 'CASCADE',
|
|
56
|
+
}),
|
|
57
|
+
(0, typeorm_1.JoinColumn)({ name: 'user_id', referencedColumnName: 'id' }),
|
|
58
|
+
__metadata("design:type", user_entity_1.User)
|
|
59
|
+
], ActivityComment.prototype, "user", void 0);
|
|
60
|
+
exports.ActivityComment = ActivityComment = __decorate([
|
|
61
|
+
(0, typeorm_1.Entity)()
|
|
62
|
+
], ActivityComment);
|
|
63
|
+
//# sourceMappingURL=activities-comment.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activities-comment.entity.js","sourceRoot":"","sources":["../../../../src/entities/project_management/activities/activities-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCASiB;AACjB,mDAAyC;AACzC,uDAA6C;AAGtC,IAAM,eAAe,GAArB,MAAM,eAAe;IAE1B,EAAE,CAAS;IAGX,OAAO,CAAS;IAGhB,UAAU,CAAO;IAGjB,WAAW,CAAO;IAGlB,UAAU,CAAO;IAMjB,QAAQ,CAAW;IAMnB,IAAI,CAAO;CACZ,CAAA;AA3BY,0CAAe;AAE1B;IADC,IAAA,gCAAsB,GAAE;;2CACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACT;AAGhB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;mDAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACN,IAAI;oDAAC;AAGlB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;mDAAC;AAMjB;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE;QAC1D,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,0BAAQ;iDAAC;AAMnB;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,kBAAI;6CAAC;0BA1BA,eAAe;IAD3B,IAAA,gBAAM,GAAE;GACI,eAAe,CA2B3B"}
|