fix
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user