Add bulk reinvite apis (#374)
This commit is contained in:
parent
8244971026
commit
1e2c56cacf
|
@ -67,6 +67,7 @@ import { UpdateTwoFactorEmailRequest } from '../models/request/updateTwoFactorEm
|
|||
import { UpdateTwoFactorWebAuthnDeleteRequest } from '../models/request/updateTwoFactorWebAuthnDeleteRequest';
|
||||
import { UpdateTwoFactorWebAuthnRequest } from '../models/request/updateTwoFactorWebAuthnRequest';
|
||||
import { UpdateTwoFactorYubioOtpRequest } from '../models/request/updateTwoFactorYubioOtpRequest';
|
||||
import { UserBulkReinviteRequest } from '../models/request/userBulkReinviteRequest';
|
||||
import { VerifyBankRequest } from '../models/request/verifyBankRequest';
|
||||
import { VerifyDeleteRecoverRequest } from '../models/request/verifyDeleteRecoverRequest';
|
||||
import { VerifyEmailRequest } from '../models/request/verifyEmailRequest';
|
||||
|
@ -272,6 +273,7 @@ export abstract class ApiService {
|
|||
getOrganizationUsers: (organizationId: string) => Promise<ListResponse<OrganizationUserUserDetailsResponse>>;
|
||||
postOrganizationUserInvite: (organizationId: string, request: OrganizationUserInviteRequest) => Promise<any>;
|
||||
postOrganizationUserReinvite: (organizationId: string, id: string) => Promise<any>;
|
||||
postManyOrganizationUserReinvite: (organizationId: string, request: UserBulkReinviteRequest) => Promise<any>;
|
||||
postOrganizationUserAccept: (organizationId: string, id: string,
|
||||
request: OrganizationUserAcceptRequest) => Promise<any>;
|
||||
postOrganizationUserConfirm: (organizationId: string, id: string,
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
export class UserBulkReinviteRequest {
|
||||
ids: string[];
|
||||
|
||||
constructor(ids: string[]) {
|
||||
this.ids = ids == null ? [] : ids;
|
||||
}
|
||||
}
|
|
@ -71,6 +71,7 @@ import { UpdateTwoFactorEmailRequest } from '../models/request/updateTwoFactorEm
|
|||
import { UpdateTwoFactorWebAuthnDeleteRequest } from '../models/request/updateTwoFactorWebAuthnDeleteRequest';
|
||||
import { UpdateTwoFactorWebAuthnRequest } from '../models/request/updateTwoFactorWebAuthnRequest';
|
||||
import { UpdateTwoFactorYubioOtpRequest } from '../models/request/updateTwoFactorYubioOtpRequest';
|
||||
import { UserBulkReinviteRequest } from '../models/request/userBulkReinviteRequest';
|
||||
import { VerifyBankRequest } from '../models/request/verifyBankRequest';
|
||||
import { VerifyDeleteRecoverRequest } from '../models/request/verifyDeleteRecoverRequest';
|
||||
import { VerifyEmailRequest } from '../models/request/verifyEmailRequest';
|
||||
|
@ -801,6 +802,10 @@ export class ApiService implements ApiServiceAbstraction {
|
|||
return this.send('POST', '/organizations/' + organizationId + '/users/' + id + '/reinvite', null, true, false);
|
||||
}
|
||||
|
||||
postManyOrganizationUserReinvite(organizationId: string, request: UserBulkReinviteRequest): Promise<any> {
|
||||
return this.send('POST', '/organizations/' + organizationId + '/users/reinvite', request, true, false);
|
||||
}
|
||||
|
||||
postOrganizationUserAccept(organizationId: string, id: string,
|
||||
request: OrganizationUserAcceptRequest): Promise<any> {
|
||||
return this.send('POST', '/organizations/' + organizationId + '/users/' + id + '/accept', request, true, false);
|
||||
|
|
Loading…
Reference in New Issue