From 1146ac5b887436d55632c71c078c009f493268f4 Mon Sep 17 00:00:00 2001 From: Berend Sliedrecht <berend@animo.id> Date: Fri, 19 Jan 2024 13:42:53 +0100 Subject: [PATCH] feat(shared): added correct revocation and status list registration input Signed-off-by: Berend Sliedrecht <berend@animo.id> --- apps/shared/src/events/revocationEvents.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/apps/shared/src/events/revocationEvents.ts b/apps/shared/src/events/revocationEvents.ts index 4265a34..fc182bc 100644 --- a/apps/shared/src/events/revocationEvents.ts +++ b/apps/shared/src/events/revocationEvents.ts @@ -23,9 +23,13 @@ export class EventAnonCredsRevocationRevoke extends BaseEvent { } } -// TODO: input type available in the new AFJ export type EventAnonCredsRevocationRegisterRevocationRegistryDefinitionInput = - BaseEventInput; + BaseEventInput<{ + issuerDid: string; + tag: string; + credentialDefinitionId: string; + maximumCredentialNumber: number; + }>; export class EventAnonCredsRevocationRegisterRevocationRegistryDefinition extends BaseEvent<{ revocationRegistryDefinitionId: string; }> { @@ -49,9 +53,11 @@ export class EventAnonCredsRevocationRegisterRevocationRegistryDefinition extend } } -// TODO: input type available in the new AFJ export type EventAnonCredsRevocationRegisterRevocationStatusListInput = - BaseEventInput<{ revocationRegistryDefinitionId: string }>; + BaseEventInput<{ + revocationRegistryDefinitionId: string; + issuerDid: string; + }>; export class EventAnonCredsRevocationRegisterRevocationStatusList extends BaseEvent { public static token = 'anoncreds.revocation.registerRevocationStatusList'; -- GitLab