Commit Graph

198 Commits

Author SHA1 Message Date
isra el
9586712712 feat(api): enhance API key retrieval logic
- Added a new method in AuthService to find active API keys using a masked match and fallback to regex.
- Updated OptionalAuthGuard and AuthGuard to utilize the new method for improved API key validation.
- Introduced an index on the apiKey field in the ApiKey schema for optimized query performance.
2026-04-05 09:32:41 +03:00
isra el
77f2f38686 chore: improve API key management
- Added a query parameter to filter API keys by status (active, revoked, all) in the getApiKey endpoint.
- Updated the AuthService to handle status filtering logic for API key retrieval.
- Modified the frontend to support status-based API key listing and added a button to view revoked keys.
2026-04-01 07:41:02 +03:00
isra el
5467a85fb0 chore(api): allow device deletion 2026-03-31 22:59:16 +03:00
isra el
8286938b9e ux: improve onboarding steps 2026-03-31 05:16:13 +03:00
isra el
4da8570cd2 feat(api): add fallback for SMS document insertion
- Implemented a check for the existence of the insertMany method in the SMS model to enhance flexibility.
- Added a fallback mechanism for models that do not support insertMany, allowing for individual document creation.
- Improved SMS document insertion process by maintaining performance while ensuring compatibility with various model types.
2026-03-24 17:54:40 +03:00
isra el
839ad24c83 feat(api): enhance SMS processing and queue management
- Introduced batching for SMS document insertion to improve performance.
- Added metadata tracking for SMS to FCM message mapping.
- Implemented error handling for mismatched SMS records and queue payloads.
- Updated SMS queue service to support dynamic batch sizes and immediate queue delays.
2026-03-24 17:24:10 +03:00
isra el
af03623396 fix(api): enhance SMS queue processing and error handling
- Refactored SMS status updates in SmsQueueProcessor to batch updates for failed and dispatched SMS records.
- Improved error handling by collecting failed SMS details and updating their status in a single operation.
- Updated the SMS queue registration to use asynchronous configuration with dynamic limits from the ConfigService.
2026-03-24 17:23:57 +03:00
isra el
ab76237fbb test(api): fix failing tests 2026-03-23 14:22:39 +03:00
isra el
01af5a9786 chore(api): invalidate stale fcm tokens 2026-03-23 14:17:57 +03:00
isra el
7bec9e8acf chore(api): logging improvements 2026-03-23 13:54:52 +03:00
isra el
9d4ec8186b fix(api): improve FCM error handling and messaging in SmsQueueProcessor
- Updated getFcmErrorCode function to remove 'messaging/' prefix from error codes.
- Introduced getFcmErrorMessage function to provide actionable feedback for invalid device tokens.
- Enhanced error messages in SMS processing to utilize the new getFcmErrorMessage function for better clarity.
2026-03-12 17:18:04 +03:00
isra el
c488c16f59 feat(api): enhance SMS status processing and error handling improvements
- Added `dispatchedAt` property to SMS schema and updated status options to include 'dispatched'.
- Implemented logic in SmsQueueProcessor to mark SMS as 'dispatched' upon successful FCM push.
- Enhanced error handling for SMS failures, including specific error codes for FCM delivery issues.
- Updated SmsStatusUpdateTask to handle both 'pending' and 'dispatched' statuses for timeout updates.
2026-03-12 16:38:23 +03:00
isra el
60808db77a refactor(api): implement batch processing for FCM messages in heartbeat check task 2026-03-11 19:49:52 +03:00
isra el
7a56692586 refactor(api): update queue configuration to set removal age for completed and failed SMS tasks 2026-03-11 19:39:58 +03:00
isra el
51cb1ca198 chore(api): track sms sending failure due to FCM issue 2026-03-11 11:09:30 +03:00
isra el
25c70eb09d feat(api): save default sms sending delay config 2026-03-11 11:04:12 +03:00
isra el
5023f80f0f chore(api): update email template 2026-03-06 14:03:15 +03:00
isra el
b42a681816 chore(api): skip automatic disabling of webhook subscriptions if theres a recent successful delivery 2026-03-06 13:42:15 +03:00
isra el
540bb9068b feat(api): mark notifications older than one month as aborted to prevent retries 2026-03-05 19:50:48 +03:00
isra el
338fb665bc fix(api): fix webhooksubscription save issue 2026-03-05 11:54:20 +03:00
isra el
40b0df297c chore(api): loosen webhook subscription auto-disable logic 2026-03-05 11:43:20 +03:00
isra el
6e7ed42fe8 fix(api): fix failing test 2026-03-05 11:15:29 +03:00
isra el
8fd06f06d1 feat(api): auto-disable webhook ubscriptions with high failure rate 2026-03-05 11:01:51 +03:00
isra el
0144cff16e chore(api): update webhook notifications delivery check cron time and query 2026-03-05 10:33:59 +03:00
isra el
7ff6ea23fc chore(api): update webhook notification delivery timeout to 30ms 2026-03-05 10:33:20 +03:00
isra el
4d1b53e247 chore(api): improve webhook notifications delivery reliability 2026-03-04 13:11:24 +03:00
isra el
f5bef39cec chore(api): update email template 2026-02-09 10:21:48 +03:00
isra el
d8460bcb8b chore(api): update email templates 2026-02-09 06:39:21 +03:00
isra el
eb94085f6e chore(api): handle missing discountId 2026-02-09 06:32:58 +03:00
isra el
1b24cd9754 feat(api): set custom device name 2026-02-06 18:33:55 +03:00
isra el
b6dde1a096 fix failing test 2026-01-29 19:25:14 +03:00
isra el
312e3a4fd4 chore(api): remove unnecessary fields from heartbeat data 2026-01-29 19:16:42 +03:00
isra el
ede8e4c210 chore: add fallback heartbeat check using fcm 2026-01-29 18:47:51 +03:00
isra el
a6df612bfa feat(api): implement delayed sms sending 2026-01-29 18:37:44 +03:00
isra el
8a42b95e8f fix(api): fix heartbeat info saving issue 2026-01-28 17:42:32 +03:00
isra el
0665aa5432 feat: support sim card selection via api 2026-01-27 19:46:09 +03:00
isra el
541f32406e feat(api): create heart beat endpoint 2026-01-27 15:30:06 +03:00
isra el
141b8b334a fix: handle duplicate received sms issue 2026-01-26 14:17:08 +03:00
isra el
86060456fa fix(api): fix build issues 2025-12-14 15:01:26 +03:00
isra el
ca0ac8cf6e fix(api): fix build issue 2025-12-14 14:42:41 +03:00
isra el
ba0437ff01 chore(api): bump dependencies 2025-12-14 14:28:29 +03:00
isra el
e2cf5d2e37 chore(api): ensure uncaught exceptions dont crash server 2025-12-07 20:57:14 +03:00
isra el
30691e2e0d chore: add cloudflare turnstile protection to support and account deletion forms 2025-12-07 20:47:48 +03:00
isra el
af19f6c75a chore: prevent bot form submissions with cloudflare turnstile 2025-12-07 19:05:19 +03:00
isra el
130a6934d6 feat(api): support billing limits override 2025-11-16 07:02:47 +03:00
isra el
fd5ba1c538 chore(api): update billing notification queue config 2025-10-29 10:36:24 +03:00
isra el
91ac0b3eb0 fix(api): fix billing email notification bug 2025-10-29 10:08:25 +03:00
isra el
c26ac378f6 fix(api): fix duplicate billing notification emails 2025-10-29 07:22:21 +03:00
isra el
bf66e94e6d chore(api): improve billing threshold calculation 2025-10-29 06:56:49 +03:00
isra el
552a90685a chore(api): improve billing notifications 2025-10-29 06:48:03 +03:00