@appzung/react-native-code-push
Version:
React Native plugin for the CodePush service
49 lines (48 loc) • 1.91 kB
JavaScript
/**
* Indicates the current status of a sync operation.
*/
export let SyncStatus = /*#__PURE__*/function (SyncStatus) {
/**
* The app is fully up-to-date with the configured release channel.
*/
SyncStatus[SyncStatus["UP_TO_DATE"] = 0] = "UP_TO_DATE";
/**
* An available update has been installed and will be run either immediately after the
* `syncStatusChangedCallback` function returns or the next time the app resumes/restarts,
* depending on the `InstallMode` specified in `SyncOptions`
*/
SyncStatus[SyncStatus["UPDATE_INSTALLED"] = 1] = "UPDATE_INSTALLED";
/**
* The app had an optional update which the end user chose to ignore.
* (This is only applicable when the `updateDialog` is used)
*/
SyncStatus[SyncStatus["UPDATE_IGNORED"] = 2] = "UPDATE_IGNORED";
/**
* The `sync` operation encountered an unknown error.
*/
SyncStatus[SyncStatus["UNKNOWN_ERROR"] = 3] = "UNKNOWN_ERROR";
/**
* There is an ongoing `sync` operation running which prevents the current call from being executed.
*/
SyncStatus[SyncStatus["SYNC_IN_PROGRESS"] = 4] = "SYNC_IN_PROGRESS";
/**
* The CodePush server is being queried for an update.
*/
SyncStatus[SyncStatus["CHECKING_FOR_UPDATE"] = 5] = "CHECKING_FOR_UPDATE";
/**
* An update is available, and a confirmation dialog was shown
* to the end user. (This is only applicable when the `updateDialog` is used)
*/
SyncStatus[SyncStatus["AWAITING_USER_ACTION"] = 6] = "AWAITING_USER_ACTION";
/**
* An available update is being downloaded from the CodePush server.
*/
SyncStatus[SyncStatus["DOWNLOADING_PACKAGE"] = 7] = "DOWNLOADING_PACKAGE";
/**
* An available update was downloaded and is about to be installed.
*/
SyncStatus[SyncStatus["INSTALLING_UPDATE"] = 8] = "INSTALLING_UPDATE";
return SyncStatus;
}({});
//# sourceMappingURL=SyncStatus.enum.js.map
;