2022-02-14 16:20:29 +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': {
|
2022-02-18 16:20:16 +00:00
|
|
|
GET: (params: { updatedSince: string }) => {
|
2022-02-14 16:20:29 +00:00
|
|
|
emojis?: {
|
|
|
|
update: ICustomEmojiDescriptor[];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
'emoji-custom.delete': {
|
|
|
|
POST: (params: { emojiId: ICustomEmojiDescriptor['_id'] }) => void;
|
|
|
|
};
|
|
|
|
};
|