I have been looking for a DDD + typescript + functional article for quite awhile. Thanks for dropping this.
I do have a question, could you provide a use-case for the getMatching method in subscriptionRepository. It would help me in understand how the Query type is being used in relation to the actual sql query syntax. Thanks.