diff options
author | Chocobozzz <me@florianbigard.com> | 2019-08-21 14:31:57 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-08-21 15:23:04 +0200 |
commit | b5fecbf44192144d1ca27c23a0b53922de288c10 (patch) | |
tree | 03e4f1048273e6de60b8eb642fb52b2a4c68e60c /server/typings/models/video/video-channels.ts | |
parent | f92e7f76d43cbad173be87f47105b9a02032318a (diff) | |
download | PeerTube-b5fecbf44192144d1ca27c23a0b53922de288c10.tar.gz PeerTube-b5fecbf44192144d1ca27c23a0b53922de288c10.tar.zst PeerTube-b5fecbf44192144d1ca27c23a0b53922de288c10.zip |
Type toActivityPubObject functions
Diffstat (limited to 'server/typings/models/video/video-channels.ts')
-rw-r--r-- | server/typings/models/video/video-channels.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/server/typings/models/video/video-channels.ts b/server/typings/models/video/video-channels.ts index 2be7dd7ed..292d0ac95 100644 --- a/server/typings/models/video/video-channels.ts +++ b/server/typings/models/video/video-channels.ts | |||
@@ -8,16 +8,18 @@ import { | |||
8 | MAccountLight, | 8 | MAccountLight, |
9 | MAccountSummaryBlocks, | 9 | MAccountSummaryBlocks, |
10 | MAccountSummaryFormattable, | 10 | MAccountSummaryFormattable, |
11 | MAccountUrl, | ||
11 | MAccountUserId, | 12 | MAccountUserId, |
12 | MActor, | 13 | MActor, |
13 | MActorAccountChannelId, | 14 | MActorAccountChannelId, |
15 | MActorAP, | ||
14 | MActorAPI, | 16 | MActorAPI, |
15 | MActorDefault, | 17 | MActorDefault, |
16 | MActorDefaultLight, | 18 | MActorDefaultLight, |
17 | MActorFormattable, | 19 | MActorFormattable, |
18 | MActorLight, | 20 | MActorLight, |
19 | MActorSummary, | 21 | MActorSummary, |
20 | MActorSummaryFormattable | 22 | MActorSummaryFormattable, MActorUrl |
21 | } from '../account' | 23 | } from '../account' |
22 | import { MVideo } from './video' | 24 | import { MVideo } from './video' |
23 | 25 | ||
@@ -42,6 +44,8 @@ export type MChannelUserId = Pick<MChannel, 'accountId'> & | |||
42 | export type MChannelActor = MChannel & | 44 | export type MChannelActor = MChannel & |
43 | Use<'Actor', MActor> | 45 | Use<'Actor', MActor> |
44 | 46 | ||
47 | export type MChannelUrl = Use<'Actor', MActorUrl> | ||
48 | |||
45 | // Default scope | 49 | // Default scope |
46 | export type MChannelDefault = MChannel & | 50 | export type MChannelDefault = MChannel & |
47 | Use<'Actor', MActorDefault> | 51 | Use<'Actor', MActorDefault> |
@@ -116,3 +120,7 @@ export type MChannelFormattable = FunctionProperties<MChannel> & | |||
116 | Pick<MChannel, 'id' | 'name' | 'description' | 'createdAt' | 'updatedAt' | 'support'> & | 120 | Pick<MChannel, 'id' | 'name' | 'description' | 'createdAt' | 'updatedAt' | 'support'> & |
117 | Use<'Actor', MActorFormattable> & | 121 | Use<'Actor', MActorFormattable> & |
118 | PickWithOpt<VideoChannelModel, 'Account', MAccountFormattable> | 122 | PickWithOpt<VideoChannelModel, 'Account', MAccountFormattable> |
123 | |||
124 | export type MChannelAP = Pick<MChannel, 'name' | 'description' | 'support'> & | ||
125 | Use<'Actor', MActorAP> & | ||
126 | Use<'Account', MAccountUrl> | ||