feat: Add an analytics module and local and posthog providers (#12505)

* feat: Add an analytics module and local and posthog providers

* fix: Add tests and wire up in missing places

* fix: Address feedback and add missing module typing

* fix: Address feedback and add missing module typing

---------

Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2025-05-19 19:57:13 +02:00
1 parent 52bd9f9a53
commit b9a51e217d
49 files changed
+1009

No files matched your search

@@ -1,6 +1,7 @@
import { Link } from "@medusajs/modules-sdk"
import {
ConfigModule,
IAnalyticsModuleService,
IApiKeyModuleService,
IAuthModuleService,
ICacheService,
@@ -48,6 +49,7 @@ declare module "@medusajs/types" {
[ContainerRegistrationKeys.REMOTE_QUERY]: RemoteQueryFunction
[ContainerRegistrationKeys.QUERY]: Omit<RemoteQueryFunction, symbol>
[ContainerRegistrationKeys.LOGGER]: Logger
[Modules.ANALYTICS]: IAnalyticsModuleService
[Modules.AUTH]: IAuthModuleService
[Modules.CACHE]: ICacheService
[Modules.CART]: ICartModuleService