Add webhook calls ui

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-02-12 17:09:40 +01:00
parent f9de9c4834
commit a345e0be02
11 changed files with 1925 additions and 5 deletions

View File

@@ -2293,6 +2293,14 @@ type WebhookConfiguration implements Node {
createdAt: Datetime!
updatedAt: Datetime!
calls(
first: Int
after: CursorKey
last: Int
before: CursorKey
orderBy: WebhookCallOrder
): WebhookCallConnection! @goField(forceResolver: true)
permission(action: String!): Boolean! @goField(forceResolver: true)
}
@@ -2310,6 +2318,56 @@ type WebhookConfigurationEdge {
node: WebhookConfiguration!
}
enum WebhookCallStatus
@goModel(model: "go.probo.inc/probo/pkg/coredata.WebhookCallStatus") {
SUCCEEDED
@goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookCallStatusSucceeded")
FAILED
@goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookCallStatusFailed")
}
enum WebhookCallOrderField
@goModel(
model: "go.probo.inc/probo/pkg/coredata.WebhookCallOrderField"
) {
CREATED_AT
@goEnum(
value: "go.probo.inc/probo/pkg/coredata.WebhookCallOrderFieldCreatedAt"
)
}
input WebhookCallOrder
@goModel(
model: "go.probo.inc/probo/pkg/server/api/console/v1/types.WebhookCallOrderBy"
) {
field: WebhookCallOrderField!
direction: OrderDirection!
}
type WebhookCall implements Node {
id: ID!
webhookEventId: ID!
webhookConfigurationId: ID!
endpointUrl: String!
status: WebhookCallStatus!
response: String
createdAt: Datetime!
}
type WebhookCallConnection
@goModel(
model: "go.probo.inc/probo/pkg/server/api/console/v1/types.WebhookCallConnection"
) {
edges: [WebhookCallEdge!]!
pageInfo: PageInfo!
totalCount: Int! @goField(forceResolver: true)
}
type WebhookCallEdge {
cursor: CursorKey!
node: WebhookCall!
}
type StateOfApplicability implements Node {
id: ID!
name: String!