Remove webhook data id from graphql
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -2346,7 +2346,6 @@ input WebhookEventOrder
|
|||||||
|
|
||||||
type WebhookEvent implements Node {
|
type WebhookEvent implements Node {
|
||||||
id: ID!
|
id: ID!
|
||||||
webhookDataId: ID!
|
|
||||||
webhookConfigurationId: ID!
|
webhookConfigurationId: ID!
|
||||||
endpointUrl: String!
|
endpointUrl: String!
|
||||||
status: WebhookEventStatus!
|
status: WebhookEventStatus!
|
||||||
|
|||||||
@@ -1960,7 +1960,6 @@ type ComplexityRoot struct {
|
|||||||
Response func(childComplexity int) int
|
Response func(childComplexity int) int
|
||||||
Status func(childComplexity int) int
|
Status func(childComplexity int) int
|
||||||
WebhookConfigurationID func(childComplexity int) int
|
WebhookConfigurationID func(childComplexity int) int
|
||||||
WebhookDataID func(childComplexity int) int
|
|
||||||
}
|
}
|
||||||
|
|
||||||
WebhookEventConnection struct {
|
WebhookEventConnection struct {
|
||||||
@@ -10260,12 +10259,6 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return e.complexity.WebhookEvent.WebhookConfigurationID(childComplexity), true
|
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":
|
case "WebhookEventConnection.edges":
|
||||||
if e.complexity.WebhookEventConnection.Edges == nil {
|
if e.complexity.WebhookEventConnection.Edges == nil {
|
||||||
@@ -12947,7 +12940,6 @@ input WebhookEventOrder
|
|||||||
|
|
||||||
type WebhookEvent implements Node {
|
type WebhookEvent implements Node {
|
||||||
id: ID!
|
id: ID!
|
||||||
webhookDataId: ID!
|
|
||||||
webhookConfigurationId: ID!
|
webhookConfigurationId: ID!
|
||||||
endpointUrl: String!
|
endpointUrl: String!
|
||||||
status: WebhookEventStatus!
|
status: WebhookEventStatus!
|
||||||
@@ -60507,35 +60499,6 @@ func (ec *executionContext) fieldContext_WebhookEvent_id(_ context.Context, fiel
|
|||||||
return fc, nil
|
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) {
|
func (ec *executionContext) _WebhookEvent_webhookConfigurationId(ctx context.Context, field graphql.CollectedField, obj *types.WebhookEvent) (ret graphql.Marshaler) {
|
||||||
return graphql.ResolveField(
|
return graphql.ResolveField(
|
||||||
ctx,
|
ctx,
|
||||||
@@ -60839,8 +60802,6 @@ func (ec *executionContext) fieldContext_WebhookEventEdge_node(_ context.Context
|
|||||||
switch field.Name {
|
switch field.Name {
|
||||||
case "id":
|
case "id":
|
||||||
return ec.fieldContext_WebhookEvent_id(ctx, field)
|
return ec.fieldContext_WebhookEvent_id(ctx, field)
|
||||||
case "webhookDataId":
|
|
||||||
return ec.fieldContext_WebhookEvent_webhookDataId(ctx, field)
|
|
||||||
case "webhookConfigurationId":
|
case "webhookConfigurationId":
|
||||||
return ec.fieldContext_WebhookEvent_webhookConfigurationId(ctx, field)
|
return ec.fieldContext_WebhookEvent_webhookConfigurationId(ctx, field)
|
||||||
case "endpointUrl":
|
case "endpointUrl":
|
||||||
@@ -91702,11 +91663,6 @@ func (ec *executionContext) _WebhookEvent(ctx context.Context, sel ast.Selection
|
|||||||
if out.Values[i] == graphql.Null {
|
if out.Values[i] == graphql.Null {
|
||||||
out.Invalids++
|
out.Invalids++
|
||||||
}
|
}
|
||||||
case "webhookDataId":
|
|
||||||
out.Values[i] = ec._WebhookEvent_webhookDataId(ctx, field, obj)
|
|
||||||
if out.Values[i] == graphql.Null {
|
|
||||||
out.Invalids++
|
|
||||||
}
|
|
||||||
case "webhookConfigurationId":
|
case "webhookConfigurationId":
|
||||||
out.Values[i] = ec._WebhookEvent_webhookConfigurationId(ctx, field, obj)
|
out.Values[i] = ec._WebhookEvent_webhookConfigurationId(ctx, field, obj)
|
||||||
if out.Values[i] == graphql.Null {
|
if out.Values[i] == graphql.Null {
|
||||||
|
|||||||
@@ -2645,7 +2645,6 @@ type WebhookConfigurationEdge struct {
|
|||||||
|
|
||||||
type WebhookEvent struct {
|
type WebhookEvent struct {
|
||||||
ID gid.GID `json:"id"`
|
ID gid.GID `json:"id"`
|
||||||
WebhookDataID gid.GID `json:"webhookDataId"`
|
|
||||||
WebhookConfigurationID gid.GID `json:"webhookConfigurationId"`
|
WebhookConfigurationID gid.GID `json:"webhookConfigurationId"`
|
||||||
EndpointURL string `json:"endpointUrl"`
|
EndpointURL string `json:"endpointUrl"`
|
||||||
Status coredata.WebhookEventStatus `json:"status"`
|
Status coredata.WebhookEventStatus `json:"status"`
|
||||||
|
|||||||
@@ -69,7 +69,6 @@ func NewWebhookEvent(we *coredata.WebhookEvent) *WebhookEvent {
|
|||||||
|
|
||||||
return &WebhookEvent{
|
return &WebhookEvent{
|
||||||
ID: we.ID,
|
ID: we.ID,
|
||||||
WebhookDataID: we.WebhookDataID,
|
|
||||||
WebhookConfigurationID: we.WebhookConfigurationID,
|
WebhookConfigurationID: we.WebhookConfigurationID,
|
||||||
EndpointURL: we.EndpointURL,
|
EndpointURL: we.EndpointURL,
|
||||||
Status: we.Status,
|
Status: we.Status,
|
||||||
|
|||||||
Reference in New Issue
Block a user