easywork-common-lib 1.0.207 → 1.0.210
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/.gitattributes +2 -2
- package/.vscode/settings.json +12 -12
- package/dist/entities/drive/file.entity.js +12 -2
- package/dist/entities/drive/file.entity.js.map +1 -1
- package/dist/entities/drive/folder.entity.js +7 -1
- package/dist/entities/drive/folder.entity.js.map +1 -1
- package/dist/entities/email.entity.js +3 -0
- package/dist/entities/email.entity.js.map +1 -1
- package/dist/entities/helpers/entity_file.entity.js +7 -0
- package/dist/entities/helpers/entity_file.entity.js.map +1 -1
- package/dist/entities/helpers/entity_folder.entity.js +7 -0
- package/dist/entities/helpers/entity_folder.entity.js.map +1 -1
- package/dist/entities/helpers/sales/contact/contact_email.entity.js +9 -2
- package/dist/entities/helpers/sales/contact/contact_email.entity.js.map +1 -1
- package/dist/entities/helpers/sales/contact/contact_phone.entity.js +7 -0
- package/dist/entities/helpers/sales/contact/contact_phone.entity.js.map +1 -1
- package/dist/entities/helpers/sales/contact/contact_sources.entity.js +3 -0
- package/dist/entities/helpers/sales/contact/contact_sources.entity.js.map +1 -1
- package/dist/entities/helpers/sales/contact/contact_types.entity.js +3 -0
- package/dist/entities/helpers/sales/contact/contact_types.entity.js.map +1 -1
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.js +2 -0
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.js.map +1 -1
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js +3 -0
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js.map +1 -1
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.js +2 -0
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.js.map +1 -1
- package/dist/entities/helpers/sales/lead/lead_email.entity.js +9 -2
- package/dist/entities/helpers/sales/lead/lead_email.entity.js.map +1 -1
- package/dist/entities/helpers/sales/lead/lead_phone.entity.js +9 -2
- package/dist/entities/helpers/sales/lead/lead_phone.entity.js.map +1 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js +4 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js.map +1 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js +4 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js.map +1 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js +3 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js.map +1 -1
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js +8 -1
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js.map +1 -1
- package/dist/entities/helpers/tools/task_crm.entity.js +9 -0
- package/dist/entities/helpers/tools/task_crm.entity.js.map +1 -1
- package/dist/entities/notifications/push-token.entity.js +4 -0
- package/dist/entities/notifications/push-token.entity.js.map +1 -1
- package/dist/entities/oauth.entity.js +1 -1
- package/dist/entities/oauth.entity.js.map +1 -1
- package/dist/entities/otp-log.entity.js +5 -0
- package/dist/entities/otp-log.entity.js.map +1 -1
- package/dist/entities/permission.entity.js +4 -0
- package/dist/entities/permission.entity.js.map +1 -1
- package/dist/entities/phone.entity.js +3 -0
- package/dist/entities/phone.entity.js.map +1 -1
- package/dist/entities/profile.entity.js +6 -0
- package/dist/entities/profile.entity.js.map +1 -1
- package/dist/entities/role.entity.js +3 -0
- package/dist/entities/role.entity.js.map +1 -1
- package/dist/entities/sales/contact.entity.js +34 -0
- package/dist/entities/sales/contact.entity.js.map +1 -1
- package/dist/entities/sales/lead.entity.js +42 -0
- package/dist/entities/sales/lead.entity.js.map +1 -1
- package/dist/entities/sales/poliza.entity.js +60 -0
- package/dist/entities/sales/poliza.entity.js.map +1 -1
- package/dist/entities/sales/poliza_siniestro.entity.js +7 -0
- package/dist/entities/sales/poliza_siniestro.entity.js.map +1 -1
- package/dist/entities/tag.entity.js +4 -0
- package/dist/entities/tag.entity.js.map +1 -1
- package/dist/entities/tools/task-comment.entity.js +5 -0
- package/dist/entities/tools/task-comment.entity.js.map +1 -1
- package/dist/entities/tools/task-list-field.js +4 -0
- package/dist/entities/tools/task-list-field.js.map +1 -1
- package/dist/entities/tools/task.entity.d.ts +1 -1
- package/dist/entities/tools/task.entity.js +28 -1
- package/dist/entities/tools/task.entity.js.map +1 -1
- package/dist/entities/user.entity.js +16 -0
- package/dist/entities/user.entity.js.map +1 -1
- package/package.json +38 -38
- package/scripts/bump.sh +5 -5
- package/test.bat +15 -15
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +26 -26
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -17,7 +17,9 @@ const task_comment_entity_1 = require("./task-comment.entity");
|
|
|
17
17
|
const tag_entity_1 = require("../tag.entity");
|
|
18
18
|
const common_1 = require("../../common");
|
|
19
19
|
const enums_1 = require("../../common/enums");
|
|
20
|
+
const task_list_field_1 = require("./task-list-field");
|
|
20
21
|
const helpers_1 = require("../../entities/helpers");
|
|
22
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
21
23
|
let Task = class Task extends common_1.BaseEntity {
|
|
22
24
|
name;
|
|
23
25
|
number;
|
|
@@ -44,6 +46,7 @@ let Task = class Task extends common_1.BaseEntity {
|
|
|
44
46
|
};
|
|
45
47
|
exports.Task = Task;
|
|
46
48
|
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Name of the task', minLength: 3 }),
|
|
47
50
|
(0, class_validator_1.MinLength)(3),
|
|
48
51
|
(0, typeorm_1.Column)({ unique: false, nullable: false }),
|
|
49
52
|
__metadata("design:type", String)
|
|
@@ -54,34 +57,46 @@ __decorate([
|
|
|
54
57
|
__metadata("design:type", Number)
|
|
55
58
|
], Task.prototype, "number", void 0);
|
|
56
59
|
__decorate([
|
|
60
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Description of the task' }),
|
|
57
61
|
(0, typeorm_1.Column)({ type: "text" }),
|
|
58
62
|
__metadata("design:type", String)
|
|
59
63
|
], Task.prototype, "description", void 0);
|
|
60
64
|
__decorate([
|
|
65
|
+
(0, swagger_1.ApiProperty)({ type: Date, description: 'Deadline of the task', required: false }),
|
|
61
66
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
62
67
|
__metadata("design:type", Date)
|
|
63
68
|
], Task.prototype, "deadline", void 0);
|
|
64
69
|
__decorate([
|
|
70
|
+
(0, swagger_1.ApiProperty)({ type: Date, description: 'Start time of the task', required: false }),
|
|
65
71
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
66
72
|
__metadata("design:type", Date)
|
|
67
73
|
], Task.prototype, "startTime", void 0);
|
|
68
74
|
__decorate([
|
|
75
|
+
(0, swagger_1.ApiProperty)({ type: Date, description: 'Completion time of the task', required: false }),
|
|
69
76
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
70
77
|
__metadata("design:type", Date)
|
|
71
78
|
], Task.prototype, "completedTime", void 0);
|
|
72
79
|
__decorate([
|
|
80
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Does the task require revision?', default: false }),
|
|
73
81
|
(0, typeorm_1.Column)({ default: false }),
|
|
74
82
|
__metadata("design:type", Boolean)
|
|
75
83
|
], Task.prototype, "requireRevision", void 0);
|
|
76
84
|
__decorate([
|
|
85
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Does the task require a summary?', default: false }),
|
|
77
86
|
(0, typeorm_1.Column)({ default: false }),
|
|
78
87
|
__metadata("design:type", Boolean)
|
|
79
88
|
], Task.prototype, "requireSummary", void 0);
|
|
80
89
|
__decorate([
|
|
90
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Can the responsible user change the date?', default: false }),
|
|
81
91
|
(0, typeorm_1.Column)({ default: false }),
|
|
82
92
|
__metadata("design:type", Boolean)
|
|
83
93
|
], Task.prototype, "responsibleCanChangeDate", void 0);
|
|
84
94
|
__decorate([
|
|
95
|
+
(0, swagger_1.ApiProperty)({
|
|
96
|
+
enum: enums_1.TaskStatus,
|
|
97
|
+
description: 'Status of the task',
|
|
98
|
+
default: enums_1.TaskStatus.PENDING
|
|
99
|
+
}),
|
|
85
100
|
(0, typeorm_1.Column)({
|
|
86
101
|
type: "enum",
|
|
87
102
|
enum: enums_1.TaskStatus,
|
|
@@ -90,14 +105,17 @@ __decorate([
|
|
|
90
105
|
__metadata("design:type", String)
|
|
91
106
|
], Task.prototype, "status", void 0);
|
|
92
107
|
__decorate([
|
|
108
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the task completed?', default: false }),
|
|
93
109
|
(0, typeorm_1.Column)({ default: false }),
|
|
94
110
|
__metadata("design:type", Boolean)
|
|
95
111
|
], Task.prototype, "isCompleted", void 0);
|
|
96
112
|
__decorate([
|
|
113
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Has the task been reviewed?', default: false }),
|
|
97
114
|
(0, typeorm_1.Column)({ default: false }),
|
|
98
115
|
__metadata("design:type", Boolean)
|
|
99
116
|
], Task.prototype, "reviewed", void 0);
|
|
100
117
|
__decorate([
|
|
118
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who created the task', required: false }),
|
|
101
119
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
102
120
|
onDelete: "SET NULL",
|
|
103
121
|
onUpdate: "CASCADE",
|
|
@@ -106,6 +124,7 @@ __decorate([
|
|
|
106
124
|
__metadata("design:type", user_entity_1.User)
|
|
107
125
|
], Task.prototype, "createdBy", void 0);
|
|
108
126
|
__decorate([
|
|
127
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who reviewed the task', required: false }),
|
|
109
128
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
110
129
|
onDelete: "SET NULL",
|
|
111
130
|
onUpdate: "CASCADE",
|
|
@@ -114,6 +133,7 @@ __decorate([
|
|
|
114
133
|
__metadata("design:type", user_entity_1.User)
|
|
115
134
|
], Task.prototype, "reviewedBy", void 0);
|
|
116
135
|
__decorate([
|
|
136
|
+
(0, swagger_1.ApiProperty)({ type: () => [user_entity_1.User], description: 'Participants in the task', required: false }),
|
|
117
137
|
(0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
|
|
118
138
|
onDelete: "CASCADE",
|
|
119
139
|
onUpdate: "CASCADE",
|
|
@@ -122,6 +142,7 @@ __decorate([
|
|
|
122
142
|
__metadata("design:type", Array)
|
|
123
143
|
], Task.prototype, "participants", void 0);
|
|
124
144
|
__decorate([
|
|
145
|
+
(0, swagger_1.ApiProperty)({ type: () => [user_entity_1.User], description: 'Users responsible for the task', required: false }),
|
|
125
146
|
(0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
|
|
126
147
|
onDelete: "CASCADE",
|
|
127
148
|
onUpdate: "CASCADE",
|
|
@@ -130,6 +151,7 @@ __decorate([
|
|
|
130
151
|
__metadata("design:type", Array)
|
|
131
152
|
], Task.prototype, "responsible", void 0);
|
|
132
153
|
__decorate([
|
|
154
|
+
(0, swagger_1.ApiProperty)({ type: () => [user_entity_1.User], description: 'Observers of the task', required: false }),
|
|
133
155
|
(0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
|
|
134
156
|
onDelete: "CASCADE",
|
|
135
157
|
onUpdate: "CASCADE",
|
|
@@ -138,6 +160,7 @@ __decorate([
|
|
|
138
160
|
__metadata("design:type", Array)
|
|
139
161
|
], Task.prototype, "observers", void 0);
|
|
140
162
|
__decorate([
|
|
163
|
+
(0, swagger_1.ApiProperty)({ type: () => [tag_entity_1.Tag], description: 'Tags associated with the task' }),
|
|
141
164
|
(0, typeorm_1.ManyToMany)(() => tag_entity_1.Tag, tag => tag.tasks, {
|
|
142
165
|
onDelete: "CASCADE",
|
|
143
166
|
onUpdate: "CASCADE",
|
|
@@ -146,15 +169,18 @@ __decorate([
|
|
|
146
169
|
__metadata("design:type", Array)
|
|
147
170
|
], Task.prototype, "tags", void 0);
|
|
148
171
|
__decorate([
|
|
172
|
+
(0, swagger_1.ApiProperty)({ type: () => [task_list_field_1.TaskListField], description: 'List fields associated with the task', required: false }),
|
|
149
173
|
(0, typeorm_1.Column)("json", { nullable: true }),
|
|
150
174
|
__metadata("design:type", Array)
|
|
151
175
|
], Task.prototype, "listField", void 0);
|
|
152
176
|
__decorate([
|
|
177
|
+
(0, swagger_1.ApiProperty)({ type: () => [task_comment_entity_1.TaskComment], description: 'Comments on the task' }),
|
|
153
178
|
(0, typeorm_1.OneToMany)(() => task_comment_entity_1.TaskComment, taskComment => taskComment.task),
|
|
154
179
|
(0, typeorm_1.JoinColumn)(),
|
|
155
|
-
__metadata("design:type",
|
|
180
|
+
__metadata("design:type", Array)
|
|
156
181
|
], Task.prototype, "comments", void 0);
|
|
157
182
|
__decorate([
|
|
183
|
+
(0, swagger_1.ApiProperty)({ type: () => [helpers_1.TaskCRM], description: 'CRM entries associated with the task', required: false }),
|
|
158
184
|
(0, typeorm_1.OneToMany)(() => helpers_1.TaskCRM, (taskCRM) => taskCRM.task, {
|
|
159
185
|
onDelete: "CASCADE",
|
|
160
186
|
onUpdate: "CASCADE",
|
|
@@ -162,6 +188,7 @@ __decorate([
|
|
|
162
188
|
__metadata("design:type", Array)
|
|
163
189
|
], Task.prototype, "crm", void 0);
|
|
164
190
|
__decorate([
|
|
191
|
+
(0, swagger_1.ApiProperty)({ type: () => Task, description: 'Parent task', required: false }),
|
|
165
192
|
(0, typeorm_1.ManyToOne)(() => Task, {
|
|
166
193
|
onDelete: "CASCADE",
|
|
167
194
|
onUpdate: "CASCADE",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.entity.js","sourceRoot":"","sources":["../../../src/entities/tools/task.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4C;AAC5C,gDAAsC;AACtC,qCAA6G;AAC7G,+DAAoD;AACpD,8CAAoC;AACpC,yCAA0C;AAC1C,8CAAgD;
|
|
1
|
+
{"version":3,"file":"task.entity.js","sourceRoot":"","sources":["../../../src/entities/tools/task.entity.ts"],"names":[],"mapp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EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAClH,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACR;AAK3B;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,iCAAW,CAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;IAC/E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iCAAW,EAAE,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC;IAC7D,IAAA,oBAAU,GAAE;;sCACW;AAOxB;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,iBAAO,CAAC,EAAE,WAAW,EAAE,sCAAsC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC5G,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;AAShB;IAPC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,IAAI,EAAE;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACjB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,IAAI;wCAAC;eAjIT,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CAkIhB"}
|
|
@@ -18,6 +18,7 @@ const role_entity_1 = require("./role.entity");
|
|
|
18
18
|
const tag_entity_1 = require("./tag.entity");
|
|
19
19
|
const user_email_relation_entity_1 = require("./thirdparty/user-email-relation.entity");
|
|
20
20
|
const push_token_entity_1 = require("./notifications/push-token.entity");
|
|
21
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
21
22
|
let User = class User extends database_1.BaseEntity {
|
|
22
23
|
username;
|
|
23
24
|
email;
|
|
@@ -40,48 +41,59 @@ let User = class User extends database_1.BaseEntity {
|
|
|
40
41
|
};
|
|
41
42
|
exports.User = User;
|
|
42
43
|
__decorate([
|
|
44
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Unique username' }),
|
|
43
45
|
(0, typeorm_1.Column)({ unique: true }),
|
|
44
46
|
__metadata("design:type", String)
|
|
45
47
|
], User.prototype, "username", void 0);
|
|
46
48
|
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Unique email address' }),
|
|
47
50
|
(0, typeorm_1.Column)({ unique: true }),
|
|
48
51
|
__metadata("design:type", String)
|
|
49
52
|
], User.prototype, "email", void 0);
|
|
50
53
|
__decorate([
|
|
54
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'User bio' }),
|
|
51
55
|
(0, typeorm_1.Column)({ type: "text" }),
|
|
52
56
|
__metadata("design:type", String)
|
|
53
57
|
], User.prototype, "bio", void 0);
|
|
54
58
|
__decorate([
|
|
59
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'User avatar URL' }),
|
|
55
60
|
(0, typeorm_1.Column)({ type: "text" }),
|
|
56
61
|
__metadata("design:type", String)
|
|
57
62
|
], User.prototype, "avatar", void 0);
|
|
58
63
|
__decorate([
|
|
59
64
|
(0, class_transformer_1.Exclude)(),
|
|
65
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Password hash', writeOnly: true }),
|
|
60
66
|
(0, typeorm_1.Column)({ type: "text" }),
|
|
61
67
|
__metadata("design:type", String)
|
|
62
68
|
], User.prototype, "hash", void 0);
|
|
63
69
|
__decorate([
|
|
64
70
|
(0, class_transformer_1.Exclude)(),
|
|
71
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Two-factor authentication secret', required: false, writeOnly: true }),
|
|
65
72
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
66
73
|
__metadata("design:type", String)
|
|
67
74
|
], User.prototype, "twoFactorSecret", void 0);
|
|
68
75
|
__decorate([
|
|
76
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is two-factor authentication enabled', default: false }),
|
|
69
77
|
(0, typeorm_1.Column)({ default: false }),
|
|
70
78
|
__metadata("design:type", Boolean)
|
|
71
79
|
], User.prototype, "isTwoFactorEnabled", void 0);
|
|
72
80
|
__decorate([
|
|
81
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'User phone number', required: false }),
|
|
73
82
|
(0, typeorm_1.Column)({ unique: true }),
|
|
74
83
|
__metadata("design:type", String)
|
|
75
84
|
], User.prototype, "phone", void 0);
|
|
76
85
|
__decorate([
|
|
86
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is user verified', default: false }),
|
|
77
87
|
(0, typeorm_1.Column)({ default: false }),
|
|
78
88
|
__metadata("design:type", Boolean)
|
|
79
89
|
], User.prototype, "isVerified", void 0);
|
|
80
90
|
__decorate([
|
|
91
|
+
(0, swagger_1.ApiProperty)({ type: Date, description: 'Last login timestamp', required: false }),
|
|
81
92
|
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
82
93
|
__metadata("design:type", Date)
|
|
83
94
|
], User.prototype, "lastLogin", void 0);
|
|
84
95
|
__decorate([
|
|
96
|
+
(0, swagger_1.ApiProperty)({ type: () => profile_entity_1.Profile, description: 'User profile' }),
|
|
85
97
|
(0, typeorm_1.OneToOne)(() => profile_entity_1.Profile, {
|
|
86
98
|
onDelete: "CASCADE",
|
|
87
99
|
onUpdate: "CASCADE",
|
|
@@ -91,6 +103,7 @@ __decorate([
|
|
|
91
103
|
__metadata("design:type", profile_entity_1.Profile)
|
|
92
104
|
], User.prototype, "profile", void 0);
|
|
93
105
|
__decorate([
|
|
106
|
+
(0, swagger_1.ApiProperty)({ type: () => [role_entity_1.Role], description: 'Roles assigned to the user' }),
|
|
94
107
|
(0, typeorm_1.ManyToMany)(() => role_entity_1.Role, {
|
|
95
108
|
onDelete: "CASCADE",
|
|
96
109
|
onUpdate: "CASCADE",
|
|
@@ -99,14 +112,17 @@ __decorate([
|
|
|
99
112
|
__metadata("design:type", Array)
|
|
100
113
|
], User.prototype, "roles", void 0);
|
|
101
114
|
__decorate([
|
|
115
|
+
(0, swagger_1.ApiProperty)({ type: () => [tag_entity_1.Tag], description: 'Tags associated with the user' }),
|
|
102
116
|
(0, typeorm_1.OneToMany)(() => tag_entity_1.Tag, (tag) => tag.user),
|
|
103
117
|
__metadata("design:type", Array)
|
|
104
118
|
], User.prototype, "tags", void 0);
|
|
105
119
|
__decorate([
|
|
120
|
+
(0, swagger_1.ApiProperty)({ type: () => [push_token_entity_1.PushToken], description: 'Push tokens associated with the user' }),
|
|
106
121
|
(0, typeorm_1.OneToMany)(() => push_token_entity_1.PushToken, (pushToken) => pushToken.user),
|
|
107
122
|
__metadata("design:type", Array)
|
|
108
123
|
], User.prototype, "pushTokens", void 0);
|
|
109
124
|
__decorate([
|
|
125
|
+
(0, swagger_1.ApiProperty)({ type: () => [user_email_relation_entity_1.UserEmailRelation], description: 'Email relations associated with the user' }),
|
|
110
126
|
(0, typeorm_1.OneToMany)(() => user_email_relation_entity_1.UserEmailRelation, (relation) => relation.user),
|
|
111
127
|
__metadata("design:type", Array)
|
|
112
128
|
], User.prototype, "emailRelations", void 0);
|
|
@@ -1 +1 @@
|
|
|
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;AACnC,wFAA4E;AAC5E,yEAA8D;
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;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G,EAAE,CAAC,CAAC,8CAAiB,CAAC,EAAE,WAAW,EAAE,0CAA0C,EAAE,CAAC;IACzG,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8CAAiB,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;;4CAC5B;eAtEzB,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CA2EhB"}
|
package/package.json
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "easywork-common-lib",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Librería común de Easywork",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "tsc",
|
|
8
|
-
"bump": "./scripts/bump.sh"
|
|
9
|
-
},
|
|
10
|
-
"repository": {
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "git+https://github.com/criptopreto/easywork-common-lib.git"
|
|
13
|
-
},
|
|
14
|
-
"keywords": [
|
|
15
|
-
"nodejs"
|
|
16
|
-
],
|
|
17
|
-
"author": "Rosmer Campos",
|
|
18
|
-
"license": "MIT",
|
|
19
|
-
"bugs": {
|
|
20
|
-
"url": "https://github.com/criptopreto/easywork-common-lib/issues"
|
|
21
|
-
},
|
|
22
|
-
"homepage": "https://github.com/criptopreto/easywork-common-lib#readme",
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"@nestjs/common": "^10.3.8",
|
|
25
|
-
"@nestjs/swagger": "^7.4.0",
|
|
26
|
-
"@nestjs/typeorm": "^10.0.2",
|
|
27
|
-
"class-transformer": "^0.5.1",
|
|
28
|
-
"class-validator": "^0.14.1",
|
|
29
|
-
"rxjs": "^7.8.1",
|
|
30
|
-
"typeorm": "^0.3.20"
|
|
31
|
-
},
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"@rubiin/tsconfig": "^1.1.2",
|
|
34
|
-
"@types/node": "^20.12.12",
|
|
35
|
-
"ts-loader": "^9.5.1",
|
|
36
|
-
"typescript": "^5.4.5"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "easywork-common-lib",
|
|
3
|
+
"version": "1.0.210",
|
|
4
|
+
"description": "Librería común de Easywork",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc",
|
|
8
|
+
"bump": "./scripts/bump.sh"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/criptopreto/easywork-common-lib.git"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"nodejs"
|
|
16
|
+
],
|
|
17
|
+
"author": "Rosmer Campos",
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/criptopreto/easywork-common-lib/issues"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/criptopreto/easywork-common-lib#readme",
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@nestjs/common": "^10.3.8",
|
|
25
|
+
"@nestjs/swagger": "^7.4.0",
|
|
26
|
+
"@nestjs/typeorm": "^10.0.2",
|
|
27
|
+
"class-transformer": "^0.5.1",
|
|
28
|
+
"class-validator": "^0.14.1",
|
|
29
|
+
"rxjs": "^7.8.1",
|
|
30
|
+
"typeorm": "^0.3.20"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@rubiin/tsconfig": "^1.1.2",
|
|
34
|
+
"@types/node": "^20.12.12",
|
|
35
|
+
"ts-loader": "^9.5.1",
|
|
36
|
+
"typescript": "^5.4.5"
|
|
37
|
+
}
|
|
38
|
+
}
|
package/scripts/bump.sh
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
git add .
|
|
2
|
-
git commit -m "bump version"
|
|
3
|
-
npm version patch
|
|
4
|
-
yarn build
|
|
5
|
-
npm publish
|
|
1
|
+
git add .
|
|
2
|
+
git commit -m "bump version"
|
|
3
|
+
npm version patch
|
|
4
|
+
yarn build
|
|
5
|
+
npm publish
|
|
6
6
|
git push
|
package/test.bat
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@echo off
|
|
2
|
-
setlocal enabledelayedexpansion
|
|
3
|
-
|
|
4
|
-
rem Define the root directory
|
|
5
|
-
set "root=C:\Users\ROSME\Documents\GitHub\easywork-common-lib"
|
|
6
|
-
|
|
7
|
-
rem Iterate through all directories and subdirectories
|
|
8
|
-
for /f "delims=" %%d in ('dir "%root%" /ad /b /s') do (
|
|
9
|
-
rem Check if the directory name contains node_modules
|
|
10
|
-
echo %%d | findstr /i /c:"\node_modules" >nul
|
|
11
|
-
echo %%d | findstr /i /c:"\.git" >nul
|
|
12
|
-
if errorlevel 1 (
|
|
13
|
-
rem If not, list the directory contents
|
|
14
|
-
dir "%%d"
|
|
15
|
-
)
|
|
1
|
+
@echo off
|
|
2
|
+
setlocal enabledelayedexpansion
|
|
3
|
+
|
|
4
|
+
rem Define the root directory
|
|
5
|
+
set "root=C:\Users\ROSME\Documents\GitHub\easywork-common-lib"
|
|
6
|
+
|
|
7
|
+
rem Iterate through all directories and subdirectories
|
|
8
|
+
for /f "delims=" %%d in ('dir "%root%" /ad /b /s') do (
|
|
9
|
+
rem Check if the directory name contains node_modules
|
|
10
|
+
echo %%d | findstr /i /c:"\node_modules" >nul
|
|
11
|
+
echo %%d | findstr /i /c:"\.git" >nul
|
|
12
|
+
if errorlevel 1 (
|
|
13
|
+
rem If not, list the directory contents
|
|
14
|
+
dir "%%d"
|
|
15
|
+
)
|
|
16
16
|
)
|
package/tsconfig.build.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"exclude": ["node_modules", "test", "dist", "**/*spec.ts", "eslint.config.js"]
|
|
4
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"exclude": ["node_modules", "test", "dist", "**/*spec.ts", "eslint.config.js"]
|
|
4
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@rubiin/tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"removeComments": true,
|
|
7
|
-
"emitDecoratorMetadata": true,
|
|
8
|
-
"experimentalDecorators": true,
|
|
9
|
-
"allowSyntheticDefaultImports": true,
|
|
10
|
-
"target": "ES2022",
|
|
11
|
-
"sourceMap": true,
|
|
12
|
-
"outDir": "./dist",
|
|
13
|
-
"rootDir": "./src",
|
|
14
|
-
"baseUrl": "./src",
|
|
15
|
-
"incremental": true,
|
|
16
|
-
"strict": true,
|
|
17
|
-
"skipLibCheck": true,
|
|
18
|
-
"strictNullChecks": false,
|
|
19
|
-
"noImplicitAny": false,
|
|
20
|
-
"strictBindCallApply": false,
|
|
21
|
-
"forceConsistentCasingInFileNames": true,
|
|
22
|
-
"noFallthroughCasesInSwitch": false
|
|
23
|
-
},
|
|
24
|
-
"include": ["test/**/*", "src/**/*", "eslint.config.js"],
|
|
25
|
-
"typeRoots": ["./src/common/@types/typings"]
|
|
26
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "@rubiin/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"removeComments": true,
|
|
7
|
+
"emitDecoratorMetadata": true,
|
|
8
|
+
"experimentalDecorators": true,
|
|
9
|
+
"allowSyntheticDefaultImports": true,
|
|
10
|
+
"target": "ES2022",
|
|
11
|
+
"sourceMap": true,
|
|
12
|
+
"outDir": "./dist",
|
|
13
|
+
"rootDir": "./src",
|
|
14
|
+
"baseUrl": "./src",
|
|
15
|
+
"incremental": true,
|
|
16
|
+
"strict": true,
|
|
17
|
+
"skipLibCheck": true,
|
|
18
|
+
"strictNullChecks": false,
|
|
19
|
+
"noImplicitAny": false,
|
|
20
|
+
"strictBindCallApply": false,
|
|
21
|
+
"forceConsistentCasingInFileNames": true,
|
|
22
|
+
"noFallthroughCasesInSwitch": false
|
|
23
|
+
},
|
|
24
|
+
"include": ["test/**/*", "src/**/*", "eslint.config.js"],
|
|
25
|
+
"typeRoots": ["./src/common/@types/typings"]
|
|
26
|
+
}
|