easywork-common-lib 1.0.576 → 1.0.577

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.
@@ -0,0 +1,157 @@
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.Meeting = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const swagger_1 = require("@nestjs/swagger");
15
+ const common_1 = require("../common");
16
+ const user_entity_1 = require("./user.entity");
17
+ const meeting_comment_entity_1 = require("./meeting-comment.entity");
18
+ const meeting_list_field_1 = require("./meeting-list-field");
19
+ const helpers_1 = require("./helpers");
20
+ let Meeting = class Meeting extends common_1.EntityBase {
21
+ title;
22
+ description;
23
+ startTime;
24
+ duration;
25
+ status;
26
+ type;
27
+ developmentManager;
28
+ agents;
29
+ comments;
30
+ listField;
31
+ crm;
32
+ metadata;
33
+ };
34
+ exports.Meeting = Meeting;
35
+ __decorate([
36
+ (0, swagger_1.ApiProperty)({
37
+ type: String,
38
+ description: "Title of the meeting",
39
+ }),
40
+ (0, typeorm_1.Column)({ nullable: false }),
41
+ __metadata("design:type", String)
42
+ ], Meeting.prototype, "title", void 0);
43
+ __decorate([
44
+ (0, swagger_1.ApiProperty)({
45
+ type: String,
46
+ description: "Description of the meeting",
47
+ }),
48
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
49
+ __metadata("design:type", String)
50
+ ], Meeting.prototype, "description", void 0);
51
+ __decorate([
52
+ (0, swagger_1.ApiProperty)({
53
+ type: Date,
54
+ description: "Start date and time of the meeting",
55
+ }),
56
+ (0, typeorm_1.Column)({ nullable: true }),
57
+ __metadata("design:type", Date)
58
+ ], Meeting.prototype, "startTime", void 0);
59
+ __decorate([
60
+ (0, swagger_1.ApiProperty)({
61
+ type: String,
62
+ description: "Duration of the meeting",
63
+ }),
64
+ (0, typeorm_1.Column)({ nullable: false }),
65
+ __metadata("design:type", String)
66
+ ], Meeting.prototype, "duration", void 0);
67
+ __decorate([
68
+ (0, swagger_1.ApiProperty)({
69
+ enum: common_1.MeetingStatus,
70
+ description: "Status of the meeting",
71
+ default: common_1.MeetingStatus.PENDING,
72
+ }),
73
+ (0, typeorm_1.Column)({
74
+ type: "enum",
75
+ enum: common_1.MeetingStatus,
76
+ default: common_1.MeetingStatus.PENDING,
77
+ }),
78
+ __metadata("design:type", String)
79
+ ], Meeting.prototype, "status", void 0);
80
+ __decorate([
81
+ (0, swagger_1.ApiProperty)({
82
+ enum: common_1.MeetingType,
83
+ description: "Type of the meeting",
84
+ default: common_1.MeetingType.INDIVIDUAL,
85
+ }),
86
+ (0, typeorm_1.Column)({
87
+ type: "enum",
88
+ enum: common_1.MeetingType,
89
+ default: common_1.MeetingType.INDIVIDUAL,
90
+ }),
91
+ __metadata("design:type", String)
92
+ ], Meeting.prototype, "type", void 0);
93
+ __decorate([
94
+ (0, swagger_1.ApiProperty)({
95
+ type: () => user_entity_1.User,
96
+ description: "Development manager responsible for the meeting",
97
+ }),
98
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { onDelete: "SET NULL" }),
99
+ (0, typeorm_1.JoinColumn)({ name: "developmentManagerId" }),
100
+ __metadata("design:type", user_entity_1.User)
101
+ ], Meeting.prototype, "developmentManager", void 0);
102
+ __decorate([
103
+ (0, swagger_1.ApiProperty)({
104
+ type: () => [user_entity_1.User],
105
+ description: "Agents attending the meeting",
106
+ }),
107
+ (0, typeorm_1.ManyToMany)(() => user_entity_1.User, { onDelete: "CASCADE" }),
108
+ (0, typeorm_1.JoinTable)({ name: "meeting_agents" }),
109
+ __metadata("design:type", Array)
110
+ ], Meeting.prototype, "agents", void 0);
111
+ __decorate([
112
+ (0, swagger_1.ApiProperty)({
113
+ type: () => meeting_comment_entity_1.MeetingComment,
114
+ description: "Comments related to the meeting",
115
+ }),
116
+ (0, typeorm_1.OneToMany)(() => meeting_comment_entity_1.MeetingComment, (comment) => comment.meeting, {
117
+ cascade: true,
118
+ }),
119
+ __metadata("design:type", Array)
120
+ ], Meeting.prototype, "comments", void 0);
121
+ __decorate([
122
+ (0, swagger_1.ApiProperty)({
123
+ type: () => [meeting_list_field_1.MeetingListField],
124
+ description: "List fields associated with the meeting",
125
+ required: false,
126
+ }),
127
+ (0, typeorm_1.Column)("json", { nullable: true }),
128
+ __metadata("design:type", Array)
129
+ ], Meeting.prototype, "listField", void 0);
130
+ __decorate([
131
+ (0, swagger_1.ApiProperty)({
132
+ type: () => [helpers_1.MeetingCRM],
133
+ description: "CRM entries associated with the task",
134
+ required: false,
135
+ }),
136
+ (0, typeorm_1.OneToMany)(() => helpers_1.MeetingCRM, (MeetingCRM) => MeetingCRM.meeting, {
137
+ onDelete: "CASCADE",
138
+ onUpdate: "CASCADE",
139
+ }),
140
+ __metadata("design:type", Array)
141
+ ], Meeting.prototype, "crm", void 0);
142
+ __decorate([
143
+ (0, swagger_1.ApiProperty)({
144
+ type: Object,
145
+ description: "Additional metadata for the meeting",
146
+ required: false,
147
+ }),
148
+ (0, typeorm_1.Column)({
149
+ type: "json",
150
+ nullable: true,
151
+ }),
152
+ __metadata("design:type", Object)
153
+ ], Meeting.prototype, "metadata", void 0);
154
+ exports.Meeting = Meeting = __decorate([
155
+ (0, typeorm_1.Entity)()
156
+ ], Meeting);
157
+ //# sourceMappingURL=meeting.entity.js.map
@@ -0,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AE,CAAC,uCAAc,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;QAC7D,OAAO,EAAE,IAAI;KACd,CAAC;;yCACyB;AAQ3B;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,qCAAgB,CAAC;QAC9B,WAAW,EAAE,yCAAyC;QACtD,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACL;AAW9B;IATC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,oBAAU,CAAC;QACxB,WAAW,EAAE,sCAAsC;QACnD,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAU,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE;QAC/D,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;;oCACiB;AAYnB;IATC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,qCAAqC;QAClD,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf,CAAC;;yCAC4B;kBA3GnB,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CA4GnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easywork-common-lib",
3
- "version": "1.0.576",
3
+ "version": "1.0.577",
4
4
  "description": "Librería común de Easywork",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {