Persons: other people's charts with package slots, list page, switcher
- charts.kind own/person; a new person uses a 'person' unit (not refunded on delete); person packages and an unlimited entitlement; admins unlimited - a person's birth data can be corrected within an hour (admins any time) - /kepletek list with tiles, /kepletek/uj, correction page, mock person packages, chart page title switches between charts keeping the tab Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -18,6 +18,15 @@ export interface Me {
|
||||
primary_chart_id: string | null;
|
||||
analyses_left: UnitBalance;
|
||||
birth_change: BirthChange;
|
||||
persons: PersonSlots;
|
||||
}
|
||||
|
||||
/** How many persons the user may still add (`left`/`limit` null: no limit). */
|
||||
export interface PersonSlots {
|
||||
used: number;
|
||||
limit: number | null;
|
||||
left: number | null;
|
||||
unlimited: boolean;
|
||||
}
|
||||
|
||||
/** Limit on changing the own birth data (the notice text comes from the backend). */
|
||||
@@ -41,6 +50,7 @@ export interface PublicConfig {
|
||||
password_login: boolean;
|
||||
password_min_length: number;
|
||||
mock_payments: boolean;
|
||||
person_pack_size: number;
|
||||
}
|
||||
|
||||
export interface Position {
|
||||
@@ -87,16 +97,33 @@ export interface BirthData {
|
||||
geonames_id?: number | null;
|
||||
}
|
||||
|
||||
export type ChartKind = "own" | "person";
|
||||
|
||||
export interface Chart {
|
||||
id: string;
|
||||
label: string;
|
||||
is_primary: boolean;
|
||||
kind: ChartKind;
|
||||
/** A person's birth data can be corrected until then (admins: any time). */
|
||||
editable_until: string | null;
|
||||
birth_data: BirthData;
|
||||
highlights: { sun: string | null; moon: string | null; ascendant: string | null; time_known: boolean };
|
||||
chart: ChartResult;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
/** A chart in the list (`GET /v1/charts`). */
|
||||
export interface ChartListItem {
|
||||
id: string;
|
||||
label: string;
|
||||
is_primary: boolean;
|
||||
kind: ChartKind;
|
||||
editable_until: string | null;
|
||||
birth: { date: string; time: string | null; place: string | null };
|
||||
highlights: Chart["highlights"];
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
export interface Analysis {
|
||||
id: string;
|
||||
kind: "natal" | "synastry" | "summary";
|
||||
|
||||
Reference in New Issue
Block a user