Commit Graph

59 Commits

Author SHA1 Message Date
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
9a63ba22f1 [fabric/domain] Add 'utils' export 2024-10-14 09:50:43 -03:00
3afdb5d230 [fabric/domain] Remove validator dependency and simplify isInMemoryFile function 2024-10-14 09:50:01 -03:00
b71ecb5de1 [fabric/core] Add EmptyRecord type to define an empty object structure 2024-10-14 09:49:12 -03:00
4171107227 [fabric/core] Add Run.seq overload to handle 4 params 2024-10-14 09:48:43 -03:00
6b46677be9 [fabric/core] Refactor AsyncResult to accept MaybePromise in tryFrom and from functions 2024-10-14 09:47:18 -03:00
559a3f3c22 Update packages and vitest configurations 2024-10-12 21:33:05 -03:00
d62b588033 Rename store-sqlite -> sqlite-store to match package name 2024-10-12 17:08:54 -03:00
d443e9e395 Remove storage-driver interface; Add state-store as driver-specific implementation 2024-10-12 17:01:25 -03:00
010e3eecfc Standardize exports and add exports field for improved module resolution 2024-10-12 16:59:09 -03:00
69caa775d1 Rename store-sqlite package to sqlite-store and update imports accordingly 2024-10-12 15:47:48 -03:00
475ec309cb [fabric/store-sqlite] Refactor SQLite wrapper: replace old functions with SQLiteDatabase class for improved management and caching of statements 2024-10-12 15:41:12 -03:00
6919a819b6 [fabric/domain] Refactor event store and event stream interfaces 2024-10-12 15:39:51 -03:00
4fff9f91f5 [fabric/domain] Improve Result & AsyncResult types; Refactor model types; Add timestamp and embedded field support 2024-10-10 15:19:15 -03:00
f30d2c47c5 [fabric/domain] Add decimal type export 2024-10-09 09:29:52 -03:00
14ca23ef74 [fabric/domain] Setup service and mock exports 2024-10-08 15:40:07 -03:00
f07928b893 [fabric/domain] Add StateStore filtering 2024-10-08 15:33:59 -03:00
f0c77398e6 [fabric/domain] Add typed insertion to state-store 2024-10-05 11:10:04 -03:00
27dbd44741 [fabric/store-sqlite] Pass all tests for base sqlite-driver implementation 2024-10-04 11:57:06 -03:00
09f045daf6 [fabric/domain] Add reference-field utility to get target key 2024-10-04 11:55:44 -03:00
290544dc9a [fabric/core] rename isVariant to Variant.is 2024-10-04 11:54:35 -03:00
9092b032b3 [fabric/domain] improve structure 2024-10-04 11:10:29 -03:00
3f91e35790 [fabric/core] Add isVariant utility function 2024-10-04 11:07:57 -03:00
80c34e4649 @fabric/domain: extract domain utils from fabric/core and create a new package 2024-09-25 08:20:40 -03:00
59810a2118 fabric-core: Improve some types names 2024-09-21 21:10:57 -03:00
029bf431dd fabric-core: Improve model definitions 2024-09-21 02:27:08 -03:00