51 lines
1.7 KiB
TypeScript
51 lines
1.7 KiB
TypeScript
/** Mobile app release domain types (Android APK distribution). */
|
|
export type MobilePlatform = 'android' | 'ios';
|
|
export type MobileChannel = 'production' | 'beta' | 'internal';
|
|
export type MobileReleaseStatus = 'draft' | 'pending_validation' | 'published' | 'suspended' | 'retired';
|
|
export type MobileUpdatePolicy = 'optional' | 'recommended' | 'mandatory';
|
|
export type MobileReleaseEventType = 'check' | 'download_start' | 'download_ok' | 'download_fail' | 'install_confirm';
|
|
export type MobileAppRelease = {
|
|
id: string;
|
|
platform: MobilePlatform;
|
|
channel: MobileChannel;
|
|
versionName: string;
|
|
versionCode: number;
|
|
packageName: string | null;
|
|
previousVersionName: string | null;
|
|
whatsNew: string;
|
|
bugFixes: string;
|
|
status: MobileReleaseStatus;
|
|
updatePolicy: MobileUpdatePolicy;
|
|
rolloutPercent: number;
|
|
storageKey: string | null;
|
|
fileSizeBytes: number | null;
|
|
sha256: string | null;
|
|
signingCertSha256: string | null;
|
|
publishedAt: Date | null;
|
|
createdBy: string | null;
|
|
downloadCount: number;
|
|
downloadFailCount: number;
|
|
installConfirmCount: number;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
};
|
|
export type MobileAppUpdateSettings = {
|
|
id: number;
|
|
minSupportedVersionCode: number;
|
|
checkIntervalSeconds: number;
|
|
expectedPackageName: string;
|
|
updatedAt: Date;
|
|
};
|
|
export type MobileAppReleaseEvent = {
|
|
id: string;
|
|
releaseId: string | null;
|
|
eventType: MobileReleaseEventType;
|
|
platform: MobilePlatform;
|
|
channel: MobileChannel;
|
|
clientVersionCode: number | null;
|
|
deviceIdHash: string | null;
|
|
userId: string | null;
|
|
meta: Record<string, unknown>;
|
|
createdAt: Date;
|
|
};
|
|
//# sourceMappingURL=mobileAppRelease.model.d.ts.map
|