From f02cf7cd74088bfb9edcce120174479d1d15cf1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Falco=CC=81n?= Date: Sat, 4 Jul 2026 20:33:12 +0200 Subject: [PATCH] Add missing TransactionSource cases to the TS type The TS TransactionSource union listed only manually_created and imported, while App\Enums\TransactionSource (PHP) also has enablebanking and wise. A transaction synced from Enable Banking or Wise therefore carried a source value outside the declared union. Add the two missing cases so the client type mirrors the backend enum. Automatic enum typegen is left as a follow-up (would touch the parallel-owned index.d.ts). --- resources/js/types/transaction.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/js/types/transaction.ts b/resources/js/types/transaction.ts index 76c78bff..2ef49b6a 100644 --- a/resources/js/types/transaction.ts +++ b/resources/js/types/transaction.ts @@ -3,7 +3,12 @@ import { type Category } from './category'; import { type Label } from './label'; import { UUID } from './uuid'; -export type TransactionSource = 'manually_created' | 'imported'; +// Mirrors App\Enums\TransactionSource (PHP). Keep both in sync. +export type TransactionSource = + | 'manually_created' + | 'imported' + | 'enablebanking' + | 'wise'; export type CategorySource = 'manual' | 'rule' | 'ai' | 'bank';