Skip to content

Commit a25a4cf

Browse files
committed
feat: character verification support
1 parent 7177780 commit a25a4cf

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export interface CharacterVerification {
22
ID: number;
3+
Bio: string;
34
VerificationToken: string;
45
VerificationTokenPass: boolean;
56
}

src/xivapi.service.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,17 @@ export class XivapiService {
8282
*/
8383
public getCharacter(lodestoneId: number | string, options?: XivapiCharacterOptions,
8484
details?: 'Friends' | 'Achievements' | 'Gearsets' | 'Record' | 'FreeCompany'): Observable<CharacterResponse> {
85-
return this.request<any>(`/Character/${lodestoneId}${details ? '/' + details : ''}`, options);
85+
return this.request<CharacterResponse>(`/Character/${lodestoneId}${details ? '/' + details : ''}`, options);
86+
}
87+
88+
/**
89+
* Gets character verification state using /character/<id>/verification endpoint
90+
*
91+
* @param lodestoneId LodestoneID of the character to verify.
92+
* @param options Options of the request.
93+
*/
94+
public getCharacterVerification(lodestoneId: number | string, options?: XivapiCharacterOptions): Observable<CharacterVerification> {
95+
return this.request<CharacterVerification>(`/Character/${lodestoneId}/verification`, options);
8696
}
8797

8898
/**

0 commit comments

Comments
 (0)