import Endpoint, { IterableEndpoint } from './endpoint'; import { AddonEndpoint, CodeJobsEndpoint, DistributorFlagsEndpoint, TypeMetaData, MaintenanceEndpoint, AuditLogsEndpoint, SyncEndpoint, FileStorageEndpoint, NotificationEndpoint, SchemesEndpoint, GenericResourceEndpoint, FlowsEndpoint, GraphCacheEndpoint } from './endpoints'; import { UserDefinedTableMetaData, UserDefinedTableRow, Account, GeneralActivity, Transaction, User, UIControl, Profile, PepperiObject, Type, Catalog, Item, TransactionLines, Contact, Image, Page, DataView, AddonData, PermissionsPolicy, PermissionsProfile, IUserDefinedParameterConfiguration } from './entities'; declare type HttpMethod = 'POST' | 'GET' | 'PUT' | 'DELETE'; export interface PerformCallOptions { method: HttpMethod; headers?: Record & { authorization?: string; 'X-Pepperi-OwnerID'?: string; 'X-Pepperi-SecretKey'?: string; 'X-Pepperi-ActionID'?: string; 'X-Pepperi-CodeJobID'?: string; }; body?: string; } interface PapiClientOptions { token: string; baseURL: string; addonUUID?: string; suppressLogging?: boolean; addonSecretKey?: string; actionUUID?: string; codeJobUUID?: string; } export declare class PapiClient { private options; metaData: { userDefinedTables: Endpoint; flags: DistributorFlagsEndpoint; type: (typeObject: string) => TypeMetaData; dataViews: Endpoint; pepperiObjects: Endpoint; }; userDefinedTables: Endpoint; addons: AddonEndpoint; codeJobs: CodeJobsEndpoint; activities: Endpoint; transactions: Endpoint; allActivities: Endpoint; accounts: Endpoint; users: Endpoint; uiControls: Endpoint; profiles: Endpoint; fileStorage: FileStorageEndpoint; maintenance: MaintenanceEndpoint; auditLogs: AuditLogsEndpoint; types: IterableEndpoint; catalogs: Endpoint; application: { sync: SyncEndpoint; }; items: Endpoint; transactionLines: Endpoint; contacts: Endpoint; images: Endpoint; notification: NotificationEndpoint; pages: Endpoint; userDefinedCollections: { schemes: SchemesEndpoint; documents: (collectionName: string) => Endpoint; }; resources: { resource: (resourceName: string) => GenericResourceEndpoint; }; userDefinedFlows: FlowsEndpoint; policies: Endpoint; policyProfiles: Endpoint; graph_cache: GraphCacheEndpoint; userDefinedParameters: Endpoint; constructor(options: PapiClientOptions); get(url: string): Promise; post(url: string, body?: any, headers?: any): Promise; delete(url: string): Promise; apiCall(method: HttpMethod, url: string, body?: any, headers?: any): Promise; protected performCall(method: HttpMethod, fullURL: string, options: PerformCallOptions): Promise; } export {};