ad2app-lib 1.0.8 → 1.0.11
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/types/I_User.d.ts +13 -2
- package/dist/types/I_User.js +30 -2
- package/package.json +1 -1
- package/src/types/I_User.ts +20 -2
package/dist/types/I_User.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ export declare class I_User {
|
|
|
3
3
|
id: string;
|
|
4
4
|
email?: string;
|
|
5
5
|
password?: string;
|
|
6
|
+
contact_email?: string;
|
|
7
|
+
first_name?: string;
|
|
8
|
+
last_name?: string;
|
|
9
|
+
display_name?: string;
|
|
6
10
|
role: UserRoles;
|
|
7
11
|
has_connected_platforms?: boolean;
|
|
8
12
|
influencer?: I_Influencer;
|
|
@@ -18,15 +22,22 @@ export declare enum UserRoles {
|
|
|
18
22
|
export declare class I_UserCreateDTO {
|
|
19
23
|
password: string;
|
|
20
24
|
email: string;
|
|
25
|
+
contact_email: string;
|
|
26
|
+
first_name: string;
|
|
27
|
+
last_name: string;
|
|
28
|
+
display_name: string;
|
|
21
29
|
}
|
|
22
30
|
export declare class I_UserSignInDTO {
|
|
23
31
|
password: string;
|
|
24
32
|
email: string;
|
|
25
33
|
}
|
|
26
34
|
export declare class I_UserSignUpDTO {
|
|
27
|
-
username: string;
|
|
28
|
-
password: string;
|
|
29
35
|
email: string;
|
|
36
|
+
password: string;
|
|
37
|
+
contact_email: string;
|
|
38
|
+
first_name: string;
|
|
39
|
+
last_name: string;
|
|
40
|
+
display_name: string;
|
|
30
41
|
}
|
|
31
42
|
export declare class I_UserFindOneDTO {
|
|
32
43
|
email: string;
|
package/dist/types/I_User.js
CHANGED
|
@@ -34,6 +34,22 @@ __decorate([
|
|
|
34
34
|
(0, class_validator_1.IsNotEmpty)(),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], I_UserCreateDTO.prototype, "email", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], I_UserCreateDTO.prototype, "contact_email", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], I_UserCreateDTO.prototype, "first_name", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], I_UserCreateDTO.prototype, "last_name", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], I_UserCreateDTO.prototype, "display_name", void 0);
|
|
37
53
|
class I_UserSignInDTO {
|
|
38
54
|
}
|
|
39
55
|
exports.I_UserSignInDTO = I_UserSignInDTO;
|
|
@@ -51,7 +67,7 @@ exports.I_UserSignUpDTO = I_UserSignUpDTO;
|
|
|
51
67
|
__decorate([
|
|
52
68
|
(0, class_validator_1.IsNotEmpty)(),
|
|
53
69
|
__metadata("design:type", String)
|
|
54
|
-
], I_UserSignUpDTO.prototype, "
|
|
70
|
+
], I_UserSignUpDTO.prototype, "email", void 0);
|
|
55
71
|
__decorate([
|
|
56
72
|
(0, class_validator_1.IsNotEmpty)(),
|
|
57
73
|
__metadata("design:type", String)
|
|
@@ -59,7 +75,19 @@ __decorate([
|
|
|
59
75
|
__decorate([
|
|
60
76
|
(0, class_validator_1.IsNotEmpty)(),
|
|
61
77
|
__metadata("design:type", String)
|
|
62
|
-
], I_UserSignUpDTO.prototype, "
|
|
78
|
+
], I_UserSignUpDTO.prototype, "contact_email", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], I_UserSignUpDTO.prototype, "first_name", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], I_UserSignUpDTO.prototype, "last_name", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], I_UserSignUpDTO.prototype, "display_name", void 0);
|
|
63
91
|
class I_UserFindOneDTO {
|
|
64
92
|
}
|
|
65
93
|
exports.I_UserFindOneDTO = I_UserFindOneDTO;
|
package/package.json
CHANGED
package/src/types/I_User.ts
CHANGED
|
@@ -5,6 +5,9 @@ export class I_User {
|
|
|
5
5
|
id: string;
|
|
6
6
|
email?: string;
|
|
7
7
|
password?: string;
|
|
8
|
+
first_name?: string;
|
|
9
|
+
last_name?: string;
|
|
10
|
+
display_name?: string;
|
|
8
11
|
role: UserRoles;
|
|
9
12
|
has_connected_platforms?: boolean;
|
|
10
13
|
influencer?: I_Influencer;
|
|
@@ -26,6 +29,15 @@ export class I_UserCreateDTO {
|
|
|
26
29
|
|
|
27
30
|
@IsNotEmpty()
|
|
28
31
|
email: string;
|
|
32
|
+
|
|
33
|
+
@IsNotEmpty()
|
|
34
|
+
first_name: string;
|
|
35
|
+
|
|
36
|
+
@IsNotEmpty()
|
|
37
|
+
last_name: string;
|
|
38
|
+
|
|
39
|
+
@IsNotEmpty()
|
|
40
|
+
display_name: string;
|
|
29
41
|
}
|
|
30
42
|
|
|
31
43
|
export class I_UserSignInDTO {
|
|
@@ -38,13 +50,19 @@ export class I_UserSignInDTO {
|
|
|
38
50
|
|
|
39
51
|
export class I_UserSignUpDTO {
|
|
40
52
|
@IsNotEmpty()
|
|
41
|
-
|
|
53
|
+
email: string;
|
|
42
54
|
|
|
43
55
|
@IsNotEmpty()
|
|
44
56
|
password: string;
|
|
45
57
|
|
|
46
58
|
@IsNotEmpty()
|
|
47
|
-
|
|
59
|
+
first_name: string;
|
|
60
|
+
|
|
61
|
+
@IsNotEmpty()
|
|
62
|
+
last_name: string;
|
|
63
|
+
|
|
64
|
+
@IsNotEmpty()
|
|
65
|
+
display_name: string;
|
|
48
66
|
}
|
|
49
67
|
|
|
50
68
|
export class I_UserFindOneDTO {
|