portfolio-types 2.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/README.md +29 -0
- package/lib/index.d.ts +80 -0
- package/lib/index.js +2 -0
- package/package.json +40 -0
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
### Portfolio types
|
|
2
|
+
|
|
3
|
+
##### Update remote npm
|
|
4
|
+
|
|
5
|
+
1. `tsc`
|
|
6
|
+
|
|
7
|
+
2. `npm publish`
|
|
8
|
+
|
|
9
|
+
##### Problems:
|
|
10
|
+
|
|
11
|
+
- Check if name is taken:
|
|
12
|
+
```
|
|
13
|
+
npm view portfolio-types
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
- Check if you are not logged
|
|
17
|
+
```
|
|
18
|
+
npm whoami
|
|
19
|
+
npm login
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
- npm registry not set
|
|
23
|
+
```
|
|
24
|
+
npm config get registry --> "https://registry.npmjs.org/"
|
|
25
|
+
```
|
|
26
|
+
if not
|
|
27
|
+
```
|
|
28
|
+
npm config set registry https://registry.npmjs.org/
|
|
29
|
+
```
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export interface PortfolioBaseEntity {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
visibility: boolean;
|
|
5
|
+
position: number;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
updatedAt: Date;
|
|
8
|
+
}
|
|
9
|
+
export interface PortfolioFile extends Omit<PortfolioBaseEntity, 'visibility' | 'position'> {
|
|
10
|
+
originalName: string;
|
|
11
|
+
src: string;
|
|
12
|
+
mimeType: string;
|
|
13
|
+
size: number;
|
|
14
|
+
}
|
|
15
|
+
export type PortfolioFileList = Array<PortfolioFile>;
|
|
16
|
+
export interface PortfolioYourLanguage extends Omit<PortfolioBaseEntity, 'visibility' | 'position'>, Colorable {
|
|
17
|
+
level: string;
|
|
18
|
+
}
|
|
19
|
+
export type PortfolioYourLanguageList = Array<PortfolioYourLanguage>;
|
|
20
|
+
export interface PortfolioTool extends Omit<PortfolioBaseEntity, 'visibility' | 'position'>, Colorable {
|
|
21
|
+
file: PortfolioFile;
|
|
22
|
+
}
|
|
23
|
+
export type PortfolioToolList = Array<PortfolioTool>;
|
|
24
|
+
export interface PortfolioSkillCategory extends Omit<PortfolioBaseEntity, 'visibility' | 'position'>, Colorable {
|
|
25
|
+
}
|
|
26
|
+
export type PortfolioSkillCategoryList = Array<PortfolioSkillCategory>;
|
|
27
|
+
export interface PortfolioSocial extends PortfolioBaseEntity {
|
|
28
|
+
url: string;
|
|
29
|
+
file: PortfolioFile;
|
|
30
|
+
}
|
|
31
|
+
export type PortfolioSocialList = Array<PortfolioSocial>;
|
|
32
|
+
export interface PortfolioSkill extends PortfolioBaseEntity, Colorable {
|
|
33
|
+
level: number;
|
|
34
|
+
categoryList: PortfolioSkillCategoryList;
|
|
35
|
+
tool: PortfolioTool;
|
|
36
|
+
isPrimary?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export type PortfolioSkillList = Array<PortfolioSkill>;
|
|
39
|
+
export interface PortfolioProject extends PortfolioBaseEntity {
|
|
40
|
+
description: string;
|
|
41
|
+
releasedAt: Date;
|
|
42
|
+
primaryTool: PortfolioTool;
|
|
43
|
+
toolList: PortfolioToolList;
|
|
44
|
+
fileList: PortfolioFileList;
|
|
45
|
+
demoUrl?: string;
|
|
46
|
+
repositoryUrl?: string;
|
|
47
|
+
}
|
|
48
|
+
export type PortfolioProjectList = Array<PortfolioProject>;
|
|
49
|
+
export interface PortfolioCertificate extends PortfolioBaseEntity {
|
|
50
|
+
issuedAt: Date;
|
|
51
|
+
file: PortfolioFile;
|
|
52
|
+
}
|
|
53
|
+
export type PortfolioCertificateList = Array<PortfolioCertificate>;
|
|
54
|
+
export interface PortfolioDocument extends PortfolioBaseEntity {
|
|
55
|
+
language: string;
|
|
56
|
+
}
|
|
57
|
+
export type PortfolioDocumentList = Array<PortfolioDocument>;
|
|
58
|
+
export interface PortfolioPersonalInfo {
|
|
59
|
+
firstName: string;
|
|
60
|
+
lastName: string;
|
|
61
|
+
email: string;
|
|
62
|
+
aboutMe: string;
|
|
63
|
+
yourLanguageList: PortfolioYourLanguageList;
|
|
64
|
+
experienceYears?: number;
|
|
65
|
+
specialization?: string;
|
|
66
|
+
position?: string;
|
|
67
|
+
birthDate?: Date;
|
|
68
|
+
biography?: string;
|
|
69
|
+
country?: string;
|
|
70
|
+
zipCode?: string;
|
|
71
|
+
town?: string;
|
|
72
|
+
phone?: string;
|
|
73
|
+
}
|
|
74
|
+
interface Colorable {
|
|
75
|
+
color?: HexColor;
|
|
76
|
+
}
|
|
77
|
+
interface HexColor {
|
|
78
|
+
hex: `#${string}`;
|
|
79
|
+
}
|
|
80
|
+
export {};
|
package/lib/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "portfolio-types",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Types for the Portfolio project",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"portfolio",
|
|
8
|
+
"types"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://gitlab.com/dev-public3/portfolio/portfolio-types#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://gitlab.com/dev-public3/portfolio/portfolio-types/-/issues"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://gitlab.com/dev-public3/portfolio/portfolio-types.git"
|
|
17
|
+
},
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"author": "Oleksandr Aleksieiev",
|
|
20
|
+
"type": "commonjs",
|
|
21
|
+
"main": "lib/index.js",
|
|
22
|
+
"types": "lib/index.d.ts",
|
|
23
|
+
"directories": {
|
|
24
|
+
"lib": "lib"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"lib/**/*"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsc",
|
|
31
|
+
"publish": "npm publish --access public",
|
|
32
|
+
"inc_ver_patch": "./bump-version.sh patch",
|
|
33
|
+
"inc_ver_minor": "./bump-version.sh minor",
|
|
34
|
+
"inc_ver_major": "./bump-version.sh major",
|
|
35
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"typescript": "^5.9.3"
|
|
39
|
+
}
|
|
40
|
+
}
|