5.0.2 • Published 4 months ago

@logseq/capacitor-file-sync v5.0.2

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
4 months ago

@logseq/capacitor-file-sync

Logseq Sync for mobile platforms.

Local Development

# run the following in capacitor-file-sync/ folder
yarn link

# run the following in logseq/ folder
yarn link @logseq/capacitor-file-sync

Install

npm install @logseq/capacitor-file-sync
npx cap sync

API Doc

keygen()

keygen() => Promise<{ secretKey: string; publicKey: string; }>

Returns: Promise<{ secretKey: string; publicKey: string; }>


setEnv(...)

setEnv(options: { graphUUID: string; env: string; secretKey: string; publicKey: string; }) => Promise<void>
ParamType
options{ graphUUID: string; env: string; secretKey: string; publicKey: string; }

encryptFnames(...)

encryptFnames(options: { graphUUID: string; filePaths: string[]; }) => Promise<{ value: string[]; }>
ParamType
options{ graphUUID: string; filePaths: string[]; }

Returns: Promise<{ value: string[]; }>


decryptFnames(...)

decryptFnames(options: { graphUUID: string; filePaths: string[]; }) => Promise<{ value: string[]; }>
ParamType
options{ graphUUID: string; filePaths: string[]; }

Returns: Promise<{ value: string[]; }>


getLocalFilesMeta(...)

getLocalFilesMeta(options: { graphUUID: string; basePath: string; filePaths: string[]; }) => Promise<{ result: any[]; }>
ParamType
options{ graphUUID: string; basePath: string; filePaths: string[]; }

Returns: Promise<{ result: any[]; }>


getLocalAllFilesMeta(...)

getLocalAllFilesMeta(options: { graphUUID: string; basePath: string; }) => Promise<{ result: any[]; }>
ParamType
options{ graphUUID: string; basePath: string; }

Returns: Promise<{ result: any[]; }>


deleteLocalFiles(...)

deleteLocalFiles(options: { graphUUID: string; basePath: string; filePaths: string[]; }) => Promise<void>
ParamType
options{ graphUUID: string; basePath: string; filePaths: string[]; }

fetchRemoteFiles(...)

fetchRemoteFiles(options: { graphUUID: string; basePath: string; filePaths: string[]; token: string; }) => Promise<void>
ParamType
options{ graphUUID: string; basePath: string; filePaths: string[]; token: string; }

updateLocalFiles(...)

updateLocalFiles(options: { graphUUID: string; basePath: string; filePaths: string[]; token: string; }) => Promise<void>
ParamType
options{ graphUUID: string; basePath: string; filePaths: string[]; token: string; }

updateLocalVersionFiles(...)

updateLocalVersionFiles(options: { graphUUID: string; basePath: string; filePaths: string[]; token: string; }) => Promise<void>
ParamType
options{ graphUUID: string; basePath: string; filePaths: string[]; token: string; }

deleteRemoteFiles(...)

deleteRemoteFiles(options: { graphUUID: string; filePaths: string[]; token: string; txid: number; }) => Promise<{ txid: number; }>
ParamType
options{ graphUUID: string; filePaths: string[]; token: string; txid: number; }

Returns: Promise<{ txid: number; }>


updateRemoteFiles(...)

updateRemoteFiles(options: { graphUUID: string; basePath: string; filePaths: string[]; token: string; txid: number; }) => Promise<{ txid: number; }>
ParamType
options{ graphUUID: string; basePath: string; filePaths: string[]; token: string; txid: number; }

Returns: Promise<{ txid: number; }>


encryptWithPassphrase(...)

encryptWithPassphrase(options: { passphrase: string; content: string; }) => Promise<{ data: string; }>
ParamType
options{ passphrase: string; content: string; }

Returns: Promise<{ data: string; }>


decryptWithPassphrase(...)

decryptWithPassphrase(options: { passphrase: string; content: string; }) => Promise<{ data: string; }>
ParamType
options{ passphrase: string; content: string; }

Returns: Promise<{ data: string; }>


cancelAllRequests(...)

cancelAllRequests(options: unknown) => Promise<void>
ParamType
optionsunknown

5.0.2

4 months ago

5.0.1

7 months ago

5.0.0

8 months ago

0.0.31

11 months ago

0.0.32

11 months ago

0.0.33

9 months ago

0.0.34

9 months ago

0.0.35

9 months ago

0.0.25

1 year ago

0.0.30

12 months ago

0.0.26

1 year ago

0.0.27

1 year ago

0.0.28

1 year ago

0.0.29

12 months ago

0.0.23

1 year ago

0.0.24

1 year ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago