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