This commit is contained in:
che
2026-07-23 12:19:46 +05:00
parent dddf6516d3
commit 42029533fd
12 changed files with 603 additions and 11 deletions
+5
View File
@@ -4,6 +4,10 @@ import type {
ContractCreate,
ContractUpdate,
ContractListParams,
ContractApplicationFile,
ContractApplicationFileCreate,
ContractApplicationFileUpdate,
ContractApplicationFileListParams,
Counterparty,
CounterpartyCreate,
CounterpartyUpdate,
@@ -35,6 +39,7 @@ import type {
} from "./models";
export const contractApi = createModelApi<Contract, ContractCreate, ContractUpdate, ContractListParams>("contract");
export const contractApplicationFileApi = createModelApi<ContractApplicationFile, ContractApplicationFileCreate, ContractApplicationFileUpdate, ContractApplicationFileListParams>("contract_application_file");
export const counterpartyApi = createModelApi<Counterparty, CounterpartyCreate, CounterpartyUpdate, CounterpartyListParams>("counterparty");
export const employeeApi = createModelApi<Employee, EmployeeCreate, EmployeeUpdate, EmployeeListParams>("employee");
export const frcApi = createModelApi<Frc, FrcCreate, FrcUpdate, FrcListParams>("frc");
+62
View File
@@ -120,6 +120,68 @@ export interface ContractListParams extends ListParams {
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 Counterparty {
id: number;
name: string;