-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "@oengusio/types", | ||
"version": "1.0.0", | ||
"description": "Javascript API typings for the oengus API", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/esamarathon/oengus-webapp.git" | ||
}, | ||
"author": "duncte123", | ||
"license": "AGPL-3.0", | ||
"bugs": { | ||
"url": "https://github.com/esamarathon/oengus-webapp/issues" | ||
}, | ||
"homepage": "https://github.com/esamarathon/oengus-webapp#readme" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import SocialAccount from './SocialAccount'; | ||
|
||
export default interface Profile { | ||
id: number; | ||
username: string; | ||
displayName: string; | ||
enabled: boolean; | ||
pronouns: string[]; | ||
languagesSpoken: string[]; | ||
connections: SocialAccount[]; | ||
country: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export type ConnectionPlatform = | ||
'DISCORD' | | ||
'EMAIL' | | ||
'FACEBOOK' | | ||
'INSTAGRAM' | | ||
'PHONE' | | ||
'NICO' | | ||
'MASTODON' | | ||
'SNAPCHAT' | | ||
'SPEEDRUNCOM' | | ||
'TWITCH' | | ||
'TWITTER' | | ||
'YOUTUBE'; | ||
|
||
export default interface SocialAccount { | ||
id?: number; | ||
platform: ConnectionPlatform | string; | ||
username: string; | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import SocialAccount from './SocialAccount'; | ||
|
||
/** | ||
* @deprecated should be replaced with profile instead | ||
*/ | ||
export default interface User { | ||
id: number; | ||
username: string; | ||
displayName: string; | ||
mail: string; | ||
// stored as comma seperated list in db | ||
pronouns: string; | ||
languagesSpoken: string; | ||
country: string; | ||
roles: string[]; | ||
connections: SocialAccount[]; | ||
enabled: boolean; | ||
discordId: number; | ||
twitterId: string; | ||
twitchId: string; | ||
patreonId: string; | ||
} |