aboutsummaryrefslogtreecommitdiffstats
path: root/cli/src/types.ts
diff options
context:
space:
mode:
authorivar <i@oiee.no>2026-03-09 23:05:38 +0100
committerivar <i@oiee.no>2026-03-09 23:05:38 +0100
commit69448e29a85cad3a94b3be3ad33efbc52764528f (patch)
treec32b8c817322fdf26edbbb3fa75b9505a7020ae8 /cli/src/types.ts
parentb35302fa020ec82a9d67a6cb34379d42983d3cfc (diff)
downloadsparebank1-actualbudget-master.tar.xz
sparebank1-actualbudget-master.zip
Add wip cliHEADmaster
Diffstat (limited to 'cli/src/types.ts')
-rw-r--r--cli/src/types.ts40
1 files changed, 40 insertions, 0 deletions
diff --git a/cli/src/types.ts b/cli/src/types.ts
new file mode 100644
index 0000000..eea7c9b
--- /dev/null
+++ b/cli/src/types.ts
@@ -0,0 +1,40 @@
+export type Sb1Tokens = {
+ access_token: string
+ expires_in: number
+ refresh_token_expires_in: number
+ refresh_token_absolute_expires_in: number
+ token_type: string
+ refresh_token: string
+}
+
+export type Sb1Account = {
+ key: string
+ accountNumber: string
+ iban: string
+ name: string
+ balance: number
+ availableBalance: number
+ currencyCode: string
+}
+
+export type Sb1Transaction = {
+ id: string
+ nonUniqueId: string
+ description: string
+ cleanedDescription: string
+ amount: number
+ date: number
+ typeCode: string
+ typeText: string
+ currencyCode: string
+ bookingStatus: string
+ accountName: string
+ accountKey: string
+}
+
+export type ActualAccount = {
+ id: string
+ name: string
+ type: string
+ closed: boolean
+}