1
1
import Scopes from "./constants/Scopes" ;
2
2
import OAuth2 , { AuthorizationResponse } from "./libs/OAuth2" ;
3
+ import BusinessActivities from "./resources/BusinessActivities" ;
3
4
import Contacts from "./resources/Contacts" ;
4
5
import ContactTypes from "./resources/ContactTypes" ;
5
6
import ContactSectors from "./resources/ContactSectors" ;
@@ -8,12 +9,16 @@ import ContactRelations from "./resources/ContactRelations";
8
9
import Expenses from "./resources/Expenses" ;
9
10
import Bills from "./resources/Bills" ;
10
11
import Orders from "./resources/Orders" ;
12
+ import Projects from "./resources/Projects" ;
13
+ import ProjectStatuses from "./resources/ProjectStatuses" ;
14
+ import ProjectTypes from "./resources/ProjectTypes" ;
11
15
import request from "request-promise-native" ;
12
16
import { CookieJar } from "request" ;
13
17
import Timetrackings from "./resources/Timetrackings" ;
14
18
import TimetrackingStatuses from "./resources/TimetrackingStatuses" ;
15
19
16
20
export * from "./interfaces/BillsStatic" ;
21
+ export * from "./interfaces/BusinessActivitiesStatic" ;
17
22
export * from "./interfaces/CalendarStatic" ;
18
23
export * from "./interfaces/ContactGroupsStatic" ;
19
24
export * from "./interfaces/ContactRelationsStatic" ;
@@ -23,6 +28,9 @@ export * from "./interfaces/ContactsStatic";
23
28
export * from "./interfaces/ExpensesStatic" ;
24
29
export * from "./interfaces/NotesStatic" ;
25
30
export * from "./interfaces/OrdersStatic" ;
31
+ export * from "./interfaces/ProjectsStatic" ;
32
+ export * from "./interfaces/ProjectStatusesStatic" ;
33
+ export * from "./interfaces/ProjectTypesStatic" ;
26
34
export * from "./interfaces/SalesOrderManagementStatic" ;
27
35
export * from "./interfaces/TimetrackingsStatic" ;
28
36
export * from "./interfaces/TimetrackingStatusesStatic" ;
@@ -37,6 +45,9 @@ export default class Bexio {
37
45
private bexioAuth : OAuth2 ;
38
46
39
47
// Resources
48
+ // Business Activities
49
+ public businessActivities : BusinessActivities ;
50
+
40
51
// Contacts
41
52
public contacts : Contacts ;
42
53
public contactTypes : ContactTypes ;
@@ -49,6 +60,11 @@ export default class Bexio {
49
60
public expenses : Expenses ;
50
61
public bills : Bills ;
51
62
63
+ // Projects
64
+ public projects : Projects ;
65
+ public projectStatuses : ProjectStatuses ;
66
+ public projectTypes : ProjectTypes ;
67
+
52
68
// Timesheets
53
69
public timetrackings : Timetrackings ;
54
70
public timetrackingStatuses : TimetrackingStatuses ;
@@ -75,12 +91,16 @@ export default class Bexio {
75
91
) ;
76
92
77
93
// Init resources
94
+ this . businessActivities = new BusinessActivities ( this . bexioAuth ) ;
78
95
this . contacts = new Contacts ( this . bexioAuth ) ;
79
96
this . contactTypes = new ContactTypes ( this . bexioAuth ) ;
80
97
this . contactSectors = new ContactSectors ( this . bexioAuth ) ;
81
98
this . contactGroups = new ContactGroups ( this . bexioAuth ) ;
82
99
this . contactRelations = new ContactRelations ( this . bexioAuth ) ;
83
100
this . orders = new Orders ( this . bexioAuth ) ;
101
+ this . projects = new Projects ( this . bexioAuth ) ;
102
+ this . projectStatuses = new ProjectStatuses ( this . bexioAuth ) ;
103
+ this . projectTypes = new ProjectTypes ( this . bexioAuth ) ;
84
104
this . expenses = new Expenses ( this . bexioAuth ) ;
85
105
this . bills = new Bills ( this . bexioAuth ) ;
86
106
this . timetrackings = new Timetrackings ( this . bexioAuth ) ;
0 commit comments