aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-10 22:15:25 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-10 22:15:25 +0200
commit69818c9394366b954b6ba3bd697bd9d2b09f2a16 (patch)
treead199a18ec3c322460d6f9523fc383ee562554e0 /shared/models
parent4d4e5cd4dca78480ec7f40e747f424cd107376a4 (diff)
downloadPeerTube-69818c9394366b954b6ba3bd697bd9d2b09f2a16.tar.gz
PeerTube-69818c9394366b954b6ba3bd697bd9d2b09f2a16.tar.zst
PeerTube-69818c9394366b954b6ba3bd697bd9d2b09f2a16.zip
Type functions
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/index.ts5
-rw-r--r--shared/models/pod.model.ts7
-rw-r--r--shared/models/user.model.ts8
-rw-r--r--shared/models/video-abuse.model.ts8
-rw-r--r--shared/models/video-blacklist.model.ts5
-rw-r--r--shared/models/video.model.ts3
6 files changed, 36 insertions, 0 deletions
diff --git a/shared/models/index.ts b/shared/models/index.ts
new file mode 100644
index 000000000..b498d620a
--- /dev/null
+++ b/shared/models/index.ts
@@ -0,0 +1,5 @@
1export * from './pod.model'
2export * from './user.model'
3export * from './video-abuse.model'
4export * from './video-blacklist.model'
5export * from './video.model'
diff --git a/shared/models/pod.model.ts b/shared/models/pod.model.ts
new file mode 100644
index 000000000..d25421936
--- /dev/null
+++ b/shared/models/pod.model.ts
@@ -0,0 +1,7 @@
1export interface Pod {
2 id: number,
3 host: string,
4 email: string,
5 score: number,
6 createdAt: Date
7}
diff --git a/shared/models/user.model.ts b/shared/models/user.model.ts
new file mode 100644
index 000000000..01cc380d3
--- /dev/null
+++ b/shared/models/user.model.ts
@@ -0,0 +1,8 @@
1export interface User {
2 id: number
3 username: string
4 email: string
5 displayNSFW: boolean
6 role: string[]
7 createdAt: Date
8}
diff --git a/shared/models/video-abuse.model.ts b/shared/models/video-abuse.model.ts
new file mode 100644
index 000000000..e005a1fd5
--- /dev/null
+++ b/shared/models/video-abuse.model.ts
@@ -0,0 +1,8 @@
1export interface VideoAbuse {
2 id: number
3 reporterPodHost: string
4 reason: string
5 reporterUsername: string
6 videoId: number
7 createdAt: Date
8}
diff --git a/shared/models/video-blacklist.model.ts b/shared/models/video-blacklist.model.ts
new file mode 100644
index 000000000..6086250ac
--- /dev/null
+++ b/shared/models/video-blacklist.model.ts
@@ -0,0 +1,5 @@
1export interface BlacklistedVideo {
2 id: number
3 videoId: number
4 createdAt: Date
5}
diff --git a/shared/models/video.model.ts b/shared/models/video.model.ts
new file mode 100644
index 000000000..355e912d2
--- /dev/null
+++ b/shared/models/video.model.ts
@@ -0,0 +1,3 @@
1export interface Video {
2
3}