diff --git a/src/models/act.ts b/src/models/act.ts new file mode 100644 index 0000000..8f789a5 --- /dev/null +++ b/src/models/act.ts @@ -0,0 +1,10 @@ +export interface Act { + id: string; + transferId: string; + number: string; + amount: number; + receivedAt: string | null; + sentToPayAt: string | null; + paidAt: string | null; + fileName: string | null; +} diff --git a/src/models/approval.ts b/src/models/approval.ts new file mode 100644 index 0000000..f1c0c22 --- /dev/null +++ b/src/models/approval.ts @@ -0,0 +1,8 @@ +export interface Approval { + id: string; + transferId: string; + organizationId: string; + personId: string | null; + approvedAt: string; + validDays: number; +} diff --git a/src/models/letter.ts b/src/models/letter.ts new file mode 100644 index 0000000..2bd9e87 --- /dev/null +++ b/src/models/letter.ts @@ -0,0 +1,12 @@ +export type LetterType = 'incoming' | 'outgoing'; + +export interface Letter { + id: string; + type: LetterType; + number: string; + signedAt: string; + organizationId: string; + fileName: string | null; + revisionId: string | null; + transferId: string | null; +} diff --git a/src/models/revision.ts b/src/models/revision.ts new file mode 100644 index 0000000..7d901e4 --- /dev/null +++ b/src/models/revision.ts @@ -0,0 +1,8 @@ +export interface Revision { + id: string; + setId: string; + number: string; + authorId: string; + note: string; + createdAt: string; +} diff --git a/src/models/transfer.ts b/src/models/transfer.ts new file mode 100644 index 0000000..f554c2b --- /dev/null +++ b/src/models/transfer.ts @@ -0,0 +1,11 @@ +export interface Transfer { + id: string; + setId: string; + revisionId: string; + senderPersonId: string | null; + toOrganizationId: string; + receiverPersonId: string | null; + sentAt: string; + returnedAt: string | null; + note: string; +}