Commit Graph

85 Commits

Author SHA1 Message Date
Jonas Linter
aec8a99b71 Handling legacy endpoints directly in unified endpoints 2025-11-25 20:40:51 +01:00
Jonas Linter
4ab0888508 Moved some stuff around and fixed circular import 2025-11-25 20:30:07 +01:00
Jonas Linter
97994c5a38 Better typing + moved some code to webhook_processor 2025-11-25 20:20:40 +01:00
Jonas Linter
b77a0be80f feat: Add hotel and webhook endpoint management
- Introduced Hotel and WebhookEndpoint models to manage hotel configurations and webhook settings.
- Implemented sync_config_to_database function to synchronize hotel data from configuration to the database.
- Added HotelService for accessing hotel configurations and managing customer data.
- Created WebhookProcessor interface and specific processors for handling different webhook types (Wix form and generic).
- Enhanced webhook processing logic to handle incoming requests and create/update reservations and customers.
- Added logging for better traceability of operations related to hotels and webhooks.
2025-11-25 12:05:48 +01:00
Jonas Linter
1fb698de66 Extract offer from generic_webhook if set 2025-11-20 23:01:04 +01:00
Jonas Linter
b4522d2e2a Csv import now works with preacknowlegdments 2025-11-18 19:25:52 +01:00
Jonas Linter
104ac5fd6d Fixed the csv_import 2025-11-18 18:37:30 +01:00
Jonas Linter
2c61d13d7a Converted csv_import to put request 2025-11-18 16:23:58 +01:00
Jonas Linter
3f149fe984 Presumably production ready xD 2025-11-18 16:10:57 +01:00
Jonas Linter
b826277b54 Looking good 2025-11-18 14:49:44 +01:00
Jonas Linter
ab09fb02eb Conversion import returns faster and processes in the background 2025-11-18 14:37:04 +01:00
Jonas Linter
5a660507d2 Alembic experiments 2025-11-18 11:04:38 +01:00
Jonas Linter
c91290f1b0 More suffernig 2025-11-17 18:17:06 +01:00
Jonas Linter
f3978381df Matching guests works nicely 2025-11-17 14:25:53 +01:00
Jonas Linter
9b82be9a6e Fixed export 2025-11-17 09:13:33 +01:00
Jonas Linter
189e44a7ff Hotfix for NoneType kid ages 2025-11-13 11:39:57 +01:00
Jonas Linter
0d13f903a0 Updated db handling 2025-11-13 09:08:02 +01:00
Jonas Linter
12072dcbc8 Small fixes 2025-11-12 18:40:37 +01:00
Jonas Linter
eb10e070b1 Refactored db logic. Can now specify schema in config 2025-11-04 09:20:02 +01:00
Jonas Linter
e7b789fcac Fixed generic_webhook error and made the duplicate submission thing a bit cleaner 2025-10-27 09:02:50 +01:00
Jonas Linter
90d79a71fb Added account_ids to the config 2025-10-22 17:32:28 +02:00
Jonas Linter
81074d839a Started setting up conversion_imports. Not entirely sure how it ultimatly works. Need to grab some real data for a while first 2025-10-22 15:19:17 +02:00
Jonas Linter
76ab37f097 Fixed checkbox nonsense 2025-10-22 09:22:39 +02:00
Jonas Linter
9f36997166 Country code fixes. Hopefully 2025-10-20 09:46:20 +02:00
Jonas Linter
8e6049e210 Added docstrings 2025-10-20 09:15:08 +02:00
Jonas Linter
6f377b1ea1 Fixed some linting stuff 2025-10-20 08:56:14 +02:00
Jonas Linter
7bcbe70392 Database migrations incorrectly ran before the tables where created. This didn't cause problems when the database was already set up but would absolutely bork a fresh install. 2025-10-20 08:39:26 +02:00
Jonas Linter
f30632df29 Updated reporting scheme. Should work better now 2025-10-17 19:47:15 +02:00
Jonas Linter
c43782c664 Migration should work now 2025-10-16 16:16:36 +02:00
Jonas Linter
c07d025873 Pushover startup fix 2025-10-16 11:24:20 +02:00
Jonas Linter
eef70516a9 Added pushover support 2025-10-16 11:08:39 +02:00
Jonas Linter
6ad4df6990 Fixed startup email 2025-10-16 10:53:03 +02:00
Jonas Linter
90e253b950 Potentially fixed daily report 2025-10-16 10:39:43 +02:00
Jonas Linter
716e5066e1 Changed return value 2025-10-15 14:38:33 +02:00
Jonas Linter
9104c60956 More logging 2025-10-15 14:31:16 +02:00
Jonas Linter
f58332221b Created lang-detect endpoint 2025-10-15 14:24:38 +02:00
Jonas Linter
361611ae1b Worker coordination with file locks 2025-10-15 10:07:42 +02:00
Jonas Linter
0d04a546cf Fixed functions in lifespan running multiple times even though once would be enough 2025-10-15 09:21:52 +02:00
Jonas Linter
a8c441ea6f Stats collector for email monitoring 2025-10-15 09:09:07 +02:00
Jonas Linter
f22684d592 Added email monitoring 2025-10-15 08:46:25 +02:00
Jonas Linter
c16848a809 Better docstrings 2025-10-14 15:06:32 +02:00
Jonas Linter
3714226b08 Log generic webhook for now 2025-10-14 14:43:59 +02:00
Jonas Linter
8f2565b5a9 Generic webhook now gets saved to database 2025-10-14 14:28:47 +02:00
Jonas Linter
592a9d7ce7 Added reservation_service aswell 2025-10-13 10:59:05 +02:00
Jonas Linter
b045c62cee Created hashed customers. migrated to service instead of using db logic directly 2025-10-13 10:51:56 +02:00
Jonas Linter
2560f61ee8 Updated how wix forms are logged. 2025-10-13 10:03:53 +02:00
Jonas Linter
1248772f60 Updateinsert customers 2025-10-10 16:47:19 +02:00
Jonas Linter
165914d686 Added generic endpoint 2025-10-10 16:21:25 +02:00
Jonas Linter
4ac5a148b6 Cleanup 2025-10-10 10:45:47 +02:00
Jonas Linter
5b91608577 Linting fixies 2025-10-10 10:21:13 +02:00