portfolio-types 5.0.0 → 6.0.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 +13 -10
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -10,34 +10,34 @@ export interface PortfolioAuthor {
|
|
|
10
10
|
id: string;
|
|
11
11
|
username: string;
|
|
12
12
|
}
|
|
13
|
-
export interface PortfolioFile extends Omit<PortfolioBaseEntity, 'visibility' | 'position'> {
|
|
13
|
+
export interface PortfolioFile extends 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 Omit<PortfolioBaseEntity, 'visibility' | 'position'>, Colorable {
|
|
20
|
+
export interface PortfolioYourLanguage extends Viewable, Omit<PortfolioBaseEntity, 'visibility' | 'position'>, Colorable {
|
|
21
21
|
level: string;
|
|
22
22
|
author: PortfolioAuthor;
|
|
23
23
|
}
|
|
24
24
|
export type PortfolioYourLanguageList = Array<PortfolioYourLanguage>;
|
|
25
|
-
export interface PortfolioTool extends Omit<PortfolioBaseEntity, 'visibility' | 'position'>, Colorable {
|
|
25
|
+
export interface PortfolioTool extends Viewable, Omit<PortfolioBaseEntity, 'visibility' | 'position'>, Colorable {
|
|
26
26
|
file: PortfolioFile;
|
|
27
27
|
author: PortfolioAuthor;
|
|
28
28
|
}
|
|
29
29
|
export type PortfolioToolList = Array<PortfolioTool>;
|
|
30
|
-
export interface PortfolioSkillCategory extends Omit<PortfolioBaseEntity, 'visibility' | 'position'>, Colorable {
|
|
30
|
+
export interface PortfolioSkillCategory extends Viewable, Omit<PortfolioBaseEntity, 'visibility' | 'position'>, Colorable {
|
|
31
31
|
author: PortfolioAuthor;
|
|
32
32
|
}
|
|
33
33
|
export type PortfolioSkillCategoryList = Array<PortfolioSkillCategory>;
|
|
34
|
-
export interface PortfolioSocial extends PortfolioBaseEntity {
|
|
34
|
+
export interface PortfolioSocial extends Viewable, PortfolioBaseEntity {
|
|
35
35
|
url: string;
|
|
36
36
|
file: PortfolioFile;
|
|
37
37
|
author: PortfolioAuthor;
|
|
38
38
|
}
|
|
39
39
|
export type PortfolioSocialList = Array<PortfolioSocial>;
|
|
40
|
-
export interface PortfolioSkill extends PortfolioBaseEntity, Colorable {
|
|
40
|
+
export interface PortfolioSkill extends Viewable, PortfolioBaseEntity, Colorable {
|
|
41
41
|
/** Proficiency level as an integer from 0 to 100. */
|
|
42
42
|
level: number;
|
|
43
43
|
categoryList: PortfolioSkillCategoryList;
|
|
@@ -46,7 +46,7 @@ export interface PortfolioSkill extends PortfolioBaseEntity, Colorable {
|
|
|
46
46
|
author: PortfolioAuthor;
|
|
47
47
|
}
|
|
48
48
|
export type PortfolioSkillList = Array<PortfolioSkill>;
|
|
49
|
-
export interface PortfolioProject extends PortfolioBaseEntity {
|
|
49
|
+
export interface PortfolioProject extends Viewable, PortfolioBaseEntity {
|
|
50
50
|
description: string;
|
|
51
51
|
releasedAt: string;
|
|
52
52
|
tool: PortfolioTool | null;
|
|
@@ -57,18 +57,18 @@ export interface PortfolioProject extends PortfolioBaseEntity {
|
|
|
57
57
|
author: PortfolioAuthor;
|
|
58
58
|
}
|
|
59
59
|
export type PortfolioProjectList = Array<PortfolioProject>;
|
|
60
|
-
export interface PortfolioCertificate extends PortfolioBaseEntity {
|
|
60
|
+
export interface PortfolioCertificate extends Viewable, PortfolioBaseEntity {
|
|
61
61
|
issuedAt: string;
|
|
62
62
|
file: PortfolioFile;
|
|
63
63
|
author: PortfolioAuthor;
|
|
64
64
|
}
|
|
65
65
|
export type PortfolioCertificateList = Array<PortfolioCertificate>;
|
|
66
|
-
export interface PortfolioDocument extends PortfolioBaseEntity {
|
|
66
|
+
export interface PortfolioDocument extends Viewable, PortfolioBaseEntity {
|
|
67
67
|
language: string;
|
|
68
68
|
author: PortfolioAuthor;
|
|
69
69
|
}
|
|
70
70
|
export type PortfolioDocumentList = Array<PortfolioDocument>;
|
|
71
|
-
export interface PortfolioPersonalInfo extends Omit<PortfolioBaseEntity, 'title' | 'visibility' | 'position'> {
|
|
71
|
+
export interface PortfolioPersonalInfo extends Viewable, Omit<PortfolioBaseEntity, 'title' | 'visibility' | 'position'> {
|
|
72
72
|
firstName: string;
|
|
73
73
|
lastName: string;
|
|
74
74
|
email: string;
|
|
@@ -103,4 +103,7 @@ export type PortfolioUserList = Array<PortfolioUser>;
|
|
|
103
103
|
interface Colorable {
|
|
104
104
|
color: `#${string}` | null;
|
|
105
105
|
}
|
|
106
|
+
interface Viewable {
|
|
107
|
+
isPublic: boolean;
|
|
108
|
+
}
|
|
106
109
|
export {};
|