Commit Graph
42 Commits
Author SHA1 Message Date
Karol Sójko b28636fa73 chore: make newrelic an optional dep (#620)
* chore: make newrelic an optional dep

* fix: change newrelic imports to dynamic ones

* fix: deps

* fix: remove unplugged deps

* fix: yarn lock

* fix: add missing yarn installs
2023-06-01 12:50:11 +02:00
Karol Sójko fea58029b9 feat(auth): move inversify express controllers to different structure (#610)
* wip: move valet token controller

* wip: move users controller

* wip: move admin controller

* wip: move subscription tokens controller

* wip: move subscription settings controller

* wip: move settings controller

* wip: move middleware

* wip: move session controller

* wip: move offline controller

* wip: move listed controller

* wip: move internal controller

* wip: move healthcheck controller

* wip: move features controller

* fix: bind inversify express controllers only for home server

* fix: inversify deps
2023-05-17 11:54:18 +02:00
Karol Sójko 8a47d81936 feat: add direct event handling for home server (#608)
* feat(domain-events-infra): add direct call event message handler

* feat: add direct publishing of events into handlers

* fix: validating sessions with direct calls
2023-05-17 09:23:48 +02:00
Karol Sójko dc71e6777f feat: home-server package initial setup with Api Gateway and Auth services (#605)
* fix(api-gateway): reduce exports

* wip controllers

* fix: imports of controllers

* fix(api-gateway): rename http service interface to proxy interface

* wip: self-registering services and controllers

* wip: add registering controller method bindings and services in container

* feat: merge two services together

* wip: resolving endpoints to direct code calls

* wip: bind controller container to a singleton

* fix: controller binding to instantiate and self-register on controller container

* fix: move signout endpoint to auth controller

* wip: define inversify controllers in the controller container

* fix(auth): bind inversify controllers to controller container

* fix(auth): linter issues

* fix(auth): specs

* fix(auth): inversify controllers bindings

* wip: endpoint resolving

* wip: add endpoint for more auth controllers

* wip: add sessions controller endpoint resolvings

* wip: add subscription invites endpoint resolvings

* wip: add subscription tokens endpoint resolvings

* wip: add all binding for auth server controllers

* wip: fix migrations path

* fix: configure default env vars and ci setup
2023-05-16 11:38:56 +02:00
Karol Sójko 990140c392 fix: remove unused imports 2023-05-05 10:47:37 +02:00
Karol Sójko c6122d33b9 fix: remove sentry 2023-05-05 10:44:22 +02:00
Karol Sójko 484f554339 feat: remove cloud backups (#574) 2023-04-27 12:23:30 +02:00
Karol Sójko 3aef5998df feat: sqlite driver for auth service (#572)
* wip: initial sqlite bootstrap

* wip: switch to sqlite3 as default db type

* wip: boilerplate data

* fix(auth): case sensitive register and login

* fix(auth): refactor username validations

* fix(auth): allow changing username to both username and email:

* fix(auth): lock middleware for recovery log in

* fix(domain-core): specs for invalid types

* fix(auth): lock middleware specs

* fix(auth): typeorm code arrangements

* fix: running e2e on both mysql and sqlite in ci
2023-04-27 11:17:01 +02:00
Karol Sójko 4bd5fb22b4 fix(auth): remove migrate email settings procedure 2023-03-09 10:48:40 +01:00
Karol Sójko d827513b73 fix(auth): migrate encrypted sign in settings 2023-03-09 06:34:50 +01:00
Karol Sójko f91e4316ff fix(auth): migrate muted email notifications settings 2023-03-08 13:42:45 +01:00
Karol SójkoandKarol Sójko 27cf093f85 feat: sign in setting refactor (#472)
* fix(auth): refactor setting names into domain core value objects

* fix(auth): refactor specs with setting name value objects

* feat(auth): move mute sign in emails to a subscription kind of setting

* feat(auth): add migration script to change sign in email settings to subscription settings

* chore: fix setting name usage

* fix(auth): upper casing setting names

---------

Co-authored-by: Karol Sójko <[email protected]>
2023-03-08 10:22:27 +01:00
Karol Sójko 2fad6b62cb feat(auth): add cleanup of expired sessions 2023-03-06 10:43:53 +01:00
Karol Sójko b6702c7182 chore: remove unused content size recalculation event 2023-02-21 10:45:32 +01:00
Karol Sójko 9c72ad85a0 fix: remove @sentry/profiling-node integration as it is not compatible with ARM - fixes #383 2023-01-02 09:49:04 +01:00
Karol Sójko b6fda901ef feat(auth): add http endpoints for authenticators 2022-12-29 11:29:23 +01:00
Karol Sójko a35271fbb3 feat(auth): add requesting persisting statistics 2022-12-19 15:19:49 +01:00
Karol Sójko 147d8fd9af feat(auth): add session traces cleanup procedure 2022-12-19 12:49:59 +01:00
Karol Sójko 8bcb552783 feat(auth): add session traces 2022-12-19 12:25:15 +01:00
Karol Sójko e48cca6b45 feat(auth): replace user signed in events with email requested 2022-12-07 14:45:16 +01:00
Karol Sójko c87561fca7 feat(domain-core): rename email subscription rejection level to email level 2022-12-07 07:04:42 +01:00
Karol Sójko 7848dc06d4 feat(auth): add procedure for email subscriptions sync 2022-12-06 11:47:17 +01:00
Karol Sójko 8407c3b649 fix(auth): bring back streaming all users in an email campaign send out 2022-11-25 07:43:55 +01:00
Karol Sójko 25a6796e63 fix(auth): tmp test email campaign black friday 2022 reminder on team only 2022-11-25 07:14:02 +01:00
Karol Sójko 5f2be44b85 fix(auth): remove temporary email campaign check for team member 2022-11-22 15:31:44 +01:00
Karol Sójko 94359f1299 fix(auth): tmp send email campaign only to team 2022-11-22 14:08:48 +01:00
Karol Sójko 590ec6643d feat(auth): add content size recalculation procedure trigger 2022-11-14 13:46:40 +01:00
Karol Sójko ff1d5db12c feat: remove analytics scope from other services in favor of a separate service 2022-11-07 11:51:38 +01:00
Karol Sójko 2255f856f9 feat(auth): add processing user requests 2022-11-02 13:23:49 +01:00
Karol Sójko 8033177f48 feat(auth): add creating web socket connection tokens 2022-09-21 10:58:39 +02:00
Karol Sójko 5d812befc4 feat(auth): implement subscription server interface on server side 2022-09-15 12:12:50 +02:00
Karol Sójko edd254531d feat(auth): add triggering email backup for a single user 2022-08-10 11:18:01 +02:00
Karol Sójko f49299fa91 fix: email sending procedure to not include creating mute_marketing_emails anymore 2022-06-30 09:31:32 +02:00
Karol Sójko 26f8b75bed fix: adjust callback in processing email campaigns 2022-06-30 07:20:50 +02:00
Karol Sójko 997ffc02a3 fix: wrap processing email campaigns into try-catch 2022-06-29 15:55:51 +02:00
Karol Sójko 57694bdc14 fix: temporarily send email campaings only for users without the mute_marketing_emails setting 2022-06-29 15:15:00 +02:00
Karol Sójko 1d4bce7309 fix: mute marketing value encryption version setting 2022-06-29 13:55:09 +02:00
Karol Sójko 2e9255344e fix: add logs for processing email campaigns 2022-06-29 13:30:41 +02:00
Karol Sójko 214684eae7 fix: add setting uuid to email requests 2022-06-27 12:06:33 +02:00
Karol Sójko 210a314c81 feat: add docker commands to start sending emails 2022-06-27 11:56:42 +02:00
Karol Sójko bf14ec05f9 fix: add sending out email campaigns 2022-06-27 10:43:23 +02:00
Karol Sójko 8e5012009b feat: add auth server package 2022-06-22 12:33:00 +02:00