bamboohr-cli 1.0.3 → 1.0.5
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/dist/commands/employee/directory.d.ts.map +1 -1
- package/dist/commands/employee/directory.js +4 -9
- package/dist/commands/employee/directory.js.map +1 -1
- package/dist/commands/employee/get.d.ts.map +1 -1
- package/dist/commands/employee/get.js +8 -13
- package/dist/commands/employee/get.js.map +1 -1
- package/dist/commands/employee/goals.d.ts.map +1 -1
- package/dist/commands/employee/goals.js +7 -12
- package/dist/commands/employee/goals.js.map +1 -1
- package/dist/commands/employee/photo.d.ts.map +1 -1
- package/dist/commands/employee/photo.js +8 -13
- package/dist/commands/employee/photo.js.map +1 -1
- package/dist/commands/employee/search.d.ts.map +1 -1
- package/dist/commands/employee/search.js +36 -41
- package/dist/commands/employee/search.js.map +1 -1
- package/dist/commands/file/get.d.ts.map +1 -1
- package/dist/commands/file/get.js +5 -10
- package/dist/commands/file/get.js.map +1 -1
- package/dist/commands/file/list.d.ts.map +1 -1
- package/dist/commands/file/list.js +4 -9
- package/dist/commands/file/list.js.map +1 -1
- package/dist/commands/meta/departments.d.ts.map +1 -1
- package/dist/commands/meta/departments.js +5 -10
- package/dist/commands/meta/departments.js.map +1 -1
- package/dist/commands/meta/divisions.d.ts.map +1 -1
- package/dist/commands/meta/divisions.js +5 -10
- package/dist/commands/meta/divisions.js.map +1 -1
- package/dist/commands/meta/fields.d.ts.map +1 -1
- package/dist/commands/meta/fields.js +4 -9
- package/dist/commands/meta/fields.js.map +1 -1
- package/dist/commands/meta/locations.d.ts.map +1 -1
- package/dist/commands/meta/locations.js +5 -10
- package/dist/commands/meta/locations.js.map +1 -1
- package/dist/commands/timeoff/balance.d.ts.map +1 -1
- package/dist/commands/timeoff/balance.js +5 -10
- package/dist/commands/timeoff/balance.js.map +1 -1
- package/dist/commands/timeoff/create.d.ts.map +1 -1
- package/dist/commands/timeoff/create.js +14 -19
- package/dist/commands/timeoff/create.js.map +1 -1
- package/dist/commands/timeoff/requests.d.ts.map +1 -1
- package/dist/commands/timeoff/requests.js +19 -24
- package/dist/commands/timeoff/requests.js.map +1 -1
- package/dist/commands/timeoff/types.d.ts.map +1 -1
- package/dist/commands/timeoff/types.js +6 -11
- package/dist/commands/timeoff/types.js.map +1 -1
- package/dist/commands/timeoff/update-status.d.ts.map +1 -1
- package/dist/commands/timeoff/update-status.js +8 -13
- package/dist/commands/timeoff/update-status.js.map +1 -1
- package/dist/commands/timeoff/whos-out.d.ts.map +1 -1
- package/dist/commands/timeoff/whos-out.js +7 -12
- package/dist/commands/timeoff/whos-out.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/utils/client.js +1 -1
- package/dist/utils/client.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["../../../src/commands/employee/directory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["../../../src/commands/employee/directory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAU/C"}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
import { getDirectory } from '../../utils/cached.js';
|
|
2
2
|
import { getClient } from '../../utils/client.js';
|
|
3
|
-
import { output
|
|
3
|
+
import { output } from '../../utils/output.js';
|
|
4
4
|
export function directory(parent) {
|
|
5
5
|
parent
|
|
6
6
|
.command('directory')
|
|
7
7
|
.description('Get the company employee directory')
|
|
8
8
|
.addHelpText('after', '\nExamples:\n $ bamboohr employee directory')
|
|
9
9
|
.action(async () => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
output(result);
|
|
14
|
-
}
|
|
15
|
-
catch (err) {
|
|
16
|
-
handleError(err);
|
|
17
|
-
}
|
|
10
|
+
const client = getClient();
|
|
11
|
+
const result = await getDirectory(client);
|
|
12
|
+
output(result);
|
|
18
13
|
});
|
|
19
14
|
}
|
|
20
15
|
//# sourceMappingURL=directory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory.js","sourceRoot":"","sources":["../../../src/commands/employee/directory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"directory.js","sourceRoot":"","sources":["../../../src/commands/employee/directory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,SAAS,CAAC,MAAe;IACvC,MAAM;SACH,OAAO,CAAC,WAAW,CAAC;SACpB,WAAW,CAAC,oCAAoC,CAAC;SACjD,WAAW,CAAC,OAAO,EAAE,8CAA8C,CAAC;SACpE,MAAM,CAAC,KAAK,IAAI,EAAE;QACjB,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC,CAAC;QAC1C,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/commands/employee/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,GAAG,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/commands/employee/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,GAAG,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAwBzC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getClient } from '../../utils/client.js';
|
|
2
|
-
import { output
|
|
2
|
+
import { output } from '../../utils/output.js';
|
|
3
3
|
export function get(parent) {
|
|
4
4
|
parent
|
|
5
5
|
.command('get [id]')
|
|
@@ -13,18 +13,13 @@ Examples:
|
|
|
13
13
|
$ bamboohr employee get 123 --fields "firstName,lastName,department,hireDate"
|
|
14
14
|
$ bamboohr employee get 123 --include-future`)
|
|
15
15
|
.action(async (id, opts) => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
output(result);
|
|
24
|
-
}
|
|
25
|
-
catch (err) {
|
|
26
|
-
handleError(err);
|
|
27
|
-
}
|
|
16
|
+
const client = getClient();
|
|
17
|
+
const result = await client.employees.get({
|
|
18
|
+
id: id ?? '0',
|
|
19
|
+
fields: opts.fields,
|
|
20
|
+
onlyCurrent: !opts.includeFuture,
|
|
21
|
+
});
|
|
22
|
+
output(result);
|
|
28
23
|
});
|
|
29
24
|
}
|
|
30
25
|
//# sourceMappingURL=get.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/commands/employee/get.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/commands/employee/get.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,GAAG,CAAC,MAAe;IACjC,MAAM;SACH,OAAO,CAAC,UAAU,CAAC;SACnB,WAAW,CAAC,iDAAiD,CAAC;SAC9D,MAAM,CAAC,mBAAmB,EAAE,6BAA6B,EAAE,mCAAmC,CAAC;SAC/F,MAAM,CAAC,kBAAkB,EAAE,iDAAiD,CAAC;SAC7E,WAAW,CACV,OAAO,EACP;;;;;+CAKyC,CAC1C;SACA,MAAM,CAAC,KAAK,EAAE,EAAsB,EAAE,IAAiD,EAAE,EAAE;QAC1F,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC;YACxC,EAAE,EAAE,EAAE,IAAI,GAAG;YACb,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,WAAW,EAAE,CAAC,IAAI,CAAC,aAAa;SACjC,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"goals.d.ts","sourceRoot":"","sources":["../../../src/commands/employee/goals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAI5C,wBAAgB,KAAK,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"goals.d.ts","sourceRoot":"","sources":["../../../src/commands/employee/goals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAI5C,wBAAgB,KAAK,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAsB3C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Option } from 'commander';
|
|
2
2
|
import { getClient } from '../../utils/client.js';
|
|
3
|
-
import { output
|
|
3
|
+
import { output } from '../../utils/output.js';
|
|
4
4
|
export function goals(parent) {
|
|
5
5
|
parent
|
|
6
6
|
.command('goals <id>')
|
|
@@ -11,17 +11,12 @@ Examples:
|
|
|
11
11
|
$ bamboohr employee goals 123
|
|
12
12
|
$ bamboohr employee goals 123 --filter open`)
|
|
13
13
|
.action(async (id, opts) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
output(result);
|
|
21
|
-
}
|
|
22
|
-
catch (err) {
|
|
23
|
-
handleError(err);
|
|
24
|
-
}
|
|
14
|
+
const client = getClient();
|
|
15
|
+
const result = await client.goals.get({
|
|
16
|
+
employeeId: id,
|
|
17
|
+
filter: opts.filter === 'all' ? undefined : opts.filter,
|
|
18
|
+
});
|
|
19
|
+
output(result);
|
|
25
20
|
});
|
|
26
21
|
}
|
|
27
22
|
//# sourceMappingURL=goals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"goals.js","sourceRoot":"","sources":["../../../src/commands/employee/goals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,MAAM,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"goals.js","sourceRoot":"","sources":["../../../src/commands/employee/goals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,MAAM,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,KAAK,CAAC,MAAe;IACnC,MAAM;SACH,OAAO,CAAC,YAAY,CAAC;SACrB,WAAW,CAAC,gCAAgC,CAAC;SAC7C,SAAS,CACR,IAAI,MAAM,CAAC,mBAAmB,EAAE,wBAAwB,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAC5G;SACA,WAAW,CACV,OAAO,EACP;;;8CAGwC,CACzC;SACA,MAAM,CAAC,KAAK,EAAE,EAAU,EAAE,IAAwB,EAAE,EAAE;QACrD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC;YACpC,UAAU,EAAE,EAAE;YACd,MAAM,EAAE,IAAI,CAAC,MAAM,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAE,IAAI,CAAC,MAA4B;SAC/E,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"photo.d.ts","sourceRoot":"","sources":["../../../src/commands/employee/photo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAI5C,wBAAgB,KAAK,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"photo.d.ts","sourceRoot":"","sources":["../../../src/commands/employee/photo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAI5C,wBAAgB,KAAK,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CA0B3C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { writeFileSync } from 'node:fs';
|
|
2
2
|
import { Option } from 'commander';
|
|
3
3
|
import { getClient } from '../../utils/client.js';
|
|
4
|
-
import { output
|
|
4
|
+
import { output } from '../../utils/output.js';
|
|
5
5
|
export function photo(parent) {
|
|
6
6
|
parent
|
|
7
7
|
.command('photo <id>')
|
|
@@ -15,18 +15,13 @@ Examples:
|
|
|
15
15
|
$ bamboohr employee photo 123 --output ./photo.jpg
|
|
16
16
|
$ bamboohr employee photo 123 --output ./photo.jpg --size large`)
|
|
17
17
|
.action(async (id, opts) => {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
output({ saved: true, path: opts.output, size: buffer.length });
|
|
26
|
-
}
|
|
27
|
-
catch (err) {
|
|
28
|
-
handleError(err);
|
|
29
|
-
}
|
|
18
|
+
const client = getClient();
|
|
19
|
+
const buffer = await client.employees.getPhoto({
|
|
20
|
+
employeeId: id,
|
|
21
|
+
size: opts.size,
|
|
22
|
+
});
|
|
23
|
+
writeFileSync(opts.output, buffer);
|
|
24
|
+
output({ saved: true, path: opts.output, size: buffer.length });
|
|
30
25
|
});
|
|
31
26
|
}
|
|
32
27
|
//# sourceMappingURL=photo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"photo.js","sourceRoot":"","sources":["../../../src/commands/employee/photo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAW,MAAM,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"photo.js","sourceRoot":"","sources":["../../../src/commands/employee/photo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAW,MAAM,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,KAAK,CAAC,MAAe;IACnC,MAAM;SACH,OAAO,CAAC,YAAY,CAAC;SACrB,WAAW,CAAC,yBAAyB,CAAC;SACtC,cAAc,CAAC,iBAAiB,EAAE,yBAAyB,CAAC;SAC5D,SAAS,CACR,IAAI,MAAM,CAAC,eAAe,EAAE,YAAY,CAAC;SACtC,OAAO,CAAC,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;SAC/D,OAAO,CAAC,QAAQ,CAAC,CACrB;SACA,WAAW,CACV,OAAO,EACP;;;kEAG4D,CAC7D;SACA,MAAM,CAAC,KAAK,EAAE,EAAU,EAAE,IAAsC,EAAE,EAAE;QACnE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC;YAC7C,UAAU,EAAE,EAAE;YACd,IAAI,EAAE,IAAI,CAAC,IAAiE;SAC7E,CAAC,CAAC;QACH,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACnC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IAClE,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/commands/employee/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/commands/employee/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAoE5C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getDirectory } from '../../utils/cached.js';
|
|
2
2
|
import { getClient } from '../../utils/client.js';
|
|
3
|
-
import { output
|
|
3
|
+
import { output } from '../../utils/output.js';
|
|
4
4
|
import { resolveEmployeeId } from '../../utils/resolve-employee.js';
|
|
5
5
|
export function search(parent) {
|
|
6
6
|
parent
|
|
@@ -16,49 +16,44 @@ export function search(parent) {
|
|
|
16
16
|
bamboohr employee search --department "R&D" --location Sofia
|
|
17
17
|
bamboohr employee search --supervisor "Borislav Mihaylov"`)
|
|
18
18
|
.action(async (query, opts) => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
supervisorName = me?.displayName ?? `${me?.firstName ?? ''} ${me?.lastName ?? ''}`;
|
|
38
|
-
}
|
|
39
|
-
const s = supervisorName.toLowerCase();
|
|
40
|
-
matches = matches.filter((e) => (e.supervisor ?? '').toLowerCase().includes(s));
|
|
41
|
-
}
|
|
42
|
-
// Department filter
|
|
43
|
-
if (opts.department) {
|
|
44
|
-
const d = opts.department.toLowerCase();
|
|
45
|
-
matches = matches.filter((e) => (e.department ?? '').toLowerCase().includes(d));
|
|
46
|
-
}
|
|
47
|
-
// Location filter
|
|
48
|
-
if (opts.location) {
|
|
49
|
-
const l = opts.location.toLowerCase();
|
|
50
|
-
matches = matches.filter((e) => (e.location ?? '').toLowerCase().includes(l));
|
|
51
|
-
}
|
|
52
|
-
// Division filter
|
|
53
|
-
if (opts.division) {
|
|
54
|
-
const dv = opts.division.toLowerCase();
|
|
55
|
-
matches = matches.filter((e) => (e.division ?? '').toLowerCase().includes(dv));
|
|
19
|
+
const client = getClient();
|
|
20
|
+
const dir = await getDirectory(client);
|
|
21
|
+
let matches = dir.employees;
|
|
22
|
+
// Name filter
|
|
23
|
+
if (query) {
|
|
24
|
+
const q = query.toLowerCase();
|
|
25
|
+
matches = matches.filter((e) => {
|
|
26
|
+
const name = `${e.firstName ?? ''} ${e.lastName ?? ''} ${e.preferredName ?? ''} ${e.displayName ?? ''}`.toLowerCase();
|
|
27
|
+
return name.includes(q);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
// Supervisor filter — resolve "me" to current user's display name
|
|
31
|
+
if (opts.supervisor) {
|
|
32
|
+
let supervisorName = opts.supervisor;
|
|
33
|
+
if (supervisorName.toLowerCase() === 'me') {
|
|
34
|
+
const myId = await resolveEmployeeId(client);
|
|
35
|
+
const me = dir.employees.find((e) => e.id === myId);
|
|
36
|
+
supervisorName = me?.displayName ?? `${me?.firstName ?? ''} ${me?.lastName ?? ''}`;
|
|
56
37
|
}
|
|
57
|
-
|
|
38
|
+
const s = supervisorName.toLowerCase();
|
|
39
|
+
matches = matches.filter((e) => (e.supervisor ?? '').toLowerCase().includes(s));
|
|
40
|
+
}
|
|
41
|
+
// Department filter
|
|
42
|
+
if (opts.department) {
|
|
43
|
+
const d = opts.department.toLowerCase();
|
|
44
|
+
matches = matches.filter((e) => (e.department ?? '').toLowerCase().includes(d));
|
|
45
|
+
}
|
|
46
|
+
// Location filter
|
|
47
|
+
if (opts.location) {
|
|
48
|
+
const l = opts.location.toLowerCase();
|
|
49
|
+
matches = matches.filter((e) => (e.location ?? '').toLowerCase().includes(l));
|
|
58
50
|
}
|
|
59
|
-
|
|
60
|
-
|
|
51
|
+
// Division filter
|
|
52
|
+
if (opts.division) {
|
|
53
|
+
const dv = opts.division.toLowerCase();
|
|
54
|
+
matches = matches.filter((e) => (e.division ?? '').toLowerCase().includes(dv));
|
|
61
55
|
}
|
|
56
|
+
output(matches);
|
|
62
57
|
});
|
|
63
58
|
}
|
|
64
59
|
//# sourceMappingURL=search.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/commands/employee/search.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/commands/employee/search.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/commands/file/get.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,GAAG,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/commands/file/get.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,GAAG,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAiBzC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { writeFileSync } from 'node:fs';
|
|
2
2
|
import { getClient } from '../../utils/client.js';
|
|
3
|
-
import { output
|
|
3
|
+
import { output } from '../../utils/output.js';
|
|
4
4
|
export function get(parent) {
|
|
5
5
|
parent
|
|
6
6
|
.command('get <fileId>')
|
|
@@ -10,15 +10,10 @@ export function get(parent) {
|
|
|
10
10
|
Examples:
|
|
11
11
|
$ bamboohr file get 42 --output ./handbook.pdf`)
|
|
12
12
|
.action(async (fileId, opts) => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
output({ saved: true, path: opts.output, size: buffer.length });
|
|
18
|
-
}
|
|
19
|
-
catch (err) {
|
|
20
|
-
handleError(err);
|
|
21
|
-
}
|
|
13
|
+
const client = getClient();
|
|
14
|
+
const buffer = await client.files.get({ fileId });
|
|
15
|
+
writeFileSync(opts.output, buffer);
|
|
16
|
+
output({ saved: true, path: opts.output, size: buffer.length });
|
|
22
17
|
});
|
|
23
18
|
}
|
|
24
19
|
//# sourceMappingURL=get.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/commands/file/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/commands/file/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,GAAG,CAAC,MAAe;IACjC,MAAM;SACH,OAAO,CAAC,cAAc,CAAC;SACvB,WAAW,CAAC,yBAAyB,CAAC;SACtC,cAAc,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;SACzD,WAAW,CACV,OAAO,EACP;;iDAE2C,CAC5C;SACA,MAAM,CAAC,KAAK,EAAE,MAAc,EAAE,IAAwB,EAAE,EAAE;QACzD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;QAClD,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACnC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IAClE,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/file/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/file/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAU1C"}
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import { getClient } from '../../utils/client.js';
|
|
2
|
-
import { output
|
|
2
|
+
import { output } from '../../utils/output.js';
|
|
3
3
|
export function list(parent) {
|
|
4
4
|
parent
|
|
5
5
|
.command('list')
|
|
6
6
|
.description('List all company files and categories')
|
|
7
7
|
.addHelpText('after', '\nExamples:\n $ bamboohr file list')
|
|
8
8
|
.action(async () => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
output(result);
|
|
13
|
-
}
|
|
14
|
-
catch (err) {
|
|
15
|
-
handleError(err);
|
|
16
|
-
}
|
|
9
|
+
const client = getClient();
|
|
10
|
+
const result = await client.files.list();
|
|
11
|
+
output(result);
|
|
17
12
|
});
|
|
18
13
|
}
|
|
19
14
|
//# sourceMappingURL=list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/file/list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/file/list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,IAAI,CAAC,MAAe;IAClC,MAAM;SACH,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,uCAAuC,CAAC;SACpD,WAAW,CAAC,OAAO,EAAE,qCAAqC,CAAC;SAC3D,MAAM,CAAC,KAAK,IAAI,EAAE;QACjB,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QACzC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"departments.d.ts","sourceRoot":"","sources":["../../../src/commands/meta/departments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"departments.d.ts","sourceRoot":"","sources":["../../../src/commands/meta/departments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAWjD"}
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import { getDirectory } from '../../utils/cached.js';
|
|
2
2
|
import { getClient } from '../../utils/client.js';
|
|
3
|
-
import { output
|
|
3
|
+
import { output } from '../../utils/output.js';
|
|
4
4
|
export function departments(parent) {
|
|
5
5
|
parent
|
|
6
6
|
.command('departments')
|
|
7
7
|
.description('List all departments')
|
|
8
8
|
.addHelpText('after', '\nExamples:\n bamboohr meta departments')
|
|
9
9
|
.action(async () => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
output(unique);
|
|
15
|
-
}
|
|
16
|
-
catch (err) {
|
|
17
|
-
handleError(err);
|
|
18
|
-
}
|
|
10
|
+
const client = getClient();
|
|
11
|
+
const dir = await getDirectory(client);
|
|
12
|
+
const unique = [...new Set(dir.employees.map((e) => e.department).filter(Boolean))].sort();
|
|
13
|
+
output(unique);
|
|
19
14
|
});
|
|
20
15
|
}
|
|
21
16
|
//# sourceMappingURL=departments.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"departments.js","sourceRoot":"","sources":["../../../src/commands/meta/departments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"departments.js","sourceRoot":"","sources":["../../../src/commands/meta/departments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAG/C,MAAM,UAAU,WAAW,CAAC,MAAe;IACzC,MAAM;SACH,OAAO,CAAC,aAAa,CAAC;SACtB,WAAW,CAAC,sBAAsB,CAAC;SACnC,WAAW,CAAC,OAAO,EAAE,0CAA0C,CAAC;SAChE,MAAM,CAAC,KAAK,IAAI,EAAE;QACjB,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,GAAG,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,MAAM,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAW,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACrG,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divisions.d.ts","sourceRoot":"","sources":["../../../src/commands/meta/divisions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"divisions.d.ts","sourceRoot":"","sources":["../../../src/commands/meta/divisions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAW/C"}
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import { getDirectory } from '../../utils/cached.js';
|
|
2
2
|
import { getClient } from '../../utils/client.js';
|
|
3
|
-
import { output
|
|
3
|
+
import { output } from '../../utils/output.js';
|
|
4
4
|
export function divisions(parent) {
|
|
5
5
|
parent
|
|
6
6
|
.command('divisions')
|
|
7
7
|
.description('List all divisions')
|
|
8
8
|
.addHelpText('after', '\nExamples:\n bamboohr meta divisions')
|
|
9
9
|
.action(async () => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
output(unique);
|
|
15
|
-
}
|
|
16
|
-
catch (err) {
|
|
17
|
-
handleError(err);
|
|
18
|
-
}
|
|
10
|
+
const client = getClient();
|
|
11
|
+
const dir = await getDirectory(client);
|
|
12
|
+
const unique = [...new Set(dir.employees.map((e) => e.division).filter(Boolean))].sort();
|
|
13
|
+
output(unique);
|
|
19
14
|
});
|
|
20
15
|
}
|
|
21
16
|
//# sourceMappingURL=divisions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divisions.js","sourceRoot":"","sources":["../../../src/commands/meta/divisions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"divisions.js","sourceRoot":"","sources":["../../../src/commands/meta/divisions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAG/C,MAAM,UAAU,SAAS,CAAC,MAAe;IACvC,MAAM;SACH,OAAO,CAAC,WAAW,CAAC;SACpB,WAAW,CAAC,oBAAoB,CAAC;SACjC,WAAW,CAAC,OAAO,EAAE,wCAAwC,CAAC;SAC9D,MAAM,CAAC,KAAK,IAAI,EAAE;QACjB,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,GAAG,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,MAAM,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAW,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACnG,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../src/commands/meta/fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../src/commands/meta/fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAU5C"}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
import { getMetaFields } from '../../utils/cached.js';
|
|
2
2
|
import { getClient } from '../../utils/client.js';
|
|
3
|
-
import { output
|
|
3
|
+
import { output } from '../../utils/output.js';
|
|
4
4
|
export function fields(parent) {
|
|
5
5
|
parent
|
|
6
6
|
.command('fields')
|
|
7
7
|
.description('List all available BambooHR fields')
|
|
8
8
|
.addHelpText('after', '\nExamples:\n $ bamboohr meta fields')
|
|
9
9
|
.action(async () => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
output(result);
|
|
14
|
-
}
|
|
15
|
-
catch (err) {
|
|
16
|
-
handleError(err);
|
|
17
|
-
}
|
|
10
|
+
const client = getClient();
|
|
11
|
+
const result = await getMetaFields(client);
|
|
12
|
+
output(result);
|
|
18
13
|
});
|
|
19
14
|
}
|
|
20
15
|
//# sourceMappingURL=fields.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../src/commands/meta/fields.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../src/commands/meta/fields.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,oCAAoC,CAAC;SACjD,WAAW,CAAC,OAAO,EAAE,uCAAuC,CAAC;SAC7D,MAAM,CAAC,KAAK,IAAI,EAAE;QACjB,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,MAAM,CAAC,CAAC;QAC3C,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locations.d.ts","sourceRoot":"","sources":["../../../src/commands/meta/locations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"locations.d.ts","sourceRoot":"","sources":["../../../src/commands/meta/locations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAW/C"}
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import { getDirectory } from '../../utils/cached.js';
|
|
2
2
|
import { getClient } from '../../utils/client.js';
|
|
3
|
-
import { output
|
|
3
|
+
import { output } from '../../utils/output.js';
|
|
4
4
|
export function locations(parent) {
|
|
5
5
|
parent
|
|
6
6
|
.command('locations')
|
|
7
7
|
.description('List all office locations')
|
|
8
8
|
.addHelpText('after', '\nExamples:\n bamboohr meta locations')
|
|
9
9
|
.action(async () => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
output(unique);
|
|
15
|
-
}
|
|
16
|
-
catch (err) {
|
|
17
|
-
handleError(err);
|
|
18
|
-
}
|
|
10
|
+
const client = getClient();
|
|
11
|
+
const dir = await getDirectory(client);
|
|
12
|
+
const unique = [...new Set(dir.employees.map((e) => e.location).filter(Boolean))].sort();
|
|
13
|
+
output(unique);
|
|
19
14
|
});
|
|
20
15
|
}
|
|
21
16
|
//# sourceMappingURL=locations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locations.js","sourceRoot":"","sources":["../../../src/commands/meta/locations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"locations.js","sourceRoot":"","sources":["../../../src/commands/meta/locations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAG/C,MAAM,UAAU,SAAS,CAAC,MAAe;IACvC,MAAM;SACH,OAAO,CAAC,WAAW,CAAC;SACpB,WAAW,CAAC,2BAA2B,CAAC;SACxC,WAAW,CAAC,OAAO,EAAE,wCAAwC,CAAC;SAC9D,MAAM,CAAC,KAAK,IAAI,EAAE;QACjB,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,GAAG,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,MAAM,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAW,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACnG,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../../src/commands/timeoff/balance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,OAAO,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../../src/commands/timeoff/balance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,OAAO,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAmB7C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getClient } from '../../utils/client.js';
|
|
2
|
-
import { output
|
|
2
|
+
import { output } from '../../utils/output.js';
|
|
3
3
|
import { resolveEmployeeId } from '../../utils/resolve-employee.js';
|
|
4
4
|
export function balance(parent) {
|
|
5
5
|
parent
|
|
@@ -12,15 +12,10 @@ Examples:
|
|
|
12
12
|
$ bamboohr timeoff balance 123
|
|
13
13
|
$ bamboohr timeoff balance --date 2026-06-30`)
|
|
14
14
|
.action(async (employeeId, opts) => {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
output(result);
|
|
20
|
-
}
|
|
21
|
-
catch (err) {
|
|
22
|
-
handleError(err);
|
|
23
|
-
}
|
|
15
|
+
const client = getClient();
|
|
16
|
+
const id = await resolveEmployeeId(client, employeeId);
|
|
17
|
+
const result = await client.timeOff.getBalance({ employeeId: id, date: opts.date });
|
|
18
|
+
output(result);
|
|
24
19
|
});
|
|
25
20
|
}
|
|
26
21
|
//# sourceMappingURL=balance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"balance.js","sourceRoot":"","sources":["../../../src/commands/timeoff/balance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"balance.js","sourceRoot":"","sources":["../../../src/commands/timeoff/balance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,MAAM,UAAU,OAAO,CAAC,MAAe;IACrC,MAAM;SACH,OAAO,CAAC,sBAAsB,CAAC;SAC/B,WAAW,CAAC,sDAAsD,CAAC;SACnE,MAAM,CAAC,eAAe,EAAE,kDAAkD,CAAC;SAC3E,WAAW,CACV,OAAO,EACP;;;;+CAIyC,CAC1C;SACA,MAAM,CAAC,KAAK,EAAE,UAA8B,EAAE,IAAuB,EAAE,EAAE;QACxE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,EAAE,GAAG,MAAM,iBAAiB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QACvD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACpF,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/commands/timeoff/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAK5C,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/commands/timeoff/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAK5C,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAgD5C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Option } from 'commander';
|
|
2
2
|
import { getClient } from '../../utils/client.js';
|
|
3
|
-
import { output
|
|
3
|
+
import { output } from '../../utils/output.js';
|
|
4
4
|
import { resolveEmployeeId } from '../../utils/resolve-employee.js';
|
|
5
5
|
export function create(parent) {
|
|
6
6
|
parent
|
|
@@ -18,24 +18,19 @@ Examples:
|
|
|
18
18
|
$ bamboohr timeoff create --start 2026-04-01 --end 2026-04-01 --type-id 83 --amount 1
|
|
19
19
|
$ bamboohr timeoff create 504 --start 2026-04-01 --end 2026-04-01 --type-id 83 --amount 1 --note "Doctor appointment"`)
|
|
20
20
|
.action(async (employeeId, opts) => {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
output(result || { created: true, employeeId: id, start: opts.start, end: opts.end });
|
|
35
|
-
}
|
|
36
|
-
catch (err) {
|
|
37
|
-
handleError(err);
|
|
38
|
-
}
|
|
21
|
+
const client = getClient();
|
|
22
|
+
const id = await resolveEmployeeId(client, employeeId);
|
|
23
|
+
const result = await client.timeOff.createRequest({
|
|
24
|
+
employeeId: id,
|
|
25
|
+
status: opts.status,
|
|
26
|
+
start: opts.start,
|
|
27
|
+
end: opts.end,
|
|
28
|
+
timeOffTypeId: opts.typeId,
|
|
29
|
+
amount: opts.amount,
|
|
30
|
+
notes: opts.note ? [{ from: 'employee', note: opts.note }] : undefined,
|
|
31
|
+
dates: opts.dates ? JSON.parse(opts.dates) : undefined,
|
|
32
|
+
});
|
|
33
|
+
output(result || { created: true, employeeId: id, start: opts.start, end: opts.end });
|
|
39
34
|
});
|
|
40
35
|
}
|
|
41
36
|
//# sourceMappingURL=create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/timeoff/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,MAAM,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/timeoff/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,MAAM,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,qBAAqB,CAAC;SAC9B,WAAW,CAAC,sDAAsD,CAAC;SACnE,cAAc,CAAC,gBAAgB,EAAE,yBAAyB,CAAC;SAC3D,cAAc,CAAC,cAAc,EAAE,uBAAuB,CAAC;SACvD,cAAc,CAAC,gBAAgB,EAAE,oDAAoD,EAAE,QAAQ,CAAC;SAChG,cAAc,CAAC,mBAAmB,EAAE,+DAA+D,EAAE,UAAU,CAAC;SAChH,SAAS,CACR,IAAI,MAAM,CAAC,mBAAmB,EAAE,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAC1G;SACA,MAAM,CAAC,eAAe,EAAE,kCAAkC,CAAC;SAC3D,MAAM,CAAC,gBAAgB,EAAE,wFAAwF,CAAC;SAClH,WAAW,CACV,OAAO,EACP;;;wHAGkH,CACnH;SACA,MAAM,CACL,KAAK,EACH,UAA8B,EAC9B,IAQC,EACD,EAAE;QACF,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,EAAE,GAAG,MAAM,iBAAiB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QACvD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC;YAChD,UAAU,EAAE,EAAE;YACd,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,aAAa,EAAE,IAAI,CAAC,MAAM;YAC1B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS;YACtE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAuC,CAAC,CAAC,CAAC,SAAS;SAC9F,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACxF,CAAC,CACF,CAAC;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../../src/commands/timeoff/requests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAK5C,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../../src/commands/timeoff/requests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAK5C,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAgE9C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Option } from 'commander';
|
|
2
2
|
import { getClient } from '../../utils/client.js';
|
|
3
|
-
import { output
|
|
3
|
+
import { output } from '../../utils/output.js';
|
|
4
4
|
import { resolveEmployeeId } from '../../utils/resolve-employee.js';
|
|
5
5
|
export function requests(parent) {
|
|
6
6
|
parent
|
|
@@ -27,30 +27,25 @@ Examples:
|
|
|
27
27
|
$ bamboohr timeoff requests --all --action approve --status requested
|
|
28
28
|
$ bamboohr timeoff requests --employee 123 --start 2026-01-01 --end 2026-03-31`)
|
|
29
29
|
.action(async (opts) => {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
employeeId = await resolveEmployeeId(client);
|
|
39
|
-
}
|
|
40
|
-
const result = await client.timeOff.getRequests({
|
|
41
|
-
id: opts.id,
|
|
42
|
-
action: opts.action,
|
|
43
|
-
employeeId,
|
|
44
|
-
start,
|
|
45
|
-
end,
|
|
46
|
-
status: opts.status,
|
|
47
|
-
type: opts.type,
|
|
48
|
-
});
|
|
49
|
-
output(result);
|
|
50
|
-
}
|
|
51
|
-
catch (err) {
|
|
52
|
-
handleError(err);
|
|
30
|
+
const year = new Date().getFullYear();
|
|
31
|
+
const start = opts.start ?? `${year}-01-01`;
|
|
32
|
+
const end = opts.end ?? `${year}-12-31`;
|
|
33
|
+
const client = getClient();
|
|
34
|
+
// Default to current user unless --all or --employee is specified
|
|
35
|
+
let employeeId = opts.employee;
|
|
36
|
+
if (!employeeId && !opts.all) {
|
|
37
|
+
employeeId = await resolveEmployeeId(client);
|
|
53
38
|
}
|
|
39
|
+
const result = await client.timeOff.getRequests({
|
|
40
|
+
id: opts.id,
|
|
41
|
+
action: opts.action,
|
|
42
|
+
employeeId,
|
|
43
|
+
start,
|
|
44
|
+
end,
|
|
45
|
+
status: opts.status,
|
|
46
|
+
type: opts.type,
|
|
47
|
+
});
|
|
48
|
+
output(result);
|
|
54
49
|
});
|
|
55
50
|
}
|
|
56
51
|
//# sourceMappingURL=requests.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.js","sourceRoot":"","sources":["../../../src/commands/timeoff/requests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,MAAM,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"requests.js","sourceRoot":"","sources":["../../../src/commands/timeoff/requests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,MAAM,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,MAAM,UAAU,QAAQ,CAAC,MAAe;IACtC,MAAM;SACH,OAAO,CAAC,UAAU,CAAC;SACnB,WAAW,CAAC,kDAAkD,CAAC;SAC/D,MAAM,CAAC,WAAW,EAAE,qBAAqB,EAAE,QAAQ,CAAC;SACpD,SAAS,CAAC,IAAI,MAAM,CAAC,mBAAmB,EAAE,qBAAqB,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;SAC9F,MAAM,CAAC,iBAAiB,EAAE,uBAAuB,CAAC;SAClD,MAAM,CAAC,OAAO,EAAE,wDAAwD,CAAC;SACzE,MAAM,CAAC,gBAAgB,EAAE,yBAAyB,CAAC;SACnD,MAAM,CAAC,cAAc,EAAE,uBAAuB,CAAC;SAC/C,SAAS,CACR,IAAI,MAAM,CAAC,mBAAmB,EAAE,0BAA0B,CAAC,CAAC,OAAO,CAAC;QAClE,UAAU;QACV,QAAQ;QACR,YAAY;QACZ,WAAW;QACX,UAAU;KACX,CAAC,CACH;SACA,MAAM,CAAC,iBAAiB,EAAE,4BAA4B,CAAC;SACvD,WAAW,CACV,OAAO,EACP;;;;;iFAK2E,CAC5E;SACA,MAAM,CACL,KAAK,EAAE,IASN,EAAE,EAAE;QACH,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QACtC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,GAAG,IAAI,QAAQ,CAAC;QAC5C,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI,QAAQ,CAAC;QAExC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAE3B,kEAAkE;QAClE,IAAI,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;YAC7B,UAAU,GAAG,MAAM,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAC/C,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC;YAC9C,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,MAAM,EAAE,IAAI,CAAC,MAAwC;YACrD,UAAU;YACV,KAAK;YACL,GAAG;YACH,MAAM,EAAE,IAAI,CAAC,MAAqF;YAClG,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CACF,CAAC;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/commands/timeoff/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,KAAK,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/commands/timeoff/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,KAAK,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAmB3C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getTimeOffTypes } from '../../utils/cached.js';
|
|
2
2
|
import { getClient } from '../../utils/client.js';
|
|
3
|
-
import { output
|
|
3
|
+
import { output } from '../../utils/output.js';
|
|
4
4
|
export function types(parent) {
|
|
5
5
|
parent
|
|
6
6
|
.command('types')
|
|
@@ -11,16 +11,11 @@ Examples:
|
|
|
11
11
|
$ bamboohr timeoff types
|
|
12
12
|
$ bamboohr timeoff types --requestable`)
|
|
13
13
|
.action(async (opts) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
output(result);
|
|
20
|
-
}
|
|
21
|
-
catch (err) {
|
|
22
|
-
handleError(err);
|
|
23
|
-
}
|
|
14
|
+
const client = getClient();
|
|
15
|
+
const result = opts.requestable
|
|
16
|
+
? await client.timeOff.getTypes({ mode: 'request' })
|
|
17
|
+
: await getTimeOffTypes(client);
|
|
18
|
+
output(result);
|
|
24
19
|
});
|
|
25
20
|
}
|
|
26
21
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/commands/timeoff/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/commands/timeoff/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,KAAK,CAAC,MAAe;IACnC,MAAM;SACH,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,+BAA+B,CAAC;SAC5C,MAAM,CAAC,eAAe,EAAE,sCAAsC,CAAC;SAC/D,WAAW,CACV,OAAO,EACP;;;yCAGmC,CACpC;SACA,MAAM,CAAC,KAAK,EAAE,IAA+B,EAAE,EAAE;QAChD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW;YAC7B,CAAC,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;YACpD,CAAC,CAAC,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;QAClC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-status.d.ts","sourceRoot":"","sources":["../../../src/commands/timeoff/update-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAI5C,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"update-status.d.ts","sourceRoot":"","sources":["../../../src/commands/timeoff/update-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAI5C,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAyBlD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Option } from 'commander';
|
|
2
2
|
import { getClient } from '../../utils/client.js';
|
|
3
|
-
import { output
|
|
3
|
+
import { output } from '../../utils/output.js';
|
|
4
4
|
export function updateStatus(parent) {
|
|
5
5
|
parent
|
|
6
6
|
.command('update-status <requestId>')
|
|
@@ -13,18 +13,13 @@ Examples:
|
|
|
13
13
|
$ bamboohr timeoff update-status 7890 --status denied --note "Team at capacity that week"
|
|
14
14
|
$ bamboohr timeoff update-status 7890 --status canceled`)
|
|
15
15
|
.action(async (requestId, opts) => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
output(result || { updated: true, requestId, status: opts.status });
|
|
24
|
-
}
|
|
25
|
-
catch (err) {
|
|
26
|
-
handleError(err);
|
|
27
|
-
}
|
|
16
|
+
const client = getClient();
|
|
17
|
+
const result = await client.timeOff.updateRequestStatus({
|
|
18
|
+
requestId,
|
|
19
|
+
status: opts.status,
|
|
20
|
+
note: opts.note,
|
|
21
|
+
});
|
|
22
|
+
output(result || { updated: true, requestId, status: opts.status });
|
|
28
23
|
});
|
|
29
24
|
}
|
|
30
25
|
//# sourceMappingURL=update-status.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-status.js","sourceRoot":"","sources":["../../../src/commands/timeoff/update-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,MAAM,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"update-status.js","sourceRoot":"","sources":["../../../src/commands/timeoff/update-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,MAAM,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,YAAY,CAAC,MAAe;IAC1C,MAAM;SACH,OAAO,CAAC,2BAA2B,CAAC;SACpC,WAAW,CAAC,wDAAwD,CAAC;SACrE,SAAS,CACR,IAAI,MAAM,CAAC,mBAAmB,EAAE,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,mBAAmB,EAAE,CAChH;SACA,MAAM,CAAC,eAAe,EAAE,qCAAqC,CAAC;SAC9D,WAAW,CACV,OAAO,EACP;;;;0DAIoD,CACrD;SACA,MAAM,CAAC,KAAK,EAAE,SAAiB,EAAE,IAAuC,EAAE,EAAE;QAC3E,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,mBAAmB,CAAC;YACtD,SAAS;YACT,MAAM,EAAE,IAAI,CAAC,MAA4C;YACzD,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IACtE,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whos-out.d.ts","sourceRoot":"","sources":["../../../src/commands/timeoff/whos-out.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,OAAO,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"whos-out.d.ts","sourceRoot":"","sources":["../../../src/commands/timeoff/whos-out.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,OAAO,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAqB7C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getClient } from '../../utils/client.js';
|
|
2
|
-
import { output
|
|
2
|
+
import { output } from '../../utils/output.js';
|
|
3
3
|
export function whosOut(parent) {
|
|
4
4
|
parent
|
|
5
5
|
.command('whos-out')
|
|
@@ -11,17 +11,12 @@ Examples:
|
|
|
11
11
|
$ bamboohr timeoff whos-out
|
|
12
12
|
$ bamboohr timeoff whos-out --start 2026-03-20 --end 2026-04-03`)
|
|
13
13
|
.action(async (opts) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
output(result);
|
|
21
|
-
}
|
|
22
|
-
catch (err) {
|
|
23
|
-
handleError(err);
|
|
24
|
-
}
|
|
14
|
+
const client = getClient();
|
|
15
|
+
const result = await client.timeOff.getWhosOut({
|
|
16
|
+
start: opts.start,
|
|
17
|
+
end: opts.end,
|
|
18
|
+
});
|
|
19
|
+
output(result);
|
|
25
20
|
});
|
|
26
21
|
}
|
|
27
22
|
//# sourceMappingURL=whos-out.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whos-out.js","sourceRoot":"","sources":["../../../src/commands/timeoff/whos-out.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"whos-out.js","sourceRoot":"","sources":["../../../src/commands/timeoff/whos-out.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,OAAO,CAAC,MAAe;IACrC,MAAM;SACH,OAAO,CAAC,UAAU,CAAC;SACnB,WAAW,CAAC,iDAAiD,CAAC;SAC9D,MAAM,CAAC,gBAAgB,EAAE,4CAA4C,CAAC;SACtE,MAAM,CAAC,cAAc,EAAE,uDAAuD,CAAC;SAC/E,WAAW,CACV,OAAO,EACP;;;kEAG4D,CAC7D;SACA,MAAM,CAAC,KAAK,EAAE,IAAsC,EAAE,EAAE;QACvD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;YAC7C,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,GAAG,EAAE,IAAI,CAAC,GAAG;SACd,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import 'dotenv/config';
|
|
3
2
|
import { styleText } from 'node:util';
|
|
4
3
|
import { Command } from 'commander';
|
|
5
4
|
import { registerEmployeeCommands } from './commands/employee/index.js';
|
|
6
5
|
import { registerFileCommands } from './commands/file/index.js';
|
|
7
6
|
import { registerMetaCommands } from './commands/meta/index.js';
|
|
8
7
|
import { registerTimeoffCommands } from './commands/timeoff/index.js';
|
|
8
|
+
import { handleError } from './utils/output.js';
|
|
9
9
|
const DIM = '\x1b[2m';
|
|
10
10
|
const RESET = '\x1b[0m';
|
|
11
11
|
const program = new Command();
|
|
@@ -44,5 +44,10 @@ registerEmployeeCommands(program);
|
|
|
44
44
|
registerTimeoffCommands(program);
|
|
45
45
|
registerFileCommands(program);
|
|
46
46
|
registerMetaCommands(program);
|
|
47
|
-
|
|
47
|
+
try {
|
|
48
|
+
await program.parseAsync();
|
|
49
|
+
}
|
|
50
|
+
catch (err) {
|
|
51
|
+
handleError(err);
|
|
52
|
+
}
|
|
48
53
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,GAAG,GAAG,SAAS,CAAC;AACtB,MAAM,KAAK,GAAG,SAAS,CAAC;AAExB,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAC9B,OAAO;KACJ,IAAI,CAAC,UAAU,CAAC;KAChB,WAAW,CAAC,cAAc,CAAC;KAC3B,OAAO,CAAC,OAAO,CAAC;KAChB,aAAa,CAAC;IACb,UAAU,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IAC3C,UAAU,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC;IAC1C,uBAAuB,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC;IACvD,sBAAsB,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC;IACtD,0BAA0B,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC;CAC3D,CAAC;KACD,WAAW,CAAC,WAAW,EAAE,KAAK,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,GAAG,iBAAiB,KAAK,IAAI,CAAC;KAC7F,WAAW,CACV,OAAO,EACP;EACF,SAAS,CAAC,MAAM,EAAE,cAAc,CAAC;+CACY,GAAG,+CAA+C,KAAK;8CACxD,GAAG,iDAAiD,KAAK;;EAErG,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC;IAC5B,GAAG,IAAI,KAAK;IACZ,GAAG,IAAI,KAAK;IACZ,GAAG,IAAI,KAAK;IACZ,GAAG,IAAI,KAAK;IACZ,GAAG,IAAI,KAAK;IACZ,GAAG,IAAI,KAAK;IACZ,GAAG,IAAI,KAAK;IACZ,GAAG,IAAI,KAAK;IACZ,GAAG,IAAI,KAAK;IACZ,GAAG,IAAI,KAAK;IACZ,GAAG,IAAI,KAAK;IACZ,GAAG,IAAI,KAAK;CACf,CACE,CAAC;AAEJ,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAClC,uBAAuB,CAAC,OAAO,CAAC,CAAC;AACjC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC9B,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAE9B,IAAI,CAAC;IACH,MAAM,OAAO,CAAC,UAAU,EAAE,CAAC;AAC7B,CAAC;AAAC,OAAO,GAAG,EAAE,CAAC;IACb,WAAW,CAAC,GAAG,CAAC,CAAC;AACnB,CAAC"}
|
package/dist/utils/client.js
CHANGED
|
@@ -10,7 +10,7 @@ export function getClient() {
|
|
|
10
10
|
BAMBOO_TOKEN: 'BambooHR API token — generate in BambooHR > Settings > API Keys',
|
|
11
11
|
BAMBOO_COMPANY_DOMAIN: 'Company subdomain (e.g., "mycompany" for mycompany.bamboohr.com)',
|
|
12
12
|
},
|
|
13
|
-
hint: 'Export these
|
|
13
|
+
hint: 'Export these in your shell profile (e.g., ~/.zshrc).',
|
|
14
14
|
})}\n`);
|
|
15
15
|
process.exit(1);
|
|
16
16
|
}
|
package/dist/utils/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/utils/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,UAAU,SAAS;IACvB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;IAC1C,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC;IAExD,IAAI,CAAC,QAAQ,IAAI,CAAC,aAAa,EAAE,CAAC;QAChC,MAAM,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC/G,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,GAAG,IAAI,CAAC,SAAS,CAAC;YAChB,KAAK,EAAE,2CAA2C,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YACtE,KAAK,EAAE;gBACL,YAAY,EAAE,iEAAiE;gBAC/E,qBAAqB,EAAE,kEAAkE;aAC1F;YACD,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/utils/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,UAAU,SAAS;IACvB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;IAC1C,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC;IAExD,IAAI,CAAC,QAAQ,IAAI,CAAC,aAAa,EAAE,CAAC;QAChC,MAAM,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC/G,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,GAAG,IAAI,CAAC,SAAS,CAAC;YAChB,KAAK,EAAE,2CAA2C,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YACtE,KAAK,EAAE;gBACL,YAAY,EAAE,iEAAiE;gBAC/E,qBAAqB,EAAE,kEAAkE;aAC1F;YACD,IAAI,EAAE,sDAAsD;SAC7D,CAAC,IAAI,CACP,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,OAAO,IAAI,cAAc,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC,CAAC;AACzD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bamboohr-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"publish": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"commander": "^13.1.0",
|
|
15
|
-
"
|
|
16
|
-
"bamboohr-client": "1.0.17",
|
|
15
|
+
"bamboohr-client": "1.0.18",
|
|
17
16
|
"cli-utils": "1.0.0"
|
|
18
17
|
},
|
|
19
18
|
"devDependencies": {
|
|
20
19
|
"@types/node": "24.10.4",
|
|
20
|
+
"dotenv": "17.2.3",
|
|
21
21
|
"eslint": "^9.39.0",
|
|
22
22
|
"tsx": "^4.19.2",
|
|
23
23
|
"typescript": "^5.7.2",
|