UNPKG

@boristype/types

Version:

<h1 align="center">WT Types</h1> <div align="center"> Typescript типы для WebSoft HCM.

85 lines (80 loc) 2.69 kB
interface NotificationDocumentRecipient { /** Тип */ recipient_type: XmlElem<string | null, typeof common.recipient_types>; /** Тип руководителя */ func_manager_type_id: XmlElem<number | null, BossTypeCatalogDocumentTopElem>; eval_str: XmlElem<string | null>; eval_ids_str: XmlElem<string | null>; /** Шаблон уведомления */ notification_template_id: XmlElem<number | null, NotificationTemplateCatalogDocumentTopElem>; } interface NotificationDocumentNotificationSystem { notification_system_id: XmlElem<number | null, NotificationSystemCatalogDocumentTopElem>; } interface NotificationDocumentView { /** * @temp * @default common */ selector: XmlElem<string>; } type NotificationDocumentTopElem = XmlTopElem & CustomElemsBase & { Doc: NotificationDocument; /** ID */ id: XmlElem<number | null>; /** Код */ code: XmlElem<string | null>; /** Название */ name: XmlElem<string | null>; /** Адресаты */ recipients: XmlMultiElem<NotificationDocumentRecipient | null>; /** @default auto */ field_recipient_type: XmlElem<string | null>; notification_systems: XmlMultiElem<NotificationDocumentNotificationSystem | null>; /** * Активное уведомление * @default true */ active: XmlElem<boolean>; /** * Активный сценарий бота * @default true */ active_chatbot_script: XmlElem<boolean>; /** * Является системным * @default false */ is_std: XmlElem<boolean>; /** * Измененный * @default false */ changed: XmlElem<boolean>; /** Шаблон уведомления */ notification_template_id: XmlElem<number | null, NotificationTemplateCatalogDocumentTopElem>; /** @default 0 */ date_shift_selector: XmlElem<number>; /** @default 0.0 */ date_shift: XmlElem<number>; /** @default 0 */ sender_selector: XmlElem<number>; sender_email: XmlElem<string | null>; /** Прикрепленный сценарий */ chatbot_id: XmlElem<number | null, ChatbotCatalogDocumentTopElem>; /** Комментарий */ comment: XmlElem<string | null>; /** Информация об объекте */ doc_info: XmlElem<DocInfoBase | null>; /** @temp */ view: XmlElem<NotificationDocumentView | null>; /** Категория */ role_id: XmlMultiElemObject<number | null, RoleCatalogDocumentTopElem>; }; type NotificationDocument = XmlDocument & { TopElem: NotificationDocumentTopElem; notification: NotificationDocumentTopElem; OnInit(): void; DocDesc(): string; };