19 lines
618 B
TypeScript
19 lines
618 B
TypeScript
import type { User } from "./auth";
|
|
import type { Character, ItemState } from "./character";
|
|
import type { Serialize } from 'nitropack';
|
|
|
|
export type CampaignVariables = {
|
|
money: number;
|
|
items: ItemState[];
|
|
};
|
|
export type Campaign = {
|
|
id: number;
|
|
name: string;
|
|
link: string;
|
|
status: "PREPARING" | "PLAYING" | "ARCHIVED";
|
|
owner: { id: number, username: string };
|
|
members: Array<{ member: { id: number, username: string } }>;
|
|
characters: Array<Partial<{ character: { id: number, name: string, owner: number } }>>;
|
|
public_notes: string;
|
|
dm_notes: string;
|
|
} & CampaignVariables; |