You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app-types.ts 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /**
  2. * @copyright Copyright (c) 2024 Ferdinand Thiessen <opensource@fthiessen.de>
  3. *
  4. * @author Ferdinand Thiessen <opensource@fthiessen.de>
  5. *
  6. * @license AGPL-3.0-or-later
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Affero General Public License as
  10. * published by the Free Software Foundation, either version 3 of the
  11. * License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Affero General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Affero General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. */
  21. export interface IAppstoreCategory {
  22. /**
  23. * The category ID
  24. */
  25. id: string
  26. /**
  27. * The display name (can be localized)
  28. */
  29. displayName: string
  30. /**
  31. * Inline SVG path
  32. */
  33. icon: string
  34. }
  35. export interface IAppstoreAppRelease {
  36. version: string
  37. translations: {
  38. [key: string]: {
  39. changelog: string
  40. }
  41. }
  42. }
  43. export interface IAppstoreApp {
  44. id: string
  45. name: string
  46. summary: string
  47. description: string
  48. licence: string
  49. author: string[] | Record<string, string>
  50. level: number
  51. version: string
  52. category: string|string[]
  53. preview?: string
  54. screenshot?: string
  55. active: boolean
  56. internal: boolean
  57. removeable: boolean
  58. installed: boolean
  59. canInstall: boolean
  60. canUninstall: boolean
  61. isCompatible: boolean
  62. appstoreData: Record<string, never>
  63. releases?: IAppstoreAppRelease[]
  64. }