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:
committed by
Facebook GitHub Bot
parent
fc38355eee
commit
60b3ff99ce
@@ -76,6 +76,24 @@ export type DeviceLogLevel =
|
|||||||
| 'error'
|
| 'error'
|
||||||
| 'fatal';
|
| '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 = {
|
export type UninitializedClient = {
|
||||||
os: string;
|
os: string;
|
||||||
deviceName: string;
|
deviceName: string;
|
||||||
@@ -141,6 +159,8 @@ export type FlipperServerEvents = {
|
|||||||
id: string;
|
id: string;
|
||||||
message: string;
|
message: string;
|
||||||
};
|
};
|
||||||
|
'connectivity-troubleshoot-cmd': CommandRecordEntry;
|
||||||
|
'connectivity-troubleshoot-log': ConnectionRecordEntry;
|
||||||
'plugins-server-add-on-message': ExecuteMessage;
|
'plugins-server-add-on-message': ExecuteMessage;
|
||||||
'download-file-update': DownloadFileUpdate;
|
'download-file-update': DownloadFileUpdate;
|
||||||
'server-log': LoggerInfo;
|
'server-log': LoggerInfo;
|
||||||
|
|||||||
Reference in New Issue
Block a user