bamboohr.com 1.5.7 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# bamboohr.com [](https://www.npmjs.com/package/bamboohr.com)
|
|
2
2
|
|
|
3
|
-
An [BambooHR](https://bamboohr.com) API client. For a documentation on the API see the [BambooHR API](https://documentation.bamboohr.com/reference).
|
|
3
|
+
An [BambooHR](https://bamboohr.com) API client. For a documentation on the API see the [BambooHR API reference](https://documentation.bamboohr.com/reference).
|
|
4
4
|
|
|
5
5
|
### Installation
|
|
6
6
|
|
|
@@ -5,22 +5,18 @@ export declare class EmployeesAPI {
|
|
|
5
5
|
constructor(apiClient: APIClient);
|
|
6
6
|
/**
|
|
7
7
|
* Update an employee, based on employee id.
|
|
8
|
-
* @see https://documentation.bamboohr.com/reference#add-employee-1
|
|
9
8
|
*/
|
|
10
9
|
addEmployee(fields: Pick<Fields, 'firstName' | 'lastName'>): Promise<Employee>;
|
|
11
10
|
/**
|
|
12
11
|
* Get employee data by specifying a set of fields. This is suitable for getting basic employee information, including current values for fields that are part of a historical table, like job title, or compensation information.
|
|
13
|
-
* @see https://documentation.bamboohr.com/reference#get-employee
|
|
14
12
|
*/
|
|
15
13
|
getEmployee(id: number, fields?: Array<keyof Fields>): Promise<Employee>;
|
|
16
14
|
/**
|
|
17
15
|
* Gets employee directory.
|
|
18
|
-
* @see https://documentation.bamboohr.com/reference#get-employees-directory-1
|
|
19
16
|
*/
|
|
20
17
|
getEmployeeDirectory(): Promise<EmployeeDirectory>;
|
|
21
18
|
/**
|
|
22
19
|
* Update an employee, based on employee id.
|
|
23
|
-
* @see https://documentation.bamboohr.com/reference#update-employee
|
|
24
20
|
*/
|
|
25
21
|
updateEmployee(id: number, fields: WritableFields): Promise<Employee>;
|
|
26
22
|
}
|
package/dist/api/EmployeesAPI.js
CHANGED
|
@@ -17,7 +17,6 @@ class EmployeesAPI {
|
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Update an employee, based on employee id.
|
|
20
|
-
* @see https://documentation.bamboohr.com/reference#add-employee-1
|
|
21
20
|
*/
|
|
22
21
|
addEmployee(fields) {
|
|
23
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -28,7 +27,6 @@ class EmployeesAPI {
|
|
|
28
27
|
}
|
|
29
28
|
/**
|
|
30
29
|
* Get employee data by specifying a set of fields. This is suitable for getting basic employee information, including current values for fields that are part of a historical table, like job title, or compensation information.
|
|
31
|
-
* @see https://documentation.bamboohr.com/reference#get-employee
|
|
32
30
|
*/
|
|
33
31
|
getEmployee(id, fields) {
|
|
34
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -39,7 +37,6 @@ class EmployeesAPI {
|
|
|
39
37
|
}
|
|
40
38
|
/**
|
|
41
39
|
* Gets employee directory.
|
|
42
|
-
* @see https://documentation.bamboohr.com/reference#get-employees-directory-1
|
|
43
40
|
*/
|
|
44
41
|
getEmployeeDirectory() {
|
|
45
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -50,7 +47,6 @@ class EmployeesAPI {
|
|
|
50
47
|
}
|
|
51
48
|
/**
|
|
52
49
|
* Update an employee, based on employee id.
|
|
53
|
-
* @see https://documentation.bamboohr.com/reference#update-employee
|
|
54
50
|
*/
|
|
55
51
|
updateEmployee(id, fields) {
|
|
56
52
|
return __awaiter(this, void 0, void 0, function* () {
|
package/dist/api/TimeOffAPI.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export declare class TimeOffAPI {
|
|
|
5
5
|
constructor(apiClient: APIClient);
|
|
6
6
|
/**
|
|
7
7
|
* This endpoint gets a list of time off policies.
|
|
8
|
-
* @see https://documentation.bamboohr.com/reference#get-time-off-policies
|
|
9
8
|
*/
|
|
10
9
|
timeOffPolicies(): Promise<TimeOffPolicy[]>;
|
|
11
10
|
/**
|
|
@@ -18,7 +17,6 @@ export declare class TimeOffAPI {
|
|
|
18
17
|
* If there are zero notes for a request then the "notes" tag will be still included as an empty array.
|
|
19
18
|
*
|
|
20
19
|
* Newer time off requests may also include details for each day of the request in a element.
|
|
21
|
-
* @see https://documentation.bamboohr.com/reference#time-off-get-time-off-requests-1
|
|
22
20
|
*/
|
|
23
21
|
timeOffRequests(options: TimeOffRequestsOptions): Promise<TimeOffRequest[]>;
|
|
24
22
|
/**
|
|
@@ -27,12 +25,10 @@ export declare class TimeOffAPI {
|
|
|
27
25
|
* request. The default is to return the list of time off types the user has permissions on. This distinction is
|
|
28
26
|
* important, as employees can request time off for types that they don't have permission to view balances and
|
|
29
27
|
* requests for.
|
|
30
|
-
* @see https://documentation.bamboohr.com/reference#get-time-off-types
|
|
31
28
|
*/
|
|
32
29
|
timeOffTypes(mode?: 'request'): Promise<TimeOffTypes>;
|
|
33
30
|
/**
|
|
34
31
|
* This endpoint will return a list, sorted by date, of employees who will be out, and company holidays, for a period of time.
|
|
35
|
-
* @see https://documentation.bamboohr.com/reference#get-a-list-of-whos-out-1
|
|
36
32
|
*/
|
|
37
33
|
whosOut(start?: string, end?: string): Promise<OffEmployee[]>;
|
|
38
34
|
}
|
package/dist/api/TimeOffAPI.js
CHANGED
|
@@ -17,7 +17,6 @@ class TimeOffAPI {
|
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* This endpoint gets a list of time off policies.
|
|
20
|
-
* @see https://documentation.bamboohr.com/reference#get-time-off-policies
|
|
21
20
|
*/
|
|
22
21
|
timeOffPolicies() {
|
|
23
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -36,7 +35,6 @@ class TimeOffAPI {
|
|
|
36
35
|
* If there are zero notes for a request then the "notes" tag will be still included as an empty array.
|
|
37
36
|
*
|
|
38
37
|
* Newer time off requests may also include details for each day of the request in a element.
|
|
39
|
-
* @see https://documentation.bamboohr.com/reference#time-off-get-time-off-requests-1
|
|
40
38
|
*/
|
|
41
39
|
timeOffRequests(options) {
|
|
42
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -51,7 +49,6 @@ class TimeOffAPI {
|
|
|
51
49
|
* request. The default is to return the list of time off types the user has permissions on. This distinction is
|
|
52
50
|
* important, as employees can request time off for types that they don't have permission to view balances and
|
|
53
51
|
* requests for.
|
|
54
|
-
* @see https://documentation.bamboohr.com/reference#get-time-off-types
|
|
55
52
|
*/
|
|
56
53
|
timeOffTypes(mode) {
|
|
57
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -62,7 +59,6 @@ class TimeOffAPI {
|
|
|
62
59
|
}
|
|
63
60
|
/**
|
|
64
61
|
* This endpoint will return a list, sorted by date, of employees who will be out, and company holidays, for a period of time.
|
|
65
|
-
* @see https://documentation.bamboohr.com/reference#get-a-list-of-whos-out-1
|
|
66
62
|
*/
|
|
67
63
|
whosOut(start, end) {
|
|
68
64
|
return __awaiter(this, void 0, void 0, function* () {
|
package/package.json
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"@types/hapi__hawk": "8.0.7",
|
|
10
10
|
"@types/node": "~24",
|
|
11
11
|
"rimraf": "6.1.3",
|
|
12
|
-
"typedoc": "0.28.
|
|
13
|
-
"typescript": "6.0.
|
|
12
|
+
"typedoc": "0.28.19",
|
|
13
|
+
"typescript": "6.0.3"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">= 21"
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"dist": "yarn clean && yarn build",
|
|
38
38
|
"test": "exit 0"
|
|
39
39
|
},
|
|
40
|
-
"version": "1.
|
|
40
|
+
"version": "1.6.0"
|
|
41
41
|
}
|