UNPKG

@aptly-as/types

Version:
28 lines (27 loc) 877 B
import { AptlyBaseSchema } from './extends'; import { AptlyDatabase } from '../enums'; import { AptlyWholesalerSchema } from './wholesaler.js'; export type AptlyPriceRow = AptlyPriceSchema<string, string>; export interface AptlyPriceSchema<ID, DATE> extends Pick<AptlyBaseSchema<ID, DATE>, '_id' | 'createdAt' | 'updatedAt'> { _id: ID; organization: ID | null; name: string; product: ID | null; wholesaler: ID | AptlyWholesalerSchema<ID, DATE> | 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'; }