RocketChat/Rocket.Chat

View on GitHub
packages/rest-typings/src/v1/webdav.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { IWebdavAccount, IWebdavAccountIntegration } from '@rocket.chat/core-typings';
import type { DeleteResult } from 'mongodb';

export type WebdavEndpoints = {
    '/v1/webdav.getMyAccounts': {
        GET: () => {
            accounts: IWebdavAccountIntegration[];
        };
    };
    '/v1/webdav.removeWebdavAccount': {
        POST: (params: { accountId: IWebdavAccount['_id'] }) => {
            result: DeleteResult;
        };
    };
};