mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-30 02:52:16 +00:00
feat(console): set email verified on change, user create (#2847)
* feat: set email verified on change * user create
This commit is contained in:
@@ -899,32 +899,24 @@ export class ManagementService {
|
||||
return this.grpcService.mgmt.listHumanLinkedIDPs(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public getAction(
|
||||
id: string,
|
||||
): Promise<GetActionResponse.AsObject> {
|
||||
public getAction(id: string): Promise<GetActionResponse.AsObject> {
|
||||
const req = new GetActionRequest();
|
||||
req.setId(id);
|
||||
return this.grpcService.mgmt.getAction(req, null).then(resp => resp.toObject());
|
||||
return this.grpcService.mgmt.getAction(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public createAction(
|
||||
req: CreateActionRequest,
|
||||
): Promise<CreateActionResponse.AsObject> {
|
||||
return this.grpcService.mgmt.createAction(req, null).then(resp => resp.toObject());
|
||||
public createAction(req: CreateActionRequest): Promise<CreateActionResponse.AsObject> {
|
||||
return this.grpcService.mgmt.createAction(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public updateAction(
|
||||
req: UpdateActionRequest,
|
||||
): Promise<UpdateActionResponse.AsObject> {
|
||||
return this.grpcService.mgmt.updateAction(req, null).then(resp => resp.toObject());
|
||||
public updateAction(req: UpdateActionRequest): Promise<UpdateActionResponse.AsObject> {
|
||||
return this.grpcService.mgmt.updateAction(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public deleteAction(
|
||||
id: string,
|
||||
): Promise<DeleteActionResponse.AsObject> {
|
||||
public deleteAction(id: string): Promise<DeleteActionResponse.AsObject> {
|
||||
const req = new DeleteActionRequest();
|
||||
req.setId(id);
|
||||
return this.grpcService.mgmt.deleteAction(req, null).then(resp => resp.toObject());
|
||||
return this.grpcService.mgmt.deleteAction(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public listActions(
|
||||
@@ -949,23 +941,19 @@ export class ManagementService {
|
||||
metadata.setAsc(asc);
|
||||
}
|
||||
req.setQuery(metadata);
|
||||
return this.grpcService.mgmt.listActions(req, null).then(resp => resp.toObject());
|
||||
return this.grpcService.mgmt.listActions(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public getFlow(
|
||||
type: FlowType
|
||||
): Promise<GetFlowResponse.AsObject> {
|
||||
public getFlow(type: FlowType): Promise<GetFlowResponse.AsObject> {
|
||||
const req = new GetFlowRequest();
|
||||
req.setType(type);
|
||||
return this.grpcService.mgmt.getFlow(req, null).then(resp => resp.toObject());
|
||||
return this.grpcService.mgmt.getFlow(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public clearFlow(
|
||||
type: FlowType
|
||||
): Promise<ClearFlowResponse.AsObject> {
|
||||
public clearFlow(type: FlowType): Promise<ClearFlowResponse.AsObject> {
|
||||
const req = new ClearFlowRequest();
|
||||
req.setType(type);
|
||||
return this.grpcService.mgmt.clearFlow(req, null).then(resp => resp.toObject());
|
||||
return this.grpcService.mgmt.clearFlow(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public setTriggerActions(
|
||||
@@ -977,7 +965,7 @@ export class ManagementService {
|
||||
req.setActionIdsList(actionIdsList);
|
||||
req.setFlowType(type);
|
||||
req.setTriggerType(triggerType);
|
||||
return this.grpcService.mgmt.setTriggerActions(req, null).then(resp => resp.toObject());
|
||||
return this.grpcService.mgmt.setTriggerActions(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public getIAM(): Promise<GetIAMResponse.AsObject> {
|
||||
@@ -1468,10 +1456,13 @@ export class ManagementService {
|
||||
return this.grpcService.mgmt.getHumanEmail(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public updateHumanEmail(userId: string, email: string): Promise<UpdateHumanEmailResponse.AsObject> {
|
||||
public updateHumanEmail(userId: string, email: string, isVerified?: boolean): Promise<UpdateHumanEmailResponse.AsObject> {
|
||||
const req = new UpdateHumanEmailRequest();
|
||||
req.setUserId(userId);
|
||||
req.setEmail(email);
|
||||
if (isVerified) {
|
||||
req.setIsEmailVerified(isVerified);
|
||||
}
|
||||
return this.grpcService.mgmt.updateHumanEmail(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user