All files / lib/sync-engine constants.ts

100% Statements 19/19
100% Branches 1/1
100% Functions 0/0
100% Lines 19/19

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 191x 1x 1x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x
/**
 * Event lifecycle of Sync Engine class
 */
export enum EVENTS {
    START = `start`,
    FETCH_N_LOAD = `fetch-n-load`, // No arg
    FETCH_N_LOAD_COMPLETED = `fetch-n-load-completed`, // RemoteAssetCount, remoteAlbumCount, LocalAssetCount, localAlbumCount
    DIFF = `diff`, // No arg
    DIFF_COMPLETED = `diff-completed`, // No arg
    WRITE = `write`, // No arg
    WRITE_ASSETS = `write-assets`, // ToBeDeletedCount, toBeAddedCount, toBeKeptCount
    WRITE_ASSET_COMPLETED = `write-asset-completed`, // AssetName
    WRITE_ASSETS_COMPLETED = `write-assets-completed`, // No arg
    WRITE_ALBUMS = `write-albums`, // ToBeDeletedCount, toBeAddedCount, toBeKeptCount
    WRITE_ALBUMS_COMPLETED = `write-albums-completed`, // No arg
    WRITE_COMPLETED = `write-completed`, // No arg
    DONE = `done`, // No arg
    RETRY = `retry`, // RetryCount
}