diff --git a/pkg/server/api/console/v1/schema.graphql b/pkg/server/api/console/v1/schema.graphql index efdd58559..f8ced9109 100644 --- a/pkg/server/api/console/v1/schema.graphql +++ b/pkg/server/api/console/v1/schema.graphql @@ -2346,7 +2346,6 @@ input WebhookEventOrder type WebhookEvent implements Node { id: ID! - webhookDataId: ID! webhookConfigurationId: ID! endpointUrl: String! status: WebhookEventStatus! diff --git a/pkg/server/api/console/v1/schema/schema.go b/pkg/server/api/console/v1/schema/schema.go index e22e89de6..d0d4fc33c 100644 --- a/pkg/server/api/console/v1/schema/schema.go +++ b/pkg/server/api/console/v1/schema/schema.go @@ -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 { diff --git a/pkg/server/api/console/v1/types/types.go b/pkg/server/api/console/v1/types/types.go index 64989947b..c421d6888 100644 --- a/pkg/server/api/console/v1/types/types.go +++ b/pkg/server/api/console/v1/types/types.go @@ -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"` diff --git a/pkg/server/api/console/v1/types/webhook_event.go b/pkg/server/api/console/v1/types/webhook_event.go index 15b65f378..782b47bf1 100644 --- a/pkg/server/api/console/v1/types/webhook_event.go +++ b/pkg/server/api/console/v1/types/webhook_event.go @@ -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,