Skip to content

Commit

Permalink
Merge pull request #15 from zazuko/expose-users
Browse files Browse the repository at this point in the history
expose users types and API
  • Loading branch information
mathewmeconry authored Oct 15, 2019
2 parents 243ebf1 + 6770533 commit 4973ce8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import request from "request-promise-native";
import { CookieJar } from "request";
import Timetrackings from "./resources/Timetrackings";
import TimetrackingStatuses from "./resources/TimetrackingStatuses";
import Users from "./resources/Users";

export * from "./interfaces/BillsStatic";
export * from "./interfaces/BusinessActivitiesStatic";
Expand All @@ -34,6 +35,7 @@ export * from "./interfaces/ProjectTypesStatic";
export * from "./interfaces/SalesOrderManagementStatic";
export * from "./interfaces/TimetrackingsStatic";
export * from "./interfaces/TimetrackingStatusesStatic";
export * from "./interfaces/UsersStatic";
export { Scopes };

export default class Bexio {
Expand Down Expand Up @@ -69,6 +71,9 @@ export default class Bexio {
public timetrackings: Timetrackings;
public timetrackingStatuses: TimetrackingStatuses;

// Users
public users: Users;

constructor(
clientId: string,
clientSecret: string,
Expand Down Expand Up @@ -105,6 +110,7 @@ export default class Bexio {
this.bills = new Bills(this.bexioAuth);
this.timetrackings = new Timetrackings(this.bexioAuth);
this.timetrackingStatuses = new TimetrackingStatuses(this.bexioAuth);
this.users = new Users(this.bexioAuth);
}

/**
Expand Down

0 comments on commit 4973ce8

Please sign in to comment.