DocumentRepository
Документация для класса DocumentRepository.
Методы
getDocuments
Описание
Получение любых документов.
HTTP метод: GET
URL: /api/v1/document
Параметры:
| Имя | Тип | Описание |
|---|---|---|
payload | IGetDocumentsPayload & { ref_document_types_id?: number | null } |
Возвращает: Promise<IPaginationShell<IDocument[]>>
getDocumentsByTask
Описание
Получение документов по типу задач пользователя.
Как всех, так и конткретно по типам.
HTTP метод: GET
URL: /api/v1/document/by-task
Параметры:
| Имя | Тип | Описание |
|---|---|---|
taskType | ETaskTypeRequestAlias | |
payload | IGetDocumentsPayload |
Возвращает: Promise<IPaginationShell<IDocument[]>>
getDocumentsByFolder
Описание
Получение документов по типУ папки к которой оно прикреплено.
Как всех, так и конткретно по типам.
HTTP метод: GET
URL: /api/v1/document/by-folder${ folderType ?
Параметры:
| Имя | Тип | Описание |
|---|---|---|
folderType | EDocumentFolderAlias | |
payload | IGetDocumentsPayload |
Возвращает: Promise<IPaginationShell<IDocument[]>>
getDocumentsForRelate
Описание
Получение доступных документов для связывания
HTTP метод: GET
URL: /api/v1/document/{param}/linkable-docs
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | IGetDocumentsForRelatePayload |
Возвращает: Promise<IPaginationShell<IDocument[]>>
getRelatedDocuments
Описание
Получение связанных документов по ID документа
HTTP метод: GET
URL: /api/v1/document/{param}/linked-docs
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | IPaginationPayload |
Возвращает: Promise<IPaginationShell<RelatedDocumentT[]>>
getDocumentById
Описание
Получение документа по ID документа
HTTP метод: GET
URL: /api/v1/document/{param}
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] |
Возвращает: Promise<IDocument>
getDocumentByUUID
Описание
Получение документа по сгенерированному UUID документа
HTTP метод: GET
URL: /api/v1/document/show-by-uuid/{param}
Параметры:
| Имя | Тип | Описание |
|---|---|---|
uuid | RefUUID |
Возвращает: Promise<IDocument>
getAllFilesInZIP
Описание
Получение всех вложений документа в архиве
HTTP метод: GET
URL: /api/v1/document/{param}/zip-files
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] |
Возвращает: Promise<File>
getHashForSign
Описание
Получение хэша для отправки в программу NCA LAYER для подписания
HTTP метод: GET
URL: /api/v1/document/{param}/sign-hash
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] |
Возвращает: Promise<RefHash>
createDocument
Описание
Создание документа по типу документа
HTTP метод: POST
URL: /api/v1/document
Параметры:
| Имя | Тип | Описание |
|---|---|---|
payload | ICreateDocumentPayload |
Возвращает: Promise<CreatedDocumentT>
editDocument
Описание
Редактирование документа
HTTP метод: POST
URL: /api/v1/document/{param}
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | IEditDocumentPayload |
Возвращает: Promise<IDocument>
saveToDraft
Описание
Сохранение документа в черновик
HTTP метод: POST
URL: /api/v1/document/{param}/save-draft
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | IEditDocumentPayload |
Возвращает: Promise<IDocument>
sendDocumentByRouter
Описание
Отправка документа по выставленному маршруту
HTTP метод: POST
URL: /api/v1/stage/create
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | ISendDocumentByRouterPayload |
Возвращает: Promise<IDocument>
updateDocumentByRouter
Описание
Обновление действуиющего маршрута документа
HTTP метод: PUT
URL: /api/v1/stage/update
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | ISendDocumentByRouterPayload |
Возвращает: Promise<IDocument>
deleteDocument
Описание
Удаление документа по ID
HTTP метод: DELETE
URL: /api/v1/document/{param}
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] |
Возвращает: Promise<void>
relateDocuments
Описание
Связывание документа с другими документами по ID.
HTTP метод: POST
URL: /api/v1/document/{param}/link
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | IRelateDocumentsPayload |
Возвращает: Promise<IPaginationShell<RelatedDocumentT[]>>
unrelateDocument
Описание
Открепление связанного документа до ID.
HTTP метод: POST
URL: /api/v1/document/{param}/unlink
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
relatedDocumentId | RelatedDocumentT['id'] |
Возвращает: Promise<IPaginationShell<RelatedDocumentT[]>>
withdrawDocument
Описание
Отзыв документа
HTTP метод: POST
URL: /api/v1/document/{param}/revoke
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | IWithdrawDocumentPayload |
Возвращает: Promise<IDocument>
reassignExecutorDocument
Описание
Переназначение исполнителя документа
HTTP метод: POST
URL: /api/v1/document/{param}/change-executor
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | IReassignExecutorDocumentPayload |
Возвращает: Promise<IDocument>
executeDocument
Описание
Исполнение документа
HTTP метод: POST
URL: /api/v1/document/{param}/execute
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument["id"] | |
payload | IExecuteDocumentPayload |
Возвращает: Promise<IDocument>
getResolutionsChain
Описание
Получение всей цепочки резолюций. Без разницы на каком уровне резолюции ты находишься. А так же всегда получаешь главного родителя - Служебная записка
HTTP метод: GET
URL: /api/v1/document/{param}/resolution-chain
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument["id"] |
Возвращает: Promise<IGetResolutionsChainResponse>
approveResolutionDocument
Описание
Одобрение документа "Резолюция". Используется для автора резолюции. А-ля сущности роли "Исполнитель документа"
HTTP метод: POST
URL: /api/v1/document/{param}/execute
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | IApproveResolutionDocumentPayload |
Возвращает: Promise<IDocument>
rejectResolutionDocument
Описание
Отклонение документа "Резолюция" Используется для отправки резолюции "На доработку" автором резолюции(А-ля сущности роли "Исполнитель документа")
HTTP метод: POST
URL: /api/v1/document/{param}/resolution/reject
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | IRejectResolutionDocumentPayload |
Возвращает: Promise<IDocument>
getDocumentPreview
Описание
Получение превью докуемента
HTTP метод: GET
URL: /api/v1/document/{param}/preview-template
Параметры:
| Имя | Тип | Описание |
|---|---|---|
id | number |
Возвращает: Promise<Blob>
addDocumentParticipants
Описание
Отправка участников документа
HTTP метод: POST
URL: /api/v1/document/{param}/participants
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | IParticipantModel[] |
Возвращает: Promise<IDocument>
prefillingTemplateDocument
Описание
Предзаполнение данных шаблона документа (Когда связанность идет)
HTTP метод: POST
URL: /api/v1/document/{param}/template-values/fill
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | IPrefillingTemplateDocument |
Возвращает: Promise<IDocument>
unilateralTerminateDocument
Описание
Одностороннее расторжение
HTTP метод: POST
URL: /api/v1/document/{param}/terminate
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | ITerminateDocumentPayload |
Возвращает: Promise<IDocument>
bilateralTerminateDocument
Описание
Двустороннее расторжение
HTTP метод: POST
URL: /api/v1/document/{param}/bilateral-terminate
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | ITerminateDocumentPayload |
Возвращает: Promise<IDocument>
refusalTerminateDocument
Описание
Отзыв "Расторжение"
HTTP метод: POST
URL: /api/v1/document/{param}/terminate/cancel
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | IRefusalTerminateDocumentPayload |
Возвращает: Promise<IDocument>
resendTerminateNotificationToCounterparty
Описание
Повторная отправка уведомления о расторжении "Контрагенту"
HTTP метод: POST
URL: /api/v1/document/{param}/notifications/terminate/resend
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | IResendTerminateNotificationToCounterparty |
Возвращает: Promise<IDocument>
migrationToUnilateralTerminate
Описание
Переход с двустороннего в одностороннее расторжение
HTTP метод: POST
URL: /api/v1/document/{param}/convert-to-unilateral-termination
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | IMigrationToUnilateralTerminatePayload |
Возвращает: Promise<IDocument>
getByTaskRelatedDocuments
Описание
Получение всех документов к которым ты имел когда-либо отношение
HTTP метод: GET
URL: /api/v1/document/by-task/related
Параметры:
| Имя | Тип | Описание |
|---|---|---|
payload | IGetDocumentsPayload |
Возвращает: Promise<IDocument[]>
notConclude
Описание
Отказ в заключении документа
HTTP метод: POST
URL: /api/v1/document/{param}/non-conclusion
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | INotConcludePayload |
Возвращает: Promise<void>
additionalFileAttachments
Описание
Дополнительное прикрепление файлов к документу
HTTP метод: POST
URL: api/v1/document/{param}/attachments
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | IAdditionalFileAttachmentsPayload |
Возвращает: Promise<void>
getHistory
Описание
История документа
HTTP метод: GET
URL: /api/v1/document/{param}/history
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | IGetDocumentHistoryPayload |
Возвращает: Promise<IPaginationShell<IDocumentHistory[]>>
getDocumentUnits
Описание
Получение предметов документа В данный момент используется для частичного расторжения
HTTP метод: GET
URL: /api/v1/document/{param}/document-units
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | IGetDocumentUnitsPayload |
Возвращает: Promise<IPaginationShell<IDocumentUnit[]>>
resendNotificationSignByLink
Описание
Повторная отправка уведомления для этапа подписания по ссылке
HTTP метод: POST
URL: /api/v1/document/{param}/notifications/sign-by-link/resend
Параметры:
| Имя | Тип | Описание |
|---|---|---|
documentId | IDocument['id'] | |
payload | IResendNotificationSignByLinkPayload |
Возвращает: Promise<void>
Определения типов
Определения интерфейсов, перечислений и псевдонимов типов, используемых в методах этого репозитория.
IAdditionalFileAttachmentsPayload
| Свойство | Тип | Описание |
|---|---|---|
attach | `{ |
file_ids: IFile['id'][]
}[]` | |
| unattach | { document_file_ids: IFile['id'][] }[] | |
IApproveResolutionDocumentPayload
| Свойство | Тип | Описание |
|---|---|---|
comment (опц.) | string |
IArgRegistry
| Свойство | Тип | Описание |
|---|---|---|
amount_fact | string | |
amount_fact_nds | string | |
amount_guarantee_contract | string | |
amount_guarantee_prepayment | string | |
amount_guarantee_total | string | |
amount_plan_total | string | |
amount_result_nds | string | |
amount_result_total | string | |
aux_orders_id | null | |
code | string | |
contract_date | null | string | |
create_date | string | |
customer_address | string | |
customer_address_kz | string | |
customer_bank | string | |
customer_bik | string | |
customer_bill_pid | number | |
customer_email | null | string | |
customer_id | number | |
customer_iik | string | |
customer_leader_basis_kz | number | |
customer_leader_basis_ru | number | |
customer_leader_name | string | |
customer_leader_pid | number | |
customer_leader_title | string | |
customer_leader_title_kz | string | |
customer_phone | number | |
execute_date | null | |
fact_trade_method | number | |
finish_date | string | |
id | number | |
is_additional | number | |
is_contract_procuring_confirmed | number | |
is_deleted | number | |
is_longterm | number | |
is_manual | number | |
is_offer_procuring_confirmed | number | |
is_quasi | number | |
is_sent_edoc | number | |
is_typical | number | |
is_uninterrupted | number | |
name_kz | string | |
name_ru | string | |
nds | number | |
notify_days | number | |
number | number | |
parent_id | null | |
plan_trade_method | number | |
ref_agreement_types_id | number | |
ref_agreements_statuses_id | number | |
ref_buys_types_id | number | |
ref_currency_code | string | |
ref_guarantee_reasons_id | null | |
ref_procuring_types_id | null | |
ref_subject_types_code | string | |
result_date | null | |
root_id | null | |
supplier_address | string | |
supplier_address_kz | string | |
supplier_bank | string | |
supplier_bik | string | |
supplier_bill_pid | number | |
supplier_email | string | |
supplier_id | number | |
supplier_iik | string | |
supplier_leader_basis_kz | number | |
supplier_leader_basis_ru | number | |
supplier_leader_name | string | |
supplier_leader_pid | number | |
supplier_leader_title | string | |
supplier_leader_title_kz | string | |
supplier_nds | number | |
supplier_phone | string | |
sys_users_id | number | |
trd_buy_id | null | |
update_date | string | |
update_statuses (опц.) | `{ |
id: number
attempts: 'attempts'
status: EDocumentStatusIds
sent: boolean
}` | |
IAttribute
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
files | IFile[] | |
is_active | RefNumericBoolean | |
is_hidden | RefNumericBoolean | |
is_readonly | RefNumericBoolean | |
number | number | |
name | string | |
value | AttributeValueT | |
attribute | IAttributeMeta | |
template (опц.) | ITemplate | |
template_values (опц.) | ITemplateValue[] |
IAttributeEditor
| Свойство | Тип | Описание |
|---|---|---|
id | IAttribute['id'] | |
label | string | |
name | EAttributeAlias | |
files | (IFile | NewFileT)[] | |
value | AttributeValueT | |
type | EAttributeTypeAlias | |
templateId (опц.) | number |
IAttributeMeta
| Свойство | Тип | Описание |
|---|---|---|
is_active | RefNumericBoolean | |
name | string | |
number | number | |
alias | EAttributeAlias | |
attribute_type | IAttributeType |
IAttributeType
| Свойство | Тип | Описание |
|---|---|---|
name | string | |
alias | EAttributeTypeAlias |
IBank
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
name | string | |
address | string | |
bik | string | |
code | number | |
country | ICountry | |
is_active | boolean | |
is_head | boolean |
IBasicInformationForm
| Свойство | Тип | Описание |
|---|---|---|
name | IDocument['name'] | |
description | IDocument['description'] | |
date | IDocument['date'] | |
number | IDocument['number'] | |
link_to_id (опц.) | IDocument['id'] |
IBill
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
iik | string | |
is_default | boolean | |
kbe | RefNumberInString | |
sys_subjects_id | number | |
country | ICountry | |
currency | ICurrency | |
bank | IBank | |
bill_type | Omit<RefEntityShell<undefined, EBillTypeId>, 'alias'> |
IComment
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
created_at | RefDateTime | |
updated_at (опц.) | RefDateTime | |
user | RefBaseUserProfile | |
content | string | |
type | RefEntityShell | |
files (опц.) | IFile[] |
IContact
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
fulladdress | string | |
is_default | boolean | |
phone | string | |
postal | string | |
sys_subjects_id | number | |
contact_type | RefEntityShell | |
country | ICountry | |
kato (опц.) | IKATO |
IContextAttributeEditor
Наследует: RefEntityShell
| Свойство | Тип | Описание |
|---|---|---|
templateId | IDocumentTemplateInfo['id'] | null |
ICountry
| Свойство | Тип | Описание |
|---|---|---|
alpha2 | CountryIsoCode | |
code | RefNumberInString | |
id | number | |
is_active | boolean | |
name | string |
ICreateDocumentPayload
| Свойство | Тип | Описание |
|---|---|---|
type_id | EDocumentTypeIds | |
parent_id (опц.) | IDocument['id'] | |
template_id (опц.) | number | |
document_type_context_id (опц.) | EDocumentContextTypeIds | |
plan_point_id (опц.) | IPointPlan['id'] | |
link_to_id (опц.) | IDocument['id'] | |
terminate (опц.) | `{ |
type: EDocumentTerminateTypeIds,
comment: string
}` | |
ICurrency
| Свойство | Тип | Описание |
|---|---|---|
id | RefNumberInString | |
name | string | |
code | number | |
is_active | boolean | |
current | `{ |
id: number
code: string
publish_date: string
amount: string
description: string
}` | |
IDocument
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
name | string | |
number | string | |
active_task (опц.) | Omit<ITask, 'author' | 'task_status' | 'executors'> | |
active_task_comment (опц.) | IDocumentActiveTaskComment | |
attributes | IAttribute[] | |
author | IUser | |
currentSubjectId | number | |
date | RefDate | |
description | string | |
executor | IUser | |
progressBar | IDocumentProgressBarItem[] | |
properties | IDocumentProperty[] | |
selfStages | IDocumentSelfStage[] | |
root (опц.) | IDocument | |
status | RefEntityShell | |
type | RefEntityShell | |
subject | ISubject | |
signedForms (опц.) | `{ |
created_at: RefDateTime
name: string
url: string
}[]` | |
| templatedForm (опц.) | { name: string url: string } | | | formForSign (опц.) | { name: string url: string } | | | counterparties (опц.) | { id: number identifier: string name: string }[] | | | rejection_reason (опц.) | IComment | | | revocation_reason (опц.) | IComment | | | children (опц.) | IDocument[] | | | template | ITemplate | | | template_values | ITemplateValue[] | | | coExecutings (опц.) | IDocumentParticipantShell[] | | | observers (опц.) | IUser[] | | | receiver (опц.) | IUser | | | receiver_subject (опц.) | ISubject | | | comments (опц.) | IComment[] | | | context (опц.) | IContext[] | | | context_attributes (опц.) | IAttribute[] | | | files_history (опц.) | IHistoryFile[] | | | document_type_context (опц.) | RefEntityShell | | | is_external | boolean | | | agr_registry (опц.) | IArgRegistry | |
IDocumentActiveTaskComment
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
content | string |
IDocumentParticipantShell
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
comments (опц.) | IComment[] | |
document (опц.) | null | |
due_date | RefSystemDateTime | |
executed_at (опц.) | RefSystemDateTime | |
executor | userT | |
task_executing | `{ |
assigned_at: RefDateTime
due_date: RefDateTime
executed_at: RefDateTime
result: boolean \| null
task_id: ITask['id']
}` | |
IDocumentProgressBarItem
| Свойство | Тип | Описание |
|---|---|---|
name | string | |
success | RefEntitySuccess |
IDocumentProperty
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
ref_document_properties_code | EDocumentPropertyAlias | |
value | string | |
property | RefEntityShell |
IDocumentRepository
Интерфейс не содержит собственных свойств и не наследует другие локальные интерфейсы.
IDocumentSelfStage
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
name | null | |
number | number | |
stage_type | RefEntityShell | |
stage_status | RefEntityShell | |
tasks | ITask[] |
IDocumentTemplateEditorValue
| Свойство | Тип | Описание |
|---|---|---|
attr_id | number | |
value | string | string[] | number | number[] | (string | number)[] | null |
IEditDocumentPayload
| Свойство | Тип | Описание |
|---|---|---|
basicInformation (опц.) | IBasicInformationForm | |
additionalInformation (опц.) | IAttributeEditor[] | |
attachments (опц.) | IAttributeEditor[] | |
templateValues (опц.) | IDocumentTemplateEditorValue[] | |
contextAttributes (опц.) | IContextAttributeEditor[] | |
replacingAttachments (опц.) | IReplacingFile[] | |
templates (опц.) | ITemplateEditor[] | |
documentExecutorId (опц.) | IDocument['executor']['id'] | |
documentExecutorSubjectId (опц.) | ISubject['id'] | |
documentUnits (опц.) | IDocumentUnit['id'][] | |
parentId (опц.) | IDocument['id'] |
IExecuteDocumentPayload
| Свойство | Тип | Описание |
|---|---|---|
action (опц.) | 'execute' | 'send_to_check' | 'approve' | 'reject' | |
comment | string | |
executor_id (опц.) | number | |
file_ids (опц.) | number[] |
IFile
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
name | string | |
is_active | RefNumericBoolean | |
created_at (опц.) | RefSystemDateTime | |
sys_file | `{ |
id: number
name: string
full_path: string
mime: RefMimeTypeFromDb
path: string
size: number
}` | |
IFillableAttributeTableData
| Свойство | Тип | Описание |
|---|---|---|
column | RefNumberInString | |
table | RefNumberInString |
IGetDocumentHistoryPayload
Наследует: IPaginationPayload
| Свойство | Тип | Описание |
|---|---|---|
sort | EDocumentHistorySort | |
order | EPaginationOrder |
IGetDocumentsForRelatePayload
Наследует: IPaginationPayload
| Свойство | Тип | Описание |
|---|---|---|
name (опц.) | string | |
sys_folders_id (опц.) | number | |
ref_document_types_id (опц.) | EDocumentTypeIds | null | |
ref_document_statuses_id (опц.) | EDocumentStatusIds | |
sort (опц.) | EDocumentSortTypeAlias | |
order (опц.) | EDocumentOrderTypeAlias |
IGetDocumentsPayload
Наследует: IPaginationPayload
| Свойство | Тип | Описание |
|---|---|---|
q (опц.) | string | |
ref_document_types_id (опц.) | EDocumentTypeIds | null | |
ref_document_statuses_id (опц.) | EDocumentStatusIds | null | |
created_from (опц.) | RefSystemDate | string | |
created_to (опц.) | RefSystemDate | string | |
due_from (опц.) | RefSystemDate | string | |
due_to (опц.) | RefSystemDate | string | |
sort (опц.) | EDocumentSortTypeAlias | null | |
order (опц.) | EDocumentOrderTypeAlias | null | |
author_id (опц.) | RefBaseUserProfile['id'] | null | |
sys_subjects_id (опц.) | ISubject['id'] | null | |
sys_subjects_identifier (опц.) | ISubject['identifier'] |
IGetDocumentUnitsPayload
Наследует: IPaginationPayload
| Свойство | Тип | Описание |
|---|---|---|
name (опц.) | string | |
from (опц.) | RefSystemDate | |
to (опц.) | RefSystemDate | |
order (опц.) | EPaginationOrder | |
sort (опц.) | EDocumentUnitSort |
IGetResolutionsChainResponse
| Свойство | Тип | Описание |
|---|---|---|
root_document | IDocument | |
resolution_chain | IDocument[] | |
total_resolutions | number | |
max_depth | number |
IHistoryFile
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
author | RefBaseUserProfile | null | |
created_at | RefSystemDateTime | |
is_active | RefNumericBoolean | |
is_actual | boolean | |
name | string | |
sys_file | IFile | |
updated_at | RefSystemDateTime | |
version | number |
IKATO
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
full_name | string | |
name | string | |
te | string |
IMigrationToUnilateralTerminatePayload
| Свойство | Тип | Описание |
|---|---|---|
date | string | |
comment | string |
INotConcludePayload
| Свойство | Тип | Описание |
|---|---|---|
comment | string |
IPaginationLinks
| Свойство | Тип | Описание |
|---|---|---|
first | string | null | |
last | string | null | |
next | string | null | |
prev | string | null |
IPaginationMeta
| Свойство | Тип | Описание |
|---|---|---|
path | string | |
current_page | number | |
per_page | number | |
to | number | |
from | number | |
total | number | |
links | IPaginationMetaLink[] | |
last_page | number |
IPaginationMetaLink
| Свойство | Тип | Описание |
|---|---|---|
active | boolean | |
label | string | |
url | string | null |
IPaginationPayload
| Свойство | Тип | Описание |
|---|---|---|
page | number | |
per_page | number |
IPaginationShell
| Свойство | Тип | Описание |
|---|---|---|
links | IPaginationLinks[] | |
meta | IPaginationMeta | |
data | list |
IParticipantModel
Модельки данных при добавлении участников
| Свойство | Тип | Описание |
|---|---|---|
elementId | number | |
type | EDocumentParticipantAlias | |
participants | CreateParticipantT[] |
IPrefillingTemplateDocument
| Свойство | Тип | Описание |
|---|---|---|
link_to_id | number |
IReassignExecutorDocumentPayload
| Свойство | Тип | Описание |
|---|---|---|
user_id | RefBaseUserProfile['id'] | |
comment | string |
IRefusalTerminateDocumentPayload
| Свойство | Тип | Описание |
|---|---|---|
comment | string |
IRejectResolutionDocumentPayload
| Свойство | Тип | Описание |
|---|---|---|
comment | string |
IRelateDocumentsPayload
| Свойство | Тип | Описание |
|---|---|---|
ids | number[] |
IReplacingFile
| Свойство | Тип | Описание |
|---|---|---|
attributeName | IAttribute['name'] | |
attributeId | IAttribute['id'] | |
attributeAlias | EAttributeAlias | |
files | `{ |
/**
* Новый файл
*/
to: IFile \| null
/**
* Текущих файл
*/
from: IFile
}[]` | |
IResendNotificationSignByLinkPayload
| Свойство | Тип | Описание |
|---|---|---|
task_executor_id | number |
IResendTerminateNotificationToCounterparty
| Свойство | Тип | Описание |
|---|---|---|
comment (опц.) | string |
ISendDocumentByRouterPayload
| Свойство | Тип | Описание |
|---|---|---|
stages | IStageModel[] |
IStageModel
Модельки данных при добавлении этапа по каждому этапу
| Свойство | Тип | Описание |
|---|---|---|
elementId | number | |
type_id | EDocumentStageTypeIds | |
tasks | CreateTaskT[] |
ISubject
| Свойство | Тип | Описание |
|---|---|---|
id | number | Id компании |
name | string | |
name_ru | string | |
name_kz | string | |
name_en | string | |
created_at | RefDate | |
identifier | string | |
parent_id (опц.) | RefParentId | |
bills | IBill[] | |
contacts | IContact[] | |
country | ICountry | |
logo | `{ |
default: boolean
url: string
}` | |
| kopf | { id: number name: number alias: string code: string } | | | available_document_types | Omit<RefEntityShell<EDocumentTypeAlias, EDocumentTypeIds>, 'name'>[] | | | is_customer (опц.) | boolean | | | is_supplier (опц.) | boolean | |
ISubjectRole
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
name | string | |
current | boolean | |
identifier | string | |
kopf | ISubject['kopf'] | |
permissions | string[] | |
roles | IUserRole[] |
ITask
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
assigned_at (опц.) | RefDateTime | |
due_date | RefDateTime | |
executed_at (опц.) | RefDateTime | |
author | RefBaseUserProfile | |
task_status | RefEntityShell | |
task_type | RefEntityShell | |
executors | ITaskExecutor[] |
ITaskExecutor
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
assigned_at | RefDateTime | |
due_date | RefDateTime | |
executed_at | RefDateTime | |
result | RefEntitySuccess | |
signByLink (опц.) | ITaskSignByLink | |
user | RefBaseUserProfile | |
subject | ISubject |
ITaskSignByLink
| Свойство | Тип | Описание |
|---|---|---|
comment (опц.) | string | |
due_date | RefDateTime | |
email | string | |
full_name | string | |
id | number | |
identifier | string | |
iin | string | |
subject_identifier | string | |
subject_name | string | |
sys_documents_id | number | |
sys_stages_id | number | |
sys_task_executors_id | number | |
sys_tasks_id | number | |
ttl | number | |
uuid | string |
ITemplate
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
name | string | |
fillableAttributes | ITemplateFillableAttribute[] |
ITemplateEditor
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
name | string | |
contextAttributeId (опц.) | IAttribute['id'] | |
contextAttributeAlias (опц.) | EAttributeAlias | |
contextAttributeLabel (опц.) | string | |
variables | ITemplateFillableAttributeEditor[] | |
references (опц.) | ITheSelectList[] |
ITemplateFillableAttribute
| Свойство | Тип | Описание |
|---|---|---|
default_value | FillableAttributeValueT | |
description | string | null | |
group | number | |
id | number | |
is_required | boolean | |
label | string | |
language | RefEntityShell | |
place_type | ETemplatePlaceTypeAlias | |
reference (опц.) | ITemplateFillableReference[] | null | |
tab | RefEntityShell | |
value_type | ETemplateValueTypeAlias | |
table_data (опц.) | IFillableAttributeTableData |
ITemplateFillableAttributeEditor
| Свойство | Тип | Описание |
|---|---|---|
id | ITemplateFillableAttribute['id'] | |
label | ITemplateFillableAttribute['label'] | |
description | ITemplateFillableAttribute['description'] | |
value | FillableAttributeValueT | |
placeType | ETemplatePlaceTypeAlias | |
valueType | ETemplateValueTypeAlias | |
tableData (опц.) | ITemplateFillableAttribute['table_data'] | |
language | RefEntityShell | |
tab | RefEntityShell | |
references (опц.) | ITheSelectList[] | |
isRequired | ITemplateFillableAttribute['is_required'] |
ITemplateFillableReference
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
is_active | boolean | |
value | string | number |
ITemplateValue
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
sys_documents_id | IDocument['id'] | |
sys_template_attributes_id | ITemplateFillableAttribute['id'] | |
sys_templates_id | ITemplate['id'] | |
value | FillableAttributeValueT |
ITerminateDocumentPayload
| Свойство | Тип | Описание |
|---|---|---|
date | RefSystemDate | |
comment | string | |
file_id | IFile['id'] |
ITheSelectList
| Свойство | Тип | Описание |
|---|---|---|
id | number | string | |
title | string | |
value | string | number |
IUser
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
created_at | RefDate | |
birth_date | RefDate | |
email | string | |
email_verified | boolean | |
verification_token (опц.) | string | |
identifier | string | |
is_disable | boolean | |
phone | string | |
set_password | boolean | |
lastname (опц.) | string | |
name | string | |
surname (опц.) | string | |
unread_notifications_count | number | |
permissions | EUserPermissions[] | |
profile_photo_url | RefEntityMedia | |
roles | IUserRole[] | |
subject_roles | ISubjectRole[] | |
is_disabled_reason (опц.) | string | |
has_password (опц.) | boolean |
IUserRole
| Свойство | Тип | Описание |
|---|---|---|
id | number | |
name | string | |
alias | EUserRoleAlias | |
created_at | RefDate |
IWithdrawDocumentPayload
| Свойство | Тип | Описание |
|---|---|---|
comment | string |
RefBaseUserProfile
| Свойство | Тип | Описание |
|---|---|---|
email | string | |
id | number | |
identifier | string | |
lastname (опц.) | string | |
name | string | |
phone | string | |
surname (опц.) | string |
RefEntityMedia
| Свойство | Тип | Описание |
|---|---|---|
default | boolean | |
url | string |
RefEntityShell
| Свойство | Тип | Описание |
|---|---|---|
id | id | |
alias | alias | |
name | string |
CreatedDocumentT
Тип: CreatedDocumentT