Skip to content

Commit

Permalink
feat(did): renamed readServices to getServices for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Passerino committed Mar 1, 2022
1 parent 262f330 commit 33faaa4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
42 changes: 21 additions & 21 deletions docs/api/classes/DidRegistry.md
Expand Up @@ -19,9 +19,9 @@
- [getDidDelegates](DidRegistry.md#getdiddelegates)
- [getDidDocument](DidRegistry.md#getdiddocument)
- [getDidPublicKeys](DidRegistry.md#getdidpublickeys)
- [getServices](DidRegistry.md#getservices)
- [init](DidRegistry.md#init)
- [issuePublicClaim](DidRegistry.md#issuepublicclaim)
- [readServices](DidRegistry.md#readservices)
- [revokeDidDocument](DidRegistry.md#revokediddocument)
- [updateDocument](DidRegistry.md#updatedocument)
- [updateSignedDidDelegate](DidRegistry.md#updatesigneddiddelegate)
Expand Down Expand Up @@ -175,6 +175,26 @@ list of public keys

___

### getServices

**getServices**(`__namedParameters?`): `Promise`<`IServiceEndpoint` & [`ClaimData`](../interfaces/ClaimData.md)[]\>

**`description`** gets list of services endpoints from User's DID document

#### Parameters

| Name | Type |
| :------ | :------ |
| `__namedParameters` | `undefined` \| { `did?`: `string` } |

#### Returns

`Promise`<`IServiceEndpoint` & [`ClaimData`](../interfaces/ClaimData.md)[]\>

list of claims

___

### init

**init**(): `Promise`<`void`\>
Expand Down Expand Up @@ -207,26 +227,6 @@ return issued token

___

### readServices

**readServices**(`__namedParameters?`): `Promise`<`IServiceEndpoint` & [`ClaimData`](../interfaces/ClaimData.md)[]\>

**`description`** gets list of services endpoints from User's DID document

#### Parameters

| Name | Type |
| :------ | :------ |
| `__namedParameters` | `undefined` \| { `did?`: `string` } |

#### Returns

`Promise`<`IServiceEndpoint` & [`ClaimData`](../interfaces/ClaimData.md)[]\>

list of claims

___

### revokeDidDocument

**revokeDidDocument**(): `Promise`<`boolean`\>
Expand Down
2 changes: 1 addition & 1 deletion src/modules/didRegistry/didRegistry.service.ts
Expand Up @@ -155,7 +155,7 @@ export class DidRegistry {
* @description gets list of services endpoints from User's DID document
* @returns list of claims
*/
async readServices({
async getServices({
did = this._signerService.did,
}: { did?: string } | undefined = {}) {
const { service } = (await this.getDidDocument({ did })) || {};
Expand Down

0 comments on commit 33faaa4

Please sign in to comment.