zitadel/internal/repository/action/eventstore.go
Silvan 1bf1f335dc
feat(admin-api): list events (#4989)
* docs: update cockroachdb version to 22.2
* feat(adminAPI): ListEventTypes returns the list of event types ZITADEL implements
* feat(adminAPI): ListAggregateTypes returns the list of aggregate types ZITADEL implements
* feat(adminAPI): ListEvents allows `IAM_OWNERS` to search for events
2023-01-16 11:30:03 +00:00

12 lines
553 B
Go

package action
import "github.com/zitadel/zitadel/internal/eventstore"
func RegisterEventMappers(es *eventstore.Eventstore) {
es.RegisterFilterEventMapper(AggregateType, AddedEventType, AddedEventMapper).
RegisterFilterEventMapper(AggregateType, ChangedEventType, ChangedEventMapper).
RegisterFilterEventMapper(AggregateType, DeactivatedEventType, DeactivatedEventMapper).
RegisterFilterEventMapper(AggregateType, ReactivatedEventType, ReactivatedEventMapper).
RegisterFilterEventMapper(AggregateType, RemovedEventType, RemovedEventMapper)
}