Skip to content

Commit

Permalink
feat: add organization invite activation endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Redouane64 committed Mar 26, 2024
1 parent 20e61fc commit dfe219d
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/TopPassClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Authentication } from './services/Authentication';
import { BookingManager } from './services/BookingManager';
import { Categories } from './services/Categories';
import { Employees } from './services/Employees';
import { OrganizationInvites } from './services/OrganizationInvites';
import { Organizations } from './services/Organizations';
import { OrganizationsAuth } from './services/OrganizationsAuth';
import { Services } from './services/Services';
Expand All @@ -23,6 +24,7 @@ export class TopPassClient {
public readonly bookingManager: BookingManager;
public readonly categories: Categories;
public readonly employees: Employees;
public readonly organizationInvites: OrganizationInvites;
public readonly organizations: Organizations;
public readonly organizationsAuth: OrganizationsAuth;
public readonly services: Services;
Expand All @@ -47,6 +49,7 @@ export class TopPassClient {
this.bookingManager = new BookingManager(this.request);
this.categories = new Categories(this.request);
this.employees = new Employees(this.request);
this.organizationInvites = new OrganizationInvites(this.request);
this.organizations = new Organizations(this.request);
this.organizationsAuth = new OrganizationsAuth(this.request);
this.services = new Services(this.request);
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export { Authentication } from './services/Authentication';
export { BookingManager } from './services/BookingManager';
export { Categories } from './services/Categories';
export { Employees } from './services/Employees';
export { OrganizationInvites } from './services/OrganizationInvites';
export { Organizations } from './services/Organizations';
export { OrganizationsAuth } from './services/OrganizationsAuth';
export { Services } from './services/Services';
Expand Down
30 changes: 30 additions & 0 deletions src/services/OrganizationInvites.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CancelablePromise } from '../core/CancelablePromise';
import type { BaseHttpRequest } from '../core/BaseHttpRequest';

export class OrganizationInvites {

constructor(public readonly httpRequest: BaseHttpRequest) {}

/**
* Activate an organization invite
* @param token Invitation token
* @returns any Activation succeeded
* @throws ApiError
*/
public activateInvite(
token: string,
): CancelablePromise<any> {
return this.httpRequest.request({
method: 'POST',
url: '/organizations/invite',
query: {
'token': token,
},
});
}

}

0 comments on commit dfe219d

Please sign in to comment.