2022-03-15 14:41:23 +00:00
|
|
|
import { IPreviewItem } from '../../ISlashCommand';
|
|
|
|
|
2022-03-15 02:16:53 +00:00
|
|
|
export type CommandsEndpoints = {
|
|
|
|
'commands.preview': {
|
2022-03-15 14:41:23 +00:00
|
|
|
GET: (params: { command: string; params: string; roomId: string }) => {
|
|
|
|
preview?: {
|
2022-03-15 02:16:53 +00:00
|
|
|
i18nTitle: string;
|
2022-03-15 14:41:23 +00:00
|
|
|
items: IPreviewItem[];
|
2022-03-15 02:16:53 +00:00
|
|
|
};
|
|
|
|
};
|
2022-03-15 14:41:23 +00:00
|
|
|
POST: (params: {
|
|
|
|
command: string;
|
|
|
|
params: string;
|
|
|
|
roomId: string;
|
|
|
|
previewItem: IPreviewItem;
|
|
|
|
triggerId: string;
|
|
|
|
tmid?: string;
|
|
|
|
}) => {};
|
2022-03-15 02:16:53 +00:00
|
|
|
};
|
|
|
|
};
|