import { AptlyDocumentSchema, AptlyOfferSchema, AptlyOrderSchema, AptlyOrganizationSchema, AptlyPaymentSchema, AptlyPaymentSettlement, AptlyProjectSchema, AptlyUnitSchema } from '../models/index.js'; export declare namespace AptlyWebhookEventData { type Organization = Pick, '_id' | 'name' | 'logoMedia' | 'logo'>; type Project = Pick, '_id' | 'name' | 'theme'>; type Unit = Pick, '_id' | 'name'>; export interface UnitWebhookSchema { unit: Unit; } export interface UnitDocumentWebhookSchema { document: AptlyDocumentSchema; documentUrl: string; } export type Payment = PaymentSchema; export interface PaymentSchema { organization: Organization; project: Project | null; unit: Unit | null; payment: AptlyPaymentSchema; order: Pick, '_id' | 'orderNumber'>; offer?: Pick, '_id' | 'name' | 'number' | 'description'>; documentUrl?: string; reportDocumentUrl?: string; } export type NewUnitDocument = NewUnitDocumentSchema; export type NewUnitDocumentSchema = UnitWebhookSchema & UnitDocumentWebhookSchema; export type NewUnitOrder = NewUnitOrderSchema; export interface NewUnitOrderSchema extends NewUnitDocumentSchema { order: Pick, '_id' | 'orderNumber' | 'receipt' | 'period'>; } export type Order = OrderSchema; export interface OrderSchema { organization: Organization; project: Project | null; unit: Pick, '_id' | 'name' | 'shipping' | 'users'> | null; order: AptlyOrderSchema; offer?: Pick, '_id' | 'name' | 'number' | 'description'>; receiptUrl?: string; signedReceiptUrl?: string; } export {}; } export declare namespace AptlyAppWebhookEventData { interface SettlementCreate extends Pick { amounts: Omit[]; transactions: Omit[]; pdfDownload?: { url: string; name: string; }; } }