Files
ewa-mobile/src/generated/models.ts
T
2026-07-28 08:53:19 +05:00

750 lines
16 KiB
TypeScript

import type { ListParams } from "./api_client";
export interface Bill {
id: number;
number: string;
text: string;
status: string;
status_name: string;
date: string;
date_due: string | null;
date_bill: string | null;
month_of_costs: string | null;
cost: number;
to_payd: number;
paid: number;
nds_cost: number;
scan: string | null;
comment: string;
absolute_url: string;
date_pay: string | null;
transaction_date: string | null;
date_applay: string | null;
archive_s: boolean;
pp_maked: boolean;
composit: boolean;
contract_typ: string;
frc: unknown | null;
project: unknown | null;
counterparty: unknown | null;
contract: unknown | null;
responsible: unknown | null;
author: unknown | null;
category: unknown | null;
transferdocument_set: unknown[] | null;
}
export interface BillCreate {
number: string;
text: string;
status: string;
status_name: string;
date: string;
date_due?: string | null;
date_bill?: string | null;
month_of_costs?: string | null;
cost: number;
to_payd: number;
paid: number;
nds_cost: number;
scan?: string | null;
comment: string;
absolute_url: string;
date_pay?: string | null;
transaction_date?: string | null;
date_applay?: string | null;
archive_s: boolean;
pp_maked: boolean;
composit: boolean;
contract_typ: string;
frc?: unknown | null;
project?: unknown | null;
counterparty?: unknown | null;
contract?: unknown | null;
responsible?: unknown | null;
author?: unknown | null;
category?: unknown | null;
transferdocument_set?: unknown[] | null;
}
export interface BillUpdate {
number?: string;
text?: string;
status?: string;
status_name?: string;
date?: string;
date_due?: string | null;
date_bill?: string | null;
month_of_costs?: string | null;
cost?: number;
to_payd?: number;
paid?: number;
nds_cost?: number;
scan?: string | null;
comment?: string;
absolute_url?: string;
date_pay?: string | null;
transaction_date?: string | null;
date_applay?: string | null;
archive_s?: boolean;
pp_maked?: boolean;
composit?: boolean;
contract_typ?: string;
frc?: unknown | null;
project?: unknown | null;
counterparty?: unknown | null;
contract?: unknown | null;
responsible?: unknown | null;
author?: unknown | null;
category?: unknown | null;
transferdocument_set?: unknown[] | null;
}
export interface BillListParams extends ListParams {
id?: number;
number?: string;
number__contains?: string;
text?: string;
text__contains?: string;
status?: string;
status_name?: string;
status_name__contains?: string;
date?: string;
date_due?: string | null;
date_bill?: string | null;
contract_typ?: string;
counterparty?: string | null;
frc?: string | null;
project?: string | null;
category?: string | null;
}
export interface Contract {
id: number;
name: string;
number: string;
absolute_url: string;
contract_type: string;
category: string;
category_id: number | null;
amount_total_display: string;
amount_by_ds: string;
comment: string;
date: string;
status_name: string;
status: string;
nds: string;
name_of_product: string;
counterparty_name: string;
amount: number;
month_pay: number | null;
avans_pay: string;
amount_total: number;
estimate_nds_cost: number;
estimate_nds_cert: number;
bill_cost_sum: number | null;
bill_paid_sum: number | null;
income_total: number;
arrears: number;
counterparty_id: number | null;
project_id: number | null;
frc_id: number | null;
employee_id: number | null;
category_ref: ContractCategory | null;
counterparty: Counterparty | null;
project: Project | null;
frc: Frc | null;
employee: Employee | null;
}
export interface ContractCreate {
name: string;
number: string;
absolute_url: string;
contract_type: string;
category: string;
category_id?: number | null;
amount_total_display: string;
amount_by_ds: string;
comment: string;
date: string;
status_name: string;
status: string;
nds: string;
name_of_product: string;
counterparty_name: string;
amount: number;
month_pay?: number | null;
avans_pay: string;
amount_total: number;
estimate_nds_cost: number;
estimate_nds_cert: number;
bill_cost_sum?: number | null;
bill_paid_sum?: number | null;
income_total: number;
arrears: number;
counterparty_id?: number | null;
project_id?: number | null;
frc_id?: number | null;
employee_id?: number | null;
}
export interface ContractUpdate {
name?: string;
number?: string;
absolute_url?: string;
contract_type?: string;
category?: string;
category_id?: number | null;
amount_total_display?: string;
amount_by_ds?: string;
comment?: string;
date?: string;
status_name?: string;
status?: string;
nds?: string;
name_of_product?: string;
counterparty_name?: string;
amount?: number;
month_pay?: number | null;
avans_pay?: string;
amount_total?: number;
estimate_nds_cost?: number;
estimate_nds_cert?: number;
bill_cost_sum?: number | null;
bill_paid_sum?: number | null;
income_total?: number;
arrears?: number;
counterparty_id?: number | null;
project_id?: number | null;
frc_id?: number | null;
employee_id?: number | null;
}
export interface ContractListParams extends ListParams {
id?: number;
name?: string;
name__contains?: string;
number?: string;
number__contains?: string;
date?: string;
status?: string;
status_name?: string;
status_name__contains?: string;
contract_type?: string;
contract_type__contains?: string;
category?: string;
category__contains?: string;
category_id?: number | null;
counterparty_name__contains?: string;
name_of_product__contains?: string;
counterparty_id?: number | null;
project_id?: number | null;
frc_id?: number | null;
employee_id?: number | null;
}
export interface ContractApplicationFile {
id: number;
contract_id: number;
name: string;
file_type: string;
file_type_display: string;
status: string;
status_display: string;
absolute_url: string;
scan_name: string;
scan_url: string;
local_path: string;
comment: string;
bill_total: number;
bill_cost_total: number;
questionnair: number | null;
contract: Contract;
}
export interface ContractApplicationFileCreate {
contract_id: number;
name: string;
file_type: string;
file_type_display: string;
status: string;
status_display: string;
absolute_url: string;
scan_name: string;
scan_url: string;
local_path?: string;
comment: string;
bill_total: number;
bill_cost_total: number;
questionnair?: number | null;
}
export interface ContractApplicationFileUpdate {
contract_id?: number;
name?: string;
file_type?: string;
file_type_display?: string;
status?: string;
status_display?: string;
absolute_url?: string;
scan_name?: string;
scan_url?: string;
local_path?: string;
comment?: string;
bill_total?: number;
bill_cost_total?: number;
questionnair?: number | null;
}
export interface ContractApplicationFileListParams extends ListParams {
id?: number;
contract_id?: number;
name?: string;
name__contains?: string;
file_type?: string;
status?: string;
}
export interface ContractCategory {
id: number;
name: string;
name_group: string;
template: string | null;
is_questionnair: boolean;
parent: number | null;
secure_group: number | null;
}
export interface ContractCategoryCreate {
name: string;
name_group: string;
template?: string | null;
is_questionnair: boolean;
parent?: number | null;
secure_group?: number | null;
}
export interface ContractCategoryUpdate {
name?: string;
name_group?: string;
template?: string | null;
is_questionnair?: boolean;
parent?: number | null;
secure_group?: number | null;
}
export interface ContractCategoryListParams extends ListParams {
id?: number;
name?: string;
name__contains?: string;
name_group?: string;
name_group__contains?: string;
}
export interface Counterparty {
id: number;
name: string;
}
export interface CounterpartyCreate {
name: string;
}
export interface CounterpartyUpdate {
name?: string;
}
export interface CounterpartyListParams extends ListParams {
id?: number;
name?: string;
name__contains?: string;
}
export interface Employee {
id: number;
name: string;
short_name: string;
avatar_small: string | null;
}
export interface EmployeeCreate {
name: string;
short_name: string;
avatar_small?: string | null;
}
export interface EmployeeUpdate {
name?: string;
short_name?: string;
avatar_small?: string | null;
}
export interface EmployeeListParams extends ListParams {
id?: number;
name?: string;
name__contains?: string;
short_name?: string;
short_name__contains?: string;
}
export interface Frc {
id: number;
name: string;
icon: string;
balance: number;
}
export interface FrcCreate {
name: string;
icon: string;
balance: number;
}
export interface FrcUpdate {
name?: string;
icon?: string;
balance?: number;
}
export interface FrcListParams extends ListParams {
id?: number;
name?: string;
name__contains?: string;
}
export interface Memo {
id: number;
recipient_id: number | null;
sender_id: number | null;
category_id: number | null;
project_id: number | null;
task_set: unknown[] | null;
priority_display: string;
absolute_url: string;
date: string;
my_approve: string;
text: string;
resalution: string;
priority: string;
archive: boolean;
cancel: boolean;
date_start: string | null;
date_end: string | null;
value: number;
archive_s: boolean;
current_step: number;
subject: number[] | null;
employee_acl: number[] | null;
recipient: Employee | null;
sender: Employee | null;
category: MemoCategory | null;
project: Project | null;
}
export interface MemoCreate {
recipient_id?: number | null;
sender_id?: number | null;
category_id?: number | null;
project_id?: number | null;
task_set?: unknown[] | null;
priority_display: string;
absolute_url: string;
date: string;
my_approve: string;
text: string;
resalution: string;
priority: string;
archive: boolean;
cancel: boolean;
date_start?: string | null;
date_end?: string | null;
value: number;
archive_s: boolean;
current_step: number;
subject?: number[] | null;
employee_acl?: number[] | null;
}
export interface MemoUpdate {
recipient_id?: number | null;
sender_id?: number | null;
category_id?: number | null;
project_id?: number | null;
task_set?: unknown[] | null;
priority_display?: string;
absolute_url?: string;
date?: string;
my_approve?: string;
text?: string;
resalution?: string;
priority?: string;
archive?: boolean;
cancel?: boolean;
date_start?: string | null;
date_end?: string | null;
value?: number;
archive_s?: boolean;
current_step?: number;
subject?: number[] | null;
employee_acl?: number[] | null;
}
export interface MemoListParams extends ListParams {
id?: number;
text__contains?: string;
date?: string;
priority?: string;
archive?: boolean;
cancel?: boolean;
recipient?: number | null;
sender?: number | null;
category?: number | null;
project?: number | null;
}
export interface MemoCategory {
id: number;
name: string;
template: string;
template_text: string;
code: string;
in_month_limit: boolean;
}
export interface MemoCategoryCreate {
name: string;
template: string;
template_text: string;
code: string;
in_month_limit: boolean;
}
export interface MemoCategoryUpdate {
name?: string;
template?: string;
template_text?: string;
code?: string;
in_month_limit?: boolean;
}
export interface MemoCategoryListParams extends ListParams {
id?: number;
name?: string;
name__contains?: string;
code?: string;
}
export interface Message {
id: number;
task: number;
recipient: number;
text: string;
status: string;
}
export interface MessageCreate {
task: number;
recipient: number;
text: string;
status: string;
}
export interface MessageUpdate {
task?: number;
recipient?: number;
text?: string;
status?: string;
}
export interface MessageListParams extends ListParams {
id?: number;
task_id?: number;
employee_id?: number;
}
export interface Project {
id: number;
name: string;
full_name: string;
short_name: string;
locality_id: number | null;
locality_name: string | null;
}
export interface ProjectCreate {
name: string;
full_name: string;
short_name: string;
locality_id?: number | null;
locality_name?: string | null;
}
export interface ProjectUpdate {
name?: string;
full_name?: string;
short_name?: string;
locality_id?: number | null;
locality_name?: string | null;
}
export interface ProjectListParams extends ListParams {
id?: number;
name?: string;
name__contains?: string;
short_name?: string;
short_name__contains?: string;
}
export interface Task {
id: number;
project: string | null;
doer: Employee | null;
doer_name: string;
author: Employee | null;
memo_full: unknown | null;
bill_full: unknown | null;
contract_full: unknown | null;
contract_application_full: unknown | null;
outgoing_letter_full: unknown | null;
entry_letter_full: unknown | null;
protocolitem_full: unknown | null;
decree_full: unknown | null;
delivery_full: unknown | null;
get_status: string;
get_status_class: string;
get_scan_url: string | null;
get_last_day: string;
frc_icon: string;
uploadfile_set: unknown[] | null;
deadline: string;
request_new_deadline: string | null;
plan_date: string | null;
date: string;
message_set: unknown[] | null;
responsible: Employee | null;
counterparty: unknown | null;
get_deadline_history: unknown[] | null;
duration: number | null;
bid_full: unknown | null;
price_agreement_full: unknown | null;
transfer: unknown | null;
text: string;
status: string;
result: string;
complit_date: string | null;
comment: string;
note: string;
approve: boolean;
archive: boolean;
approve_date: string | null;
approve_required: boolean;
progress_status: string;
start_date: string | null;
end_date: string | null;
order_number: number | null;
priority: number | null;
typ: string;
stage: unknown | null;
contract: unknown | null;
questionnair: unknown | null;
contract_application: unknown | null;
entry_letter: unknown | null;
outgoing_letter: unknown | null;
protocol: unknown | null;
bill: unknown | null;
decree: unknown | null;
court_case: unknown | null;
bill_register: unknown | null;
price_agreement: unknown | null;
bid: unknown | null;
delivery: unknown | null;
scheduled_task: unknown | null;
report: unknown | null;
memo: unknown | null;
protocolitem: unknown | null;
related_note: unknown | null;
task: unknown | null;
}
export interface TaskCreate {
doer?: Employee | null;
deadline: string;
responsible?: Employee | null;
text: string;
}
export interface TaskUpdate {
doer?: Employee | null;
deadline?: string;
responsible?: Employee | null;
text?: string;
}
export interface TaskListParams extends ListParams {
id?: number;
text__contains?: string;
contract?: string | null;
bill?: string | null;
memo?: string | null;
doer?: string | null;
author?: string | null;
archive?: boolean;
typ?: string;
status?: string;
}
export interface TaskTransfer {
id: number;
employee_from: string | null;
employee_to: string | null;
date_create: string;
task: string | null;
status: string;
typ: string;
}
export interface TaskTransferCreate {
employee_from?: string | null;
employee_to?: string | null;
task?: string | null;
status: string;
typ: string;
}
export interface TaskTransferUpdate {
employee_from?: string | null;
employee_to?: string | null;
task?: string | null;
status?: string;
typ?: string;
}
export interface TaskTransferListParams extends ListParams {
id?: number;
employee_from?: string | null;
employee_to?: string | null;
status?: string;
typ?: string;
}
export interface User {
id: number;
name: string;
}
export interface UserCreate {
name: string;
}
export interface UserUpdate {
name?: string;
}
export interface UserListParams extends ListParams {
id?: number;
name?: string;
name__contains?: string;
}