import type { Paginated } from '@/types/common';

export interface StockMutation {
    id: number;
    stockable_type: string;
    stockable_id: number;
    type: 'in' | 'out' | 'transfer' | 'adjustment';
    quantity: string;
    stock_before: string;
    stock_after: string;
    stock_quality: string | null;
    description: string | null;
    created_at: string;
    user: {
        id: number;
        profile: {
            full_name: string;
        } | null;
    } | null;
}

export type PaginatedStockMutations = Paginated<StockMutation> & {
    from: number | null;
    to: number | null;
    prev_page_url: string | null;
    next_page_url: string | null;
};
