Skip to content

Commit

Permalink
chore: rename symbol
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Waske <[email protected]>
  • Loading branch information
GHkrishna committed Dec 3, 2024
1 parent 444551d commit 078c43c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/modules/vc/W3cCredentialService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import type { Query, QueryOptions } from '../../storage/StorageService'
import { CredoError } from '../../error'
import { injectable } from '../../plugins'

import { RevokeCredentialOption } from './W3cCredentialServiceOptions'
import { RevokeCredentialOptions } from './W3cCredentialServiceOptions'
import { CREDENTIALS_CONTEXT_V1_URL } from './constants'
import { W3cJsonLdVerifiableCredential } from './data-integrity'
import { W3cJsonLdCredentialService } from './data-integrity/W3cJsonLdCredentialService'
Expand Down Expand Up @@ -197,7 +197,7 @@ export class W3cCredentialService {
*/
public async revokeCredential<Format extends ClaimFormat.JwtVp | ClaimFormat.LdpVp>(
agentContext: AgentContext,
options: RevokeCredentialOption
options: RevokeCredentialOptions
) {
const credentialRecod = await this.getCredentialRecordById(agentContext, options.credentialRecordId)
if (!credentialRecod) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,6 @@ export interface StoreCredentialOptions {
/**
* Interface for W3cCredentialsApi.revokeCredential. revoke a w3c credential.
*/
export interface RevokeCredentialOption {
export interface RevokeCredentialOptions {
credentialRecordId: string
}
4 changes: 2 additions & 2 deletions packages/core/src/modules/vc/W3cCredentialsApi.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {
RevokeCredentialOption,
RevokeCredentialOptions,
StoreCredentialOptions,
W3cCreatePresentationOptions,
W3cSignCredentialOptions,
Expand Down Expand Up @@ -49,7 +49,7 @@ export class W3cCredentialsApi {

// Revoke Credential Methods
public async revokeCredential(
options: RevokeCredentialOption
options: RevokeCredentialOptions
): Promise<W3cJwtVerifiablePresentation | W3cJsonLdVerifiablePresentation> {
return this.w3cCredentialService.revokeCredential(this.agentContext, options)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { AgentContext } from '../../../agent/context'
import type { Key } from '../../../crypto/Key'
import type { SingleOrArray } from '../../../utils'
import type {
RevokeCredentialOption,
RevokeCredentialOptions,
W3cJsonLdSignCredentialOptions,
W3cJsonLdSignPresentationOptions,
W3cJsonLdVerifyCredentialOptions,
Expand Down Expand Up @@ -334,7 +334,7 @@ export class W3cJsonLdCredentialService {

// temporarily disable no unused var
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async revokeCredential(_agentContext: AgentContext, _options: RevokeCredentialOption) {
public async revokeCredential(_agentContext: AgentContext, _options: RevokeCredentialOptions) {
// revoke jwt cred
throw new CredoError(`Revocation support not implemented for JsonLd`)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { AgentContext } from '../../../agent/context'
import type { VerifyJwsResult } from '../../../crypto/JwsService'
import type { DidPurpose, VerificationMethod } from '../../dids'
import type {
RevokeCredentialOption,
RevokeCredentialOptions,
W3cJwtSignCredentialOptions,
W3cJwtSignPresentationOptions,
W3cJwtVerifyCredentialOptions,
Expand Down Expand Up @@ -542,7 +542,7 @@ export class W3cJwtCredentialService {

// temporarily disable no unused var
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async revokeCredential(_agentContext: AgentContext, _options: RevokeCredentialOption) {
public async revokeCredential(_agentContext: AgentContext, _options: RevokeCredentialOptions) {
// revoke jwt cred
throw new CredoError(`Revocation support not implemented for jwtVc`)
}
Expand Down

0 comments on commit 078c43c

Please sign in to comment.