verdnatura-chat/app/definitions/rest/v1/emojiCustom.ts

22 lines
634 B
TypeScript
Raw Normal View History

2022-02-28 18:00:47 +00:00
import type { ICustomEmojiDescriptor } from '../../ICustomEmojiDescriptor';
import { PaginatedRequest } from '../helpers/PaginatedRequest';
import { PaginatedResult } from '../helpers/PaginatedResult';
export type EmojiCustomEndpoints = {
'emoji-custom.all': {
GET: (params: PaginatedRequest<{ query: string }, 'name'>) => {
emojis: ICustomEmojiDescriptor[];
} & PaginatedResult;
};
'emoji-custom.list': {
GET: (params: { updatedSince: string }) => {
emojis?: {
update: ICustomEmojiDescriptor[];
};
};
};
'emoji-custom.delete': {
POST: (params: { emojiId: ICustomEmojiDescriptor['_id'] }) => void;
};
};