Remove webhook data id from graphql

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-02-13 13:21:54 +01:00
parent ae6e6b665b
commit 007f58d76f
4 changed files with 0 additions and 47 deletions

View File

@@ -2346,7 +2346,6 @@ input WebhookEventOrder
type WebhookEvent implements Node {
id: ID!
webhookDataId: ID!
webhookConfigurationId: ID!
endpointUrl: String!
status: WebhookEventStatus!

View File

@@ -1960,7 +1960,6 @@ type ComplexityRoot struct {
Response func(childComplexity int) int
Status func(childComplexity int) int
WebhookConfigurationID func(childComplexity int) int
WebhookDataID func(childComplexity int) int
}
WebhookEventConnection struct {
@@ -10260,12 +10259,6 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin
}
return e.complexity.WebhookEvent.WebhookConfigurationID(childComplexity), true
case "WebhookEvent.webhookDataId":
if e.complexity.WebhookEvent.WebhookDataID == nil {
break
}
return e.complexity.WebhookEvent.WebhookDataID(childComplexity), true
case "WebhookEventConnection.edges":
if e.complexity.WebhookEventConnection.Edges == nil {
@@ -12947,7 +12940,6 @@ input WebhookEventOrder
type WebhookEvent implements Node {
id: ID!
webhookDataId: ID!
webhookConfigurationId: ID!
endpointUrl: String!
status: WebhookEventStatus!
@@ -60507,35 +60499,6 @@ func (ec *executionContext) fieldContext_WebhookEvent_id(_ context.Context, fiel
return fc, nil
}
func (ec *executionContext) _WebhookEvent_webhookDataId(ctx context.Context, field graphql.CollectedField, obj *types.WebhookEvent) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
ec.fieldContext_WebhookEvent_webhookDataId,
func(ctx context.Context) (any, error) {
return obj.WebhookDataID, nil
},
nil,
ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID,
true,
true,
)
}
func (ec *executionContext) fieldContext_WebhookEvent_webhookDataId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "WebhookEvent",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type ID does not have child fields")
},
}
return fc, nil
}
func (ec *executionContext) _WebhookEvent_webhookConfigurationId(ctx context.Context, field graphql.CollectedField, obj *types.WebhookEvent) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
@@ -60839,8 +60802,6 @@ func (ec *executionContext) fieldContext_WebhookEventEdge_node(_ context.Context
switch field.Name {
case "id":
return ec.fieldContext_WebhookEvent_id(ctx, field)
case "webhookDataId":
return ec.fieldContext_WebhookEvent_webhookDataId(ctx, field)
case "webhookConfigurationId":
return ec.fieldContext_WebhookEvent_webhookConfigurationId(ctx, field)
case "endpointUrl":
@@ -91702,11 +91663,6 @@ func (ec *executionContext) _WebhookEvent(ctx context.Context, sel ast.Selection
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "webhookDataId":
out.Values[i] = ec._WebhookEvent_webhookDataId(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "webhookConfigurationId":
out.Values[i] = ec._WebhookEvent_webhookConfigurationId(ctx, field, obj)
if out.Values[i] == graphql.Null {

View File

@@ -2645,7 +2645,6 @@ type WebhookConfigurationEdge struct {
type WebhookEvent struct {
ID gid.GID `json:"id"`
WebhookDataID gid.GID `json:"webhookDataId"`
WebhookConfigurationID gid.GID `json:"webhookConfigurationId"`
EndpointURL string `json:"endpointUrl"`
Status coredata.WebhookEventStatus `json:"status"`

View File

@@ -69,7 +69,6 @@ func NewWebhookEvent(we *coredata.WebhookEvent) *WebhookEvent {
return &WebhookEvent{
ID: we.ID,
WebhookDataID: we.WebhookDataID,
WebhookConfigurationID: we.WebhookConfigurationID,
EndpointURL: we.EndpointURL,
Status: we.Status,