bamboohr.com 1.3.6 → 1.3.8
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/Endpoints.d.ts +20 -12
- package/dist/Endpoints.js +32 -41
- package/dist/Endpoints.js.map +1 -1
- package/package.json +8 -8
package/dist/Endpoints.d.ts
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { Fields } from './interfaces/Fields';
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
export declare const Endpoint: {
|
|
3
|
+
DIRECTORY: string;
|
|
4
|
+
EMPLOYEES: string;
|
|
5
|
+
META: string;
|
|
6
|
+
POLICIES: string;
|
|
7
|
+
REQUESTS: string;
|
|
8
|
+
TIME_OFF: string;
|
|
9
|
+
TYPES: string;
|
|
10
|
+
WHOS_OUT: string;
|
|
11
|
+
Employees: {
|
|
12
|
+
employees(id?: number, fields?: Array<keyof Fields>): string;
|
|
13
|
+
employeeDirectory(): string;
|
|
14
|
+
};
|
|
15
|
+
TimeOff: {
|
|
16
|
+
whosOut(): string;
|
|
17
|
+
timeOffTypes(): string;
|
|
18
|
+
timeOffPolicies(): string;
|
|
19
|
+
timeOffRequests(): string;
|
|
20
|
+
};
|
|
21
|
+
};
|
package/dist/Endpoints.js
CHANGED
|
@@ -2,20 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Endpoint = void 0;
|
|
4
4
|
const qs = require("qs");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
function employees(id, fields) {
|
|
18
|
-
let path = `/${EMPLOYEES}/`;
|
|
5
|
+
exports.Endpoint = {
|
|
6
|
+
DIRECTORY: 'directory',
|
|
7
|
+
EMPLOYEES: 'employees',
|
|
8
|
+
META: 'meta',
|
|
9
|
+
POLICIES: 'policies',
|
|
10
|
+
REQUESTS: 'requests',
|
|
11
|
+
TIME_OFF: 'time_off',
|
|
12
|
+
TYPES: 'types',
|
|
13
|
+
WHOS_OUT: 'whos_out',
|
|
14
|
+
Employees: {
|
|
15
|
+
employees(id, fields) {
|
|
16
|
+
let path = `/${exports.Endpoint.EMPLOYEES}/`;
|
|
19
17
|
if (id) {
|
|
20
18
|
path += `${id}/`;
|
|
21
19
|
}
|
|
@@ -23,31 +21,24 @@ var Endpoint;
|
|
|
23
21
|
path += `?${qs.stringify({ fields: fields.join(',') })}`;
|
|
24
22
|
}
|
|
25
23
|
return path;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
return `/${TIME_OFF}/${
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
TimeOff.timeOffPolicies = timeOffPolicies;
|
|
47
|
-
function timeOffRequests() {
|
|
48
|
-
return `/${TIME_OFF}/${REQUESTS}/`;
|
|
49
|
-
}
|
|
50
|
-
TimeOff.timeOffRequests = timeOffRequests;
|
|
51
|
-
})(TimeOff = Endpoint.TimeOff || (Endpoint.TimeOff = {}));
|
|
52
|
-
})(Endpoint || (exports.Endpoint = Endpoint = {}));
|
|
24
|
+
},
|
|
25
|
+
employeeDirectory() {
|
|
26
|
+
return `/${exports.Endpoint.EMPLOYEES}/${exports.Endpoint.DIRECTORY}/`;
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
TimeOff: {
|
|
30
|
+
whosOut() {
|
|
31
|
+
return `/${exports.Endpoint.TIME_OFF}/${exports.Endpoint.WHOS_OUT}/`;
|
|
32
|
+
},
|
|
33
|
+
timeOffTypes() {
|
|
34
|
+
return `/${exports.Endpoint.META}/${exports.Endpoint.TIME_OFF}/${exports.Endpoint.TYPES}/`;
|
|
35
|
+
},
|
|
36
|
+
timeOffPolicies() {
|
|
37
|
+
return `/${exports.Endpoint.META}/${exports.Endpoint.TIME_OFF}/${exports.Endpoint.POLICIES}/`;
|
|
38
|
+
},
|
|
39
|
+
timeOffRequests() {
|
|
40
|
+
return `/${exports.Endpoint.TIME_OFF}/${exports.Endpoint.REQUESTS}/`;
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
53
44
|
//# sourceMappingURL=Endpoints.js.map
|
package/dist/Endpoints.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Endpoints.js","sourceRoot":"","sources":["../src/Endpoints.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;
|
|
1
|
+
{"version":3,"file":"Endpoints.js","sourceRoot":"","sources":["../src/Endpoints.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;AAGZ,QAAA,QAAQ,GAAG;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IAEpB,SAAS,EAAE;QACT,SAAS,CAAC,EAAW,EAAE,MAA4B;YACjD,IAAI,IAAI,GAAG,IAAI,gBAAQ,CAAC,SAAS,GAAG,CAAC;YACrC,IAAI,EAAE,EAAE,CAAC;gBACP,IAAI,IAAI,GAAG,EAAE,GAAG,CAAC;YACnB,CAAC;YAED,IAAI,MAAM,EAAE,CAAC;gBACX,IAAI,IAAI,IAAI,EAAE,CAAC,SAAS,CAAC,EAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAC,CAAC,EAAE,CAAC;YACzD,CAAC;YAED,OAAO,IAAI,CAAC;QACd,CAAC;QAED,iBAAiB;YACf,OAAO,IAAI,gBAAQ,CAAC,SAAS,IAAI,gBAAQ,CAAC,SAAS,GAAG,CAAC;QACzD,CAAC;KACF;IAED,OAAO,EAAE;QACP,OAAO;YACL,OAAO,IAAI,gBAAQ,CAAC,QAAQ,IAAI,gBAAQ,CAAC,QAAQ,GAAG,CAAC;QACvD,CAAC;QAED,YAAY;YACV,OAAO,IAAI,gBAAQ,CAAC,IAAI,IAAI,gBAAQ,CAAC,QAAQ,IAAI,gBAAQ,CAAC,KAAK,GAAG,CAAC;QACrE,CAAC;QAED,eAAe;YACb,OAAO,IAAI,gBAAQ,CAAC,IAAI,IAAI,gBAAQ,CAAC,QAAQ,IAAI,gBAAQ,CAAC,QAAQ,GAAG,CAAC;QACxE,CAAC;QAED,eAAe;YACb,OAAO,IAAI,gBAAQ,CAAC,QAAQ,IAAI,gBAAQ,CAAC,QAAQ,GAAG,CAAC;QACvD,CAAC;KACF;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"author": "Florian Imdahl <git@ffflorian.de>",
|
|
3
3
|
"dependencies": {
|
|
4
4
|
"@hapi/hawk": "8.0.0",
|
|
5
|
-
"axios": "1.
|
|
6
|
-
"qs": "6.
|
|
5
|
+
"axios": "1.7.2",
|
|
6
|
+
"qs": "6.12.3"
|
|
7
7
|
},
|
|
8
8
|
"description": "An bamboohr.com API client",
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@types/hapi__hawk": "8.0.6",
|
|
11
|
-
"@types/node": "~
|
|
12
|
-
"rimraf": "5.0.
|
|
13
|
-
"typedoc": "0.25.
|
|
14
|
-
"typescript": "5.
|
|
11
|
+
"@types/node": "~20",
|
|
12
|
+
"rimraf": "5.0.8",
|
|
13
|
+
"typedoc": "0.25.13",
|
|
14
|
+
"typescript": "5.4.5"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">= 10.9"
|
|
@@ -35,6 +35,6 @@
|
|
|
35
35
|
"dist": "yarn clean && yarn build:ts",
|
|
36
36
|
"test": "exit 0"
|
|
37
37
|
},
|
|
38
|
-
"version": "1.3.
|
|
39
|
-
"gitHead": "
|
|
38
|
+
"version": "1.3.8",
|
|
39
|
+
"gitHead": "d647cd5987ff643500c35334384a54f91e6cb176"
|
|
40
40
|
}
|