Skip to content

app.icloud app.TokenApp

github-actions[bot] edited this page Oct 16, 2023 · 6 revisions

Class: 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

Hierarchy

  • iCloudApp

    TokenApp

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new TokenApp()

Creates and sets up the necessary infrastructure

Inherited from

iCloudApp.constructor

Defined in

app/icloud-app.ts:75

Properties

icloud

icloud: iCloud

This sessions' iCloud object

Inherited from

iCloudApp.icloud

Defined in

app/icloud-app.ts:70

Methods

acquireLibraryLock

acquireLibraryLock(): Promise<void>

Tries to acquire the lock for the local library to execute a sync

Returns

Promise<void>

Throws

An iCPSError, if the lock could not be acquired

Inherited from

iCloudApp.acquireLibraryLock

Defined in

app/icloud-app.ts:122


clean

clean(): Promise<void>

Removes all established event listeners and releases the library lock

Returns

Promise<void>

Overrides

iCloudApp.clean

Defined in

app/icloud-app.ts:200


releaseLibraryLock

releaseLibraryLock(): Promise<void>

Tries to release the lock for the local library after completing a sync

Returns

Promise<void>

Throws

An iCPSError, if the lock could not be released

Inherited from

iCloudApp.releaseLibraryLock

Defined in

app/icloud-app.ts:145


run

run(): Promise<unknown>

This function will validate the currently stored account token and print it afterwards

Returns

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

Overrides

iCloudApp.run

Defined in

app/icloud-app.ts:176

Clone this wiki locally