feat: app release notes

This commit is contained in:
Thea Schöbl
2023-12-01 12:34:20 +00:00
parent 5d47a17629
commit 37945f7d19
18 changed files with 335 additions and 7 deletions

View File

@@ -18,6 +18,7 @@ import {SCMap} from '../general/map.js';
import {SCLanguageSetting, SCSetting, SCUserGroupSetting} from '../things/setting.js';
import {SCAuthorizationProviderType} from './authorization.js';
import {SCFeatureConfiguration} from './feature.js';
import {SCISO8601Date} from '../general/time.js';
/**
* An app configuration menu item
@@ -136,6 +137,38 @@ export interface SCAppConfiguration {
* URL where a web instance of the app is available
*/
url?: string;
/**
* Version history in sequence of their publishing date.
*
* The items are ordered in descending version index order,
* where the first item is always the most recent release.
*/
versionHistory?: SCAppVersionInfo[];
}
/**
* Info about app version releases
*/
export interface SCAppVersionInfo {
/**
* Published date for each platform.
*
* Missing entries mean the version has not been published on that platform yet.
*/
published: Partial<Record<'web' | 'android' | 'ios', SCISO8601Date>>;
/**
* Version index that increments by one each version
*/
version: string;
/**
* Release notes of the version
*/
releaseNotes: string;
/**
* Translations
*/
translations: SCTranslations<{releaseNotes: string}>;
}
/**