Merge branch 'feature/pedimentos2' into development

This commit is contained in:
2025-11-18 16:27:57 -06:00
2 changed files with 113 additions and 134 deletions

View File

@@ -4,6 +4,29 @@
*/
import { api } from '$lib/api';
// Sub-resource interfaces
export interface PedimentoDates {
entry_date?: string | null;
pedimento_date?: string | null;
payment_date?: string | null;
}
export interface PedimentoPayments {
payment_form?: string | null;
bank_identifier?: string | null;
}
export interface PedimentoTransportMeans {
arrival_key?: string | null;
arrival_data?: string | null;
departure_key?: string | null;
departure_data?: string | null;
}
export interface PedimentoValidation {
document?: string | null;
}
export interface Pedimento {
id: number;
tenant_id: number;
@@ -22,6 +45,11 @@ export interface Pedimento {
gross_weight?: number | null;
exchange_rate?: number | null;
created_at: string;
// Sub-resources
pedimento_dates?: PedimentoDates | null;
pedimento_payments?: PedimentoPayments | null;
pedimento_transport_means?: PedimentoTransportMeans | null;
pedimento_validation?: PedimentoValidation | null;
}
export interface PedimentoListResponse {
@@ -46,6 +74,11 @@ export interface CreatePedimentoData {
paid_price?: number | null;
gross_weight?: number | null;
exchange_rate?: number | null;
// Sub-resources
pedimento_dates?: PedimentoDates | null;
pedimento_payments?: PedimentoPayments | null;
pedimento_transport_means?: PedimentoTransportMeans | null;
pedimento_validation?: PedimentoValidation | null;
}
export interface UpdatePedimentoData {
@@ -63,6 +96,11 @@ export interface UpdatePedimentoData {
paid_price?: number | null;
gross_weight?: number | null;
exchange_rate?: number | null;
// Sub-resources
pedimento_dates?: PedimentoDates | null;
pedimento_payments?: PedimentoPayments | null;
pedimento_transport_means?: PedimentoTransportMeans | null;
pedimento_validation?: PedimentoValidation | null;
}
export interface PedimentoFilters {