From 3b8415167ef93c482ea787cd24223077e1923f51 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Wed, 27 Nov 2024 07:50:17 +0200 Subject: [PATCH] Add ExpenseBulk interface to entities --- src/lib/entities.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/lib/entities.ts b/src/lib/entities.ts index 8ac8150..4b8c4fc 100644 --- a/src/lib/entities.ts +++ b/src/lib/entities.ts @@ -41,6 +41,20 @@ export interface Expense { show_value: string; } +export interface ExpenseBulk { + propagate_card_id: boolean; + card_id: number; + propagate_type_id: boolean; + type_id: number; + propagate_value: boolean; + value: number; + propagate_comment: boolean; + comment: string; + propagate_date: boolean; + date: string; + children: Partial[]; +} + export interface Income { id: number; card_id: number; @@ -132,6 +146,7 @@ export const EntityTypes = { payment: "Payment", metric: "Metric", currency: "Currency", + expense_bulk: "ExpenseBulk", } as const; export type EntityName = keyof typeof EntityTypes; @@ -145,6 +160,7 @@ export type EntityType = T extends "payment" ? Payment : T extends "metric" ? Metric : T extends "currency" ? Currency : + T extends "expense_bulk" ? ExpenseBulk : never; //