From 37bbfd21db2197c1af027a958aab9551a932aaca Mon Sep 17 00:00:00 2001 From: "A.G.J. Cate" Date: Wed, 1 May 2024 10:50:16 +0200 Subject: [PATCH] feat: expose contact manager methods for rest implementation --- .../src/agent/ContactManager.ts | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/packages/contact-manager/src/agent/ContactManager.ts b/packages/contact-manager/src/agent/ContactManager.ts index 7d1ad1148..7b5942525 100644 --- a/packages/contact-manager/src/agent/ContactManager.ts +++ b/packages/contact-manager/src/agent/ContactManager.ts @@ -48,6 +48,40 @@ import { UpdateRelationshipArgs, } from '../types/IContactManager' +// Exposing the methods here for any REST implementation +export const contactManagerMethods: Array = [ + 'cmGetContact', + 'cmGetContacts', + 'cmAddContact', + 'cmUpdateContact', + 'cmRemoveContact', + 'cmGetIdentity', + 'cmGetIdentities', + 'cmAddIdentity', + 'cmUpdateIdentity', + 'cmRemoveIdentity', + 'cmAddRelationship', + 'cmRemoveRelationship', + 'cmGetRelationship', + 'cmGetRelationships', + 'cmUpdateRelationship', + 'cmGetContactType', + 'cmGetContactTypes', + 'cmAddContactType', + 'cmUpdateContactType', + 'cmRemoveContactType', + 'cmGetElectronicAddress', + 'cmGetElectronicAddresses', + 'cmAddElectronicAddress', + 'cmUpdateElectronicAddress', + 'cmRemoveElectronicAddress', + 'cmGetPhysicalAddress', + 'cmGetPhysicalAddresses', + 'cmAddPhysicalAddress', + 'cmUpdatePhysicalAddress', + 'cmRemovePhysicalAddress', +] + /** * {@inheritDoc IContactManager} */