easywork-common-lib 1.0.505 → 1.0.507
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/constants/app.contants.d.ts +1 -0
- package/dist/common/constants/app.contants.js +29 -28
- package/dist/common/constants/app.contants.js.map +1 -1
- package/dist/entities/user.entity.d.ts +1 -1
- package/dist/entities/user.entity.js +59 -23
- package/dist/entities/user.entity.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const LEAD_STAGE_INITIAL = "a233b765-d97b-43b8-8b6a-46727d97c844";
|
|
2
2
|
export declare const LEAD_STAGE_CANCELED = "6a6cef5c-2530-407c-8d66-9030f5334551";
|
|
3
3
|
export declare const LEAD_STAGE_POSITIVE = "46b04e7a-3775-4a00-abfa-c195d7e17b81";
|
|
4
|
+
export declare const CLIENT_ROLE_ID = "93cc894d-0674-4960-b143-5d42ea904d50";
|
|
4
5
|
export declare const DRIVE_LEADS_DOCUMENTS_PARTENT_FOLDER = "a68f36f9-7a47-43ea-99ce-ec40d5e61d87";
|
|
5
6
|
export declare const DRIVE_CONTACT_DOCUMENTS_PARTENT_FOLDER = "29168645-1bc0-40a1-9879-69fbbc62c04e";
|
|
6
7
|
export declare const DRIVE_TEMP_FOLDER = "6cc775ef-3616-4ffe-bfc9-755c453a4775";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CONTACTS_DOCUMENTS_FOLDERS = exports.CLIENTS_POLIZA_FOLDERS = exports.CLIENT_DOCUMENTS_FOLDERS = exports.APP_UDIS_CURRENCY = exports.APP_USD_CURRENCY = exports.APP_MXN_CURRENCY = exports.RECEIPT_STAGE_CANCELLED = exports.RECEIPT_STAGE_PAID = exports.DRIVE_CONTACT_PROFILES_IMAGES_PARTENT_FOLDER = exports.DRIVE_TEMP_FOLDER = exports.DRIVE_CONTACT_DOCUMENTS_PARTENT_FOLDER = exports.DRIVE_LEADS_DOCUMENTS_PARTENT_FOLDER = exports.LEAD_STAGE_POSITIVE = exports.LEAD_STAGE_CANCELED = exports.LEAD_STAGE_INITIAL = void 0;
|
|
3
|
+
exports.CONTACTS_DOCUMENTS_FOLDERS = exports.CLIENTS_POLIZA_FOLDERS = exports.CLIENT_DOCUMENTS_FOLDERS = exports.APP_UDIS_CURRENCY = exports.APP_USD_CURRENCY = exports.APP_MXN_CURRENCY = exports.RECEIPT_STAGE_CANCELLED = exports.RECEIPT_STAGE_PAID = exports.DRIVE_CONTACT_PROFILES_IMAGES_PARTENT_FOLDER = exports.DRIVE_TEMP_FOLDER = exports.DRIVE_CONTACT_DOCUMENTS_PARTENT_FOLDER = exports.DRIVE_LEADS_DOCUMENTS_PARTENT_FOLDER = exports.CLIENT_ROLE_ID = exports.LEAD_STAGE_POSITIVE = exports.LEAD_STAGE_CANCELED = exports.LEAD_STAGE_INITIAL = void 0;
|
|
4
4
|
exports.LEAD_STAGE_INITIAL = "a233b765-d97b-43b8-8b6a-46727d97c844";
|
|
5
5
|
exports.LEAD_STAGE_CANCELED = "6a6cef5c-2530-407c-8d66-9030f5334551";
|
|
6
6
|
exports.LEAD_STAGE_POSITIVE = "46b04e7a-3775-4a00-abfa-c195d7e17b81";
|
|
7
|
+
exports.CLIENT_ROLE_ID = "93cc894d-0674-4960-b143-5d42ea904d50";
|
|
7
8
|
exports.DRIVE_LEADS_DOCUMENTS_PARTENT_FOLDER = "a68f36f9-7a47-43ea-99ce-ec40d5e61d87";
|
|
8
9
|
exports.DRIVE_CONTACT_DOCUMENTS_PARTENT_FOLDER = "29168645-1bc0-40a1-9879-69fbbc62c04e";
|
|
9
10
|
exports.DRIVE_TEMP_FOLDER = "6cc775ef-3616-4ffe-bfc9-755c453a4775";
|
|
@@ -17,39 +18,39 @@ exports.CLIENT_DOCUMENTS_FOLDERS = [
|
|
|
17
18
|
{
|
|
18
19
|
name: "Documentos del cliente: RFC, IFE, Comprobantes de domicilio",
|
|
19
20
|
metadata: {
|
|
20
|
-
fid: "clidoc"
|
|
21
|
-
}
|
|
21
|
+
fid: "clidoc",
|
|
22
|
+
},
|
|
22
23
|
},
|
|
23
24
|
{
|
|
24
25
|
name: "Cotizaciones",
|
|
25
26
|
metadata: {
|
|
26
|
-
fid: "cliquote"
|
|
27
|
-
}
|
|
27
|
+
fid: "cliquote",
|
|
28
|
+
},
|
|
28
29
|
},
|
|
29
30
|
{
|
|
30
31
|
name: "Propuesta comercial",
|
|
31
32
|
metadata: {
|
|
32
|
-
fid: "cliprop"
|
|
33
|
-
}
|
|
33
|
+
fid: "cliprop",
|
|
34
|
+
},
|
|
34
35
|
},
|
|
35
36
|
{
|
|
36
37
|
name: "Solicitudes",
|
|
37
38
|
metadata: {
|
|
38
|
-
fid: "clisol"
|
|
39
|
-
}
|
|
39
|
+
fid: "clisol",
|
|
40
|
+
},
|
|
40
41
|
},
|
|
41
42
|
{
|
|
42
43
|
name: "Póliza",
|
|
43
44
|
metadata: {
|
|
44
|
-
fid: "clipoliza"
|
|
45
|
-
}
|
|
45
|
+
fid: "clipoliza",
|
|
46
|
+
},
|
|
46
47
|
},
|
|
47
48
|
{
|
|
48
49
|
name: "Informacion Médica",
|
|
49
50
|
metadata: {
|
|
50
|
-
fid: "climed"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
51
|
+
fid: "climed",
|
|
52
|
+
},
|
|
53
|
+
},
|
|
53
54
|
];
|
|
54
55
|
exports.CLIENTS_POLIZA_FOLDERS = {
|
|
55
56
|
VIDA: {
|
|
@@ -68,14 +69,14 @@ exports.CLIENTS_POLIZA_FOLDERS = {
|
|
|
68
69
|
{ name: "Formatos" },
|
|
69
70
|
{ name: "Programaciones" },
|
|
70
71
|
{ name: "Facturas" },
|
|
71
|
-
{ name: "Otros Documentos" }
|
|
72
|
-
]
|
|
72
|
+
{ name: "Otros Documentos" },
|
|
73
|
+
],
|
|
73
74
|
},
|
|
74
75
|
GMM: {
|
|
75
76
|
name: "GMM",
|
|
76
77
|
metadata: {
|
|
77
78
|
fid: "cligmm",
|
|
78
|
-
tid: "01072927-e48a-4fd0-9b06-5288ff7bc23d"
|
|
79
|
+
tid: "01072927-e48a-4fd0-9b06-5288ff7bc23d",
|
|
79
80
|
},
|
|
80
81
|
subFolders: [
|
|
81
82
|
{ name: "Pagos Recibos" },
|
|
@@ -87,14 +88,14 @@ exports.CLIENTS_POLIZA_FOLDERS = {
|
|
|
87
88
|
{ name: "Formatos" },
|
|
88
89
|
{ name: "Programaciones" },
|
|
89
90
|
{ name: "Facturas" },
|
|
90
|
-
{ name: "Otros Documentos" }
|
|
91
|
-
]
|
|
91
|
+
{ name: "Otros Documentos" },
|
|
92
|
+
],
|
|
92
93
|
},
|
|
93
94
|
AUTOS: {
|
|
94
95
|
name: "AUTOS",
|
|
95
96
|
metadata: {
|
|
96
97
|
fid: "cliautos",
|
|
97
|
-
tid: "e4e2f26f-8199-4e82-97f0-bdf1a6b6701c"
|
|
98
|
+
tid: "e4e2f26f-8199-4e82-97f0-bdf1a6b6701c",
|
|
98
99
|
},
|
|
99
100
|
subFolders: [
|
|
100
101
|
{ name: "Pagos Recibos" },
|
|
@@ -103,8 +104,8 @@ exports.CLIENTS_POLIZA_FOLDERS = {
|
|
|
103
104
|
{ name: "Versiones" },
|
|
104
105
|
{ name: "Comisiones" },
|
|
105
106
|
{ name: "Otros formatos" },
|
|
106
|
-
{ name: "Facturas" }
|
|
107
|
-
]
|
|
107
|
+
{ name: "Facturas" },
|
|
108
|
+
],
|
|
108
109
|
},
|
|
109
110
|
DANOS: {
|
|
110
111
|
name: "DANOS",
|
|
@@ -122,8 +123,8 @@ exports.CLIENTS_POLIZA_FOLDERS = {
|
|
|
122
123
|
{ name: "Formatos" },
|
|
123
124
|
{ name: "Programaciones" },
|
|
124
125
|
{ name: "Facturas" },
|
|
125
|
-
{ name: "Otros Documentos" }
|
|
126
|
-
]
|
|
126
|
+
{ name: "Otros Documentos" },
|
|
127
|
+
],
|
|
127
128
|
},
|
|
128
129
|
SALUD: {
|
|
129
130
|
name: "SALUD",
|
|
@@ -141,8 +142,8 @@ exports.CLIENTS_POLIZA_FOLDERS = {
|
|
|
141
142
|
{ name: "Formatos" },
|
|
142
143
|
{ name: "Programaciones" },
|
|
143
144
|
{ name: "Facturas" },
|
|
144
|
-
{ name: "Otros Documentos" }
|
|
145
|
-
]
|
|
145
|
+
{ name: "Otros Documentos" },
|
|
146
|
+
],
|
|
146
147
|
},
|
|
147
148
|
DIVERSOS: {
|
|
148
149
|
name: "DIVERSOS",
|
|
@@ -160,8 +161,8 @@ exports.CLIENTS_POLIZA_FOLDERS = {
|
|
|
160
161
|
{ name: "Formatos" },
|
|
161
162
|
{ name: "Programaciones" },
|
|
162
163
|
{ name: "Facturas" },
|
|
163
|
-
{ name: "Otros Documentos" }
|
|
164
|
-
]
|
|
164
|
+
{ name: "Otros Documentos" },
|
|
165
|
+
],
|
|
165
166
|
},
|
|
166
167
|
};
|
|
167
168
|
exports.CONTACTS_DOCUMENTS_FOLDERS = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.contants.js","sourceRoot":"","sources":["../../../src/common/constants/app.contants.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,sCAAsC,CAAC;AAC5D,QAAA,mBAAmB,GAAG,sCAAsC,CAAC;AAC7D,QAAA,mBAAmB,GAAG,sCAAsC,CAAC;AAE7D,QAAA,
|
|
1
|
+
{"version":3,"file":"app.contants.js","sourceRoot":"","sources":["../../../src/common/constants/app.contants.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,sCAAsC,CAAC;AAC5D,QAAA,mBAAmB,GAAG,sCAAsC,CAAC;AAC7D,QAAA,mBAAmB,GAAG,sCAAsC,CAAC;AAE7D,QAAA,cAAc,GAAG,sCAAsC,CAAC;AAExD,QAAA,oCAAoC,GAC/C,sCAAsC,CAA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,EAAE,UAAU,EAAE;YACpB,EAAE,IAAI,EAAE,gBAAgB,EAAE;YAC1B,EAAE,IAAI,EAAE,UAAU,EAAE;YACpB,EAAE,IAAI,EAAE,kBAAkB,EAAE;SAC7B;KACF;CACF,CAAC;AAEW,QAAA,0BAA0B,GAAG;IACxC,qBAAqB;IACrB,wCAAwC;IACxC,oCAAoC;IACpC,6CAA6C;IAC7C,kCAAkC;IAClC,qDAAqD;IACrD,WAAW;IACX,gBAAgB;IAChB,oBAAoB;IACpB,YAAY;IACZ,YAAY;IACZ,gBAAgB;IAChB,SAAS;IACT,sDAAsD;IACtD,kCAAkC;IAClC,yBAAyB;IACzB,kCAAkC;IAClC,6BAA6B;IAC7B,QAAQ;IACR,WAAW;IACX,6DAA6D;IAC7D,uBAAuB;CACxB,CAAC"}
|
|
@@ -41,74 +41,98 @@ let User = class User extends base_entity_1.EntityBase {
|
|
|
41
41
|
menuPermissions;
|
|
42
42
|
cua;
|
|
43
43
|
get name() {
|
|
44
|
-
return `${this.profile?.firstName ??
|
|
44
|
+
return `${this.profile?.firstName ?? ""} ${this.profile?.lastName ?? ""}`.trim();
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
exports.User = User;
|
|
48
48
|
__decorate([
|
|
49
|
-
(0, swagger_1.ApiProperty)({ type: String, description:
|
|
49
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Unique username" }),
|
|
50
50
|
(0, typeorm_1.Column)({ unique: true }),
|
|
51
51
|
__metadata("design:type", String)
|
|
52
52
|
], User.prototype, "username", void 0);
|
|
53
53
|
__decorate([
|
|
54
|
-
(0, swagger_1.ApiProperty)({ type: String, description:
|
|
54
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Unique email address" }),
|
|
55
55
|
(0, typeorm_1.Column)({ unique: true }),
|
|
56
56
|
__metadata("design:type", String)
|
|
57
57
|
], User.prototype, "email", void 0);
|
|
58
58
|
__decorate([
|
|
59
|
-
(0, swagger_1.ApiProperty)({ type: String, description:
|
|
60
|
-
(0, typeorm_1.Column)({ type: "text" }),
|
|
59
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "User bio", nullable: true }),
|
|
60
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
61
61
|
__metadata("design:type", String)
|
|
62
62
|
], User.prototype, "bio", void 0);
|
|
63
63
|
__decorate([
|
|
64
|
-
(0, swagger_1.ApiProperty)({ type: String, description:
|
|
64
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "User avatar URL" }),
|
|
65
65
|
(0, typeorm_1.Column)({ type: "text" }),
|
|
66
66
|
__metadata("design:type", String)
|
|
67
67
|
], User.prototype, "avatar", void 0);
|
|
68
68
|
__decorate([
|
|
69
69
|
(0, class_transformer_1.Exclude)(),
|
|
70
|
-
(0, swagger_1.ApiProperty)({ type: String, description:
|
|
70
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Password hash", writeOnly: true }),
|
|
71
71
|
(0, typeorm_1.Column)({ type: "text" }),
|
|
72
72
|
__metadata("design:type", String)
|
|
73
73
|
], User.prototype, "hash", void 0);
|
|
74
74
|
__decorate([
|
|
75
75
|
(0, class_transformer_1.Exclude)(),
|
|
76
|
-
(0, swagger_1.ApiProperty)({
|
|
76
|
+
(0, swagger_1.ApiProperty)({
|
|
77
|
+
type: String,
|
|
78
|
+
description: "Two-factor authentication secret",
|
|
79
|
+
required: false,
|
|
80
|
+
writeOnly: true,
|
|
81
|
+
}),
|
|
77
82
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
78
83
|
__metadata("design:type", String)
|
|
79
84
|
], User.prototype, "twoFactorSecret", void 0);
|
|
80
85
|
__decorate([
|
|
81
|
-
(0, swagger_1.ApiProperty)({
|
|
86
|
+
(0, swagger_1.ApiProperty)({
|
|
87
|
+
type: Boolean,
|
|
88
|
+
description: "Is two-factor authentication enabled",
|
|
89
|
+
default: false,
|
|
90
|
+
}),
|
|
82
91
|
(0, typeorm_1.Column)({ default: false }),
|
|
83
92
|
__metadata("design:type", Boolean)
|
|
84
93
|
], User.prototype, "isTwoFactorEnabled", void 0);
|
|
85
94
|
__decorate([
|
|
86
|
-
(0, swagger_1.ApiProperty)({
|
|
95
|
+
(0, swagger_1.ApiProperty)({
|
|
96
|
+
type: String,
|
|
97
|
+
description: "User phone number",
|
|
98
|
+
required: false,
|
|
99
|
+
}),
|
|
87
100
|
(0, typeorm_1.Column)({ unique: true }),
|
|
88
101
|
__metadata("design:type", String)
|
|
89
102
|
], User.prototype, "phone", void 0);
|
|
90
103
|
__decorate([
|
|
91
|
-
(0, swagger_1.ApiProperty)({
|
|
104
|
+
(0, swagger_1.ApiProperty)({
|
|
105
|
+
type: Boolean,
|
|
106
|
+
description: "Is user verified",
|
|
107
|
+
default: false,
|
|
108
|
+
}),
|
|
92
109
|
(0, typeorm_1.Column)({ default: false }),
|
|
93
110
|
__metadata("design:type", Boolean)
|
|
94
111
|
], User.prototype, "isVerified", void 0);
|
|
95
112
|
__decorate([
|
|
96
|
-
(0, swagger_1.ApiProperty)({
|
|
113
|
+
(0, swagger_1.ApiProperty)({
|
|
114
|
+
type: Date,
|
|
115
|
+
description: "Last login timestamp",
|
|
116
|
+
required: false,
|
|
117
|
+
}),
|
|
97
118
|
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
98
119
|
__metadata("design:type", Date)
|
|
99
120
|
], User.prototype, "lastLogin", void 0);
|
|
100
121
|
__decorate([
|
|
101
|
-
(0, swagger_1.ApiProperty)({ type: () => profile_entity_1.Profile, description:
|
|
122
|
+
(0, swagger_1.ApiProperty)({ type: () => profile_entity_1.Profile, description: "User profile" }),
|
|
102
123
|
(0, typeorm_1.OneToOne)(() => profile_entity_1.Profile, {
|
|
103
124
|
onDelete: "CASCADE",
|
|
104
125
|
onUpdate: "CASCADE",
|
|
105
|
-
eager: true
|
|
126
|
+
eager: true,
|
|
106
127
|
}),
|
|
107
128
|
(0, typeorm_1.JoinColumn)(),
|
|
108
129
|
__metadata("design:type", profile_entity_1.Profile)
|
|
109
130
|
], User.prototype, "profile", void 0);
|
|
110
131
|
__decorate([
|
|
111
|
-
(0, swagger_1.ApiProperty)({
|
|
132
|
+
(0, swagger_1.ApiProperty)({
|
|
133
|
+
type: () => [role_entity_1.Role],
|
|
134
|
+
description: "Roles assigned to the user",
|
|
135
|
+
}),
|
|
112
136
|
(0, typeorm_1.ManyToMany)(() => role_entity_1.Role, {
|
|
113
137
|
onDelete: "CASCADE",
|
|
114
138
|
onUpdate: "CASCADE",
|
|
@@ -117,22 +141,34 @@ __decorate([
|
|
|
117
141
|
__metadata("design:type", Array)
|
|
118
142
|
], User.prototype, "roles", void 0);
|
|
119
143
|
__decorate([
|
|
120
|
-
(0, swagger_1.ApiProperty)({
|
|
144
|
+
(0, swagger_1.ApiProperty)({
|
|
145
|
+
type: () => [tag_entity_1.Tag],
|
|
146
|
+
description: "Tags associated with the user",
|
|
147
|
+
}),
|
|
121
148
|
(0, typeorm_1.OneToMany)(() => tag_entity_1.Tag, (tag) => tag.user),
|
|
122
149
|
__metadata("design:type", Array)
|
|
123
150
|
], User.prototype, "tags", void 0);
|
|
124
151
|
__decorate([
|
|
125
|
-
(0, swagger_1.ApiProperty)({
|
|
152
|
+
(0, swagger_1.ApiProperty)({
|
|
153
|
+
type: () => [push_token_entity_1.PushToken],
|
|
154
|
+
description: "Push tokens associated with the user",
|
|
155
|
+
}),
|
|
126
156
|
(0, typeorm_1.OneToMany)(() => push_token_entity_1.PushToken, (pushToken) => pushToken.user),
|
|
127
157
|
__metadata("design:type", Array)
|
|
128
158
|
], User.prototype, "pushTokens", void 0);
|
|
129
159
|
__decorate([
|
|
130
|
-
(0, swagger_1.ApiProperty)({
|
|
160
|
+
(0, swagger_1.ApiProperty)({
|
|
161
|
+
type: () => [user_email_relation_entity_1.UserEmailRelation],
|
|
162
|
+
description: "Email relations associated with the user",
|
|
163
|
+
}),
|
|
131
164
|
(0, typeorm_1.OneToMany)(() => user_email_relation_entity_1.UserEmailRelation, (relation) => relation.user),
|
|
132
165
|
__metadata("design:type", Array)
|
|
133
166
|
], User.prototype, "emailRelations", void 0);
|
|
134
167
|
__decorate([
|
|
135
|
-
(0, swagger_1.ApiProperty)({
|
|
168
|
+
(0, swagger_1.ApiProperty)({
|
|
169
|
+
type: () => [group_entity_1.Group],
|
|
170
|
+
description: "Groups assigned to the user",
|
|
171
|
+
}),
|
|
136
172
|
(0, typeorm_1.ManyToMany)(() => group_entity_1.Group, (group) => group.users, {
|
|
137
173
|
onDelete: "CASCADE",
|
|
138
174
|
onUpdate: "CASCADE",
|
|
@@ -141,22 +177,22 @@ __decorate([
|
|
|
141
177
|
__metadata("design:type", Array)
|
|
142
178
|
], User.prototype, "groups", void 0);
|
|
143
179
|
__decorate([
|
|
144
|
-
(0, swagger_1.ApiProperty)({ type: () => menu_permissions_entity_1.MenuPermissions, description:
|
|
180
|
+
(0, swagger_1.ApiProperty)({ type: () => menu_permissions_entity_1.MenuPermissions, description: "Menu Permissions" }),
|
|
145
181
|
(0, typeorm_1.OneToOne)(() => menu_permissions_entity_1.MenuPermissions, {
|
|
146
182
|
onDelete: "CASCADE",
|
|
147
183
|
onUpdate: "CASCADE",
|
|
148
|
-
eager: true
|
|
184
|
+
eager: true,
|
|
149
185
|
}),
|
|
150
186
|
(0, typeorm_1.JoinColumn)(),
|
|
151
187
|
__metadata("design:type", menu_permissions_entity_1.MenuPermissions)
|
|
152
188
|
], User.prototype, "menuPermissions", void 0);
|
|
153
189
|
__decorate([
|
|
154
|
-
(0, swagger_1.ApiProperty)({ type: String, description:
|
|
190
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "CUA", required: false }),
|
|
155
191
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
156
192
|
__metadata("design:type", String)
|
|
157
193
|
], User.prototype, "cua", void 0);
|
|
158
194
|
__decorate([
|
|
159
|
-
(0, swagger_1.ApiProperty)({ type: String, description:
|
|
195
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Full name of the user" }),
|
|
160
196
|
__metadata("design:type", String),
|
|
161
197
|
__metadata("design:paramtypes", [])
|
|
162
198
|
], User.prototype, "name", null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAA4D;AAC5D,
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAA4D;AAC5D,qCAQiB;AACjB,yDAA4C;AAC5C,qDAA2C;AAC3C,+CAAqC;AACrC,6CAAmC;AACnC,wFAA4E;AAC5E,yEAA8D;AAC9D,6CAA8C;AAC9C,iDAAuC;AACvC,uEAA4D;AAGrD,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,wBAAU;IAGlC,QAAQ,CAAU;IAIlB,KAAK,CAAU;IAIf,GAAG,CAAU;IAIb,MAAM,CAAU;IAKhB,IAAI,CAAU;IAUd,eAAe,CAAU;IAQzB,kBAAkB,CAAW;IAQ7B,KAAK,CAAU;IAQf,UAAU,CAAW;IAQrB,SAAS,CAAQ;IASjB,OAAO,CAAU;IAWjB,KAAK,CAAU;IAOf,IAAI,CAAQ;IAOZ,UAAU,CAAc;IAOxB,cAAc,CAAsB;IAWpC,MAAM,CAAW;IASjB,eAAe,CAAkB;IAIjC,GAAG,CAAS;IAEZ,IACI,IAAI;QACN,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,SAAS,IAAI,EAAE,IACrC,IAAI,CAAC,OAAO,EAAE,QAAQ,IAAI,EAC5B,EAAE,CAAC,IAAI,EAAE,CAAC;IACZ,CAAC;CACF,CAAA;AAvIY,oBAAI;AAGf;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;IAC7D,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;sCACP;AAIlB;IAFC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