Troubleshoot FlipperServer support

Summary: Add neessary types and events to troubleshoot connectivity.

Reviewed By: antonk52

Differential Revision: D47293373

fbshipit-source-id: 9ffbe07e5c71ba0d8ab1c58cd322eaab22141f12
This commit is contained in:
Lorenzo Blasa
2023-07-10 05:52:07 -07:00
committed by Facebook GitHub Bot
parent fc38355eee
commit 60b3ff99ce

View File

@@ -76,6 +76,24 @@ export type DeviceLogLevel =
| 'error'
| 'fatal';
export type ConnectionRecordEntry = {
time: Date;
type: 'cmd' | 'info' | 'error';
device: string;
app: string;
message: string;
medium: CertificateExchangeMedium;
};
export type CommandRecordEntry = ConnectionRecordEntry & {
cmd: string;
description: string;
success: boolean;
stdout?: string;
stderr?: string;
troubleshoot?: string;
};
export type UninitializedClient = {
os: string;
deviceName: string;
@@ -141,6 +159,8 @@ export type FlipperServerEvents = {
id: string;
message: string;
};
'connectivity-troubleshoot-cmd': CommandRecordEntry;
'connectivity-troubleshoot-log': ConnectionRecordEntry;
'plugins-server-add-on-message': ExecuteMessage;
'download-file-update': DownloadFileUpdate;
'server-log': LoggerInfo;