portfolio-types 6.0.0 → 7.1.0
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/lib/index.d.ts +15 -22
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -10,43 +10,38 @@ export interface PortfolioAuthor {
|
|
|
10
10
|
id: string;
|
|
11
11
|
username: string;
|
|
12
12
|
}
|
|
13
|
-
export interface PortfolioFile extends Viewable, Omit<PortfolioBaseEntity, 'visibility' | 'position'> {
|
|
13
|
+
export interface PortfolioFile extends Ownable, Viewable, Omit<PortfolioBaseEntity, 'visibility' | 'position'> {
|
|
14
14
|
originalName: string;
|
|
15
15
|
downloadUrl: string;
|
|
16
16
|
mimeType: string;
|
|
17
17
|
size: number;
|
|
18
18
|
}
|
|
19
19
|
export type PortfolioFileList = Array<PortfolioFile>;
|
|
20
|
-
export interface PortfolioYourLanguage extends Viewable, Omit<PortfolioBaseEntity, 'visibility' | 'position'>, Colorable {
|
|
20
|
+
export interface PortfolioYourLanguage extends Ownable, Viewable, Omit<PortfolioBaseEntity, 'visibility' | 'position'>, Colorable {
|
|
21
21
|
level: string;
|
|
22
|
-
author: PortfolioAuthor;
|
|
23
22
|
}
|
|
24
23
|
export type PortfolioYourLanguageList = Array<PortfolioYourLanguage>;
|
|
25
|
-
export interface PortfolioTool extends Viewable, Omit<PortfolioBaseEntity, 'visibility' | 'position'>, Colorable {
|
|
24
|
+
export interface PortfolioTool extends Ownable, Viewable, Omit<PortfolioBaseEntity, 'visibility' | 'position'>, Colorable {
|
|
26
25
|
file: PortfolioFile;
|
|
27
|
-
author: PortfolioAuthor;
|
|
28
26
|
}
|
|
29
27
|
export type PortfolioToolList = Array<PortfolioTool>;
|
|
30
|
-
export interface PortfolioSkillCategory extends Viewable, Omit<PortfolioBaseEntity, 'visibility' | 'position'>, Colorable {
|
|
31
|
-
author: PortfolioAuthor;
|
|
28
|
+
export interface PortfolioSkillCategory extends Ownable, Viewable, Omit<PortfolioBaseEntity, 'visibility' | 'position'>, Colorable {
|
|
32
29
|
}
|
|
33
30
|
export type PortfolioSkillCategoryList = Array<PortfolioSkillCategory>;
|
|
34
|
-
export interface PortfolioSocial extends Viewable, PortfolioBaseEntity {
|
|
31
|
+
export interface PortfolioSocial extends Ownable, Viewable, PortfolioBaseEntity {
|
|
35
32
|
url: string;
|
|
36
33
|
file: PortfolioFile;
|
|
37
|
-
author: PortfolioAuthor;
|
|
38
34
|
}
|
|
39
35
|
export type PortfolioSocialList = Array<PortfolioSocial>;
|
|
40
|
-
export interface PortfolioSkill extends Viewable, PortfolioBaseEntity, Colorable {
|
|
36
|
+
export interface PortfolioSkill extends Ownable, Viewable, PortfolioBaseEntity, Colorable {
|
|
41
37
|
/** Proficiency level as an integer from 0 to 100. */
|
|
42
38
|
level: number;
|
|
43
39
|
categoryList: PortfolioSkillCategoryList;
|
|
44
40
|
tool: PortfolioTool | null;
|
|
45
41
|
isPrimary: boolean;
|
|
46
|
-
author: PortfolioAuthor;
|
|
47
42
|
}
|
|
48
43
|
export type PortfolioSkillList = Array<PortfolioSkill>;
|
|
49
|
-
export interface PortfolioProject extends Viewable, PortfolioBaseEntity {
|
|
44
|
+
export interface PortfolioProject extends Ownable, Viewable, PortfolioBaseEntity {
|
|
50
45
|
description: string;
|
|
51
46
|
releasedAt: string;
|
|
52
47
|
tool: PortfolioTool | null;
|
|
@@ -54,21 +49,18 @@ export interface PortfolioProject extends Viewable, PortfolioBaseEntity {
|
|
|
54
49
|
files: PortfolioFileList;
|
|
55
50
|
demoUrl: string | null;
|
|
56
51
|
repositoryUrl: string | null;
|
|
57
|
-
author: PortfolioAuthor;
|
|
58
52
|
}
|
|
59
53
|
export type PortfolioProjectList = Array<PortfolioProject>;
|
|
60
|
-
export interface PortfolioCertificate extends Viewable, PortfolioBaseEntity {
|
|
54
|
+
export interface PortfolioCertificate extends Ownable, Viewable, PortfolioBaseEntity {
|
|
61
55
|
issuedAt: string;
|
|
62
56
|
file: PortfolioFile;
|
|
63
|
-
author: PortfolioAuthor;
|
|
64
57
|
}
|
|
65
58
|
export type PortfolioCertificateList = Array<PortfolioCertificate>;
|
|
66
|
-
export interface PortfolioDocument extends Viewable, PortfolioBaseEntity {
|
|
59
|
+
export interface PortfolioDocument extends Ownable, Viewable, PortfolioBaseEntity {
|
|
67
60
|
language: string;
|
|
68
|
-
author: PortfolioAuthor;
|
|
69
61
|
}
|
|
70
62
|
export type PortfolioDocumentList = Array<PortfolioDocument>;
|
|
71
|
-
export interface PortfolioPersonalInfo extends Viewable, Omit<PortfolioBaseEntity, 'title' | 'visibility' | 'position'> {
|
|
63
|
+
export interface PortfolioPersonalInfo extends Ownable, Viewable, Omit<PortfolioBaseEntity, 'title' | 'visibility' | 'position'> {
|
|
72
64
|
firstName: string;
|
|
73
65
|
lastName: string;
|
|
74
66
|
email: string;
|
|
@@ -83,7 +75,6 @@ export interface PortfolioPersonalInfo extends Viewable, Omit<PortfolioBaseEntit
|
|
|
83
75
|
zipCode: string | null;
|
|
84
76
|
town: string | null;
|
|
85
77
|
phone: string | null;
|
|
86
|
-
author: PortfolioAuthor;
|
|
87
78
|
}
|
|
88
79
|
export declare enum PortfolioUserRole {
|
|
89
80
|
SUPER_ADMIN = "SUPER_ADMIN",
|
|
@@ -100,10 +91,12 @@ export interface PortfolioUser extends Omit<PortfolioBaseEntity, 'title' | 'visi
|
|
|
100
91
|
avatar: PortfolioFile | null;
|
|
101
92
|
}
|
|
102
93
|
export type PortfolioUserList = Array<PortfolioUser>;
|
|
103
|
-
interface Colorable {
|
|
94
|
+
export interface Colorable {
|
|
104
95
|
color: `#${string}` | null;
|
|
105
96
|
}
|
|
106
|
-
interface Viewable {
|
|
97
|
+
export interface Viewable {
|
|
107
98
|
isPublic: boolean;
|
|
108
99
|
}
|
|
109
|
-
export {
|
|
100
|
+
export interface Ownable {
|
|
101
|
+
author: PortfolioAuthor;
|
|
102
|
+
}
|