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 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 14x 14x 14x 14x 14x 14x 1x 1x 1x 1x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 1x 1x 1x 1x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 1x 1x 1x 1x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 1x 1x 1x 1x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 1x 1x 1x 1x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 1x 1x 1x 1x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 1x 1x 1x 1x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 1x 1x 1x 1x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x 14x | /** * Possible events emitted by the event bus */ export type iCPSEvent = iCPSEventArchiveEngine | iCPSEventLog | iCPSEventPhotos | iCPSEventMFA | iCPSEventCloud | iCPSEventSyncEngine | iCPSEventApp | iCPSEventRuntimeWarning | iCPSEventRuntimeError; /** * Possible log events */ export enum iCPSEventLog { DEBUG = `log-debug`, INFO = `log-info`, WARN = `log-warn`, ERROR = `log-error` } /** * Possible iCloud events */ export enum iCPSEventCloud { /** * Emitted when the iCloud authentication process has started */ AUTHENTICATION_STARTED = `icloud-auth_started`, /** * Emitted when the iCloud authentication process requires MFA input */ MFA_REQUIRED = `icloud-mfa_req`, /** * Emitted when the iCloud authentication process has completed after the MFA code has been submitted successfully */ AUTHENTICATED = `icloud-auth_done`, /** * Emitted when the iCloud authentication trusted this device and stored the trust token for future requests - provides the trust token as argument */ TRUSTED = `icloud-trusted`, /** * Emitted when ADP is enabled and PCS Cookies are required */ PCS_REQUIRED = `icloud-pcs_req`, /** * Emitted when the iCloud account information have been retrieved */ ACCOUNT_READY = `icloud-account_ready`, /** * Emitted if the session token expired */ SESSION_EXPIRED = `icloud-session_expired`, /** * Emitted when the iCloud connection has experienced an error - provides an iCPSError as argument */ ERROR = `icloud-error`, } /** * Possible MFA server events */ export enum iCPSEventMFA { /** * Emitted when the MFA server has started - provides the port as argument */ STARTED = `mfa-started`, /** * Emitted when the MFA server has received a valid MFA code - provides the method and code as arguments */ MFA_RECEIVED = `mfa-received`, /** * Emitted when the MFA server has received a request to resend the MFA code - provides the method as argument */ MFA_RESEND = `mfa-resend`, /** * Emitted when the MFA server has not received a valid MFA code within the timeout period */ MFA_NOT_PROVIDED = `mfa-not_provided`, /** * Emitted when the MFA server has experienced an error - provides an iCPSError as argument */ ERROR = `mfa-error`, } /** * Possible icloud photos events */ export enum iCPSEventPhotos { /** * Emitted when the photos library has completed it's setup */ SETUP_COMPLETED = `photos-setup-complete`, /** * Emitted when the photos library is ready to use */ READY = `photos-ready`, /** * Emitted when the icloud photos library has experienced an error - provides an iCPSError as argument */ ERROR = `error-photos`, } /** * Runtime warnings, that are handled appropriately (e.g. by printing a summary and/or logging to the console and/or file) */ export enum iCPSEventRuntimeWarning { /** * Emitted, if the number of remote assets is not matching our expectation during sync - provides the album id, number of expected assets, actual CPL Assets and actual CPL Masters */ COUNT_MISMATCH = `warn-count_mismatch`, /** * Emitted, if a local asset could not be loaded - provides the error and file path as arguments */ LIBRARY_LOAD_ERROR = `warn-library_load_error`, /** * Emitted, if an extraneous file was found while loading the album tree - provides the parent directory as argument */ EXTRANEOUS_FILE = `warn-extraneous_file`, /** * Emitted, if an iCloud asset could not be loaded - provides the error, asset and master object as arguments */ ICLOUD_LOAD_ERROR = `warn-icloud_load_error`, /** * Emitted when the write process has experienced an error while verifying a written asset - provides the error and asset as argument */ WRITE_ASSET_ERROR = `warn-write_asset_error`, /** * Emitted when the write process has experienced an error while writing an album - provides the error and album as argument */ WRITE_ALBUM_ERROR = `warn-write_album_error`, /** * Emitted when an asset cannot be linked to an album - provides the error, src and destination path as arguments */ LINK_ERROR = `warn-link_error`, /** * Emitted when a filetype is unknown to the script - provides the extension and descriptor as arguments (if available) */ FILETYPE_ERROR = `warn-filetype_error`, /** * Emitted when there is an error related to the MFA flow - provides an iCPS error as argument */ MFA_ERROR = `warn-mfa_error`, /** * Emitted when an asset could not be archived - provides the error and errored asset file path as argument */ ARCHIVE_ASSET_ERROR = `warn-archive_asset_error`, /** * Emitted when there is a problem reading/writing the resource file - provides the iCPSError as argument */ RESOURCE_FILE_ERROR = `warn-resource_file_error`, } /** * Runtime errors */ export enum iCPSEventRuntimeError { /** * Emitted upon a fatal error during the scheduled execution - provides an iCPSError as argument * Should only be handled by the error handler */ SCHEDULED_ERROR = `scheduled-error`, /** * Emitted upon after an unexpected error was handled by the error handler for it to get logged - provides an iCPSError as argument * Should be used to log/print fatal errors */ HANDLED_ERROR = `error-handled`, } /** * Possible sync engine events */ export enum iCPSEventSyncEngine { /** * Emitted when the sync process has started */ START = `sync-start`, /** * Emitted when the fetch and load process has started */ FETCH_N_LOAD = `sync-fetch_n_load`, /** * Emitted when the fetch and load process has completed - provides the number of remote assets and albums as well as the number of local assets and albums as arguments */ FETCH_N_LOAD_COMPLETED = `sync-fetch_n_load_completed`, /** * Emitted when the diff process has started */ DIFF = `sync-diff`, /** * Emitted when the diff process has completed */ DIFF_COMPLETED = `sync-diff_completed`, /** * Emitted when the write process has started */ WRITE = `sync-write`, /** * Emitted when the write process has started writing assets - provides the number of assets to be deleted, added and kept as arguments */ WRITE_ASSETS = `sync-write_assets`, /** * Emitted when the write process has completed writing an asset - provides the asset name as argument */ WRITE_ASSET_COMPLETED = `sync-write_asset_completed`, /** * Emitted when the write process has completed writing all assets */ WRITE_ASSETS_COMPLETED = `sync-write_assets_completed`, /** * Emitted when the write process has started writing albums - provides the number of albums to be deleted, added and kept as arguments */ WRITE_ALBUMS = `sync-write_albums`, /** * Emitted when the write process has completed writing all albums */ WRITE_ALBUMS_COMPLETED = `sync-write_albums_completed`, /** * Emitted when the write process has completed */ WRITE_COMPLETED = `sync-write_completed`, /** * Emitted when the sync process has completed */ DONE = `sync-done`, /** * Emitted when the sync process has experienced an error and will retry - provides the number of retries as argument as well as the iCPSError leading to the retry */ RETRY = `sync-retry`, } /** * Possible archive engine events */ export enum iCPSEventArchiveEngine { /** * Emitted when the archive engine starts archiving a path - provides the path as argument */ ARCHIVE_START = `archive-start`, /** * Emitted when the archive engine starts persisting assets - provides the number of assets as argument */ PERSISTING_START = `archive-persist_start`, /** * Emitted when the archive engine starts deleting remote assets - provides the number of assets as argument */ REMOTE_DELETE = `archive-remote_delete`, /** * Emitted when the archive engine is done archiving a path */ ARCHIVE_DONE = `archive-done` } /** * Possible app events */ export enum iCPSEventApp { /** * Emitted when the app has scheduled the next execution, but has not have previous executions - provides a date object for the next run as argument */ SCHEDULED = `scheduled`, /** * Emitted when the app has started the next execution */ SCHEDULED_START = `scheduled-start`, /** * Emitted when the app has successfully completed an execution - provides a date object for the next run as argument */ SCHEDULED_DONE = `scheduled-done`, /** * Emitted when the app has experienced an error and will retry - provides a date object for the next run as argument */ SCHEDULED_RETRY = `scheduled-retry`, /** * Emitted when the app should display the latest acquired token - provides the token as argument */ TOKEN = `token` } |