feat: restructure events payload (#8143)

* refactor: restructure events payload

Breaking change: This PR changes the event payload accepted by the event
listeners

* refactor: fix failing tests and implement feedback

* add integration tests

* fix timeout

---------

Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com>
This commit is contained in:
Harminder VirkandAdrien de Peretti authored and GitHub committed 2024-07-16 17:09:16 +01:00
1 parent 5813216c88
commit f579f0b3be
26 files changed
+194 -111

No files matched your search

@@ -0,0 +1,9 @@
import { SubscriberConfig } from "@medusajs/medusa/src"
const testEventPayloadHandlerMock = jest.fn()
export default testEventPayloadHandlerMock
export const config: SubscriberConfig = {
event: "test-event-payload",
}