-
-
Notifications
You must be signed in to change notification settings - Fork 9
app.icloud app.TokenApp
app/icloud-app.TokenApp
This application will print the locally stored token, acquire a new one (if necessary) and print it to the CLI
-
iCloudApp
↳
TokenApp
• new TokenApp()
Creates and sets up the necessary infrastructure
iCloudApp.constructor
• icloud: iCloud
This sessions' iCloud object
iCloudApp.icloud
▸ acquireLibraryLock(): Promise
<void
>
Tries to acquire the lock for the local library to execute a sync
Promise
<void
>
Throws
An iCPSError, if the lock could not be acquired
iCloudApp.acquireLibraryLock
▸ clean(): Promise
<void
>
Removes all established event listeners and releases the library lock
Promise
<void
>
iCloudApp.clean
▸ releaseLibraryLock(): Promise
<void
>
Tries to release the lock for the local library after completing a sync
Promise
<void
>
Throws
An iCPSError, if the lock could not be released
iCloudApp.releaseLibraryLock
▸ run(): Promise
<unknown
>
This function will validate the currently stored account token and print it afterwards
Promise
<unknown
>
A promise that resolves once the operation has been completed
Throws
An iCPSError in case an error occurs iCPSEventPhotos.READY - Once the token has been validated in order for the Promise to resolve iCPSEventApp.TOKEN - Once the token has been validated in order for the CLI to print it
iCloudApp.run
- app/error/codes/app
- app/error/codes/archive
- app/error/codes/icloud-auth
- app/error/codes/icloud-photos
- app/error/codes/icloud-query-parser
- app/error/codes/library
- app/error/codes/mfa
- app/error/codes/resources
- app/error/codes/sync
- app/error/codes/validator
- app/error/error
- app/error/error-codes
- app/event/cli
- app/event/error-handler
- app/event/log
- app/event/metrics-exporter
- app/factory
- app/icloud-app
- lib/archive-engine/archive-engine
- lib/icloud/icloud
- lib/icloud/icloud-photos/icloud-photos
- lib/icloud/icloud-photos/query-builder
- lib/icloud/icloud-photos/query-parser
- crypto
- lib/icloud/mfa/mfa-method
- lib/icloud/mfa/mfa-server
- lib/photos-library/constants
- lib/photos-library/model/album
- lib/photos-library/model/asset
- lib/photos-library/model/file-type
- lib/photos-library/model/photos-entity
- lib/photos-library/photos-library
- lib/resources/event-manager
- lib/resources/events-types
- lib/resources/main
- lib/resources/network-manager
- lib/resources/network-types
- lib/resources/resource-manager
- lib/resources/resource-types
- lib/resources/validator
- lib/sync-engine/helper
- lib/sync-engine/sync-engine
- main