From e4f97babf701481b55cc10fb3448feab5f97c867 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 9 Nov 2017 17:51:58 +0100 Subject: Begin activitypub --- server/models/video/author-interface.ts | 45 --------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 server/models/video/author-interface.ts (limited to 'server/models/video/author-interface.ts') diff --git a/server/models/video/author-interface.ts b/server/models/video/author-interface.ts deleted file mode 100644 index fc69ff3c2..000000000 --- a/server/models/video/author-interface.ts +++ /dev/null @@ -1,45 +0,0 @@ -import * as Sequelize from 'sequelize' -import * as Promise from 'bluebird' - -import { PodInstance } from '../pod/pod-interface' -import { RemoteVideoAuthorCreateData } from '../../../shared/models/pods/remote-video/remote-video-author-create-request.model' -import { VideoChannelInstance } from './video-channel-interface' - -export namespace AuthorMethods { - export type Load = (id: number) => Promise - export type LoadByUUID = (uuid: string) => Promise - export type LoadAuthorByPodAndUUID = (uuid: string, podId: number, transaction: Sequelize.Transaction) => Promise - export type ListOwned = () => Promise - - export type ToAddRemoteJSON = (this: AuthorInstance) => RemoteVideoAuthorCreateData - export type IsOwned = (this: AuthorInstance) => boolean -} - -export interface AuthorClass { - loadAuthorByPodAndUUID: AuthorMethods.LoadAuthorByPodAndUUID - load: AuthorMethods.Load - loadByUUID: AuthorMethods.LoadByUUID - listOwned: AuthorMethods.ListOwned -} - -export interface AuthorAttributes { - name: string - uuid?: string - - podId?: number - userId?: number -} - -export interface AuthorInstance extends AuthorClass, AuthorAttributes, Sequelize.Instance { - isOwned: AuthorMethods.IsOwned - toAddRemoteJSON: AuthorMethods.ToAddRemoteJSON - - id: number - createdAt: Date - updatedAt: Date - - Pod: PodInstance - VideoChannels: VideoChannelInstance[] -} - -export interface AuthorModel extends AuthorClass, Sequelize.Model {} -- cgit v1.2.3