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.
59 lines (55 loc) • 1.32 kB
text/typescript
import { VentureSponsorship } from "../contributions";
import { VentureEvent } from "../events";
import { VenturePublication } from "../publications";
import { User } from "../user";
import { VentureCategory } from "./category";
import { VentureContact } from "./contact";
import { VentureLocation } from "./location";
import { VentureSubscription } from "./subscription";
export interface Venture {
id: string;
name: string;
slug: string;
coverPhoto: string;
description: string;
active: boolean;
verified: boolean;
owner?: User;
categories: VentureCategory[];
contact?: VentureContact;
location?: VentureLocation;
events: VentureEvent[];
sponsorships: VentureSponsorship[];
subscriptions: VentureSubscription[];
publications: VenturePublication[];
createdAt: Date;
updatedAt: Date;
}
export interface VentureCreate {
name: string;
description: string;
coverPhoto: string;
categoriesIds: string[];
contact?: {
email?: string;
phoneNumber?: string;
};
location?: {
lat?: number;
lng?: number;
description?: string;
};
}
export interface VentureUpdate {
coverPhoto: string;
categoriesIds: string[];
contact?: {
email?: string;
phoneNumber?: string;
};
location?: {
lat?: number;
lng?: number;
description?: string;
};
}