Add bulk reinvite apis (#374)

This commit is contained in:
Oscar Hinton 2021-05-12 11:17:18 +02:00 committed by GitHub
parent 8244971026
commit 1e2c56cacf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View File

@ -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,

View File

@ -0,0 +1,7 @@
export class UserBulkReinviteRequest {
ids: string[];
constructor(ids: string[]) {
this.ids = ids == null ? [] : ids;
}
}

View File

@ -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);