@boristype/types
Version:
<h1 align="center">WT Types</h1> <div align="center"> Typescript типы для WebSoft HCM.
49 lines (45 loc) • 1.29 kB
TypeScript
interface PluginDocumentHistoryLog {
/** Дата внесения */
install_date: XmlElem<Date | null>;
/** Версия */
version: XmlElem<number | null>;
/** Сотрудник */
person_id: XmlElem<number | null, CollaboratorCatalogDocumentTopElem>;
}
interface PluginDocumentView {
/**
* @temp
* @default false
*/
is_edit_mode: XmlElem<boolean>;
/**
* @temp
* @default common
*/
selector: XmlElem<string>;
}
type PluginDocumentTopElem = XmlTopElem & {
Doc: PluginDocument;
/** Код */
code: XmlElem<string | null>;
/** Название */
name: XmlElem<string | null>;
/** Блок */
block: XmlElem<string | null, typeof common.access_block_types>;
/** Плагин */
plugin_id: XmlElem<string | null>;
/** Версия */
version: XmlElem<number | null>;
history_logs: XmlMultiElem<PluginDocumentHistoryLog | null>;
/** Комментарий */
comment: XmlElem<string | null>;
/** Информация об объекте */
doc_info: XmlElem<DocInfoBase | null>;
/** @temp */
view: XmlElem<PluginDocumentView | null>;
};
type PluginDocument = XmlDocument & {
TopElem: PluginDocumentTopElem;
plugin: PluginDocumentTopElem;
DocDesc(): string;
};