Skip to content

Commit

Permalink
chore: add UserIdentifierDto (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
iagormoraes authored Nov 6, 2023
1 parent 152cc49 commit b3f4025
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ export enum CredentialVerificationMethodEnum {
SELF_ATTESTED = 'self_attested',
PROVE_PREFILL = 'prove_prefill'
}

export enum UserIdentifierTypeEnum {
EMAIL = 'EMAIL',
PHONE = 'PHONE'
}
13 changes: 12 additions & 1 deletion types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { InputFormatEnum, MandatoryEnum } from './enums';
import { InputFormatEnum, MandatoryEnum, UserIdentifierTypeEnum } from './enums';

/****************************************
* DATA RESOLVER TYPES *
Expand Down Expand Up @@ -383,6 +383,17 @@ export interface OfferDto {
presentationRequest: PresentationRequestDto;
}

export interface UserIdentifierDto {
uuid: string
createdAt: string;
updatedAt: string;
type: UserIdentifierTypeEnum;
value: string;
userUuid: string;
isIssued: boolean;
isVerified: boolean;
}

/******************************************
* SCHEMA RESOLVER TYPES *
* TYPES FROM THE SCHEMA RESOLVER SERVICE *
Expand Down

0 comments on commit b3f4025

Please sign in to comment.