export interface VendorSnippetProduct {
  id: number;
  name: string;
}

export interface VendorSnippet {
  id: number;
  snippetCode: string;
  slotId: number | null;
  isPermanent: boolean;
  productIds: number[];
  products: VendorSnippetProduct[];
  validTill: string | null;
  createdAt: string;
  accessUrl?: string;
  slot?: {
    id: number;
    deliveryTime: string;
    freezeTime: string;
    isActive: boolean;
    deliverySequence?: unknown;
    isFlash?: boolean;
  } | null;
}

export interface VendorSnippetForm {
  id: number;
  snippetCode: string;
  slotId: number;
  isPermanent: boolean;
  productIds: number[];
  validTill: string | null;
  createdAt: string;
}