Commit Graph

84 Commits

Author SHA1 Message Date
ae61c03bb9 [fabric/domain] Format Query type definition for improved readability 2024-10-30 22:40:57 -03:00
e92de85fe8 [fabric/domain] Rename event types to DomainEvent 2024-10-30 22:40:31 -03:00
b77ba6dc83 [fabric/core] Overload AsyncResult.ok method to support optional value parameter 2024-10-30 22:38:28 -03:00
623e67afeb [fabric/sqlite-store] Refactor to include changes to JSONUtils and Models 2024-10-24 00:01:44 -03:00
a053ca225b [fabric/domain] Improve optional field support and move parsing inside model definition 2024-10-23 23:56:56 -03:00
f30535055f [fabric/validations] Update string sanitization to return undefined for non-string values 2024-10-23 23:54:46 -03:00
6329044415 [fabric/domain] Simplify model field definitions 2024-10-23 23:52:12 -03:00
36b5286a09 [fabric/core] Add JSON utility functions for parsing and stringifying with core types 2024-10-23 23:50:16 -03:00
de49970c0c [fabric/core] Improve documentation for Optional type 2024-10-22 20:12:05 -03:00
f189f8994f [fabric/core] Add variantConstructor utility for tagged variants 2024-10-22 20:07:00 -03:00
dd95d58e3a [fabric/core] Prepare deno.json for publish 2024-10-21 13:04:05 -03:00
ab41ff028d [fabric/core] Add variantConstructor utility for tagged variants 2024-10-21 13:02:26 -03:00
65432d1c54 [fabric/core] Rename mapError to errorMap; add Result.assert utility function 2024-10-21 13:01:58 -03:00
523578e310 [fabric/sqlite-store] Refactor SQL key handling functions for consistency and clarity 2024-10-20 23:13:41 -03:00
9f9419c2b6 [fabric/domain] Simplify model definition 2024-10-20 23:13:06 -03:00
25870c8558 [fabric/domain] move validation files to models directory and update imports 2024-10-20 11:53:59 -03:00
3b0533b0a9 [fabric/domain] Add base model validations 2024-10-20 11:36:03 -03:00
87ce76e13f Fix imports and remove some unused files 2024-10-20 11:35:24 -03:00
8d1528de23 Add validation utilities as a separate package 2024-10-20 11:34:14 -03:00
de8c249faf Rename deno.jsonc to deno.json and improve imports definitions to better define dependencies 2024-10-20 11:32:58 -03:00
2cd252511a [fabric/core] Move some types from domain to core 2024-10-20 11:31:22 -03:00
53a7b31bdc [fabric/core] Add ClockTime class 2024-10-20 11:29:51 -03:00
c38f74414b [fabric/sqlite-store] Refactor collection references to use new model definitions 2024-10-17 14:41:14 -03:00
3c3ce276c0 [fabric/domain] Refactor aggregate model implementation and related types 2024-10-17 14:36:49 -03:00
2ed9291c4d [fabric/core] Add utility functions for value checks and string sanitization 2024-10-17 14:32:47 -03:00
4574b9871b [templates/domain] Refactor UseCases to use Query type instead of UseCaseDefinition 2024-10-16 16:22:41 -03:00
67921efac7 [fabric/sqlite-store] Refactor event store and query builder to use the new AsyncResult 2024-10-16 16:22:02 -03:00
307a82d83c [fabric/domain] Rename StoreQuery 2024-10-16 16:21:03 -03:00
558ee2b9bc [fabric/domain] Refactor use-cases to commands and queries 2024-10-16 16:18:19 -03:00
d56c4bd469 [fabric/core] convert AsyncResult to a class for improved usability and update Run functions to use AsyncResult 2024-10-16 16:15:57 -03:00
dfee950913 Remove src directory in template modules 2024-10-16 12:41:19 -03:00
aadefd30f8 [fabric/testing] Remove src directory 2024-10-16 12:33:17 -03:00
6d2218f9f5 [fabric/sqlite-store] Remove src directory 2024-10-16 11:53:28 -03:00
72780b9803 [fabric/domain] Remove src directory 2024-10-16 11:53:03 -03:00
26cc090284 [fabric/core] Remove src directory for improved usability 2024-10-16 02:07:20 -03:00
7f4a0bd06b [templates/domain] Update import statements to use TypeScript file extensions 2024-10-16 02:03:51 -03:00
4cc99aec91 Format files and configure workspace formatting in vscode 2024-10-16 01:53:38 -03:00
a79683d9d4 Migrate template modules to deno 2 2024-10-16 01:53:15 -03:00
f6de496e73 Migrate packages to deno 2 2024-10-16 01:33:51 -03:00
8c6f043f86 [fabric/domain] Add Projection interface to handle model projection from events 2024-10-15 15:16:10 -03:00
c9a061419c [fabric/sqlite-store] Add null handling for value conversion and update tests for deletedAt field 2024-10-15 15:13:59 -03:00
6a0be50ef7 [fabric/domain] Simplify StoreQueryError constructor 2024-10-15 15:13:21 -03:00
758f8d933a [fabric/domain] Add optional deletedAt field to DefaultModelFields 2024-10-15 15:12:01 -03:00
76af85a496 [fabric/core] Add ensureValue utility function and export utils 2024-10-15 15:10:37 -03:00
0ac04a839f [fabric/core] Add export for Record type in core types 2024-10-15 15:10:08 -03:00
7a56c34941 [fabric/core] Refactor TaggedError and UnexpectedError to accept custom error messages 2024-10-15 14:58:22 -03:00
1886c52ece [fabric/core] Enhance VariantMatcher to support return type parameterization in match function 2024-10-15 07:59:52 -03:00
38e23ba095 Refactor event interface to use VariantTag for event types 2024-10-15 07:45:11 -03:00
4ea00f515b [fabric/sqlite-store] Implement SQLiteEventStore 2024-10-14 09:56:45 -03:00
a6a303f256 [fabric/domain] Refactor EventStore interface and remove EventStream 2024-10-14 09:55:39 -03:00