diff options
Diffstat (limited to 'shared/models/activitypub/objects')
4 files changed, 18 insertions, 9 deletions
diff --git a/shared/models/activitypub/objects/activitypub-object.ts b/shared/models/activitypub/objects/activitypub-object.ts new file mode 100644 index 000000000..faeac2618 --- /dev/null +++ b/shared/models/activitypub/objects/activitypub-object.ts | |||
@@ -0,0 +1,17 @@ | |||
1 | import { AbuseObject } from './abuse-object' | ||
2 | import { CacheFileObject } from './cache-file-object' | ||
3 | import { PlaylistObject } from './playlist-object' | ||
4 | import { VideoCommentObject } from './video-comment-object' | ||
5 | import { VideoObject } from './video-object' | ||
6 | import { WatchActionObject } from './watch-action-object' | ||
7 | |||
8 | export type ActivityObject = | ||
9 | VideoObject | | ||
10 | AbuseObject | | ||
11 | VideoCommentObject | | ||
12 | CacheFileObject | | ||
13 | PlaylistObject | | ||
14 | WatchActionObject | | ||
15 | string | ||
16 | |||
17 | export type APObjectId = string | { id: string } | ||
diff --git a/shared/models/activitypub/objects/dislike-object.ts b/shared/models/activitypub/objects/dislike-object.ts deleted file mode 100644 index 7218fb784..000000000 --- a/shared/models/activitypub/objects/dislike-object.ts +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | export interface DislikeObject { | ||
2 | id: string | ||
3 | type: 'Dislike' | ||
4 | actor: string | ||
5 | object: string | ||
6 | } | ||
diff --git a/shared/models/activitypub/objects/index.ts b/shared/models/activitypub/objects/index.ts index a2e040b32..753e02003 100644 --- a/shared/models/activitypub/objects/index.ts +++ b/shared/models/activitypub/objects/index.ts | |||
@@ -1,8 +1,7 @@ | |||
1 | export * from './abuse-object' | 1 | export * from './abuse-object' |
2 | export * from './activitypub-object' | ||
2 | export * from './cache-file-object' | 3 | export * from './cache-file-object' |
3 | export * from './common-objects' | 4 | export * from './common-objects' |
4 | export * from './dislike-object' | ||
5 | export * from './object.model' | ||
6 | export * from './playlist-element-object' | 5 | export * from './playlist-element-object' |
7 | export * from './playlist-object' | 6 | export * from './playlist-object' |
8 | export * from './video-comment-object' | 7 | export * from './video-comment-object' |
diff --git a/shared/models/activitypub/objects/object.model.ts b/shared/models/activitypub/objects/object.model.ts deleted file mode 100644 index 3fd33800a..000000000 --- a/shared/models/activitypub/objects/object.model.ts +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | export type APObject = string | { id: string } | ||