diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-10 11:51:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-10 14:32:00 +0200 |
commit | a3b472a12ec6e57dbe2f650419f8064864686eab (patch) | |
tree | f36559488e34493c029b686772e986902150a647 /shared/models | |
parent | 0567049a9819d67070aa6d548a75a7e632a4aaa4 (diff) | |
download | PeerTube-a3b472a12ec6e57dbe2f650419f8064864686eab.tar.gz PeerTube-a3b472a12ec6e57dbe2f650419f8064864686eab.tar.zst PeerTube-a3b472a12ec6e57dbe2f650419f8064864686eab.zip |
Add ability to list imports of a channel sync
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/server/job.model.ts | 2 | ||||
-rw-r--r-- | shared/models/videos/import/index.ts | 1 | ||||
-rw-r--r-- | shared/models/videos/import/video-import.model.ts | 5 | ||||
-rw-r--r-- | shared/models/videos/import/videos-import-in-channel-create.model.ts | 4 |
4 files changed, 12 insertions, 0 deletions
diff --git a/shared/models/server/job.model.ts b/shared/models/server/job.model.ts index ba1f83684..9c0b5ea56 100644 --- a/shared/models/server/job.model.ts +++ b/shared/models/server/job.model.ts | |||
@@ -236,6 +236,8 @@ export interface VideoStudioEditionPayload { | |||
236 | export interface VideoChannelImportPayload { | 236 | export interface VideoChannelImportPayload { |
237 | externalChannelUrl: string | 237 | externalChannelUrl: string |
238 | videoChannelId: number | 238 | videoChannelId: number |
239 | |||
240 | partOfChannelSyncId?: number | ||
239 | } | 241 | } |
240 | 242 | ||
241 | export interface AfterVideoChannelImportPayload { | 243 | export interface AfterVideoChannelImportPayload { |
diff --git a/shared/models/videos/import/index.ts b/shared/models/videos/import/index.ts index 8884ee8f2..b38a67b5f 100644 --- a/shared/models/videos/import/index.ts +++ b/shared/models/videos/import/index.ts | |||
@@ -1,3 +1,4 @@ | |||
1 | export * from './video-import-create.model' | 1 | export * from './video-import-create.model' |
2 | export * from './video-import-state.enum' | 2 | export * from './video-import-state.enum' |
3 | export * from './video-import.model' | 3 | export * from './video-import.model' |
4 | export * from './videos-import-in-channel-create.model' | ||
diff --git a/shared/models/videos/import/video-import.model.ts b/shared/models/videos/import/video-import.model.ts index 92856c70f..6aed7a91a 100644 --- a/shared/models/videos/import/video-import.model.ts +++ b/shared/models/videos/import/video-import.model.ts | |||
@@ -16,4 +16,9 @@ export interface VideoImport { | |||
16 | error?: string | 16 | error?: string |
17 | 17 | ||
18 | video?: Video & { tags: string[] } | 18 | video?: Video & { tags: string[] } |
19 | |||
20 | videoChannelSync?: { | ||
21 | id: number | ||
22 | externalChannelUrl: string | ||
23 | } | ||
19 | } | 24 | } |
diff --git a/shared/models/videos/import/videos-import-in-channel-create.model.ts b/shared/models/videos/import/videos-import-in-channel-create.model.ts new file mode 100644 index 000000000..fbfef63f8 --- /dev/null +++ b/shared/models/videos/import/videos-import-in-channel-create.model.ts | |||
@@ -0,0 +1,4 @@ | |||
1 | export interface VideosImportInChannelCreate { | ||
2 | externalChannelUrl: string | ||
3 | videoChannelSyncId?: number | ||
4 | } | ||