FOSSredder 0.5.0
Loading...
Searching...
No Matches
WorkspaceSnapshot.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <cstdint>
9#include <string>
10#include <vector>
11
13
14namespace core::ports::workspace {
15
17 std::string value;
18 std::string kind;
19 std::string source;
20 int hitCount = 0;
21 std::string lastUsedAt;
22 std::string createdAt;
23 std::string updatedAt;
24};
25
27 std::string id;
28 std::string name;
29 std::vector<AliasSnapshot> aliases;
30 std::vector<std::string> contractIds;
31 std::string createdAt;
32 std::string updatedAt;
33};
34
36 std::string id;
37 std::string name;
38 std::vector<AliasSnapshot> aliases;
39 std::vector<std::string> contractIds;
40 std::string createdAt;
41 std::string updatedAt;
42};
43
45 std::string id;
46 std::string name;
47 std::string type;
48 std::string allocatableMode = "mixed";
49 std::vector<std::string> actorIds;
50 std::vector<std::string> propertyIds;
51 std::vector<AliasSnapshot> aliases;
52 std::string createdAt;
53 std::string updatedAt;
54};
55
57 std::string id;
58 std::string name;
59 std::vector<std::string> transactionIds;
60 std::string createdAt;
61 std::string updatedAt;
62};
63
65 std::string id;
66 std::string name;
67 std::string bookingDate;
68 std::string valuta;
69 double amount = 0.0;
70 int status = 0;
71 std::string contractId;
72 std::string contractType;
73 std::string actorId;
74 std::string statementId;
75 bool allocatable = false;
76 std::vector<std::string> propertyIds;
77 std::vector<std::string> propertyNames;
78 std::string createdAt;
79 std::string updatedAt;
80};
81
83 std::string id;
84 std::string name;
85 std::string type;
88 std::string exportFormat;
90 std::vector<TransactionSnapshot> snapshotTransactions;
91 std::vector<std::pair<std::string, double>> adjustments;
92 std::string createdAt;
93 std::string updatedAt;
94};
95
97 std::string id;
98 std::string name;
99 int year = 0;
100 std::vector<std::string> analysisIds;
101 std::string createdAt;
102 std::string updatedAt;
103};
104
106 std::string id;
107 std::string statementDraftId;
108 std::string name;
109 std::string bookingDate;
110 std::string valuta;
111 double amount = 0.0;
112 std::string actorId;
113 std::string contractId;
114 std::vector<std::string> propertyIds;
115 int status = 0;
116 bool allocatable = false;
117 int position = 0;
118 std::string metadata;
119 std::vector<uint8_t> proofImageData;
120};
121
123 std::string id;
124 std::string name;
125 std::vector<std::string> transactionIds;
126 std::string createdAt;
127 std::string updatedAt;
128 std::vector<TransactionDraftSnapshot> transactions;
129};
130
132 std::string id;
133 std::string time;
134 std::string type;
135 std::string file;
136 std::string status;
137 std::string message;
138 bool draftAttached = false;
139 std::string draftId;
140 std::vector<std::string> statementDraftIds;
141 std::string statementId;
142};
143
145 std::string id;
146 std::string time;
147 std::string targetPath;
148 std::string status;
149 std::string message;
150 std::vector<std::string> annualIds;
151 std::vector<std::string> analysisIds;
152};
153
155 std::string id;
156 std::string name;
157 std::string type;
158 std::string allocatableMode;
159 std::vector<std::string> actorIds;
160 std::vector<std::string> propertyIds;
161
166 [[nodiscard]] bool empty() const noexcept {
167 return id.empty();
168 }
169};
170
176 std::string actorId;
178 std::string contractId;
180 std::vector<std::string> propertyIds;
181};
182
190 bool contractChanged = false;
192 bool actorChanged = false;
194 bool propertiesChanged = false;
196 std::string contractId;
198 std::string actorId;
200 std::vector<std::string> propertyIds;
201};
202
204 std::string currentPath;
205 bool hasCurrentPath = false;
206
207 std::vector<ActorSnapshot> actors;
208 std::vector<PropertySnapshot> properties;
209 std::vector<ContractSnapshot> contracts;
210 std::vector<StatementSnapshot> statements;
211 std::vector<TransactionSnapshot> transactions;
212 std::vector<AnalysisSnapshot> analyses;
213 std::vector<AnnualSnapshot> annuals;
214 std::vector<StatementDraftSnapshot> statementDrafts;
215 std::vector<ImportLogSnapshot> importLogs;
216 std::vector<ExportLogSnapshot> exportLogs;
217
222 [[nodiscard]] bool empty() const noexcept {
223 return !hasCurrentPath && actors.empty() && properties.empty() && contracts.empty() &&
224 statements.empty() && transactions.empty() && analyses.empty() && annuals.empty() &&
225 statementDrafts.empty() && importLogs.empty() && exportLogs.empty();
226 }
227};
228
230 std::vector<std::string> deletedActorIds;
231 std::vector<std::string> deletedPropertyIds;
232 std::vector<std::string> deletedContractIds;
233 std::vector<std::string> deletedStatementIds;
234 std::vector<std::string> deletedTransactionIds;
235 std::vector<std::string> deletedAnalysisIds;
236 std::vector<std::string> deletedAnnualIds;
237 std::vector<std::string> deletedStatementDraftIds;
238 std::vector<std::string> deletedTransactionDraftIds;
239 std::vector<std::string> deletedImportLogIds;
240 std::vector<std::string> deletedExportLogIds;
241
246 [[nodiscard]] bool empty() const noexcept {
247 return deletedActorIds.empty() && deletedPropertyIds.empty() && deletedContractIds.empty() &&
248 deletedStatementIds.empty() && deletedTransactionIds.empty() &&
249 deletedAnalysisIds.empty() && deletedAnnualIds.empty() &&
251 deletedImportLogIds.empty() && deletedExportLogIds.empty();
252 }
253};
254
255} // namespace core::ports::workspace
Declares analysis use-case request DTOs and filter-spec helpers.
std::vector< AliasSnapshot > aliases
std::vector< std::string > contractIds
core::ports::analysis::AnalysisFilterSelection filter
core::ports::analysis::AnalysisConfigInput config
std::vector< TransactionSnapshot > snapshotTransactions
std::vector< std::pair< std::string, double > > adjustments
std::vector< std::string > deletedPropertyIds
std::vector< std::string > deletedContractIds
std::vector< std::string > deletedAnnualIds
std::vector< std::string > deletedActorIds
std::vector< std::string > deletedTransactionDraftIds
bool empty() const noexcept
Reports whether no ids were deleted.
std::vector< std::string > deletedImportLogIds
std::vector< std::string > deletedStatementIds
std::vector< std::string > deletedAnalysisIds
std::vector< std::string > deletedTransactionIds
std::vector< std::string > deletedExportLogIds
std::vector< std::string > deletedStatementDraftIds
std::vector< TransactionDraftSnapshot > transactions
Catalog selection change request for transaction forms.
bool propertiesChanged
True when propertyIds contains user-selected properties.
bool contractChanged
True when contractId contains a user-selected contract.
std::string actorId
New actor id when actorChanged is true.
TransactionCatalogSelection current
Current transaction catalog selection.
std::string contractId
New contract id when contractChanged is true.
bool actorChanged
True when actorId contains a user-selected actor.
std::vector< std::string > propertyIds
New property ids when propertiesChanged is true.
Transaction catalog ids selected by a UI form or workspace query.
std::vector< std::string > propertyIds
Selected property ids.
bool empty() const noexcept
Reports whether the identity has no id.
std::vector< AnalysisSnapshot > analyses
bool empty() const noexcept
Checks whether all snapshot collections are empty and no file is open.
std::vector< PropertySnapshot > properties
std::vector< ContractSnapshot > contracts
std::vector< StatementDraftSnapshot > statementDrafts
std::vector< StatementSnapshot > statements
std::vector< ImportLogSnapshot > importLogs
std::vector< ExportLogSnapshot > exportLogs
std::vector< TransactionSnapshot > transactions