mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
fix: payload (de)serialization of some events (#6858)
This commit is contained in:
parent
585c8af5f2
commit
9378e19090
@ -17,7 +17,7 @@ const (
|
||||
)
|
||||
|
||||
type AddedEvent struct {
|
||||
*eventstore.BaseEvent
|
||||
*eventstore.BaseEvent `json:"-"`
|
||||
|
||||
ClientID string
|
||||
DeviceCode string
|
||||
@ -56,7 +56,7 @@ func NewAddedEvent(
|
||||
}
|
||||
|
||||
type ApprovedEvent struct {
|
||||
*eventstore.BaseEvent
|
||||
*eventstore.BaseEvent `json:"-"`
|
||||
|
||||
Subject string
|
||||
}
|
||||
@ -87,7 +87,8 @@ func NewApprovedEvent(
|
||||
}
|
||||
|
||||
type CanceledEvent struct {
|
||||
*eventstore.BaseEvent
|
||||
*eventstore.BaseEvent `json:"-"`
|
||||
|
||||
Reason domain.DeviceAuthCanceled
|
||||
}
|
||||
|
||||
@ -108,7 +109,7 @@ func NewCanceledEvent(ctx context.Context, aggregate *eventstore.Aggregate, reas
|
||||
}
|
||||
|
||||
type RemovedEvent struct {
|
||||
*eventstore.BaseEvent
|
||||
*eventstore.BaseEvent `json:"-"`
|
||||
|
||||
ClientID string
|
||||
DeviceCode string
|
||||
|
@ -17,7 +17,7 @@ func EventTypeFromFeature(feature domain.Feature) eventstore.EventType {
|
||||
}
|
||||
|
||||
type SetEvent[T SetEventType] struct {
|
||||
*eventstore.BaseEvent
|
||||
*eventstore.BaseEvent `json:"-"`
|
||||
|
||||
Value T
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ const (
|
||||
)
|
||||
|
||||
type TriggerActionsSetEvent struct {
|
||||
eventstore.BaseEvent
|
||||
eventstore.BaseEvent `json:"-"`
|
||||
|
||||
FlowType domain.FlowType `json:"flowType"`
|
||||
TriggerType domain.TriggerType `json:"triggerType"`
|
||||
@ -58,7 +58,7 @@ func TriggerActionsSetEventMapper(event eventstore.Event) (eventstore.Event, err
|
||||
}
|
||||
|
||||
type TriggerActionsCascadeRemovedEvent struct {
|
||||
eventstore.BaseEvent
|
||||
eventstore.BaseEvent `json:"-"`
|
||||
|
||||
FlowType domain.FlowType `json:"flowType"`
|
||||
TriggerType domain.TriggerType `json:"triggerType"`
|
||||
@ -99,7 +99,7 @@ func TriggerActionsCascadeRemovedEventMapper(event eventstore.Event) (eventstore
|
||||
}
|
||||
|
||||
type FlowClearedEvent struct {
|
||||
eventstore.BaseEvent
|
||||
eventstore.BaseEvent `json:"-"`
|
||||
|
||||
FlowType domain.FlowType `json:"flowType"`
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ const (
|
||||
)
|
||||
|
||||
type IdentityProviderAddedEvent struct {
|
||||
eventstore.BaseEvent
|
||||
eventstore.BaseEvent `json:"-"`
|
||||
|
||||
IDPConfigID string `json:"idpConfigId,omitempty"`
|
||||
IDPProviderType domain.IdentityProviderType `json:"idpProviderType,omitempty"`
|
||||
@ -55,7 +55,7 @@ func IdentityProviderAddedEventMapper(event eventstore.Event) (eventstore.Event,
|
||||
}
|
||||
|
||||
type IdentityProviderRemovedEvent struct {
|
||||
eventstore.BaseEvent
|
||||
eventstore.BaseEvent `json:"-"`
|
||||
|
||||
IDPConfigID string `json:"idpConfigId"`
|
||||
}
|
||||
@ -92,7 +92,7 @@ func IdentityProviderRemovedEventMapper(event eventstore.Event) (eventstore.Even
|
||||
}
|
||||
|
||||
type IdentityProviderCascadeRemovedEvent struct {
|
||||
eventstore.BaseEvent
|
||||
eventstore.BaseEvent `json:"-"`
|
||||
|
||||
IDPConfigID string `json:"idpConfigId"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user