platform/data/data-protocol
Interfaces
Section titled “Interfaces”DataRequest
Section titled “DataRequest”Defined in: app/src/platform/data/data-protocol.ts:65
A call from the browser process.
Properties
Section titled “Properties”
readonlyid:number
Defined in: app/src/platform/data/data-protocol.ts:66
method
Section titled “method”
readonlymethod:"history"|"bookmarks"|"addVisit"|"setTitle"|"deleteHistory"|"clearHistory"|"importHistory"|"bookmarkList"|"bookmarkUrls"|"addBookmark"|"updateBookmark"|"removeBookmark"|"removeBookmarkUrl"|"importBookmarks"|"addDownload"|"updateDownload"|"downloads"|"interruptDownloads"|"removeDownloads"|"findBrowsers"|"importBrowser"
Defined in: app/src/platform/data/data-protocol.ts:67
params
Section titled “params”
readonlyparams: readonlyunknown[]
Defined in: app/src/platform/data/data-protocol.ts:68
DataResponse
Section titled “DataResponse”Defined in: app/src/platform/data/data-protocol.ts:72
The answer of the data service.
Properties
Section titled “Properties”error?
Section titled “error?”
readonlyoptionalerror?:string
Defined in: app/src/platform/data/data-protocol.ts:75
readonlyid:number
Defined in: app/src/platform/data/data-protocol.ts:73
result?
Section titled “result?”
readonlyoptionalresult?:unknown
Defined in: app/src/platform/data/data-protocol.ts:74
Type Aliases
Section titled “Type Aliases”DataApi
Section titled “DataApi”DataApi =
DatabaseApi&ImportApi
Defined in: app/src/platform/data/data-protocol.ts:32
The calls that the data service answers.
DatabaseApi
Section titled “DatabaseApi”DatabaseApi =
Pick<ProfileDatabase,"addVisit"|"setTitle"|"history"|"deleteHistory"|"clearHistory"|"importHistory"|"bookmarks"|"bookmarkList"|"bookmarkUrls"|"addBookmark"|"updateBookmark"|"removeBookmark"|"removeBookmarkUrl"|"importBookmarks"|"addDownload"|"updateDownload"|"downloads"|"interruptDownloads"|"removeDownloads">
Defined in: app/src/platform/data/data-protocol.ts:5
The calls that the profile database answers.
DataMethod
Section titled “DataMethod”DataMethod = keyof
DataApi
Defined in: app/src/platform/data/data-protocol.ts:35
Names of the calls.
ImportApi
Section titled “ImportApi”ImportApi =
Pick<BrowserImporter,"findBrowsers"|"importBrowser">
Defined in: app/src/platform/data/data-protocol.ts:29
The calls that the import from other browsers answers.
Functions
Section titled “Functions”answer()
Section titled “answer()”answer(
db,importer,request):DataResponse
Defined in: app/src/platform/data/data-protocol.ts:85
Answers a call with the database or the import. Unknown methods and failures become errors in the answer, so the service never stops on a bad call.
Parameters
Section titled “Parameters”The database.
importer
Section titled “importer”The import from other browsers.
request
Section titled “request”The call.