From 58e6603ab925aa1f4f41673452b83ef75b538bdc Mon Sep 17 00:00:00 2001 From: Timo Glastra Date: Wed, 15 Jun 2022 12:32:53 +0200 Subject: [PATCH] fix(credentials): use interface in module api (#856) Signed-off-by: Timo Glastra --- .../core/src/modules/credentials/formats/CredentialFormat.ts | 1 - .../modules/credentials/formats/indy/IndyCredentialFormat.ts | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/core/src/modules/credentials/formats/CredentialFormat.ts b/packages/core/src/modules/credentials/formats/CredentialFormat.ts index 1f8fe431e7..25e5dda8d0 100644 --- a/packages/core/src/modules/credentials/formats/CredentialFormat.ts +++ b/packages/core/src/modules/credentials/formats/CredentialFormat.ts @@ -34,6 +34,5 @@ export interface CredentialFormat { acceptOffer: unknown createRequest: unknown acceptRequest: unknown - createCredential: unknown } } diff --git a/packages/core/src/modules/credentials/formats/indy/IndyCredentialFormat.ts b/packages/core/src/modules/credentials/formats/indy/IndyCredentialFormat.ts index 47a545477f..8382889eaa 100644 --- a/packages/core/src/modules/credentials/formats/indy/IndyCredentialFormat.ts +++ b/packages/core/src/modules/credentials/formats/indy/IndyCredentialFormat.ts @@ -31,13 +31,13 @@ export interface IndyAcceptOfferFormat { */ export interface IndyOfferCredentialFormat { credentialDefinitionId: string - attributes: CredentialPreviewAttribute[] + attributes: CredentialPreviewAttributeOptions[] linkedAttachments?: LinkedAttachment[] } export interface IndyIssueCredentialFormat { credentialDefinitionId?: string - attributes?: CredentialPreviewAttribute[] + attributes?: CredentialPreviewAttributeOptions[] } export interface IndyCredentialFormat extends CredentialFormat { @@ -50,6 +50,5 @@ export interface IndyCredentialFormat extends CredentialFormat { acceptOffer: IndyAcceptOfferFormat createRequest: never // cannot start from createRequest acceptRequest: Record // empty object - createCredential: IndyIssueCredentialFormat } }