import { IUnidade } from '../types/unidade.type'; export interface IOrdensServicoDescontoDTOWrite { valor: number; unidade?: IUnidade; } export interface IOrdensServicoLojaUnidadeNegocioDTOWrite { id: number; } export interface IOrdensServicoLojaDTOWrite { id: number; unidadeNegocio?: IOrdensServicoLojaUnidadeNegocioDTOWrite; } export interface IOrdensServicoContatoDTOWrite { id: number; } export interface IOrdensServicoVendedorDTOWrite { id: number; } export interface IOrdensServicoCategoriaDTOWrite { id: number; } export interface IOrdensServicoProdutoDTOWrite { id: number; nome?: string; codigo?: string; } export interface IOrdensServicoItemServicoDTOWrite { produto: IOrdensServicoProdutoDTOWrite; horas?: number; valorUnitario?: number; valorTotal?: number; precoLista?: number; desconto?: number; orcar?: boolean; concluido?: boolean; } export interface IOrdensServicoItemPecaDTOWrite { produto: IOrdensServicoProdutoDTOWrite; quantidade: number; unidade?: string; valorUnitario?: number; precoLista?: number; desconto?: number; } export interface IOrdensServicoFormaPagamentoDTOWrite { id: number; } export interface IOrdensServicoParcelaDTOWrite { dataVencimento?: string; valor: number; observacoes?: string; formaPagamento: IOrdensServicoFormaPagamentoDTOWrite; } export interface IUpdateParams { idOrdemServico: number; } export interface IUpdateBody { numero?: string; data?: string; dataPrevista?: string; dataConclusao?: string; dataSaida?: string; horaInicio?: string; horaFim?: string; equipamento?: string; numeroSerieEquipamento?: string; descricaoProblema?: string; observacoes?: string; observacoesServico?: string; observacoesInternas?: string; garantia?: string; diasGarantia?: number; desconto?: IOrdensServicoDescontoDTOWrite; valorFrete?: number; totalPecas?: number; totalServicos?: number; total?: number; orcar?: boolean; orcado?: boolean; tecnico?: string; tecnicos?: number[]; loja?: IOrdensServicoLojaDTOWrite; contato: IOrdensServicoContatoDTOWrite; vendedor?: IOrdensServicoVendedorDTOWrite; categoria?: IOrdensServicoCategoriaDTOWrite; servicos?: IOrdensServicoItemServicoDTOWrite[]; pecas?: IOrdensServicoItemPecaDTOWrite[]; parcelas?: IOrdensServicoParcelaDTOWrite[]; } export type IUpdateResponse = null;