feat: add desktop repo (#1071)

This commit is contained in:
Mo
2022-06-07 11:52:15 -05:00
committed by GitHub
parent 0bb12db948
commit 0b7ce82aaa
135 changed files with 17821 additions and 180 deletions

View File

@@ -0,0 +1,35 @@
export interface PackageManagerInterface {
syncComponents(components: Component[]): Promise<void>
}
export interface Component {
uuid: string
deleted: boolean
content?: {
name?: string
autoupdateDisabled: boolean
local_url?: string
package_info: PackageInfo
}
}
export type PackageInfo = {
identifier: string
version: string
download_url: string
latest_url: string
url: string
}
export interface SyncTask {
components: Component[]
}
export interface MappingFile {
[key: string]: Readonly<ComponentMapping> | undefined
}
export interface ComponentMapping {
location: string
version?: string
}