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.
53 lines (49 loc) • 1.06 kB
text/typescript
import { UserDetail } from "../user";
import { VentureCategory } from "./category";
import { VentureContact } from "./contact";
import { VentureDetail } from "./detail";
import { VentureLocation } from "./location";
export interface Venture {
id: string;
name: string;
slug: string;
coverPhoto: string;
description: string;
active: boolean;
verified: boolean;
detail?: VentureDetail;
ownerDetail?: UserDetail;
categories: VentureCategory[];
contact?: VentureContact;
location?: VentureLocation;
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;
};
}