Shared:Api:People: change types
This commit is contained in:
parent
9377c779b8
commit
8dac5fbb9f
@ -91,7 +91,10 @@ export async function getUser(userName = null, headers = null) {
|
||||
return user;
|
||||
}
|
||||
|
||||
export async function getUserByEmail(userEmail: string, confirmKey = null) {
|
||||
export async function getUserByEmail(
|
||||
userEmail: string,
|
||||
confirmKey: string | null = null,
|
||||
) {
|
||||
const options = {
|
||||
method: "get",
|
||||
url: `/people/email?email=${userEmail}`,
|
||||
@ -129,7 +132,7 @@ export function getUserPhoto(userId) {
|
||||
});
|
||||
}
|
||||
|
||||
export function createUser(data, confirmKey = null) {
|
||||
export function createUser(data, confirmKey: string | null = null) {
|
||||
const options = {
|
||||
method: "post",
|
||||
url: "/people",
|
||||
|
@ -213,7 +213,7 @@ export function sendDeletePortalEmail() {
|
||||
});
|
||||
}
|
||||
|
||||
export function suspendPortal(confirmKey = null) {
|
||||
export function suspendPortal(confirmKey: string | null = null) {
|
||||
const options = {
|
||||
method: "put",
|
||||
url: "/portal/suspend",
|
||||
@ -224,7 +224,7 @@ export function suspendPortal(confirmKey = null) {
|
||||
return request(options);
|
||||
}
|
||||
|
||||
export function continuePortal(confirmKey = null) {
|
||||
export function continuePortal(confirmKey: string | null = null) {
|
||||
const options = {
|
||||
method: "put",
|
||||
url: "/portal/continue",
|
||||
@ -235,7 +235,7 @@ export function continuePortal(confirmKey = null) {
|
||||
return request(options);
|
||||
}
|
||||
|
||||
export function deletePortal(confirmKey = null) {
|
||||
export function deletePortal(confirmKey: string | null = null) {
|
||||
const options = {
|
||||
method: "delete",
|
||||
url: "/portal/delete",
|
||||
|
@ -77,7 +77,9 @@ export async function getPortalCultures() {
|
||||
return res;
|
||||
}
|
||||
|
||||
export async function getPortalPasswordSettings(confirmKey = null) {
|
||||
export async function getPortalPasswordSettings(
|
||||
confirmKey: string | null = null,
|
||||
) {
|
||||
const options: AxiosRequestConfig = {
|
||||
method: "get",
|
||||
url: "/settings/security/password",
|
||||
@ -541,7 +543,7 @@ export function dataReassignmentTerminate(userId) {
|
||||
});
|
||||
}
|
||||
|
||||
export function ownerChange(ownerId, confirmKey = null) {
|
||||
export function ownerChange(ownerId: string, confirmKey: string | null = null) {
|
||||
const data = { ownerId };
|
||||
|
||||
const options = {
|
||||
|
Loading…
Reference in New Issue
Block a user