think/packages/domains/lib/api/collector.d.ts

50 lines
1.0 KiB
TypeScript
Raw Normal View History

2022-05-23 05:05:59 +00:00
import { IDocument, IWiki, CollectType } from '../models';
export declare type CollectorApiTypeDefinition = {
toggle: {
request: {
targetId: IDocument['id'] | IWiki['id'];
type: CollectType;
};
};
check: {
request: {
targetId: IDocument['id'] | IWiki['id'];
type: CollectType;
};
};
};
export declare const CollectorApiDefinition: {
/**
*
*/
toggle: {
method: "Post";
server: "toggle";
client: () => string;
};
/**
*
*/
check: {
method: "Post";
server: "check";
client: () => string;
};
/**
*
*/
wikis: {
method: "Post";
server: "wikis";
client: () => string;
};
/**
*
*/
documents: {
method: "Post";
server: "documents";
client: () => string;
};
};