TuitioUserInfo type rename
parent
425a6ccfc0
commit
f38c2d9940
|
@ -6,7 +6,7 @@ import { storageKeys } from "./constants";
|
|||
import { getUrlTemplates } from "./config";
|
||||
import { isValidURL } from "./utils/validations";
|
||||
import type { UrlTemplates } from "./config";
|
||||
import type { TuitioLoginResponse, TuitioLogoutResponse, TuitioUserInfoResponse } from "./types";
|
||||
import type { TuitioLoginResponse, TuitioLogoutResponse, TuitioUserInfo } from "./types";
|
||||
|
||||
const { setItem, getItem, removeItem } = localStorage;
|
||||
|
||||
|
@ -50,7 +50,7 @@ class TuitioClient {
|
|||
return response;
|
||||
}
|
||||
|
||||
async getUserInfo(): Promise<TuitioUserInfoResponse> {
|
||||
async getUserInfo(): Promise<TuitioUserInfo> {
|
||||
const url = this.urlTemplates.userInfo;
|
||||
const response = await request(url, "get");
|
||||
return response;
|
||||
|
|
|
@ -9,7 +9,7 @@ export type TuitioUserContactOption = {
|
|||
contactValue: string;
|
||||
};
|
||||
|
||||
export type TuitioUserInfoResponse = {
|
||||
export type TuitioUserInfo = {
|
||||
userId: number;
|
||||
userName: string;
|
||||
firstName: string;
|
||||
|
|
Loading…
Reference in New Issue