Skip to content

Commit

Permalink
fix: rename getIssuedClaims
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiter committed Apr 16, 2021
1 parent c210391 commit 6dde43b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/cacheServerClient/ICacheServerClient.ts
Expand Up @@ -44,7 +44,7 @@ export interface ICacheServerClient {
search: string;
}) => Promise<(IOrganization | IApp | IRole)[]>;
getRolesByOwner: ({ owner }: { owner: string }) => Promise<IRole[]>;
getIssuedClaims: ({
getClaimsByIssuer: ({
did,
isAccepted,
parentNamespace
Expand Down
2 changes: 1 addition & 1 deletion src/cacheServerClient/cacheServerClient.ts
Expand Up @@ -198,7 +198,7 @@ export class CacheServerClient implements ICacheServerClient {
return data;
}

async getIssuedClaims({
async getClaimsByIssuer({
did,
isAccepted,
parentNamespace
Expand Down
1 change: 1 addition & 0 deletions src/cacheServerClient/cacheServerClient.types.ts
Expand Up @@ -77,6 +77,7 @@ export interface Claim {
uid: string;
id: string;
requester: string;
subject: string;
claimIssuer: string[];
claimType: string;
token: string;
Expand Down
6 changes: 3 additions & 3 deletions src/iam.ts
Expand Up @@ -1455,10 +1455,10 @@ export class IAM extends IAMBase {
if (!this._cacheClient) {
throw new CacheClientNotProvidedError();
}
return this._cacheClient.getRequestedClaims({ did, isAccepted, parentNamespace });
return this._cacheClient.getClaimsByRequester({ did, isAccepted, parentNamespace });
}

async getIssuedClaims({
async getClaimsByIssuer({
did,
isAccepted,
parentNamespace
Expand All @@ -1470,7 +1470,7 @@ export class IAM extends IAMBase {
if (!this._cacheClient) {
throw new CacheClientNotProvidedError();
}
return this._cacheClient.getIssuedClaims({ did, isAccepted, parentNamespace });
return this._cacheClient.getClaimsByIssuer({ did, isAccepted, parentNamespace });
}

protected async nonOwnedNodesOf({
Expand Down

0 comments on commit 6dde43b

Please sign in to comment.