|
@@ -30,6 +30,7 @@ export declare class BankClient {
|
|
|
retrievePrivate(peerAddr: string, topic: string): Promise<string>;
|
|
retrievePrivate(peerAddr: string, topic: string): Promise<string>;
|
|
|
subscribePrivate(peerAddr: string, topic: string, connectCallback: () => void, messageCallback: (data: any) => void): Promise<void>;
|
|
subscribePrivate(peerAddr: string, topic: string, connectCallback: () => void, messageCallback: (data: any) => void): Promise<void>;
|
|
|
getOrCreateContact(peerId: string, addressType: string, addressValue: string): Promise<ContactItem>;
|
|
getOrCreateContact(peerId: string, addressType: string, addressValue: string): Promise<ContactItem>;
|
|
|
|
|
+ createContact(peerId: string, addressType?: string, addressValue?: string): Promise<ContactItem>;
|
|
|
getAllContacts(peerId: string): Promise<ContactItem[]>;
|
|
getAllContacts(peerId: string): Promise<ContactItem[]>;
|
|
|
getContactBook(peerId: string): Promise<ContactBook>;
|
|
getContactBook(peerId: string): Promise<ContactBook>;
|
|
|
updateContact(peerId: string, contactId: string, newProperties: any): Promise<ContactItem>;
|
|
updateContact(peerId: string, contactId: string, newProperties: any): Promise<ContactItem>;
|