Commit Graph

49 Commits

Author SHA1 Message Date
Henrik Hüttemann 8ba2ce4cab Edit mapping types to use constants 2023-06-23 15:43:31 +02:00
Henrik Hüttemann 6b723db5a1 Move user and room handling to respective modules 2023-06-23 15:26:39 +02:00
Henrik Hüttemann 3459bbecd3 Move user exclusion test to user handler 2023-06-22 17:18:10 +02:00
Henrik Hüttemann 463daefeda Fix broken and deactivated user creation test 2023-06-22 16:34:03 +02:00
Henrik Hüttemann de87228b8d Move membership creation to users 2023-06-22 16:17:05 +02:00
Henrik Hüttemann 3e1169235c Add helper functions to get ID mappings 2023-06-22 15:43:40 +02:00
Henrik Hüttemann 680ad978ea Add tests for storage helper 2023-06-22 14:42:27 +02:00
Henrik Hüttemann 8dd4e66948 Sort TS imports 2023-06-19 20:43:54 +02:00
Henrik Hüttemann 830cf0b539 Add more explicit type annotations 2023-06-19 20:43:45 +02:00
Henrik Hüttemann 0007577bac Restructure rooms codebase and write tests 2023-06-16 19:58:14 +02:00
Henrik Hüttemann ab597195da Add membership handling 2023-06-14 15:02:10 +02:00
Henrik Hüttemann a06e379531 Move Membership side-effects to own function 2023-06-14 13:07:52 +02:00
Henrik Hüttemann 4a54b63cc0 Fix error for duplicate room memberships 2023-06-13 12:32:11 +02:00
Henrik Hüttemann 5d5c751de8 Fix promises to be awaited 2023-06-12 17:39:31 +02:00
Henrik Hüttemann e706451d90 Add createMembership function 2023-06-12 16:51:56 +02:00
Henrik Hüttemann 997ebf3ebb Add public room visibility to public chats 2023-06-12 15:23:28 +02:00
Henrik Hüttemann ef86d6e369 --wip-- [skip ci] 2023-06-12 14:54:39 +02:00
Henrik Hüttemann 91fa37f82d Make accessTokens nullable in storage 2023-06-12 14:54:24 +02:00
Henrik Hüttemann 4692c7edea Move handlers and clean up 2023-06-07 18:49:14 +02:00
Henrik Hüttemann ae3353c6cb Add room handler 2023-06-07 18:10:55 +02:00
Henrik Hüttemann 98fe90264f Move helper modules 2023-06-07 18:09:59 +02:00
Henrik Hüttemann ce5a668f1c Add Storage helper 2023-06-07 18:07:36 +02:00
Henrik Hüttemann 870128dd6e Update entities to have more options 2023-06-07 16:36:06 +02:00
Henrik Hüttemann ad034d0343 Save user access token 2023-06-07 16:33:07 +02:00
Henrik Hüttemann f041d9584e Sort imports 2023-06-05 13:28:56 +02:00
Henrik Hüttemann f414326737 Add test for HMAC generation 2023-06-05 13:27:40 +02:00
Henrik Hüttemann 7560d76c4b Add test running section to README 2023-06-05 13:26:04 +02:00
Henrik Hüttemann 4f9bde109f Add user creation test 2023-05-26 19:41:57 +02:00
Henrik Hüttemann ed2b206f18 Add user mapping test 2023-05-26 17:42:03 +02:00
Henrik Hüttemann f81cf1e1fb Read input files synchronously line by line 2023-05-26 17:00:41 +02:00
Henrik Hüttemann 414ad0ea4e Add config to exclude users 2023-05-26 15:40:19 +02:00
Henrik Hüttemann 0dceec826e Remove mock storage 2023-05-26 15:27:38 +02:00
Henrik Hüttemann a93b2c68e0 Add memberships to db 2023-05-26 15:20:40 +02:00
Henrik Hüttemann c9537ab909 Add sqlite database for ID mappings 2023-05-26 14:56:16 +02:00
Henrik Hüttemann 3d0f505961 Add dotenv and config instructions 2023-05-25 17:35:21 +02:00
Henrik Hüttemann efdd2c933f Add user creation to workflow 2023-05-25 16:31:06 +02:00
Henrik Hüttemann 62d6b5b30b Implement user registration functions 2023-05-25 16:31:06 +02:00
Henrik Hüttemann a1a50d44e9 Fix linter warning 2023-05-25 16:31:05 +02:00
Henrik Hüttemann 82bb59d6f9 Move User type to own module 2023-05-25 16:31:05 +02:00
Henrik Hüttemann 59dbce5672 Draft user workflow 2023-05-25 16:31:04 +02:00
Henrik Hüttemann 15697f3897 Add storage dummy 2023-05-25 16:31:03 +02:00
Henrik Hüttemann 3edc835deb Add switch for rc entity type 2023-05-25 16:31:03 +02:00
Henrik Hüttemann a06ed05011 Move synapse connection and logger to separate modules 2023-05-22 16:02:52 +02:00
Henrik Hüttemann b138df0dac Read rc entities from filesystem 2023-05-20 18:21:11 +02:00
Henrik Hüttemann cf3e26de8d Add dummy synapse access token for CI 2023-05-20 11:27:58 +02:00
Henrik Hüttemann 8804c37d6d Add CI, mdl and pre-commit 2023-05-20 10:41:41 +02:00
Henrik Hüttemann 6ba65443f1 Add whoami example 2023-05-19 17:48:31 +02:00
Henrik Hüttemann bdf3ef1e52 Set up TS, linter and formatter 2023-05-19 17:16:13 +02:00
Henrik Hüttemann 73a5d837cf Move JS to src 2023-05-19 15:32:37 +02:00