Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/models/act.ts
Original file line number Diff line number Diff line change
@@ -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;
}
8 changes: 8 additions & 0 deletions src/models/approval.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export interface Approval {
id: string;
transferId: string;
organizationId: string;
personId: string | null;
approvedAt: string;
validDays: number;
}
12 changes: 12 additions & 0 deletions src/models/letter.ts
Original file line number Diff line number Diff line change
@@ -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;
}
8 changes: 8 additions & 0 deletions src/models/revision.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export interface Revision {
id: string;
setId: string;
number: string;
authorId: string;
note: string;
createdAt: string;
}
11 changes: 11 additions & 0 deletions src/models/transfer.ts
Original file line number Diff line number Diff line change
@@ -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;
}