2024-04-24 05:17:32 +08:00
|
|
|
import { gql } from '@apollo/client';
|
|
|
|
|
|
|
|
export const PLUGIN_DATA_CHANNEL_PUSH_MUTATION = gql`
|
2024-07-06 03:49:45 +08:00
|
|
|
mutation PluginDataChannelPushEntry($pluginName: String!,
|
|
|
|
$subChannelName: String!, $channelName: String!,
|
|
|
|
$payloadJson: json!,
|
2024-04-24 05:17:32 +08:00
|
|
|
$toRoles: [String]!, $toUserIds: [String]!) {
|
|
|
|
pluginDataChannelPushEntry(
|
|
|
|
pluginName: $pluginName,
|
|
|
|
channelName: $channelName,
|
|
|
|
subChannelName: $subChannelName,
|
|
|
|
payloadJson: $payloadJson,
|
|
|
|
toRoles: $toRoles,
|
|
|
|
toUserIds: $toUserIds,
|
|
|
|
)
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const PLUGIN_DATA_CHANNEL_RESET_MUTATION = gql`
|
|
|
|
mutation PluginDataChannelReset($pluginName: String!, $channelName: String!, $subChannelName: String!) {
|
|
|
|
pluginDataChannelReset(
|
|
|
|
pluginName: $pluginName,
|
|
|
|
channelName: $channelName,
|
|
|
|
subChannelName: $subChannelName
|
|
|
|
)
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const PLUGIN_DATA_CHANNEL_DELETE_MUTATION = gql`
|
|
|
|
mutation PluginDataChannelDeleteEntry($pluginName: String!,
|
|
|
|
$channelName: String!, $entryId: String!, $subChannelName: String!) {
|
|
|
|
pluginDataChannelDeleteEntry(
|
|
|
|
pluginName: $pluginName,
|
|
|
|
channelName: $channelName,
|
|
|
|
entryId: $entryId,
|
|
|
|
subChannelName: $subChannelName
|
|
|
|
)
|
|
|
|
}
|
|
|
|
`;
|
2024-06-10 22:32:48 +08:00
|
|
|
|
|
|
|
export const PLUGIN_DATA_CHANNEL_REPLACE_MUTATION = gql`
|
|
|
|
mutation PluginDataChannelReplaceEntry($pluginName: String!,
|
|
|
|
$subChannelName: String!, $channelName: String!,
|
|
|
|
$payloadJson: json!, $entryId: String!) {
|
|
|
|
pluginDataChannelReplaceEntry(
|
|
|
|
entryId: $entryId,
|
|
|
|
pluginName: $pluginName,
|
|
|
|
channelName: $channelName,
|
|
|
|
subChannelName: $subChannelName,
|
|
|
|
payloadJson: $payloadJson
|
|
|
|
)
|
|
|
|
}
|
|
|
|
`;
|