import { AptlyBaseSchema } from './extends'; import { AptlyDatabase } from '../enums'; import { AptlyWholesalerSchema } from './wholesaler.js'; export type AptlyPriceRow = AptlyPriceSchema; export interface AptlyPriceSchema extends Pick, '_id' | 'createdAt' | 'updatedAt'> { _id: ID; organization: ID | null; name: string; product: ID | null; wholesaler: ID | AptlyWholesalerSchema | null; database: AptlyDatabase; identification: string; baseQuantity: number; amount: number; priceAmount?: number | null; algorithm: ID | null; baseAmount: number; discountGroup: string; discountPercent: number; updatedAt: DATE; createdAt: DATE; } export interface AptlyPriceImport { wholesaler: string; database: AptlyDatabase; action: 'add' | 'edit'; }