Work on the new Journals. Just saving things while they are working well.

This commit is contained in:
Scott Idem
2025-03-21 11:03:38 -04:00
parent 596986afb7
commit 35354a9d0f
10 changed files with 630 additions and 118 deletions

View File

@@ -147,7 +147,11 @@ export interface Journal_Entry {
for_type?: null|string;
for_id?: null|string;
activity_code?: null|string;
category_code?: null|string;
topic_code?: null|string;
type_code?: null|string;
journal_entry_type?: null|string; // This is the type of journal entry
account_id?: null|string; // Owner account of the journal
@@ -155,10 +159,6 @@ export interface Journal_Entry {
// event_id?: null|string; // Assign to an event???
// location_id?: null|string; // Assign to a location???
activity?: null|string;
category?: null|string;
topic?: null|string;
public?: null|boolean;
private?: null|boolean;
personal?: null|boolean;
@@ -176,10 +176,23 @@ export interface Journal_Entry {
start_datetime?: null|Date;
end_datetime?: null|Date;
timezone?: null|string;
seconds?: null|number; // Duration in seconds
location?: null|string; // Location of the journal entry
latitude?: null|number; // Latitude of the journal entry
longitude?: null|number; // Longitude of the journal entry
billable?: null|boolean; // Is this billable?
bill_to?: null|string; // Who to bill for this journal entry
bill_rate?: null|number; // Rate to bill for this journal entry
billable_minutes?: null|number; // Billable minutes for this journal entry
alert?: null|boolean; // LLM (AI) generated summary...???
alert_msg?: null|string; // LLM (AI) generated summary...???
parent_id?: null|string; // This is the parent journal entry ID. If deleted, then delete all children journal entries.
related_entry_id_li?: null|key_val; // List of related journal entry IDs
// cfg_json?: null|key_val; // This is the configuration JSON for the journal entry
data_json?: null|string; // We always need to store something extra...