aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/typings/express.d.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-06-18 13:38:20 +0200
committerChocobozzz <me@florianbigard.com>2020-06-18 13:39:13 +0200
commitc24aac6bc73033195c37d81cf2b7449c9b54712c (patch)
treef736377972b32f7a9cbd8ed5ca518ef589fc983f /server/typings/express.d.ts
parent6567e5a796a740ce512a487218cfcfb914872657 (diff)
downloadPeerTube-c24aac6bc73033195c37d81cf2b7449c9b54712c.tar.gz
PeerTube-c24aac6bc73033195c37d81cf2b7449c9b54712c.tar.zst
PeerTube-c24aac6bc73033195c37d81cf2b7449c9b54712c.zip
Fix tests
Diffstat (limited to 'server/typings/express.d.ts')
-rw-r--r--server/typings/express.d.ts128
1 files changed, 0 insertions, 128 deletions
diff --git a/server/typings/express.d.ts b/server/typings/express.d.ts
deleted file mode 100644
index 451bf9103..000000000
--- a/server/typings/express.d.ts
+++ /dev/null
@@ -1,128 +0,0 @@
1import { RegisteredPlugin } from '../lib/plugins/plugin-manager'
2import {
3 MAccountDefault,
4 MActorAccountChannelId,
5 MActorFollowActorsDefault,
6 MActorFollowActorsDefaultSubscription,
7 MActorFull,
8 MChannelAccountDefault,
9 MComment,
10 MCommentOwnerVideoReply,
11 MUserDefault,
12 MVideoAbuse,
13 MVideoBlacklist,
14 MVideoCaptionVideo,
15 MVideoFullLight,
16 MVideoIdThumbnail,
17 MVideoRedundancyVideo,
18 MVideoShareActor,
19 MVideoThumbnail,
20 MVideoWithRights
21} from '../types/models'
22import { MVideoPlaylistFull, MVideoPlaylistFullSummary } from '../types/models/video/video-playlist'
23import { MVideoImportDefault } from '@server/types/models/video/video-import'
24import { MAccountBlocklist, MActorUrl, MStreamingPlaylist, MVideoFile, MVideoImmutable } from '@server/types/models'
25import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/types/models/video/video-playlist-element'
26import { MAccountVideoRateAccountVideo } from '@server/types/models/video/video-rate'
27import { MVideoChangeOwnershipFull } from '../types/models/video/video-change-ownership'
28import { MPlugin, MServer } from '@server/types/models/server'
29import { MServerBlocklist } from '../types/models/server/server-blocklist'
30import { MOAuthTokenUser } from '@server/types/models/oauth/oauth-token'
31import { UserRole } from '@shared/models'
32import { RegisterServerAuthExternalOptions } from '@shared/models/plugins/register-server-auth.model'
33
34declare module 'express' {
35 export interface Request {
36 query: any
37 }
38
39 interface Response {
40
41 locals: {
42 bypassLogin?: {
43 bypass: boolean
44 pluginName: string
45 authName?: string
46 user: {
47 username: string
48 email: string
49 displayName: string
50 role: UserRole
51 }
52 }
53
54 refreshTokenAuthName?: string
55
56 explicitLogout: boolean
57
58 videoAll?: MVideoFullLight
59 onlyImmutableVideo?: MVideoImmutable
60 onlyVideo?: MVideoThumbnail
61 onlyVideoWithRights?: MVideoWithRights
62 videoId?: MVideoIdThumbnail
63
64 videoShare?: MVideoShareActor
65
66 videoFile?: MVideoFile
67
68 videoImport?: MVideoImportDefault
69
70 videoBlacklist?: MVideoBlacklist
71
72 videoCaption?: MVideoCaptionVideo
73
74 videoAbuse?: MVideoAbuse
75
76 videoStreamingPlaylist?: MStreamingPlaylist
77
78 videoChannel?: MChannelAccountDefault
79
80 videoPlaylistFull?: MVideoPlaylistFull
81 videoPlaylistSummary?: MVideoPlaylistFullSummary
82
83 videoPlaylistElement?: MVideoPlaylistElement
84 videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy
85
86 accountVideoRate?: MAccountVideoRateAccountVideo
87
88 videoCommentFull?: MCommentOwnerVideoReply
89 videoCommentThread?: MComment
90
91 follow?: MActorFollowActorsDefault
92 subscription?: MActorFollowActorsDefaultSubscription
93
94 nextOwner?: MAccountDefault
95 videoChangeOwnership?: MVideoChangeOwnershipFull
96
97 account?: MAccountDefault
98
99 actorUrl?: MActorUrl
100 actorFull?: MActorFull
101
102 user?: MUserDefault
103
104 server?: MServer
105
106 videoRedundancy?: MVideoRedundancyVideo
107
108 accountBlock?: MAccountBlocklist
109 serverBlock?: MServerBlocklist
110
111 oauth?: {
112 token: MOAuthTokenUser
113 }
114
115 signature?: {
116 actor: MActorAccountChannelId
117 }
118
119 authenticated?: boolean
120
121 registeredPlugin?: RegisteredPlugin
122
123 externalAuth?: RegisterServerAuthExternalOptions
124
125 plugin?: MPlugin
126 }
127 }
128}