Skip to content

Commit

Permalink
feat: expose contact manager methods for rest implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Brummos committed May 1, 2024
1 parent dc3fb0d commit 37bbfd2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions packages/contact-manager/src/agent/ContactManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,40 @@ import {
UpdateRelationshipArgs,
} from '../types/IContactManager'

// Exposing the methods here for any REST implementation
export const contactManagerMethods: Array<string> = [
'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}
*/
Expand Down

0 comments on commit 37bbfd2

Please sign in to comment.