@wshcmx/types
Version:
<h1 align="center">WT Types</h1> <div align="center"> Typescript типы для WebSoft HCM.
81 lines (74 loc) • 2.66 kB
TypeScript
interface IntervalScheduleDocumentWorkflowMatching {
id: XmlElem<string | null>;
/** Сотрудник */
person_id: XmlElem<number | null, CollaboratorCatalogDocumentTopElem>;
}
interface IntervalScheduleDocumentCustomField {
/** Название */
name: XmlElem<string | null>;
value: XmlElem<string | null>;
}
interface IntervalScheduleDocumentView {
/** @temp */
workflow_state: XmlElem<string>;
/** @temp */
workflow_action_result: XmlElem<unknown | null>;
/**
* @temp
* @default false
*/
workflow_create_break: XmlElem<boolean>;
}
interface IntervalScheduleDocumentHistory {
/** Состояние */
status_id: XmlElem<string | null, typeof common.agreement_status_types>;
/** Дата начала */
start_date: XmlElem<Date | null>;
/** Дата завершения */
finish_date: XmlElem<Date | null>;
}
interface IntervalScheduleDocumentChange {
/** Дата начала */
start_date: XmlElem<Date | null>;
/** Дата завершения */
finish_date: XmlElem<Date | null>;
}
type IntervalScheduleDocumentTopElem = XmlTopElem &
PersonFillingBase &
WorkflowDataBase &
FileListBase &
CustomElemsBase & {
Doc: IntervalScheduleDocument;
/** ID */
id: XmlElem<number | null>;
/** Код */
code: XmlElem<string | null>;
/** Сотрудник */
person_id: XmlElem<number | null, CollaboratorCatalogDocumentTopElem>;
/** Дата начала */
start_date: XmlElem<Date | null>;
/** Дата завершения */
finish_date: XmlElem<Date | null>;
/** Тип присутствия/отсутствия */
presence_state_id: XmlElem<number | null, PresenceStateCatalogDocumentTopElem>;
/** Состояние */
status_id: XmlElem<string | null, typeof common.agreement_status_types>;
/** Тип документооборота на согласовании */
workflow_type: XmlElem<string | null>;
workflow_matchings: XmlMultiElem<IntervalScheduleDocumentWorkflowMatching | null>;
/** Тип выборки условий видимости */
workflow_matching_type: XmlElem<string | null>;
custom_fields: XmlMultiElem<IntervalScheduleDocumentCustomField | null>;
/** Комментарий */
comment: XmlElem<string | null>;
doc_info: XmlElem<DocInfoBase | null>;
/** @temp */
view: XmlElem<IntervalScheduleDocumentView | null>;
history: XmlElem<IntervalScheduleDocumentHistory | null>;
change: XmlElem<IntervalScheduleDocumentChange | null>;
};
type IntervalScheduleDocument = XmlDocument & {
TopElem: IntervalScheduleDocumentTopElem;
interval_schedule: IntervalScheduleDocumentTopElem;
OnBeforeSave(): void;
};