2021-01-22 13:31:52 +01:00
|
|
|
package project
|
|
|
|
|
|
|
|
import (
|
2021-02-23 15:13:04 +01:00
|
|
|
"github.com/caos/zitadel/internal/eventstore"
|
2021-01-22 13:31:52 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
func RegisterEventMappers(es *eventstore.Eventstore) {
|
2021-01-28 06:35:26 +01:00
|
|
|
es.RegisterFilterEventMapper(ProjectAddedType, ProjectAddedEventMapper).
|
|
|
|
RegisterFilterEventMapper(ProjectChangedType, ProjectChangeEventMapper).
|
|
|
|
RegisterFilterEventMapper(ProjectDeactivatedType, ProjectDeactivatedEventMapper).
|
|
|
|
RegisterFilterEventMapper(ProjectReactivatedType, ProjectReactivatedEventMapper).
|
|
|
|
RegisterFilterEventMapper(ProjectRemovedType, ProjectRemovedEventMapper).
|
|
|
|
RegisterFilterEventMapper(MemberAddedType, MemberAddedEventMapper).
|
|
|
|
RegisterFilterEventMapper(MemberChangedType, MemberChangedEventMapper).
|
|
|
|
RegisterFilterEventMapper(MemberRemovedType, MemberRemovedEventMapper).
|
|
|
|
RegisterFilterEventMapper(RoleAddedType, RoleAddedEventMapper).
|
|
|
|
RegisterFilterEventMapper(RoleChangedType, RoleChangedEventMapper).
|
|
|
|
RegisterFilterEventMapper(RoleRemovedType, RoleRemovedEventMapper).
|
|
|
|
RegisterFilterEventMapper(GrantAddedType, GrantAddedEventMapper).
|
|
|
|
RegisterFilterEventMapper(GrantChangedType, GrantChangedEventMapper).
|
2021-02-15 13:31:24 +01:00
|
|
|
RegisterFilterEventMapper(GrantCascadeChangedType, GrantCascadeChangedEventMapper).
|
2021-01-28 06:35:26 +01:00
|
|
|
RegisterFilterEventMapper(GrantDeactivatedType, GrantDeactivateEventMapper).
|
|
|
|
RegisterFilterEventMapper(GrantReactivatedType, GrantReactivatedEventMapper).
|
|
|
|
RegisterFilterEventMapper(GrantRemovedType, GrantRemovedEventMapper).
|
|
|
|
RegisterFilterEventMapper(GrantMemberAddedType, GrantMemberAddedEventMapper).
|
|
|
|
RegisterFilterEventMapper(GrantMemberChangedType, GrantMemberChangedEventMapper).
|
|
|
|
RegisterFilterEventMapper(GrantMemberRemovedType, GrantMemberRemovedEventMapper).
|
|
|
|
RegisterFilterEventMapper(ApplicationAddedType, ApplicationAddedEventMapper).
|
2021-02-15 13:31:24 +01:00
|
|
|
RegisterFilterEventMapper(ApplicationChangedType, ApplicationChangedEventMapper).
|
2021-01-28 06:35:26 +01:00
|
|
|
RegisterFilterEventMapper(ApplicationRemovedType, ApplicationRemovedEventMapper).
|
|
|
|
RegisterFilterEventMapper(ApplicationDeactivatedType, ApplicationDeactivatedEventMapper).
|
|
|
|
RegisterFilterEventMapper(ApplicationReactivatedType, ApplicationReactivatedEventMapper).
|
|
|
|
RegisterFilterEventMapper(OIDCConfigAddedType, OIDCConfigAddedEventMapper).
|
|
|
|
RegisterFilterEventMapper(OIDCConfigChangedType, OIDCConfigChangedEventMapper).
|
|
|
|
RegisterFilterEventMapper(OIDCConfigSecretChangedType, OIDCConfigSecretChangedEventMapper).
|
|
|
|
RegisterFilterEventMapper(OIDCClientSecretCheckSucceededType, OIDCConfigSecretCheckSucceededEventMapper).
|
2021-02-22 12:27:47 +01:00
|
|
|
RegisterFilterEventMapper(OIDCClientSecretCheckFailedType, OIDCConfigSecretCheckFailedEventMapper).
|
|
|
|
RegisterFilterEventMapper(APIConfigAddedType, APIConfigAddedEventMapper).
|
|
|
|
RegisterFilterEventMapper(APIConfigChangedType, APIConfigChangedEventMapper).
|
|
|
|
RegisterFilterEventMapper(APIConfigSecretChangedType, APIConfigSecretChangedEventMapper).
|
|
|
|
RegisterFilterEventMapper(ApplicationKeyAddedEventType, ApplicationKeyAddedEventMapper).
|
|
|
|
RegisterFilterEventMapper(ApplicationKeyRemovedEventType, ApplicationKeyRemovedEventMapper)
|
2021-01-22 13:31:52 +01:00
|
|
|
}
|