Add admin interface to manage instances subscriptions
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
import { IPicture } from '@/types/picture.model';
|
||||
|
||||
export enum ActorType {
|
||||
PERSON = 'PERSON',
|
||||
APPLICATION = 'APPLICATION',
|
||||
GROUP = 'GROUP',
|
||||
ORGANISATION = 'ORGANISATION',
|
||||
SERVICE = 'SERVICE',
|
||||
}
|
||||
|
||||
export interface IActor {
|
||||
id?: number;
|
||||
url: string;
|
||||
@@ -10,6 +18,7 @@ export interface IActor {
|
||||
suspended: boolean;
|
||||
avatar: IPicture | null;
|
||||
banner: IPicture | null;
|
||||
type: ActorType;
|
||||
}
|
||||
|
||||
export class Actor implements IActor {
|
||||
@@ -22,6 +31,7 @@ export class Actor implements IActor {
|
||||
summary: string = '';
|
||||
suspended: boolean = false;
|
||||
url: string = '';
|
||||
type: ActorType = ActorType.PERSON;
|
||||
|
||||
constructor (hash: IActor | {} = {}) {
|
||||
Object.assign(this, hash);
|
||||
|
||||
8
js/src/types/actor/follower.model.ts
Normal file
8
js/src/types/actor/follower.model.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { IActor } from '@/types/actor/actor.model';
|
||||
|
||||
export interface IFollower {
|
||||
id?: string;
|
||||
actor: IActor;
|
||||
targetActor: IActor;
|
||||
approved: boolean;
|
||||
}
|
||||
@@ -242,7 +242,7 @@ export class EventModel implements IEvent {
|
||||
|
||||
this.onlineAddress = hash.onlineAddress;
|
||||
this.phoneAddress = hash.phoneAddress;
|
||||
this.physicalAddress = new Address(hash.physicalAddress);
|
||||
this.physicalAddress = hash.physicalAddress ? new Address(hash.physicalAddress) : undefined;
|
||||
this.participantStats = hash.participantStats;
|
||||
|
||||
this.tags = hash.tags;
|
||||
|
||||
4
js/src/types/paginate.ts
Normal file
4
js/src/types/paginate.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export interface Paginate<T> {
|
||||
elements: T[];
|
||||
total: number;
|
||||
}
|
||||
Reference in New Issue
Block a user