assorted fixes

This commit is contained in:
Aiden McClelland
2021-08-13 12:34:29 -06:00
committed by Aiden McClelland
parent 7aaeefc180
commit c18a119c70
10 changed files with 154 additions and 75 deletions

View File

@@ -22,7 +22,7 @@ export class SessionsPage {
async ngOnInit () {
try {
this.sessionInfo = await this.embassyApi.getSessions({ })
this.sessionInfo = await this.embassyApi.getSessions({})
} catch (e) {
this.errToast.present(e.message)
} finally {

View File

@@ -19,7 +19,7 @@ export module RR {
export type LoginReq = { password: string, metadata: SessionMetadata } // auth.login - unauthed
export type loginRes = null
export type LogoutReq = { } // auth.logout
export type LogoutReq = {} // auth.logout
export type LogoutRes = null
// server
@@ -30,26 +30,26 @@ export module RR {
export type GetServerLogsReq = { before?: string } // server.logs
export type GetServerLogsRes = Log[]
export type GetServerMetricsReq = { } // server.metrics
export type GetServerMetricsReq = {} // server.metrics
export type GetServerMetricsRes = Metrics
export type UpdateServerReq = WithExpire<{ }> // server.update
export type UpdateServerReq = WithExpire<{}> // server.update
export type UpdateServerRes = WithRevision<null>
export type RestartServerReq = { } // server.restart
export type RestartServerReq = {} // server.restart
export type RestartServerRes = null
export type ShutdownServerReq = { } // server.shutdown
export type ShutdownServerReq = {} // server.shutdown
export type ShutdownServerRes = null
// network
export type RefreshLanReq = { } // network.lan.refresh
export type RefreshLanReq = {} // network.lan.refresh
export type RefreshLanRes = null
// sessions
export type GetSessionsReq = { } // sessions.list
export type GetSessionsReq = {} // sessions.list
export type GetSessionsRes = {
current: string,
sessions: { [hash: string]: Session }
@@ -78,7 +78,7 @@ export module RR {
export type DeleteNotificationReq = { id: string } // notification.delete
export type DeleteNotificationRes = null
export type DeleteAllNotificationsReq = { } // notification.delete.all
export type DeleteAllNotificationsReq = {} // notification.delete.all
export type DeleteAllNotificationsRes = null
// wifi
@@ -100,7 +100,7 @@ export module RR {
// ssh
export type GetSSHKeysReq = { } // ssh.get
export type GetSSHKeysReq = {} // ssh.get
export type GetSSHKeysRes = SSHKeys
export type AddSSHKeyReq = { pubkey: string } // ssh.add
@@ -119,7 +119,7 @@ export module RR {
// disk
export type GetDisksReq = { } // disk.list
export type GetDisksReq = {} // disk.list
export type GetDisksRes = DiskInfo
export type EjectDisksReq = { logicalname: string } // disk.eject
@@ -178,10 +178,10 @@ export module RR {
// marketplace
export type GetMarketplaceDataReq = { }
export type GetMarketplaceDataReq = {}
export type GetMarketplaceDataRes = MarketplaceData
export type GetMarketplaceEOSReq = { }
export type GetMarketplaceEOSReq = {}
export type GetMarketplaceEOSRes = MarketplaceEOS
export type GetMarketplacePackagesReq = {
@@ -195,10 +195,10 @@ export module RR {
export type GetMarketplacePackagesRes = MarketplacePkg[]
export type GetReleaseNotesReq = { id: string }
export type GetReleaseNotesRes = { [version: string]: string}
export type GetReleaseNotesRes = { [version: string]: string }
export type GetLatestVersionReq = { ids: string[] }
export type GetLatestVersionRes = { [id: string]: string}
export type GetLatestVersionRes = { [id: string]: string }
}
@@ -334,8 +334,8 @@ export enum NotificationLevel {
}
export type NotificationData<T> = T extends 0 ? null :
T extends 1 ? BackupReport :
any
T extends 1 ? BackupReport :
any
export interface BackupReport {
server: {