1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-31 21:33:12 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

v10.0.0-beta.2

This commit is contained in:
sunnylqm
2024-01-25 22:07:01 +08:00
parent 296498e20a
commit 05e5c5a1a7
11 changed files with 67 additions and 72 deletions

View File

@@ -1,31 +1,19 @@
export interface ExpiredResult {
expired: true;
downloadUrl: string;
}
export interface UpTodateResult {
upToDate: true;
paused?: 'app' | 'package';
}
export interface UpdateAvailableResult {
upToDate: false;
update: true;
name: string; // version name
hash: string;
description: string;
metaInfo: string;
pdiffUrl: string;
export interface CheckResult {
upToDate?: true;
expired?: true;
downloadUrl?: string;
update?: true;
name?: string; // version name
hash?: string;
description?: string;
metaInfo?: string;
pdiffUrl?: string;
diffUrl?: string;
updateUrl?: string;
paused?: 'app' | 'package';
message?: string;
}
export type CheckResult =
| ExpiredResult
| UpTodateResult
| UpdateAvailableResult
| {};
export interface ProgressData {
hash: string;
received: number;
@@ -59,6 +47,7 @@ export interface EventData {
newVersion?: string;
[key: string]: any;
}
export type UpdateEventsLogger = ({
type,
data,
@@ -72,6 +61,7 @@ export interface PushyServerConfig {
backups?: string[];
queryUrl?: string;
}
export interface PushyOptions {
appKey: string;
server?: PushyServerConfig;