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

22 lines
634 B
TypeScript
Raw Normal View History

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;
};
};