Interface KitsasConnectionInterface interface KitsasConnectionInterface { addBook ( bookshelfId : string ,
name : string ,
businessId ?: string ,
trial ?: boolean ,
backend ?: string ,
planId ?: number ) : Promise < AddBookResponse > ; addNotification ( bookId : string ,
type : NotificationType ,
title : LanguageString ,
text : LanguageString ,
category ?: string ) : Promise < void > ; deleteBook ( bookId : string ) : Promise < void > ; deleteNotification ( id : string ) : Promise < void > ; deleteNotifications ( bookId : string ,
category ?: string ) : Promise < void > ; findUserByEmail ( email : string ) : Promise < undefined | UserListItem > ; getAddonCallInfo ( callId : string ) : Promise < AddonCallInfo > ; getAddonInfo ( addonId : string ,
target : string ) : Promise < AddonInfoDto > ; getAddonList ( target : string ) : Promise < AddonListedDto [] > ; getAddonLog ( bookId : string ,
addonId ?: string ) : Promise < AddonLogDto [] > ; getBook ( bookId : string ) : Promise < KitsasBookInterface > ; getBookOpenCounts ( bookId : string ) : Promise < BookOpenCountItem [] > ; getBooks ( ) : Promise < BookListItem [] > ; getData ( bookId : string ,
key : string ) : Promise < object > ; getName ( ) : string ; getNotifications ( bookId : string ,
addonId ?: string ) : Promise < Notification [] > ; getOffice ( id : string ) : Promise < KitsasOfficeInterface > ; getOffices ( ) : Promise < OfficeInList [] > ; getOrganizationStatus ( businessId : string ) : Promise < OrganizationStatusResponse > ; getPermissions ( target : string ) : Promise < PermissionUser [] > ; getUserId ( ) : string ; listData ( ) : Promise < AddonDataListItem [] > ; listRights ( target ?: string ) : Promise < Right [] > ; replaceNotification ( bookId : string ,
type : NotificationType ,
title : LanguageString ,
text : LanguageString ,
category : string ) : Promise < void > ; saveData ( bookId : string ,
key : string ,
data : object ) : Promise < void > ; setPermissions ( permissions : PermissionPatch [] ) : Promise < void > ; writeAddonLog ( bookId : string ,
status : LogStatus ,
message : string ,
data ?: object ) : Promise < void > ; } Methodsadd Book add Book ( bookshelfId , name , businessId ? , trial ? , backend ? , planId ? ) : Promise < AddBookResponse > Parameters bookshelfId : string name : string Optional
businessId : string Optional
trial : boolean Optional
backend : string Optional
planId : number add Notification add Notification ( bookId , type , title , text , category ? ) : Promise < void > Returns Promise < void > delete Book delete Book ( bookId ) : Promise < void > Returns Promise < void > delete Notification delete Notification ( id ) : Promise < void > Returns Promise < void > delete Notifications delete Notifications ( bookId , category ? ) : Promise < void > Parameters bookId : string Optional
category : string Returns Promise < void > get Addon Info get Addon Info ( addonId , target ) : Promise < AddonInfoDto > Parameters addonId : string target : string get Addon Log get Addon Log ( bookId , addonId ? ) : Promise < AddonLogDto [] > Parameters bookId : string Optional
addonId : string get Data get Data ( bookId , key ) : Promise < object > Parameters bookId : string key : string Returns Promise < object > get Name get Name ( ) : string Returns string User's name
get Notifications get Notifications ( bookId , addonId ? ) : Promise < Notification [] > Parameters bookId : string Optional
addonId : string get User Id get User Id ( ) : string Returns string User's uuid
list Rights list Rights ( target ? ) : Promise < Right [] > Returns Promise < Right [] > List of rights
replace Notification replace Notification ( bookId , type , title , text , category ) : Promise < void > Returns Promise < void > save Data save Data ( bookId , key , data ) : Promise < void > Parameters bookId : string key : string data : object Returns Promise < void > set Permissions set Permissions ( permissions ) : Promise < void > Returns Promise < void > write Addon Log write Addon Log ( bookId , status , message , data ? ) : Promise < void > Parameters bookId : string status : LogStatus message : string Optional
data : object Returns Promise < void >
Connection to Kitsas Server
Use KitsasConnection.login to create a new connection
You can get KitsasOfficeInterface from getOffice and KitsasBookInterface from getBook