bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/plugins-engine/data-channel/mutations.ts
2024-06-10 11:32:48 -03:00

53 lines
1.6 KiB
TypeScript

import { gql } from '@apollo/client';
export const PLUGIN_DATA_CHANNEL_PUSH_MUTATION = gql`
mutation PluginDataChannelPushEntry($pluginName: String!,
$subChannelName: String!, $channelName: String!, $payloadJson: json!,
$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
)
}
`;
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
)
}
`;