echadospalante-core
Version:
This package contains the core of the echadospalante project, it contains the domain entities, helpers, and other utilities that are shared between the different services.
47 lines (43 loc) • 1.01 kB
text/typescript
import { EventDonation } from "../contributions";
import { Venture } from "../ventures";
import { EventCategory } from "./event-category";
import { EventContact } from "./event-contact";
import { EventLocation } from "./event-location";
export interface VentureEvent {
id: string;
title: string;
slug: string;
description: string;
coverPhoto: string;
venture?: Venture;
location: EventLocation;
contact: EventContact;
categories: EventCategory[];
donations: EventDonation[];
startDate: Date;
endDate: Date;
createdAt: Date;
updatedAt: Date;
}
export interface EventCreate {
title: string;
description: string;
coverPhoto: string;
location?: {
lat?: number;
lng?: number;
description?: string;
};
categoriesIds: string[];
startDate: Date;
contactEmail?: string;
contactPhoneNumber?: string;
endDate: Date;
}
export interface EventUpdate {
coverPhoto: string;
location: EventLocation;
categoriesIds: string[];
startDate: Date;
endDate: Date;
}