fix(journey): give the patched column shapes an index signature presenceSet accepts

presenceSet takes a Record<string, unknown>; an interface has no implicit
index signature, so the two column shapes are type aliases instead.
This commit is contained in:
Maurice
2026-10-24 22:30:17 +02:00
parent 8a2cb10f7b
commit 7356de5124
2 changed files with 4 additions and 4 deletions
@@ -30,7 +30,7 @@ export type JourneyEntryUpdateInput = Partial<{
}>;
/** The columns an update writes, as they are stored. */
interface JourneyEntryColumns {
type JourneyEntryColumns = {
type: string;
title: string | null;
story: string | null;
@@ -50,7 +50,7 @@ interface JourneyEntryColumns {
is_draft: number;
country_code: string | null;
updated_at: number;
}
};
/**
* JG78: the columns an update of `entry` with `data` writes, each resolved to
@@ -25,7 +25,7 @@ export type JourneySettingsInput = Partial<{
}>;
/** The columns an update writes, as they are stored. */
interface JourneySettingsColumns {
type JourneySettingsColumns = {
title: string;
subtitle: string | null;
cover_gradient: string | null;
@@ -38,7 +38,7 @@ interface JourneySettingsColumns {
show_mood: number;
show_weather: number;
auto_prepare_recordings: number;
}
};
const ALLOWED_STATUSES: readonly string[] = ['draft', 'active', 'completed', 'archived'];
// null hands the state back to the trip dates (#762).