-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55e5617
commit 3b83521
Showing
7 changed files
with
945 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
client/internal/meta/operation/monitorv2_destination.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
fragment MonitorV2Destination on MonitorV2Destination { | ||
inline | ||
type | ||
# @genqlient(flatten: true) | ||
email { | ||
...MonitorV2EmailDestination | ||
} | ||
# @genqlient(flatten: true) | ||
webhook { | ||
...MonitorV2WebhookDestination | ||
} | ||
id | ||
workspaceId | ||
name | ||
iconUrl | ||
description | ||
createdBy | ||
} | ||
|
||
fragment MonitorV2EmailDestination on MonitorV2EmailDestination { | ||
users | ||
addresses | ||
} | ||
|
||
fragment MonitorV2WebhookDestination on MonitorV2WebhookDestination { | ||
url | ||
method | ||
} | ||
|
||
# @genqlient(for: "MonitorV2DestinationInput.inline", omitempty: true) | ||
# @genqlient(for: "MonitorV2DestinationInput.email", omitempty: true) | ||
# @genqlient(for: "MonitorV2DestinationInput.webhook", omitempty: true) | ||
# @genqlient(for: "MonitorV2DestinationInput.iconUrl", omitempty: true) | ||
# @genqlient(for: "MonitorV2DestinationInput.description", omitempty: true) | ||
# @genqlient(for: "MonitorV2DestinationInput.description", omitempty: true) | ||
# @genqlient(for: "MonitorV2EmailDestinationInput.users", omitempty: true) | ||
# @genqlient(for: "MonitorV2EmailDestinationInput.addresses", omitempty: true) | ||
mutation createMonitorV2Destination( | ||
$workspaceId: ObjectId!, | ||
$input: MonitorV2DestinationInput! | ||
) { | ||
# @genqlient(flatten: true) | ||
monitorV2Destination: createMonitorV2Destination(workspaceId: $workspaceId, input: $input) { | ||
...MonitorV2Destination | ||
} | ||
} | ||
|
||
# @genqlient(for: "MonitorV2DestinationInput.inline", omitempty: true) | ||
# @genqlient(for: "MonitorV2DestinationInput.email", omitempty: true) | ||
# @genqlient(for: "MonitorV2DestinationInput.webhook", omitempty: true) | ||
# @genqlient(for: "MonitorV2DestinationInput.iconUrl", omitempty: true) | ||
# @genqlient(for: "MonitorV2DestinationInput.description", omitempty: true) | ||
# @genqlient(for: "MonitorV2DestinationInput.description", omitempty: true) | ||
# @genqlient(for: "MonitorV2EmailDestinationInput.users", omitempty: true) | ||
# @genqlient(for: "MonitorV2EmailDestinationInput.addresses", omitempty: true) | ||
mutation updateMonitorV2Destination( | ||
$id: ObjectId!, | ||
$input: MonitorV2DestinationInput! | ||
) { | ||
# @genqlient(flatten: true) | ||
monitorV2Destination: updateMonitorV2Destination(id: $id, input: $input) { | ||
...MonitorV2Destination | ||
} | ||
} | ||
|
||
query getMonitorV2Destination($id: ObjectId!) { | ||
# @genqlient(flatten: true) | ||
monitorV2Destination: monitorV2Destination(id: $id) { | ||
...MonitorV2Destination | ||
} | ||
} | ||
|
||
mutation deleteMonitorV2Destination($id: ObjectId!) { | ||
# @genqlient(flatten: true) | ||
resultStatus: deleteMonitorV2Destination(id: $id) { | ||
...ResultStatus | ||
} | ||
} | ||
|
Oops, something went wrong.