@mrck-labs/vanaheim-shared 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{database-DcvgXSOp.d.mts → database-Ba3MmDa9.d.mts} +19 -2
- package/dist/{database-DcvgXSOp.d.ts → database-Ba3MmDa9.d.ts} +19 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +50 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +50 -3
- package/dist/index.mjs.map +1 -1
- package/dist/query/index.d.mts +28 -0
- package/dist/query/index.d.ts +28 -0
- package/dist/query/index.js +50 -3
- package/dist/query/index.js.map +1 -1
- package/dist/query/index.mjs +50 -3
- package/dist/query/index.mjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -308,7 +308,7 @@ interface HealthStats {
|
|
|
308
308
|
bestStreak: number;
|
|
309
309
|
weeklyCompletions: number;
|
|
310
310
|
}
|
|
311
|
-
type HealthMeasurementType = 'weight' | 'height' | 'body_fat' | 'bmi';
|
|
311
|
+
type HealthMeasurementType = 'weight' | 'height' | 'body_fat' | 'bmi' | 'steps' | 'sleep_hours';
|
|
312
312
|
type HealthMeasurementSource = 'apple_health' | 'manual';
|
|
313
313
|
interface HealthMeasurement {
|
|
314
314
|
id: string;
|
|
@@ -344,6 +344,23 @@ interface WeightStats {
|
|
|
344
344
|
trend: 'up' | 'down' | 'stable' | null;
|
|
345
345
|
measurements: number;
|
|
346
346
|
}
|
|
347
|
+
interface StepsStats {
|
|
348
|
+
today: number;
|
|
349
|
+
todayDate: string | null;
|
|
350
|
+
weeklyAverage: number | null;
|
|
351
|
+
highest: number | null;
|
|
352
|
+
highestDate: string | null;
|
|
353
|
+
total: number;
|
|
354
|
+
measurements: number;
|
|
355
|
+
}
|
|
356
|
+
interface SleepStats {
|
|
357
|
+
lastNight: number | null;
|
|
358
|
+
lastNightDate: string | null;
|
|
359
|
+
weeklyAverage: number | null;
|
|
360
|
+
highest: number | null;
|
|
361
|
+
lowest: number | null;
|
|
362
|
+
measurements: number;
|
|
363
|
+
}
|
|
347
364
|
interface Setting {
|
|
348
365
|
id: string;
|
|
349
366
|
userId: string;
|
|
@@ -506,4 +523,4 @@ interface NoteFilters {
|
|
|
506
523
|
search?: string;
|
|
507
524
|
}
|
|
508
525
|
|
|
509
|
-
export type {
|
|
526
|
+
export type { MealType as $, NewHealthCompletion as A, BankConnectionStatus as B, ChatMessageRole as C, HealthHabitFilters as D, ExpenseCategory as E, FocusCategory as F, HealthCompletionFilters as G, HealthCategory as H, IncomeCategory as I, HealthStats as J, HealthMeasurementType as K, LieuDayType as L, HealthMeasurementSource as M, NewExpenseCategory as N, HealthMeasurement as O, NewHealthMeasurement as P, HealthMeasurementFilters as Q, SleepStats as R, StepsStats as S, TransactionType as T, Setting as U, ExchangeRate as V, WeightStats as W, DailyPriority as X, DailyPlan as Y, NewDailyPlan as Z, ParsedDailyPlan as _, Expense as a, MealPlan as a0, NewMealPlan as a1, PrepSession as a2, NewPrepSession as a3, FocusArea as a4, WeeklyPlan as a5, NewWeeklyPlan as a6, ParsedWeeklyPlan as a7, NoteType as a8, NoteFolder as a9, NewNoteFolder as aa, Note as ab, NewNote as ac, NoteFilters as ad, NewExpense as b, NewIncomeCategory as c, Income as d, NewIncome as e, NewFocusCategory as f, FocusSessionStatus as g, FocusSession as h, NewFocusSession as i, FocusSessionFilters as j, ChatConversation as k, NewChatConversation as l, ChatMessage as m, NewChatMessage as n, EFLink as o, NewEFLink as p, LieuDay as q, NewLieuDay as r, BankConnection as s, BankTransaction as t, NewHealthCategory as u, HealthFrequencyType as v, HealthFrequencyConfig as w, HealthHabit as x, NewHealthHabit as y, HealthCompletion as z };
|
|
@@ -308,7 +308,7 @@ interface HealthStats {
|
|
|
308
308
|
bestStreak: number;
|
|
309
309
|
weeklyCompletions: number;
|
|
310
310
|
}
|
|
311
|
-
type HealthMeasurementType = 'weight' | 'height' | 'body_fat' | 'bmi';
|
|
311
|
+
type HealthMeasurementType = 'weight' | 'height' | 'body_fat' | 'bmi' | 'steps' | 'sleep_hours';
|
|
312
312
|
type HealthMeasurementSource = 'apple_health' | 'manual';
|
|
313
313
|
interface HealthMeasurement {
|
|
314
314
|
id: string;
|
|
@@ -344,6 +344,23 @@ interface WeightStats {
|
|
|
344
344
|
trend: 'up' | 'down' | 'stable' | null;
|
|
345
345
|
measurements: number;
|
|
346
346
|
}
|
|
347
|
+
interface StepsStats {
|
|
348
|
+
today: number;
|
|
349
|
+
todayDate: string | null;
|
|
350
|
+
weeklyAverage: number | null;
|
|
351
|
+
highest: number | null;
|
|
352
|
+
highestDate: string | null;
|
|
353
|
+
total: number;
|
|
354
|
+
measurements: number;
|
|
355
|
+
}
|
|
356
|
+
interface SleepStats {
|
|
357
|
+
lastNight: number | null;
|
|
358
|
+
lastNightDate: string | null;
|
|
359
|
+
weeklyAverage: number | null;
|
|
360
|
+
highest: number | null;
|
|
361
|
+
lowest: number | null;
|
|
362
|
+
measurements: number;
|
|
363
|
+
}
|
|
347
364
|
interface Setting {
|
|
348
365
|
id: string;
|
|
349
366
|
userId: string;
|
|
@@ -506,4 +523,4 @@ interface NoteFilters {
|
|
|
506
523
|
search?: string;
|
|
507
524
|
}
|
|
508
525
|
|
|
509
|
-
export type {
|
|
526
|
+
export type { MealType as $, NewHealthCompletion as A, BankConnectionStatus as B, ChatMessageRole as C, HealthHabitFilters as D, ExpenseCategory as E, FocusCategory as F, HealthCompletionFilters as G, HealthCategory as H, IncomeCategory as I, HealthStats as J, HealthMeasurementType as K, LieuDayType as L, HealthMeasurementSource as M, NewExpenseCategory as N, HealthMeasurement as O, NewHealthMeasurement as P, HealthMeasurementFilters as Q, SleepStats as R, StepsStats as S, TransactionType as T, Setting as U, ExchangeRate as V, WeightStats as W, DailyPriority as X, DailyPlan as Y, NewDailyPlan as Z, ParsedDailyPlan as _, Expense as a, MealPlan as a0, NewMealPlan as a1, PrepSession as a2, NewPrepSession as a3, FocusArea as a4, WeeklyPlan as a5, NewWeeklyPlan as a6, ParsedWeeklyPlan as a7, NoteType as a8, NoteFolder as a9, NewNoteFolder as aa, Note as ab, NewNote as ac, NoteFilters as ad, NewExpense as b, NewIncomeCategory as c, Income as d, NewIncome as e, NewFocusCategory as f, FocusSessionStatus as g, FocusSession as h, NewFocusSession as i, FocusSessionFilters as j, ChatConversation as k, NewChatConversation as l, ChatMessage as m, NewChatMessage as n, EFLink as o, NewEFLink as p, LieuDay as q, NewLieuDay as r, BankConnection as s, BankTransaction as t, NewHealthCategory as u, HealthFrequencyType as v, HealthFrequencyConfig as w, HealthHabit as x, NewHealthHabit as y, HealthCompletion as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as BankConnection, B as BankConnectionStatus, t as BankTransaction, k as ChatConversation, m as ChatMessage, C as ChatMessageRole,
|
|
1
|
+
export { s as BankConnection, B as BankConnectionStatus, t as BankTransaction, k as ChatConversation, m as ChatMessage, C as ChatMessageRole, Y as DailyPlan, X as DailyPriority, o as EFLink, V as ExchangeRate, a as Expense, E as ExpenseCategory, a4 as FocusArea, F as FocusCategory, h as FocusSession, j as FocusSessionFilters, g as FocusSessionStatus, H as HealthCategory, z as HealthCompletion, G as HealthCompletionFilters, w as HealthFrequencyConfig, v as HealthFrequencyType, x as HealthHabit, D as HealthHabitFilters, O as HealthMeasurement, Q as HealthMeasurementFilters, M as HealthMeasurementSource, K as HealthMeasurementType, J as HealthStats, d as Income, I as IncomeCategory, q as LieuDay, L as LieuDayType, a0 as MealPlan, $ as MealType, l as NewChatConversation, n as NewChatMessage, Z as NewDailyPlan, p as NewEFLink, b as NewExpense, N as NewExpenseCategory, f as NewFocusCategory, i as NewFocusSession, u as NewHealthCategory, A as NewHealthCompletion, y as NewHealthHabit, P as NewHealthMeasurement, e as NewIncome, c as NewIncomeCategory, r as NewLieuDay, a1 as NewMealPlan, ac as NewNote, aa as NewNoteFolder, a3 as NewPrepSession, a6 as NewWeeklyPlan, ab as Note, ad as NoteFilters, a9 as NoteFolder, a8 as NoteType, _ as ParsedDailyPlan, a7 as ParsedWeeklyPlan, a2 as PrepSession, U as Setting, R as SleepStats, S as StepsStats, T as TransactionType, a5 as WeeklyPlan, W as WeightStats } from './database-Ba3MmDa9.mjs';
|
|
2
2
|
export { ApiKeyInfo, CloudAgent, CloudAgentConversation, CloudAgentMessage, CloudAgentMessageType, CloudAgentModel, CloudAgentPrompt, CloudAgentSource, CloudAgentStatus, CloudAgentTarget, IssueQueryOptions, LINEAR_PRIORITY_LABELS, LaunchAgentRequest, LinearIssue, LinearPriority, LinearProject, LinearState, LinearStateType, LinearUser, ListAgentsResponse, ModelsResponse, PaginatedIssues } from './types/index.mjs';
|
|
3
3
|
export { API_URLS, CLOUD_AGENT_STATUSES, CLOUD_AGENT_STATUS_COLORS, CLOUD_AGENT_STATUS_EMOJI, CURRENCIES, CURRENCY_NAMES, CURRENCY_SYMBOLS, Currency, DAY_OPTIONS, DEFAULT_FOCUS_DURATIONS, FOCUS_STATUS, FREQUENCIES, FREQUENCY_LABELS, FREQUENCY_MULTIPLIERS, FREQUENCY_OPTIONS, FocusDuration, FocusStatus, Frequency, HEALTH_FREQUENCY_LABELS, HEALTH_FREQUENCY_TYPES, LINEAR_PRIORITIES, LINEAR_PRIORITY_COLORS, LinearPriorityValue, PRESET_COLORS, PRESET_ICONS, SETTING_KEYS, SettingKey } from './constants/index.mjs';
|
|
4
4
|
export { WeeklyProgressItem, calculateFocusStats, calculateLieuBalance, calculateMonthlyExpenses, calculateMonthlyIncome, calculateMonthlySavings, calculateSavingsRate, calculateWeeklyProgress, formatCurrency, formatDate, formatDueDate, formatDuration, formatRelativeTime, formatTime, formatTotalTime, generateId, generateRandomColor, generateShortId, getFrequencyDescription, getRepoName, isNonEmptyString, isPositiveNumber, isValidCurrency, isValidEmail, isValidFrequency, isValidISODate, isValidUrl, parseFrequencyConfig, shouldDoOnDate, shouldDoToday, stringifyFrequencyConfig, toMonthlyAmount, toYearlyAmount, truncate } from './utils/index.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as BankConnection, B as BankConnectionStatus, t as BankTransaction, k as ChatConversation, m as ChatMessage, C as ChatMessageRole,
|
|
1
|
+
export { s as BankConnection, B as BankConnectionStatus, t as BankTransaction, k as ChatConversation, m as ChatMessage, C as ChatMessageRole, Y as DailyPlan, X as DailyPriority, o as EFLink, V as ExchangeRate, a as Expense, E as ExpenseCategory, a4 as FocusArea, F as FocusCategory, h as FocusSession, j as FocusSessionFilters, g as FocusSessionStatus, H as HealthCategory, z as HealthCompletion, G as HealthCompletionFilters, w as HealthFrequencyConfig, v as HealthFrequencyType, x as HealthHabit, D as HealthHabitFilters, O as HealthMeasurement, Q as HealthMeasurementFilters, M as HealthMeasurementSource, K as HealthMeasurementType, J as HealthStats, d as Income, I as IncomeCategory, q as LieuDay, L as LieuDayType, a0 as MealPlan, $ as MealType, l as NewChatConversation, n as NewChatMessage, Z as NewDailyPlan, p as NewEFLink, b as NewExpense, N as NewExpenseCategory, f as NewFocusCategory, i as NewFocusSession, u as NewHealthCategory, A as NewHealthCompletion, y as NewHealthHabit, P as NewHealthMeasurement, e as NewIncome, c as NewIncomeCategory, r as NewLieuDay, a1 as NewMealPlan, ac as NewNote, aa as NewNoteFolder, a3 as NewPrepSession, a6 as NewWeeklyPlan, ab as Note, ad as NoteFilters, a9 as NoteFolder, a8 as NoteType, _ as ParsedDailyPlan, a7 as ParsedWeeklyPlan, a2 as PrepSession, U as Setting, R as SleepStats, S as StepsStats, T as TransactionType, a5 as WeeklyPlan, W as WeightStats } from './database-Ba3MmDa9.js';
|
|
2
2
|
export { ApiKeyInfo, CloudAgent, CloudAgentConversation, CloudAgentMessage, CloudAgentMessageType, CloudAgentModel, CloudAgentPrompt, CloudAgentSource, CloudAgentStatus, CloudAgentTarget, IssueQueryOptions, LINEAR_PRIORITY_LABELS, LaunchAgentRequest, LinearIssue, LinearPriority, LinearProject, LinearState, LinearStateType, LinearUser, ListAgentsResponse, ModelsResponse, PaginatedIssues } from './types/index.js';
|
|
3
3
|
export { API_URLS, CLOUD_AGENT_STATUSES, CLOUD_AGENT_STATUS_COLORS, CLOUD_AGENT_STATUS_EMOJI, CURRENCIES, CURRENCY_NAMES, CURRENCY_SYMBOLS, Currency, DAY_OPTIONS, DEFAULT_FOCUS_DURATIONS, FOCUS_STATUS, FREQUENCIES, FREQUENCY_LABELS, FREQUENCY_MULTIPLIERS, FREQUENCY_OPTIONS, FocusDuration, FocusStatus, Frequency, HEALTH_FREQUENCY_LABELS, HEALTH_FREQUENCY_TYPES, LINEAR_PRIORITIES, LINEAR_PRIORITY_COLORS, LinearPriorityValue, PRESET_COLORS, PRESET_ICONS, SETTING_KEYS, SettingKey } from './constants/index.js';
|
|
4
4
|
export { WeeklyProgressItem, calculateFocusStats, calculateLieuBalance, calculateMonthlyExpenses, calculateMonthlyIncome, calculateMonthlySavings, calculateSavingsRate, calculateWeeklyProgress, formatCurrency, formatDate, formatDueDate, formatDuration, formatRelativeTime, formatTime, formatTotalTime, generateId, generateRandomColor, generateShortId, getFrequencyDescription, getRepoName, isNonEmptyString, isPositiveNumber, isValidCurrency, isValidEmail, isValidFrequency, isValidISODate, isValidUrl, parseFrequencyConfig, shouldDoOnDate, shouldDoToday, stringifyFrequencyConfig, toMonthlyAmount, toYearlyAmount, truncate } from './utils/index.js';
|
package/dist/index.js
CHANGED
|
@@ -720,9 +720,22 @@ var queryKeys = {
|
|
|
720
720
|
lists: () => [...queryKeys.healthMeasurements.all, "list"],
|
|
721
721
|
list: (filters) => [...queryKeys.healthMeasurements.lists(), filters],
|
|
722
722
|
weight: () => [...queryKeys.healthMeasurements.all, "weight"],
|
|
723
|
-
weightInRange: (dateFrom, dateTo) => [
|
|
723
|
+
weightInRange: (dateFrom, dateTo) => [
|
|
724
|
+
...queryKeys.healthMeasurements.all,
|
|
725
|
+
"weight",
|
|
726
|
+
dateFrom,
|
|
727
|
+
dateTo
|
|
728
|
+
],
|
|
724
729
|
latest: (type) => [...queryKeys.healthMeasurements.all, "latest", type],
|
|
725
|
-
detail: (id) => [...queryKeys.healthMeasurements.all, "detail", id]
|
|
730
|
+
detail: (id) => [...queryKeys.healthMeasurements.all, "detail", id],
|
|
731
|
+
// Generic by type (steps, sleep_hours, etc.)
|
|
732
|
+
byType: (type, dateFrom, dateTo) => [
|
|
733
|
+
...queryKeys.healthMeasurements.all,
|
|
734
|
+
"type",
|
|
735
|
+
type,
|
|
736
|
+
dateFrom,
|
|
737
|
+
dateTo
|
|
738
|
+
]
|
|
726
739
|
},
|
|
727
740
|
// -------------------------------------------------------------------------
|
|
728
741
|
// Prompts
|
|
@@ -816,7 +829,13 @@ var queryKeys = {
|
|
|
816
829
|
googleCalendar: {
|
|
817
830
|
all: ["googleCalendar"],
|
|
818
831
|
calendars: () => [...queryKeys.googleCalendar.all, "calendars"],
|
|
819
|
-
events: (calendarId, timeMin, timeMax) => [
|
|
832
|
+
events: (calendarId, timeMin, timeMax) => [
|
|
833
|
+
...queryKeys.googleCalendar.all,
|
|
834
|
+
"events",
|
|
835
|
+
calendarId,
|
|
836
|
+
timeMin,
|
|
837
|
+
timeMax
|
|
838
|
+
]
|
|
820
839
|
},
|
|
821
840
|
// -------------------------------------------------------------------------
|
|
822
841
|
// Linear
|
|
@@ -913,6 +932,34 @@ var queryKeys = {
|
|
|
913
932
|
detail: (id) => [...queryKeys.notes.all, "detail", id],
|
|
914
933
|
pinned: () => [...queryKeys.notes.all, "pinned"],
|
|
915
934
|
recent: () => [...queryKeys.notes.all, "recent"]
|
|
935
|
+
},
|
|
936
|
+
// -------------------------------------------------------------------------
|
|
937
|
+
// SE Flow Module - Software Engineering Workflow
|
|
938
|
+
// -------------------------------------------------------------------------
|
|
939
|
+
seFlowProducts: {
|
|
940
|
+
all: ["seFlowProducts"],
|
|
941
|
+
lists: () => [...queryKeys.seFlowProducts.all, "list"],
|
|
942
|
+
list: (includeArchived) => [...queryKeys.seFlowProducts.lists(), { includeArchived }],
|
|
943
|
+
detail: (id) => [...queryKeys.seFlowProducts.all, "detail", id],
|
|
944
|
+
withRelations: (id) => [...queryKeys.seFlowProducts.all, "withRelations", id]
|
|
945
|
+
},
|
|
946
|
+
seFlowWorkflows: {
|
|
947
|
+
all: ["seFlowWorkflows"],
|
|
948
|
+
lists: () => [...queryKeys.seFlowWorkflows.all, "list"],
|
|
949
|
+
byProduct: (productId) => [...queryKeys.seFlowWorkflows.all, "byProduct", productId],
|
|
950
|
+
active: () => [...queryKeys.seFlowWorkflows.all, "active"],
|
|
951
|
+
detail: (id) => [...queryKeys.seFlowWorkflows.all, "detail", id],
|
|
952
|
+
withRelations: (id) => [...queryKeys.seFlowWorkflows.all, "withRelations", id]
|
|
953
|
+
},
|
|
954
|
+
seFlowTasks: {
|
|
955
|
+
all: ["seFlowTasks"],
|
|
956
|
+
lists: () => [...queryKeys.seFlowTasks.all, "list"],
|
|
957
|
+
byWorkflow: (workflowId) => [...queryKeys.seFlowTasks.all, "byWorkflow", workflowId],
|
|
958
|
+
detail: (id) => [...queryKeys.seFlowTasks.all, "detail", id]
|
|
959
|
+
},
|
|
960
|
+
seFlowActivity: {
|
|
961
|
+
all: ["seFlowActivity"],
|
|
962
|
+
byWorkflow: (workflowId) => [...queryKeys.seFlowActivity.all, "byWorkflow", workflowId]
|
|
916
963
|
}
|
|
917
964
|
};
|
|
918
965
|
|