first commit

This commit is contained in:
Simon Pocrnjič
2024-10-28 21:08:16 +01:00
commit 90a5858320
199 changed files with 21177 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
export interface Item {
key: String,
title: String,
type: 'string' | 'number' | 'boolean' | 'date' | 'array' | 'object'
val: any
}
export interface TableColumn {
data: String | Number | HTMLElement,
type: 'header' | 'body' | 'footer',
link?: {route: String, options: Object}
}
export interface TableRow {
cols: Array<TableColumn>,
edit: Boolean
}
+50
View File
@@ -0,0 +1,50 @@
export interface Person {
uuid: String,
nu?: Number,
first_name?: String,
last_name?: String,
full_name?: String,
gender?: String,
birthday?: Date,
tax_number?: String,
social_security_number?: String,
description?: String,
type?: TypeDefault,
group?: Group,
addresses?: Array<any>
}
export interface Contract {
uuid: String,
reference?: String,
start_date?: Date,
end_date?: Date,
type?: TypeDefault,
debtor: Person
}
export interface Client extends Person {
contracts: Array<Contract>,
}
export interface Group {
id: Number,
name?: String,
description?: String
}
export interface TypeDefault {
id: Number,
name: String,
description?: String
}
export interface Address {
id: Number,
address: String,
country: String,
type: TypeDefault,
description: String,
}