diff --git a/src/abstractions/api.service.ts b/src/abstractions/api.service.ts index ee4a444b05..46efe295cb 100644 --- a/src/abstractions/api.service.ts +++ b/src/abstractions/api.service.ts @@ -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>; postOrganizationUserInvite: (organizationId: string, request: OrganizationUserInviteRequest) => Promise; postOrganizationUserReinvite: (organizationId: string, id: string) => Promise; + postManyOrganizationUserReinvite: (organizationId: string, request: UserBulkReinviteRequest) => Promise; postOrganizationUserAccept: (organizationId: string, id: string, request: OrganizationUserAcceptRequest) => Promise; postOrganizationUserConfirm: (organizationId: string, id: string, diff --git a/src/models/request/userBulkReinviteRequest.ts b/src/models/request/userBulkReinviteRequest.ts new file mode 100644 index 0000000000..7735aae285 --- /dev/null +++ b/src/models/request/userBulkReinviteRequest.ts @@ -0,0 +1,7 @@ +export class UserBulkReinviteRequest { + ids: string[]; + + constructor(ids: string[]) { + this.ids = ids == null ? [] : ids; + } +} diff --git a/src/services/api.service.ts b/src/services/api.service.ts index 81eb3f9076..9a046ecb64 100644 --- a/src/services/api.service.ts +++ b/src/services/api.service.ts @@ -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 { + return this.send('POST', '/organizations/' + organizationId + '/users/reinvite', request, true, false); + } + postOrganizationUserAccept(organizationId: string, id: string, request: OrganizationUserAcceptRequest): Promise { return this.send('POST', '/organizations/' + organizationId + '/users/' + id + '/accept', request, true, false);