feat: add assets to eventstore and event (#1674)

* fix: add assets to eventstore and event

* fix: project member, grant member, app changed tests

* fix: asset migrations

* feat: add asset tests

* feat: add asset tests

* Update internal/eventstore/repository/repository.go

Co-authored-by: Livio Amstutz <livio.a@gmail.com>

* feat: add asset tests

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
Fabi
2021-04-27 12:58:18 +02:00
committed by GitHub
parent eaf966e3d2
commit f51f0ede5c
102 changed files with 1079 additions and 34 deletions

View File

@@ -42,6 +42,10 @@ func (e *FeaturesSetEvent) UniqueConstraints() []*eventstore.EventUniqueConstrai
return nil
}
func (e *FeaturesSetEvent) Assets() []*eventstore.Asset {
return nil
}
func NewFeaturesSetEvent(
base *eventstore.BaseEvent,
changes []FeaturesChanges,
@@ -163,6 +167,10 @@ func (e *FeaturesRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return nil
}
func (e *FeaturesRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewFeaturesRemovedEvent(base *eventstore.BaseEvent) *FeaturesRemovedEvent {
return &FeaturesRemovedEvent{
BaseEvent: *base,

View File

@@ -27,6 +27,10 @@ func (e *ProjectSetEvent) UniqueConstraints() []*eventstore.EventUniqueConstrain
return nil
}
func (e *ProjectSetEvent) Assets() []*eventstore.Asset {
return nil
}
func NewIAMProjectSetEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -27,6 +27,10 @@ func (e *GlobalOrgSetEvent) UniqueConstraints() []*eventstore.EventUniqueConstra
return nil
}
func (e *GlobalOrgSetEvent) Assets() []*eventstore.Asset {
return nil
}
func NewGlobalOrgSetEventEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -52,6 +52,10 @@ func (e *SetupStepEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
}
}
func (e *SetupStepEvent) Assets() []*eventstore.Asset {
return nil
}
func SetupStepMapper(event *repository.Event) (eventstore.EventReader, error) {
step := &SetupStepEvent{
BaseEvent: *eventstore.BaseEventFromRepo(event),

View File

@@ -37,6 +37,10 @@ func (e *MigrateUniqueConstraintEvent) UniqueConstraints() []*eventstore.EventUn
return constraints
}
func (e *MigrateUniqueConstraintEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMigrateUniqueConstraintEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -59,6 +59,10 @@ func (e *IDPConfigAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return []*eventstore.EventUniqueConstraint{NewAddIDPConfigNameUniqueConstraint(e.Name, e.Aggregate().ResourceOwner)}
}
func (e *IDPConfigAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func IDPConfigAddedEventMapper(event *repository.Event) (eventstore.EventReader, error) {
e := &IDPConfigAddedEvent{
BaseEvent: *eventstore.BaseEventFromRepo(event),
@@ -95,6 +99,10 @@ func (e *IDPConfigChangedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
}
}
func (e *IDPConfigChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewIDPConfigChangedEvent(
base *eventstore.BaseEvent,
configID,
@@ -167,6 +175,10 @@ func (e *IDPConfigDeactivatedEvent) UniqueConstraints() []*eventstore.EventUniqu
return nil
}
func (e *IDPConfigDeactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func IDPConfigDeactivatedEventMapper(event *repository.Event) (eventstore.EventReader, error) {
e := &IDPConfigDeactivatedEvent{
BaseEvent: *eventstore.BaseEventFromRepo(event),
@@ -205,6 +217,10 @@ func (e *IDPConfigReactivatedEvent) UniqueConstraints() []*eventstore.EventUniqu
return nil
}
func (e *IDPConfigReactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func IDPConfigReactivatedEventMapper(event *repository.Event) (eventstore.EventReader, error) {
e := &IDPConfigReactivatedEvent{
BaseEvent: *eventstore.BaseEventFromRepo(event),
@@ -246,6 +262,10 @@ func (e *IDPConfigRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return []*eventstore.EventUniqueConstraint{NewRemoveIDPConfigNameUniqueConstraint(e.Name, e.Aggregate().ResourceOwner)}
}
func (e *IDPConfigRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func IDPConfigRemovedEventMapper(event *repository.Event) (eventstore.EventReader, error) {
e := &IDPConfigRemovedEvent{
BaseEvent: *eventstore.BaseEventFromRepo(event),

View File

@@ -36,6 +36,10 @@ func (e *OIDCConfigAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return nil
}
func (e *OIDCConfigAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOIDCConfigAddedEvent(
base *eventstore.BaseEvent,
clientID,
@@ -94,6 +98,10 @@ func (e *OIDCConfigChangedEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *OIDCConfigChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOIDCConfigChangedEvent(
base *eventstore.BaseEvent,
idpConfigID string,

View File

@@ -38,6 +38,10 @@ func (e *AddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint {
return nil
}
func (e *AddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -44,6 +44,10 @@ func (e *MemberAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrai
return []*eventstore.EventUniqueConstraint{NewAddMemberUniqueConstraint(e.Aggregate().ID, e.UserID)}
}
func (e *MemberAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMemberAddedEvent(
base *eventstore.BaseEvent,
userID string,
@@ -85,6 +89,10 @@ func (e *MemberChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstr
return nil
}
func (e *MemberChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMemberChangedEvent(
base *eventstore.BaseEvent,
userID string,
@@ -124,6 +132,10 @@ func (e *MemberRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstr
return []*eventstore.EventUniqueConstraint{NewRemoveMemberUniqueConstraint(e.Aggregate().ID, e.UserID)}
}
func (e *MemberRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewRemovedEvent(
base *eventstore.BaseEvent,
userID string,

View File

@@ -49,6 +49,10 @@ func (e *DomainAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrai
return nil
}
func (e *DomainAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewDomainAddedEvent(ctx context.Context, aggregate *eventstore.Aggregate, domain string) *DomainAddedEvent {
return &DomainAddedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -88,6 +92,10 @@ func (e *DomainVerificationAddedEvent) UniqueConstraints() []*eventstore.EventUn
return nil
}
func (e *DomainVerificationAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewDomainVerificationAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -132,6 +140,10 @@ func (e *DomainVerificationFailedEvent) UniqueConstraints() []*eventstore.EventU
return nil
}
func (e *DomainVerificationFailedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewDomainVerificationFailedEvent(ctx context.Context, aggregate *eventstore.Aggregate, domain string) *DomainVerificationFailedEvent {
return &DomainVerificationFailedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -169,6 +181,10 @@ func (e *DomainVerifiedEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return []*eventstore.EventUniqueConstraint{NewAddOrgDomainUniqueConstraint(e.Domain)}
}
func (e *DomainVerifiedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewDomainVerifiedEvent(ctx context.Context, aggregate *eventstore.Aggregate, domain string) *DomainVerifiedEvent {
return &DomainVerifiedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -206,6 +222,10 @@ func (e *DomainPrimarySetEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return nil
}
func (e *DomainPrimarySetEvent) Assets() []*eventstore.Asset {
return nil
}
func NewDomainPrimarySetEvent(ctx context.Context, aggregate *eventstore.Aggregate, domain string) *DomainPrimarySetEvent {
return &DomainPrimarySetEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -247,6 +267,10 @@ func (e *DomainRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstr
return []*eventstore.EventUniqueConstraint{NewRemoveOrgDomainUniqueConstraint(e.Domain)}
}
func (e *DomainRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewDomainRemovedEvent(ctx context.Context, aggregate *eventstore.Aggregate, domain string, verified bool) *DomainRemovedEvent {
return &DomainRemovedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(

View File

@@ -45,6 +45,10 @@ func (e *OrgAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
return []*eventstore.EventUniqueConstraint{NewAddOrgNameUniqueConstraint(e.Name)}
}
func (e *OrgAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOrgAddedEvent(ctx context.Context, aggregate *eventstore.Aggregate, name string) *OrgAddedEvent {
return &OrgAddedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -86,6 +90,10 @@ func (e *OrgChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrain
}
}
func (e *OrgChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOrgChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, oldName, newName string) *OrgChangedEvent {
return &OrgChangedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -122,6 +130,10 @@ func (e *OrgDeactivatedEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return nil
}
func (e *OrgDeactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOrgDeactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *OrgDeactivatedEvent {
return &OrgDeactivatedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -156,6 +168,10 @@ func (e *OrgReactivatedEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return nil
}
func (e *OrgReactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOrgReactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *OrgReactivatedEvent {
return &OrgReactivatedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -191,6 +207,10 @@ func (e *OrgRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrain
return []*eventstore.EventUniqueConstraint{NewRemoveOrgNameUniqueConstraint(e.name)}
}
func (e *OrgRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOrgRemovedEvent(ctx context.Context, aggregate *eventstore.Aggregate, name string) *OrgRemovedEvent {
return &OrgRemovedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(

View File

@@ -30,6 +30,10 @@ func (e *LabelPolicyAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return nil
}
func (e *LabelPolicyAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewLabelPolicyAddedEvent(
base *eventstore.BaseEvent,
primaryColor,
@@ -74,6 +78,10 @@ func (e *LabelPolicyChangedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *LabelPolicyChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewLabelPolicyChangedEvent(
base *eventstore.BaseEvent,
changes []LabelPolicyChanges,
@@ -135,6 +143,10 @@ func (e *LabelPolicyRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *LabelPolicyRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewLabelPolicyRemovedEvent(base *eventstore.BaseEvent) *LabelPolicyRemovedEvent {
return &LabelPolicyRemovedEvent{
BaseEvent: *base,

View File

@@ -33,6 +33,10 @@ func (e *LoginPolicyAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return nil
}
func (e *LoginPolicyAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewLoginPolicyAddedEvent(
base *eventstore.BaseEvent,
allowUserNamePassword,
@@ -85,6 +89,10 @@ func (e *LoginPolicyChangedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *LoginPolicyChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewLoginPolicyChangedEvent(
base *eventstore.BaseEvent,
changes []LoginPolicyChanges,
@@ -158,6 +166,10 @@ func (e *LoginPolicyRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *LoginPolicyRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewLoginPolicyRemovedEvent(base *eventstore.BaseEvent) *LoginPolicyRemovedEvent {
return &LoginPolicyRemovedEvent{
BaseEvent: *base,

View File

@@ -29,6 +29,10 @@ func (e *MailTemplateAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *MailTemplateAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMailTemplateAddedEvent(
base *eventstore.BaseEvent,
template []byte,
@@ -66,6 +70,10 @@ func (e *MailTemplateChangedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *MailTemplateChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMailTemplateChangedEvent(
base *eventstore.BaseEvent,
changes []MailTemplateChanges,
@@ -115,6 +123,10 @@ func (e *MailTemplateRemovedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *MailTemplateRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMailTemplateRemovedEvent(base *eventstore.BaseEvent) *MailTemplateRemovedEvent {
return &MailTemplateRemovedEvent{
BaseEvent: *base,

View File

@@ -50,6 +50,10 @@ func (e *MailTextAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstr
return []*eventstore.EventUniqueConstraint{NewAddMailTextUniqueConstraint(e.Aggregate().ResourceOwner, e.MailTextType, e.Language)}
}
func (e *MailTextAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMailTextAddedEvent(
base *eventstore.BaseEvent,
mailTextType,
@@ -108,6 +112,10 @@ func (e *MailTextChangedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return nil
}
func (e *MailTextChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMailTextChangedEvent(
base *eventstore.BaseEvent,
mailTextType,
@@ -194,6 +202,10 @@ func (e *MailTextRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return []*eventstore.EventUniqueConstraint{NewRemoveMailTextUniqueConstraint(e.Aggregate().ResourceOwner, e.MailTextType, e.Language)}
}
func (e *MailTextRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMailTextRemovedEvent(base *eventstore.BaseEvent, mailTextType, language string) *MailTextRemovedEvent {
return &MailTextRemovedEvent{
BaseEvent: *base,

View File

@@ -55,6 +55,10 @@ func (e *SecondFactorAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *SecondFactorAddedEvent) Assets() []*eventstore.Asset {
return nil
}
type SecondFactorRemovedEvent struct {
eventstore.BaseEvent `json:"-"`
MFAType domain.SecondFactorType `json:"mfaType"`
@@ -91,6 +95,10 @@ func (e *SecondFactorRemovedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *SecondFactorRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
type MultiFactorAddedEvent struct {
eventstore.BaseEvent `json:"-"`
@@ -128,6 +136,10 @@ func (e *MultiFactorAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return nil
}
func (e *MultiFactorAddedEvent) Assets() []*eventstore.Asset {
return nil
}
type MultiFactorRemovedEvent struct {
eventstore.BaseEvent `json:"-"`
MFAType domain.MultiFactorType `json:"mfaType"`
@@ -163,3 +175,7 @@ func (e *MultiFactorRemovedEvent) Data() interface{} {
func (e *MultiFactorRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint {
return nil
}
func (e *MultiFactorRemovedEvent) Assets() []*eventstore.Asset {
return nil
}

View File

@@ -30,6 +30,10 @@ func (e *IdentityProviderAddedEvent) UniqueConstraints() []*eventstore.EventUniq
return nil
}
func (e *IdentityProviderAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewIdentityProviderAddedEvent(
base *eventstore.BaseEvent,
idpConfigID string,
@@ -70,6 +74,10 @@ func (e *IdentityProviderRemovedEvent) UniqueConstraints() []*eventstore.EventUn
return nil
}
func (e *IdentityProviderRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewIdentityProviderRemovedEvent(
base *eventstore.BaseEvent,
idpConfigID string,
@@ -107,6 +115,10 @@ func (e *IdentityProviderCascadeRemovedEvent) UniqueConstraints() []*eventstore.
return nil
}
func (e *IdentityProviderCascadeRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewIdentityProviderCascadeRemovedEvent(
base *eventstore.BaseEvent,
idpConfigID string,

View File

@@ -28,6 +28,10 @@ func (e *OrgIAMPolicyAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *OrgIAMPolicyAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOrgIAMPolicyAddedEvent(
base *eventstore.BaseEvent,
userLoginMustBeDomain bool,
@@ -66,6 +70,10 @@ func (e *OrgIAMPolicyChangedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *OrgIAMPolicyChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOrgIAMPolicyChangedEvent(
base *eventstore.BaseEvent,
changes []OrgIAMPolicyChanges,
@@ -115,6 +123,10 @@ func (e *OrgIAMPolicyRemovedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *OrgIAMPolicyRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOrgIAMPolicyRemovedEvent(base *eventstore.BaseEvent) *OrgIAMPolicyRemovedEvent {
return &OrgIAMPolicyRemovedEvent{
BaseEvent: *base,

View File

@@ -28,6 +28,10 @@ func (e *PasswordAgePolicyAddedEvent) UniqueConstraints() []*eventstore.EventUni
return nil
}
func (e *PasswordAgePolicyAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewPasswordAgePolicyAddedEvent(
base *eventstore.BaseEvent,
expireWarnDays,
@@ -69,6 +73,10 @@ func (e *PasswordAgePolicyChangedEvent) UniqueConstraints() []*eventstore.EventU
return nil
}
func (e *PasswordAgePolicyChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewPasswordAgePolicyChangedEvent(
base *eventstore.BaseEvent,
changes []PasswordAgePolicyChanges,
@@ -124,6 +132,10 @@ func (e *PasswordAgePolicyRemovedEvent) UniqueConstraints() []*eventstore.EventU
return nil
}
func (e *PasswordAgePolicyRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewPasswordAgePolicyRemovedEvent(base *eventstore.BaseEvent) *PasswordAgePolicyRemovedEvent {
return &PasswordAgePolicyRemovedEvent{
BaseEvent: *base,

View File

@@ -32,6 +32,10 @@ func (e *PasswordComplexityPolicyAddedEvent) UniqueConstraints() []*eventstore.E
return nil
}
func (e *PasswordComplexityPolicyAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewPasswordComplexityPolicyAddedEvent(
base *eventstore.BaseEvent,
minLength uint64,
@@ -81,6 +85,10 @@ func (e *PasswordComplexityPolicyChangedEvent) UniqueConstraints() []*eventstore
return nil
}
func (e *PasswordComplexityPolicyChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewPasswordComplexityPolicyChangedEvent(
base *eventstore.BaseEvent,
changes []PasswordComplexityPolicyChanges,
@@ -154,6 +162,10 @@ func (e *PasswordComplexityPolicyRemovedEvent) UniqueConstraints() []*eventstore
return nil
}
func (e *PasswordComplexityPolicyRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewPasswordComplexityPolicyRemovedEvent(base *eventstore.BaseEvent) *PasswordComplexityPolicyRemovedEvent {
return &PasswordComplexityPolicyRemovedEvent{
BaseEvent: *base,

View File

@@ -29,6 +29,10 @@ func (e *PasswordLockoutPolicyAddedEvent) UniqueConstraints() []*eventstore.Even
return nil
}
func (e *PasswordLockoutPolicyAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewPasswordLockoutPolicyAddedEvent(
base *eventstore.BaseEvent,
maxAttempts uint64,
@@ -70,6 +74,10 @@ func (e *PasswordLockoutPolicyChangedEvent) UniqueConstraints() []*eventstore.Ev
return nil
}
func (e *PasswordLockoutPolicyChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewPasswordLockoutPolicyChangedEvent(
base *eventstore.BaseEvent,
changes []PasswordLockoutPolicyChanges,
@@ -125,6 +133,10 @@ func (e *PasswordLockoutPolicyRemovedEvent) UniqueConstraints() []*eventstore.Ev
return nil
}
func (e *PasswordLockoutPolicyRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewPasswordLockoutPolicyRemovedEvent(base *eventstore.BaseEvent) *PasswordLockoutPolicyRemovedEvent {
return &PasswordLockoutPolicyRemovedEvent{
BaseEvent: *base,

View File

@@ -36,6 +36,10 @@ func (e *APIConfigAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return nil
}
func (e *APIConfigAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewAPIConfigAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -86,6 +90,10 @@ func (e *APIConfigChangedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return nil
}
func (e *APIConfigChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewAPIConfigChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -146,6 +154,10 @@ func (e *APIConfigSecretChangedEvent) UniqueConstraints() []*eventstore.EventUni
return nil
}
func (e *APIConfigSecretChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewAPIConfigSecretChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -190,6 +202,10 @@ func (e *APIConfigSecretCheckSucceededEvent) UniqueConstraints() []*eventstore.E
return nil
}
func (e *APIConfigSecretCheckSucceededEvent) Assets() []*eventstore.Asset {
return nil
}
func NewAPIConfigSecretCheckSucceededEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -232,6 +248,10 @@ func (e *APIConfigSecretCheckFailedEvent) UniqueConstraints() []*eventstore.Even
return nil
}
func (e *APIConfigSecretCheckFailedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewAPIConfigSecretCheckFailedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -48,6 +48,10 @@ func (e *ApplicationAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return []*eventstore.EventUniqueConstraint{NewAddApplicationUniqueConstraint(e.Name, e.Aggregate().ID)}
}
func (e *ApplicationAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewApplicationAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -97,6 +101,10 @@ func (e *ApplicationChangedEvent) UniqueConstraints() []*eventstore.EventUniqueC
}
}
func (e *ApplicationChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewApplicationChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -143,6 +151,10 @@ func (e *ApplicationDeactivatedEvent) UniqueConstraints() []*eventstore.EventUni
return nil
}
func (e *ApplicationDeactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewApplicationDeactivatedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -185,6 +197,10 @@ func (e *ApplicationReactivatedEvent) UniqueConstraints() []*eventstore.EventUni
return nil
}
func (e *ApplicationReactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewApplicationReactivatedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -228,6 +244,10 @@ func (e *ApplicationRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return []*eventstore.EventUniqueConstraint{NewRemoveApplicationUniqueConstraint(e.name, e.Aggregate().ID)}
}
func (e *ApplicationRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewApplicationRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -50,6 +50,10 @@ func (e *GrantAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrain
return []*eventstore.EventUniqueConstraint{NewAddProjectGrantUniqueConstraint(e.GrantedOrgID, e.Aggregate().ID)}
}
func (e *GrantAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewGrantAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -97,6 +101,10 @@ func (e *GrantChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstra
return nil
}
func (e *GrantChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewGrantChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -142,6 +150,10 @@ func (e *GrantCascadeChangedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *GrantCascadeChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewGrantCascadeChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -186,6 +198,10 @@ func (e *GrantDeactivateEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return nil
}
func (e *GrantDeactivateEvent) Assets() []*eventstore.Asset {
return nil
}
func NewGrantDeactivateEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -228,6 +244,10 @@ func (e *GrantReactivatedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return nil
}
func (e *GrantReactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewGrantReactivatedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -271,6 +291,10 @@ func (e *GrantRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstra
return []*eventstore.EventUniqueConstraint{NewRemoveProjectGrantUniqueConstraint(e.grantedOrgID, e.Aggregate().ID)}
}
func (e *GrantRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewGrantRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -48,6 +48,10 @@ func (e *GrantMemberAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return []*eventstore.EventUniqueConstraint{NewAddProjectGrantMemberUniqueConstraint(e.Aggregate().ID, e.UserID, e.GrantID)}
}
func (e *GrantMemberAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewProjectGrantMemberAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -96,6 +100,10 @@ func (e *GrantMemberChangedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *GrantMemberChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewProjectGrantMemberChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -143,6 +151,10 @@ func (e *GrantMemberRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return []*eventstore.EventUniqueConstraint{NewRemoveProjectGrantMemberUniqueConstraint(e.Aggregate().ID, e.UserID, e.GrantID)}
}
func (e *GrantMemberRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewProjectGrantMemberRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -36,6 +36,10 @@ func (e *ApplicationKeyAddedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *ApplicationKeyAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewApplicationKeyAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -88,6 +92,10 @@ func (e *ApplicationKeyRemovedEvent) UniqueConstraints() []*eventstore.EventUniq
return nil
}
func (e *ApplicationKeyRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewApplicationKeyRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -49,6 +49,10 @@ func (e *OIDCConfigAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return nil
}
func (e *OIDCConfigAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOIDCConfigAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -134,6 +138,10 @@ func (e *OIDCConfigChangedEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *OIDCConfigChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOIDCConfigChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -266,6 +274,10 @@ func (e *OIDCConfigSecretChangedEvent) UniqueConstraints() []*eventstore.EventUn
return nil
}
func (e *OIDCConfigSecretChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOIDCConfigSecretChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -310,6 +322,10 @@ func (e *OIDCConfigSecretCheckSucceededEvent) UniqueConstraints() []*eventstore.
return nil
}
func (e *OIDCConfigSecretCheckSucceededEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOIDCConfigSecretCheckSucceededEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -352,6 +368,10 @@ func (e *OIDCConfigSecretCheckFailedEvent) UniqueConstraints() []*eventstore.Eve
return nil
}
func (e *OIDCConfigSecretCheckFailedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOIDCConfigSecretCheckFailedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -48,6 +48,10 @@ func (e *ProjectAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstra
return []*eventstore.EventUniqueConstraint{NewAddProjectNameUniqueConstraint(e.Name, e.Aggregate().ResourceOwner)}
}
func (e *ProjectAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewProjectAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -99,6 +103,10 @@ func (e *ProjectChangeEvent) UniqueConstraints() []*eventstore.EventUniqueConstr
return nil
}
func (e *ProjectChangeEvent) Assets() []*eventstore.Asset {
return nil
}
func NewProjectChangeEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -167,6 +175,10 @@ func (e *ProjectDeactivatedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *ProjectDeactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewProjectDeactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *ProjectDeactivatedEvent {
return &ProjectDeactivatedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -195,6 +207,10 @@ func (e *ProjectReactivatedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *ProjectReactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewProjectReactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *ProjectReactivatedEvent {
return &ProjectReactivatedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -225,6 +241,10 @@ func (e *ProjectRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return []*eventstore.EventUniqueConstraint{NewRemoveProjectNameUniqueConstraint(e.Name, e.Aggregate().ResourceOwner)}
}
func (e *ProjectRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewProjectRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -47,6 +47,10 @@ func (e *RoleAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
return []*eventstore.EventUniqueConstraint{NewAddProjectRoleUniqueConstraint(e.Key, e.Aggregate().ID)}
}
func (e *RoleAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewRoleAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -95,6 +99,10 @@ func (e *RoleChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrai
return nil
}
func (e *RoleChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewRoleChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -164,6 +172,10 @@ func (e *RoleRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrai
return []*eventstore.EventUniqueConstraint{NewRemoveProjectRoleUniqueConstraint(e.Key, e.Aggregate().ID)}
}
func (e *RoleRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewRoleRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -59,6 +59,10 @@ func (e *HumanAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrain
return []*eventstore.EventUniqueConstraint{NewAddUsernameUniqueConstraint(e.UserName, e.Aggregate().ResourceOwner, e.userLoginMustBeDomain)}
}
func (e *HumanAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func (e *HumanAddedEvent) AddAddressData(
country,
locality,
@@ -166,6 +170,10 @@ func (e *HumanRegisteredEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return []*eventstore.EventUniqueConstraint{NewAddUsernameUniqueConstraint(e.UserName, e.Aggregate().ResourceOwner, e.userLoginMustBeDomain)}
}
func (e *HumanRegisteredEvent) Assets() []*eventstore.Asset {
return nil
}
func (e *HumanRegisteredEvent) AddAddressData(
country,
locality,
@@ -252,6 +260,10 @@ func (e *HumanInitialCodeAddedEvent) UniqueConstraints() []*eventstore.EventUniq
return nil
}
func (e *HumanInitialCodeAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanInitialCodeAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -293,6 +305,10 @@ func (e *HumanInitialCodeSentEvent) UniqueConstraints() []*eventstore.EventUniqu
return nil
}
func (e *HumanInitialCodeSentEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanInitialCodeSentEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanInitialCodeSentEvent {
return &HumanInitialCodeSentEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -321,6 +337,10 @@ func (e *HumanInitializedCheckSucceededEvent) UniqueConstraints() []*eventstore.
return nil
}
func (e *HumanInitializedCheckSucceededEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanInitializedCheckSucceededEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanInitializedCheckSucceededEvent {
return &HumanInitializedCheckSucceededEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -349,6 +369,10 @@ func (e *HumanInitializedCheckFailedEvent) UniqueConstraints() []*eventstore.Eve
return nil
}
func (e *HumanInitializedCheckFailedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanInitializedCheckFailedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanInitializedCheckFailedEvent {
return &HumanInitializedCheckFailedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -379,6 +403,10 @@ func (e *HumanSignedOutEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return nil
}
func (e *HumanSignedOutEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanSignedOutEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -32,6 +32,10 @@ func (e *HumanAddressChangedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *HumanAddressChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewAddressChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -34,6 +34,10 @@ func (e *HumanEmailChangedEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *HumanEmailChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanEmailChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, emailAddress string) *HumanEmailChangedEvent {
return &HumanEmailChangedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -71,6 +75,10 @@ func (e *HumanEmailVerifiedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *HumanEmailVerifiedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanEmailVerifiedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanEmailVerifiedEvent {
return &HumanEmailVerifiedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -101,6 +109,10 @@ func (e *HumanEmailVerificationFailedEvent) UniqueConstraints() []*eventstore.Ev
return nil
}
func (e *HumanEmailVerificationFailedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanEmailVerificationFailedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanEmailVerificationFailedEvent {
return &HumanEmailVerificationFailedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -132,6 +144,10 @@ func (e *HumanEmailCodeAddedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *HumanEmailCodeAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanEmailCodeAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -172,6 +188,10 @@ func (e *HumanEmailCodeSentEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *HumanEmailCodeSentEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanEmailCodeSentEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanEmailCodeSentEvent {
return &HumanEmailCodeSentEvent{
BaseEvent: *eventstore.NewBaseEventForPush(

View File

@@ -50,6 +50,10 @@ func (e *HumanExternalIDPAddedEvent) UniqueConstraints() []*eventstore.EventUniq
return []*eventstore.EventUniqueConstraint{NewAddExternalIDPUniqueConstraint(e.IDPConfigID, e.ExternalUserID)}
}
func (e *HumanExternalIDPAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanExternalIDPAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -97,6 +101,10 @@ func (e *HumanExternalIDPRemovedEvent) UniqueConstraints() []*eventstore.EventUn
return []*eventstore.EventUniqueConstraint{NewRemoveExternalIDPUniqueConstraint(e.IDPConfigID, e.ExternalUserID)}
}
func (e *HumanExternalIDPRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanExternalIDPRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -142,6 +150,10 @@ func (e *HumanExternalIDPCascadeRemovedEvent) UniqueConstraints() []*eventstore.
return []*eventstore.EventUniqueConstraint{NewRemoveExternalIDPUniqueConstraint(e.IDPConfigID, e.ExternalUserID)}
}
func (e *HumanExternalIDPCascadeRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanExternalIDPCascadeRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -185,6 +197,10 @@ func (e *HumanExternalIDPCheckSucceededEvent) UniqueConstraints() []*eventstore.
return nil
}
func (e *HumanExternalIDPCheckSucceededEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanExternalIDPCheckSucceededEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -24,6 +24,10 @@ func (e *HumanMFAInitSkippedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *HumanMFAInitSkippedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanMFAInitSkippedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanMFAInitSkippedEvent {
return &HumanMFAInitSkippedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(

View File

@@ -33,6 +33,10 @@ func (e *HumanOTPAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstr
return nil
}
func (e *HumanOTPAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanOTPAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -72,6 +76,10 @@ func (e *HumanOTPVerifiedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return nil
}
func (e *HumanOTPVerifiedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanOTPVerifiedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -105,6 +113,10 @@ func (e *HumanOTPRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return nil
}
func (e *HumanOTPRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanOTPRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -137,6 +149,10 @@ func (e *HumanOTPCheckSucceededEvent) UniqueConstraints() []*eventstore.EventUni
return nil
}
func (e *HumanOTPCheckSucceededEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanOTPCheckSucceededEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -176,6 +192,10 @@ func (e *HumanOTPCheckFailedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *HumanOTPCheckFailedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanOTPCheckFailedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -24,6 +24,10 @@ func (e *HumanWebAuthNAddedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *HumanWebAuthNAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanWebAuthNAddedEvent(
base *eventstore.BaseEvent,
webAuthNTokenID,
@@ -68,6 +72,10 @@ func (e *HumanWebAuthNVerifiedEvent) UniqueConstraints() []*eventstore.EventUniq
return nil
}
func (e *HumanWebAuthNVerifiedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanWebAuthNVerifiedEvent(
base *eventstore.BaseEvent,
webAuthNTokenID,
@@ -118,6 +126,10 @@ func (e *HumanWebAuthNSignCountChangedEvent) UniqueConstraints() []*eventstore.E
return nil
}
func (e *HumanWebAuthNSignCountChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanWebAuthNSignCountChangedEvent(
base *eventstore.BaseEvent,
webAuthNTokenID string,
@@ -156,6 +168,10 @@ func (e *HumanWebAuthNRemovedEvent) UniqueConstraints() []*eventstore.EventUniqu
return nil
}
func (e *HumanWebAuthNRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanWebAuthNRemovedEvent(
base *eventstore.BaseEvent,
webAuthNTokenID string,
@@ -194,6 +210,10 @@ func (e *HumanWebAuthNBeginLoginEvent) UniqueConstraints() []*eventstore.EventUn
return nil
}
func (e *HumanWebAuthNBeginLoginEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanWebAuthNBeginLoginEvent(base *eventstore.BaseEvent, challenge string, allowedCredentialIDs [][]byte, userVerification domain.UserVerificationRequirement, info *AuthRequestInfo) *HumanWebAuthNBeginLoginEvent {
return &HumanWebAuthNBeginLoginEvent{
BaseEvent: *base,
@@ -228,6 +248,10 @@ func (e *HumanWebAuthNCheckSucceededEvent) UniqueConstraints() []*eventstore.Eve
return nil
}
func (e *HumanWebAuthNCheckSucceededEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanWebAuthNCheckSucceededEvent(
base *eventstore.BaseEvent,
info *AuthRequestInfo) *HumanWebAuthNCheckSucceededEvent {
@@ -261,6 +285,10 @@ func (e *HumanWebAuthNCheckFailedEvent) UniqueConstraints() []*eventstore.EventU
return nil
}
func (e *HumanWebAuthNCheckFailedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanWebAuthNCheckFailedEvent(
base *eventstore.BaseEvent,
info *AuthRequestInfo) *HumanWebAuthNCheckFailedEvent {

View File

@@ -37,6 +37,10 @@ func (e *HumanPasswordChangedEvent) UniqueConstraints() []*eventstore.EventUniqu
return nil
}
func (e *HumanPasswordChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPasswordChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -84,6 +88,10 @@ func (e *HumanPasswordCodeAddedEvent) UniqueConstraints() []*eventstore.EventUni
return nil
}
func (e *HumanPasswordCodeAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPasswordCodeAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -127,6 +135,10 @@ func (e *HumanPasswordCodeSentEvent) UniqueConstraints() []*eventstore.EventUniq
return nil
}
func (e *HumanPasswordCodeSentEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPasswordCodeSentEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanPasswordCodeSentEvent {
return &HumanPasswordCodeSentEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -156,6 +168,10 @@ func (e *HumanPasswordCheckSucceededEvent) UniqueConstraints() []*eventstore.Eve
return nil
}
func (e *HumanPasswordCheckSucceededEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPasswordCheckSucceededEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -196,6 +212,10 @@ func (e *HumanPasswordCheckFailedEvent) UniqueConstraints() []*eventstore.EventU
return nil
}
func (e *HumanPasswordCheckFailedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPasswordCheckFailedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -35,6 +35,10 @@ func (e *HumanPhoneChangedEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *HumanPhoneChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPhoneChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, phone string) *HumanPhoneChangedEvent {
return &HumanPhoneChangedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -70,6 +74,10 @@ func (e *HumanPhoneRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *HumanPhoneRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPhoneRemovedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanPhoneRemovedEvent {
return &HumanPhoneRemovedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -100,6 +108,10 @@ func (e *HumanPhoneVerifiedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *HumanPhoneVerifiedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPhoneVerifiedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanPhoneVerifiedEvent {
return &HumanPhoneVerifiedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -129,6 +141,10 @@ func (e *HumanPhoneVerificationFailedEvent) UniqueConstraints() []*eventstore.Ev
return nil
}
func (e *HumanPhoneVerificationFailedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPhoneVerificationFailedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanPhoneVerificationFailedEvent {
return &HumanPhoneVerificationFailedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -160,6 +176,10 @@ func (e *HumanPhoneCodeAddedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *HumanPhoneCodeAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPhoneCodeAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -201,6 +221,10 @@ func (e *HumanPhoneCodeSentEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *HumanPhoneCodeSentEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPhoneCodeSentEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanPhoneCodeSentEvent {
return &HumanPhoneCodeSentEvent{
BaseEvent: *eventstore.NewBaseEventForPush(

View File

@@ -35,6 +35,10 @@ func (e *HumanProfileChangedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *HumanProfileChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanProfileChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -33,6 +33,10 @@ func (e *MachineAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstra
return []*eventstore.EventUniqueConstraint{NewAddUsernameUniqueConstraint(e.UserName, e.Aggregate().ResourceOwner, e.userLoginMustBeDomain)}
}
func (e *MachineAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMachineAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -81,6 +85,10 @@ func (e *MachineChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return nil
}
func (e *MachineChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMachineChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -34,6 +34,10 @@ func (e *MachineKeyAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return nil
}
func (e *MachineKeyAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMachineKeyAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -81,6 +85,10 @@ func (e *MachineKeyRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *MachineKeyRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMachineKeyRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -57,6 +57,10 @@ func (e *UserLockedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrain
return nil
}
func (e *UserLockedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserLockedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *UserLockedEvent {
return &UserLockedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -85,6 +89,10 @@ func (e *UserUnlockedEvent) UniqueConstraints() []*eventstore.EventUniqueConstra
return nil
}
func (e *UserUnlockedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserUnlockedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *UserUnlockedEvent {
return &UserUnlockedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -113,6 +121,10 @@ func (e *UserDeactivatedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return nil
}
func (e *UserDeactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserDeactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *UserDeactivatedEvent {
return &UserDeactivatedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -141,6 +153,10 @@ func (e *UserReactivatedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return nil
}
func (e *UserReactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserReactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *UserReactivatedEvent {
return &UserReactivatedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -172,6 +188,10 @@ func (e *UserRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrai
return []*eventstore.EventUniqueConstraint{NewRemoveUsernameUniqueConstraint(e.userName, e.Aggregate().ResourceOwner, e.loginMustBeDomain)}
}
func (e *UserRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -215,6 +235,10 @@ func (e *UserTokenAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return nil
}
func (e *UserTokenAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserTokenAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -273,6 +297,10 @@ func (e *DomainClaimedEvent) UniqueConstraints() []*eventstore.EventUniqueConstr
}
}
func (e *DomainClaimedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewDomainClaimedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -316,6 +344,10 @@ func (e *DomainClaimedSentEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *DomainClaimedSentEvent) Assets() []*eventstore.Asset {
return nil
}
func NewDomainClaimedSentEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -354,6 +386,10 @@ func (e *UsernameChangedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
}
}
func (e *UsernameChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUsernameChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -52,6 +52,10 @@ func (e *UserGrantAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return []*eventstore.EventUniqueConstraint{NewAddUserGrantUniqueConstraint(e.Aggregate().ResourceOwner, e.UserID, e.ProjectID, e.ProjectGrantID)}
}
func (e *UserGrantAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserGrantAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -98,6 +102,10 @@ func (e *UserGrantChangedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return nil
}
func (e *UserGrantChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserGrantChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -138,6 +146,10 @@ func (e *UserGrantCascadeChangedEvent) UniqueConstraints() []*eventstore.EventUn
return nil
}
func (e *UserGrantCascadeChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserGrantCascadeChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -180,6 +192,10 @@ func (e *UserGrantRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return []*eventstore.EventUniqueConstraint{NewRemoveUserGrantUniqueConstraint(e.Aggregate().ResourceOwner, e.userID, e.projectID, e.projectGrantID)}
}
func (e *UserGrantRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserGrantRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -220,6 +236,10 @@ func (e *UserGrantCascadeRemovedEvent) UniqueConstraints() []*eventstore.EventUn
return []*eventstore.EventUniqueConstraint{NewRemoveUserGrantUniqueConstraint(e.Aggregate().ResourceOwner, e.userID, e.projectID, e.projectGrantID)}
}
func (e *UserGrantCascadeRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserGrantCascadeRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -257,6 +277,10 @@ func (e *UserGrantDeactivatedEvent) UniqueConstraints() []*eventstore.EventUniqu
return nil
}
func (e *UserGrantDeactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserGrantDeactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *UserGrantDeactivatedEvent {
return &UserGrantDeactivatedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -285,6 +309,10 @@ func (e *UserGrantReactivatedEvent) UniqueConstraints() []*eventstore.EventUniqu
return nil
}
func (e *UserGrantReactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserGrantReactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *UserGrantReactivatedEvent {
return &UserGrantReactivatedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(