Send wide events to a dedicated POST endpoint #7422
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Task/Issue URL: https://app.asana.com/1/137249556945/project/488551667048375/task/1212546442226307?focus=truefocus=true
Description
Steps to test this PR
No UI changes
Note
Add API-based wide event delivery and delegate between API/pixel via feature toggles; update processing to use new repo queries and schedule retries.
ApiWideEventSenderusingWideEventService(POST ${AppUrl.Url.PIXEL}/e) with request models (WideEventRequest,GlobalSection,AppSection,FeatureSection,FeatureData,ContextSection).DelegatingWideEventSenderto route toapiand/orpixelsenders based onwideEventstoggles (sendWideEventsViaPost,sendWideEventsViaPixels).PixelWideEventSenderand keep pixel param removal plugin; no functional change noted.CompletedWideEventsProcessornow listens tohasCompletedWideEvents()and processes IDs viagetCompletedWideEventIds()in mutex-guarded chunks; on failure, schedules a retryCompletedWideEventsWorkerwith network constraint.WideEventDao/Repository: addgetCompletedWideEventIds()(suspend) andhasCompletedWideEvents(): Flow<Boolean>; remove/combine previous flow API.sendWideEventsViaPixelsandsendWideEventsViaPosttoWideEventFeature(defaults TRUE and INTERNAL respectively).ApiWideEventSenderTest,CompletedWideEventsProcessorTest; updateWideEventRepositoryTestfor new APIs.Written by Cursor Bugbot for commit 8627e21. This will update automatically on new commits. Configure here.