bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/plugins-engine/data-channel/mutation.ts
Guilherme Pereira Leme c5d6183f3e
feat(plugin): delete and reset features to data-channel (#19503)
* [plugin-sdk-data-channel-with-delete] - refactor data channel to add delete and reset features

* [plugin-sdk-data-channel-with-delete] - bumping version and fix lint errors
2024-01-30 18:38:09 -03:00

35 lines
1.0 KiB
TypeScript

import { gql } from '@apollo/client';
export const PLUGIN_DATA_CHANNEL_DISPATCH_MUTATION = gql`
mutation PluginDataChannelDispatchMessage($pluginName: String!,
$dataChannel: String!, $payloadJson: String!, $toRoles: [String]!,
$toUserIds: [String]!) {
pluginDataChannelDispatchMessage(
pluginName: $pluginName,
dataChannel: $dataChannel,
payloadJson: $payloadJson,
toRoles: $toRoles,
toUserIds: $toUserIds,
)
}
`;
export const PLUGIN_DATA_CHANNEL_RESET_MUTATION = gql`
mutation PluginDataChannelReset($pluginName: String!, $dataChannel: String!) {
pluginDataChannelReset(
pluginName: $pluginName,
dataChannel: $dataChannel
)
}
`;
export const PLUGIN_DATA_CHANNEL_DELETE_MUTATION = gql`
mutation PluginDataChannelDeleteMessage($pluginName: String!, $dataChannel: String!, $messageId: String!) {
pluginDataChannelDeleteMessage(
pluginName: $pluginName,
dataChannel: $dataChannel,
messageId: $messageId
)
}
`;