Initial web app consumption/integration (#5)

Co-authored-by: Joe Arndt <jmarndt@users.noreply.github.com>
Reviewed-on: #5
This commit is contained in:
Joe 2026-02-23 21:15:19 +00:00
parent 3f258bcd33
commit df6733caa9
41 changed files with 385 additions and 353 deletions

View file

@ -0,0 +1,43 @@
import { Category } from '../../categories/entities/category.entity';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { Merchant } from '../../merchants/entities/merchant.entity';
import { Tag } from '../../tags/entities/tag.entity';
import { Temporal } from '@js-temporal/polyfill';
export class GetExpenseDto {
@ApiProperty({
description: 'Unique ID of expense'
})
id: string;
@ApiProperty({
description: 'Date in YYYY-MM-DD format'
})
date: Temporal.PlainDate;
@ApiProperty({
description: 'Amount of expense in cents'
})
cents: number;
@ApiProperty({
description: 'Category of expense'
})
category: Category
@ApiPropertyOptional({
description: 'Note about expense'
})
note?: string;
@ApiPropertyOptional({
description: 'Merchant for the expense'
})
merchant?: Merchant;
@ApiPropertyOptional({
type: [Tag],
description: 'List of tags for the expense'
})
tags?: Tag[];
}