diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-09-14 11:57:49 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-09-14 11:57:49 +0200 |
commit | d592e0a9b2931c7c9cbedb27fb8efc9aaacad9bb (patch) | |
tree | 549b14b842de296efed846a11b3681efe08cfa9e /shared | |
parent | 91f6f169b1110eeae6ebf5c387f4204b0d07703c (diff) | |
download | PeerTube-d592e0a9b2931c7c9cbedb27fb8efc9aaacad9bb.tar.gz PeerTube-d592e0a9b2931c7c9cbedb27fb8efc9aaacad9bb.tar.zst PeerTube-d592e0a9b2931c7c9cbedb27fb8efc9aaacad9bb.zip |
Move to HttpClient and PrimeNG data table
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/users/index.ts | 2 | ||||
-rw-r--r-- | shared/models/users/user-login.model.ts | 5 | ||||
-rw-r--r-- | shared/models/users/user-refresh-token.model.ts | 4 | ||||
-rw-r--r-- | shared/models/videos/video.model.ts | 4 |
4 files changed, 13 insertions, 2 deletions
diff --git a/shared/models/users/index.ts b/shared/models/users/index.ts index 45dbc7b8f..efb58c320 100644 --- a/shared/models/users/index.ts +++ b/shared/models/users/index.ts | |||
@@ -1,5 +1,7 @@ | |||
1 | export * from './user.model' | 1 | export * from './user.model' |
2 | export * from './user-create.model' | 2 | export * from './user-create.model' |
3 | export * from './user-login.model' | ||
4 | export * from './user-refresh-token.model' | ||
3 | export * from './user-update.model' | 5 | export * from './user-update.model' |
4 | export * from './user-update-me.model' | 6 | export * from './user-update-me.model' |
5 | export * from './user-role.type' | 7 | export * from './user-role.type' |
diff --git a/shared/models/users/user-login.model.ts b/shared/models/users/user-login.model.ts new file mode 100644 index 000000000..b0383c695 --- /dev/null +++ b/shared/models/users/user-login.model.ts | |||
@@ -0,0 +1,5 @@ | |||
1 | export interface UserLogin { | ||
2 | access_token: string | ||
3 | refresh_token: string | ||
4 | token_type: string | ||
5 | } \ No newline at end of file | ||
diff --git a/shared/models/users/user-refresh-token.model.ts b/shared/models/users/user-refresh-token.model.ts new file mode 100644 index 000000000..f528dd961 --- /dev/null +++ b/shared/models/users/user-refresh-token.model.ts | |||
@@ -0,0 +1,4 @@ | |||
1 | export interface UserRefreshToken { | ||
2 | access_token: string | ||
3 | refresh_token: string | ||
4 | } | ||
diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts index 6277dbe59..75070bfd6 100644 --- a/shared/models/videos/video.model.ts +++ b/shared/models/videos/video.model.ts | |||
@@ -9,8 +9,8 @@ export interface Video { | |||
9 | id: number | 9 | id: number |
10 | uuid: string | 10 | uuid: string |
11 | author: string | 11 | author: string |
12 | createdAt: Date | 12 | createdAt: Date | string |
13 | updatedAt: Date | 13 | updatedAt: Date | string |
14 | categoryLabel: string | 14 | categoryLabel: string |
15 | category: number | 15 | category: number |
16 | licenceLabel: string | 16 | licenceLabel: string |