Offentliggjort kilde
Download kilde ZIP
CH-J Tools
Gennemse mapper og filer til en specifik applikationsudgivelse.
CH-J / Server Manager
872 filer
core-20261030T220507Z-61e4558d889f
Tilføjet: · Bygget:
1
/** Local network diagnostics (runs on the desktop, not over SSH). */2
import { call, subscribe } from "../transport";3
import type { Payload, Result } from "../types";5
export type ExportFormat = "json" | "csv" | "txt";7
export const diagnostics = Object.freeze({8
resolve: (options: Payload) => call<Result<unknown>>("core_diagnostics_resolve", "diagnostics:resolve", options),9
start: (options: Payload) => call<Result<{ id: string; report: unknown }>>("core_diagnostics_start", "diagnostics:start", options),10
cancel: (id: string, tool?: string) => call<Result<unknown>>("core_diagnostics_cancel", "diagnostics:cancel", { id, tool }),11
get: (id: string) => call<Result<unknown>>("core_diagnostics_get", "diagnostics:get", { id }),12
history: () => call<Result<unknown[]>>("core_diagnostics_history", "diagnostics:history"),13
removeHistory: (id?: string) => call<Result<unknown>>("core_diagnostics_remove_history", "diagnostics:removeHistory", { id }),14
export: (id: string, format: ExportFormat) => call<Result<{ canceled: boolean }>>("core_diagnostics_export", "diagnostics:export", { id, format }),15
copy: (id: string, format: ExportFormat = "txt") => call<Result<{ copied: true }>>("core_diagnostics_copy", "diagnostics:copy", { id, format }),16
import: () => call<Result<{ canceled?: boolean; id?: string }>>("core_diagnostics_import", "diagnostics:import"),17
onProgress: (callback: (event: Payload) => void) => subscribe("diagnostics:progress", callback)18
});SHA-256
9e951a6d4b7fea2b9eb9fbe448e9c0c95ec5b73d3f9d516da043323b0afc3d43CH-J Proprietary Software License 1.14 · Kilden leveres under CH-J Proprietary Software License 1.14. Dens tilgængelighed ændrer ikke licensbetingelserne eller giver yderligere rettigheder.
Arkiv SHA-256
77380d4805485ffa4027fbe7858b5836f197a4aa9d52358a43e2d12d018744df