From a3b472a12ec6e57dbe2f650419f8064864686eab Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 10 Aug 2022 11:51:13 +0200 Subject: Add ability to list imports of a channel sync --- shared/models/videos/import/index.ts | 1 + shared/models/videos/import/video-import.model.ts | 5 +++++ shared/models/videos/import/videos-import-in-channel-create.model.ts | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 shared/models/videos/import/videos-import-in-channel-create.model.ts (limited to 'shared/models/videos') 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 @@ export * from './video-import-create.model' export * from './video-import-state.enum' export * from './video-import.model' +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 { error?: string video?: Video & { tags: string[] } + + videoChannelSync?: { + id: number + externalChannelUrl: string + } } 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 @@ +export interface VideosImportInChannelCreate { + externalChannelUrl: string + videoChannelSyncId?: number +} -- cgit v1.2.3