import { Id } from "../schemas"; import { D2ApiResponse } from "./common"; import { D2ApiGeneric } from "./d2Api"; import { DataValueSetsPostResponse } from "./dataValues"; import { EventsPostResponse } from "./events"; import { MetadataResponse } from "./metadata"; import { TeiPostResponse } from "./trackedEntityInstances"; import { TrackerPostResponse } from "./tracker"; export declare class System { d2Api: D2ApiGeneric; constructor(d2Api: D2ApiGeneric); getIds(options: { limit?: number; }): D2ApiResponse; get info(): D2ApiResponse; ping(): D2ApiResponse; getTaskEntries(selector: TaskSelector): D2ApiResponse; waitFor(jobType: Type, id: string, options?: { interval?: number; maxRetries?: number; }): D2ApiResponse; get tasks(): D2ApiResponse; get flags(): D2ApiResponse; get styles(): D2ApiResponse; } export interface SystemItem { name: string; key: string; path: string; } export declare type Tasks = Record>; export declare type TaskCategory = "ANALYTICSTABLE_UPDATE" | "ANALYTICS_TABLE" | "COMPLETE_DATA_SET_REGISTRATION_IMPORT" | "CREDENTIALS_EXPIRY_ALERT" | "DATAVALUE_IMPORT" | "DATAVALUE_IMPORT_INTERNAL" | "DATA_INTEGRITY" | "DATA_SET_NOTIFICATION" | "DATA_STATISTICS" | "DATA_SYNC" | "ENROLLMENT_IMPORT" | "EVENT_IMPORT" | "FILE_RESOURCE_CLEANUP" | "GML_IMPORT" | "LEADER_ELECTION" | "LEADER_RENEWAL" | "METADATA_IMPORT" | "META_DATA_SYNC" | "MOCK" | "MONITORING" | "PREDICTOR" | "PROGRAM_DATA_SYNC" | "PROGRAM_NOTIFICATIONS" | "PUSH_ANALYSIS" | "REMOVE_EXPIRED_RESERVED_VALUES" | "RESOURCE_TABLE" | "SEND_SCHEDULED_MESSAGE" | "SMS_SEND" | "TEI_IMPORT" | "TRACKER_IMPORT_JOB" | "VALIDATION_RESULTS_NOTIFICATION"; export interface TaskSelector { category: TaskCategory; id?: Id; } export interface TaskEntry { uid: Id; level: string; category: TaskCategory; time: string; message: string; completed: boolean; } export interface SystemInfo { contextPath: string; userAgent: string; version: string; revision: string; buildTime: Date; serverDate: Date; serverTimeZoneId: string; environmentVariable: string; javaVersion?: string; javaVendor?: string; calendar?: string; dateFormat?: string; lastAnalyticsTableSuccess?: Date; intervalSinceLastAnalyticsTableSuccess?: string; lastAnalyticsTableRuntime?: string; jasperReportsVersion?: string; fileStoreProvider?: string; readOnlyMode?: string; nodeId?: string; osName?: string; osArchitecture?: string; osVersion?: string; externalDirectory?: string; databaseInfo?: { name: string; user: string; spatialSupport: boolean; }; readReplicaCount?: number; memoryInfo?: string; cpuCores?: number; encryption?: boolean; emailConfigured?: boolean; redisEnabled?: boolean; systemId?: string; systemName?: string; clusterHostname?: string; isMetadataVersionEnabled?: boolean; metadataAudit?: { persist: boolean; log: boolean; }; logging?: { level: string; format: string; consoleEnabled: boolean; consoleLevel: string; consoleFormat: string; fileEnabled: boolean; fileName: string; fileLevel: string; fileFormat: string; }; metadataSyncEnabled?: boolean; } export declare type WaitForResponse = { DATAVALUE_IMPORT: DataValueSetsPostResponse; EVENT_IMPORT: EventsPostResponse; METADATA_IMPORT: MetadataResponse; TEI_IMPORT: TeiPostResponse; TRACKER_IMPORT_JOB: TrackerPostResponse; };