export type SubOrderStatus = "pending" | "confirmed" | "processing" | "shipped" | "delivered" | "cancelled"; export declare const SUB_ORDER_TRANSITIONS: Record; export type VendorStatus = "pending" | "approved" | "suspended"; export type VerificationStatus = "unverified" | "documents_submitted" | "verified" | "rejected"; export type VendorTier = "standard" | "silver" | "gold" | "platinum"; export type PayoutSchedule = "daily" | "weekly" | "biweekly" | "monthly" | "manual"; export type VendorApprovalMode = "manual" | "auto" | "invitation"; export type CommissionRuleType = "category" | "volume_tier" | "vendor_tier" | "promotional"; export type DisputeStatus = "open" | "vendor_response_pending" | "platform_review" | "resolved" | "escalated" | "closed"; export type DisputeReason = "item_not_received" | "item_not_as_described" | "defective" | "wrong_item" | "other"; export type DisputeResolution = "refund_full" | "refund_partial" | "replacement" | "rejected" | "vendor_favor" | "buyer_favor"; export type ReturnStatus = "requested" | "vendor_approved" | "vendor_rejected" | "shipped_back" | "received" | "refunded" | "closed"; export type ReturnReason = "defective" | "wrong_item" | "not_as_described" | "changed_mind" | "other"; export type BalanceEntryType = "sale" | "commission" | "refund_deduction" | "adjustment" | "payout"; export type DocumentType = "business_license" | "tax_form" | "bank_proof" | "identity" | "other"; export type DocumentStatus = "pending" | "approved" | "rejected"; export type ReviewStatus = "pending" | "published" | "hidden" | "flagged"; export type RFQStatus = "open" | "closed" | "awarded" | "cancelled"; export type RFQResponseStatus = "submitted" | "shortlisted" | "accepted" | "rejected" | "withdrawn"; export interface MarketplacePluginOptions { defaultCommissionRateBps?: number; defaultPayoutMinimumCents?: number; vendorResponseDeadlineDays?: number; reviewModerationEnabled?: boolean; b2b?: { rfq?: boolean; }; } /** * Driver-agnostic Drizzle PostgreSQL database type. * * `PgDatabase` from `drizzle-orm/pg-core` is the base class that all PG drivers * extend (postgres-js, pglite, node-postgres). Using it with * `Record` as the schema generic means: * - Row types are fully inferred from `pgTable` schema objects (`.from(vendors)`) * - No coupling to any specific driver package * - Works identically with PGlite in tests and postgres-js in production */ export type { PluginDb as Db } from "@porulle/core"; /** Minimal Hono-compatible context for route handlers */ export interface RouteContext { req: { json(): Promise>; param(name: string): string; query(name: string): string | undefined; }; json(data: unknown, status?: number): Response; get(key: string): unknown; } //# sourceMappingURL=types.d.ts.map