![Thomas Citharel](/assets/img/avatar_default.png)
Also: * Refactor interacting with a remote event so that you can interact with a remote group as well * Add a setting for group admins to pick between an open and invite-only group * Fix new groups without posts/todos/resources/events/conversations URL set * Repair local groups that haven't got their posts/todos/resources/events/conversations URL set * Add a scheduled job to refresh remote groups every hour * Add a user setting to pick when to receive notifications when there's new members to approve (will be used when this feature is available) * Fix pagination for members Signed-off-by: Thomas Citharel <tcit@tcit.fr>
62 lines
1.2 KiB
TypeScript
62 lines
1.2 KiB
TypeScript
export interface IParticipationCondition {
|
|
title: string;
|
|
content: string;
|
|
url: string;
|
|
}
|
|
|
|
export interface IOffer {
|
|
price: number;
|
|
priceCurrency: string;
|
|
url: string;
|
|
}
|
|
|
|
export enum CommentModeration {
|
|
ALLOW_ALL = "ALLOW_ALL",
|
|
MODERATED = "MODERATED",
|
|
CLOSED = "CLOSED",
|
|
}
|
|
|
|
export interface IEventOptions {
|
|
maximumAttendeeCapacity: number;
|
|
remainingAttendeeCapacity: number;
|
|
showRemainingAttendeeCapacity: boolean;
|
|
anonymousParticipation: boolean;
|
|
hideOrganizerWhenGroupEvent: boolean;
|
|
offers: IOffer[];
|
|
participationConditions: IParticipationCondition[];
|
|
attendees: string[];
|
|
program: string;
|
|
commentModeration: CommentModeration;
|
|
showParticipationPrice: boolean;
|
|
showStartTime: boolean;
|
|
showEndTime: boolean;
|
|
}
|
|
|
|
export class EventOptions implements IEventOptions {
|
|
maximumAttendeeCapacity = 0;
|
|
|
|
remainingAttendeeCapacity = 0;
|
|
|
|
showRemainingAttendeeCapacity = false;
|
|
|
|
anonymousParticipation = false;
|
|
|
|
hideOrganizerWhenGroupEvent = false;
|
|
|
|
offers: IOffer[] = [];
|
|
|
|
participationConditions: IParticipationCondition[] = [];
|
|
|
|
attendees: string[] = [];
|
|
|
|
program = "";
|
|
|
|
commentModeration = CommentModeration.ALLOW_ALL;
|
|
|
|
showParticipationPrice = false;
|
|
|
|
showStartTime = true;
|
|
|
|
showEndTime = true;
|
|
}
|