absence.io 2.4.4 → 2.4.6
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/package.json +5 -6
- package/dist/AbsenceIO.d.ts +0 -17
- package/dist/AbsenceIO.js +0 -82
- package/dist/Endpoints.d.ts +0 -39
- package/dist/Endpoints.js +0 -64
- package/dist/api/APIBase.d.ts +0 -18
- package/dist/api/APIBase.js +0 -31
- package/dist/api/AbsenceAPI.d.ts +0 -26
- package/dist/api/AbsenceAPI.js +0 -68
- package/dist/api/AllowanceTypeAPI.d.ts +0 -16
- package/dist/api/AllowanceTypeAPI.js +0 -44
- package/dist/api/DepartmentAPI.d.ts +0 -16
- package/dist/api/DepartmentAPI.js +0 -44
- package/dist/api/LocationAPI.d.ts +0 -16
- package/dist/api/LocationAPI.js +0 -44
- package/dist/api/ReasonAPI.d.ts +0 -17
- package/dist/api/ReasonAPI.js +0 -44
- package/dist/api/TeamAPI.d.ts +0 -16
- package/dist/api/TeamAPI.js +0 -44
- package/dist/api/TimespanAPI.d.ts +0 -36
- package/dist/api/TimespanAPI.js +0 -84
- package/dist/api/UserAPI.d.ts +0 -48
- package/dist/api/UserAPI.js +0 -97
- package/dist/api/index.d.ts +0 -8
- package/dist/api/index.js +0 -24
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -18
- package/dist/interfaces/API.d.ts +0 -11
- package/dist/interfaces/API.js +0 -2
- package/dist/interfaces/Absence.d.ts +0 -75
- package/dist/interfaces/Absence.js +0 -2
- package/dist/interfaces/Allowance.d.ts +0 -14
- package/dist/interfaces/Allowance.js +0 -2
- package/dist/interfaces/ClientOptions.d.ts +0 -7
- package/dist/interfaces/ClientOptions.js +0 -2
- package/dist/interfaces/Department.d.ts +0 -19
- package/dist/interfaces/Department.js +0 -2
- package/dist/interfaces/EmailList.d.ts +0 -6
- package/dist/interfaces/EmailList.js +0 -2
- package/dist/interfaces/Location.d.ts +0 -24
- package/dist/interfaces/Location.js +0 -2
- package/dist/interfaces/Options.d.ts +0 -17
- package/dist/interfaces/Options.js +0 -2
- package/dist/interfaces/Reason.d.ts +0 -28
- package/dist/interfaces/Reason.js +0 -2
- package/dist/interfaces/Result.d.ts +0 -7
- package/dist/interfaces/Result.js +0 -2
- package/dist/interfaces/Team.d.ts +0 -10
- package/dist/interfaces/Team.js +0 -2
- package/dist/interfaces/Timespan.d.ts +0 -24
- package/dist/interfaces/Timespan.js +0 -2
- package/dist/interfaces/User.d.ts +0 -65
- package/dist/interfaces/User.js +0 -16
- package/dist/interfaces/WorkingDay.d.ts +0 -10
- package/dist/interfaces/WorkingDay.js +0 -13
- package/dist/interfaces/index.d.ts +0 -13
- package/dist/interfaces/index.js +0 -29
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface NewTimespan {
|
|
2
|
-
/** optional comments on timespans */
|
|
3
|
-
commentary?: string;
|
|
4
|
-
/** end of the timespan. Format: "2018-01-01T12:59:57.000Z" stored in UTC */
|
|
5
|
-
end?: string;
|
|
6
|
-
/** start of the timespan. Format: "2018-01-01T12:53:59.000Z" stored in UTC */
|
|
7
|
-
start: string;
|
|
8
|
-
/** +0000 UTC offset of the timespan in format (+/-)0200. Example: +0200 or -0300 */
|
|
9
|
-
timezone?: string;
|
|
10
|
-
/** GMT Name of the timezone the timespan should be associated with */
|
|
11
|
-
timezoneName?: string;
|
|
12
|
-
/** defines the type of the timespan. Can be work or break */
|
|
13
|
-
type: string;
|
|
14
|
-
/** who the timespan is assigned to */
|
|
15
|
-
userId: string;
|
|
16
|
-
}
|
|
17
|
-
export interface Timespan extends Required<NewTimespan> {
|
|
18
|
-
/** unique identifier */
|
|
19
|
-
readonly _id: string;
|
|
20
|
-
/** end truncated to the minute for in-app calculations */
|
|
21
|
-
readonly effectiveEnd: string;
|
|
22
|
-
/** start truncated to the minute for in-app calculations */
|
|
23
|
-
readonly effectiveStart: string;
|
|
24
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { WorkingDays } from './WorkingDay';
|
|
2
|
-
export interface NewUser {
|
|
3
|
-
/** the default approver for this user. If not set it will inherit the approver from the department */
|
|
4
|
-
approverId?: string;
|
|
5
|
-
/** the department this user belongs to */
|
|
6
|
-
departmentId: string;
|
|
7
|
-
/** email used for authentication. On update, a verification email will be sent to the new address */
|
|
8
|
-
email: string;
|
|
9
|
-
/** an optional custom identifier for the user */
|
|
10
|
-
employeeId?: string;
|
|
11
|
-
/** */
|
|
12
|
-
firstName: string;
|
|
13
|
-
/** the region used to determine the translated names of the holidays. Seperation to region needed when setting to custom. */
|
|
14
|
-
holidayCountryLanguage: string;
|
|
15
|
-
/** the actual holidays this user has assigned */
|
|
16
|
-
holidayIds?: any[];
|
|
17
|
-
/** the region used to rectrieve the holidays for this user. eg. "de-by" */
|
|
18
|
-
holidaySubregion: string;
|
|
19
|
-
/** ics link for viewing absences in external applications, prefix?: https://app.absence.io/ */
|
|
20
|
-
icsLink?: string;
|
|
21
|
-
/** indicates if holidays are to be inherited from the location */
|
|
22
|
-
inheritHolidays?: boolean;
|
|
23
|
-
/** if the user is only of role User, this field enables him to be set as an approver. If this is set to false for Owner,HR, Admin then these users will not appear in the approver selection combos. Technically they can still approve. */
|
|
24
|
-
isApprover?: boolean;
|
|
25
|
-
/** the language the UI will be displayed in */
|
|
26
|
-
language?: 'de' | 'en';
|
|
27
|
-
/** */
|
|
28
|
-
lastName: string;
|
|
29
|
-
/** the location this user belongs to */
|
|
30
|
-
locationId: string;
|
|
31
|
-
/** comment field on the user */
|
|
32
|
-
notes?: string;
|
|
33
|
-
/** the role assigned to the user */
|
|
34
|
-
role: string;
|
|
35
|
-
/** the role of this user */
|
|
36
|
-
roleId: string;
|
|
37
|
-
/** the status of the user */
|
|
38
|
-
status?: UserStatus;
|
|
39
|
-
/** array of team ids this user belongs to */
|
|
40
|
-
teamId?: string[];
|
|
41
|
-
/** the current default vaction days for this user. if not specified on creation, the companys default vactaionDays will be set. */
|
|
42
|
-
vacationDays?: number;
|
|
43
|
-
/** defines the working days for the user. see below for details */
|
|
44
|
-
workingDays?: WorkingDays;
|
|
45
|
-
}
|
|
46
|
-
export interface User extends Required<NewUser> {
|
|
47
|
-
/** unique identifier */
|
|
48
|
-
readonly _id: string;
|
|
49
|
-
/** the id for the user avatar/image */
|
|
50
|
-
readonly avatar: string;
|
|
51
|
-
/** first and last name concatentated for your convenience */
|
|
52
|
-
readonly name: string;
|
|
53
|
-
}
|
|
54
|
-
export declare enum UserStatus {
|
|
55
|
-
/** Account is deleted and will be removed from the system 30 days after deletion. */
|
|
56
|
-
DELETED = 0,
|
|
57
|
-
/** The account was created. The user cannot login yet */
|
|
58
|
-
CREATED = 1,
|
|
59
|
-
/** Account is active. User can login */
|
|
60
|
-
ACTIVE = 2,
|
|
61
|
-
/** Account is inactive. User cannot login */
|
|
62
|
-
INACTIVE = 3,
|
|
63
|
-
/** The invitation email was sent. The user cannot login yet */
|
|
64
|
-
EMAIL_SENT = 4
|
|
65
|
-
}
|
package/dist/interfaces/User.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserStatus = void 0;
|
|
4
|
-
var UserStatus;
|
|
5
|
-
(function (UserStatus) {
|
|
6
|
-
/** Account is deleted and will be removed from the system 30 days after deletion. */
|
|
7
|
-
UserStatus[UserStatus["DELETED"] = 0] = "DELETED";
|
|
8
|
-
/** The account was created. The user cannot login yet */
|
|
9
|
-
UserStatus[UserStatus["CREATED"] = 1] = "CREATED";
|
|
10
|
-
/** Account is active. User can login */
|
|
11
|
-
UserStatus[UserStatus["ACTIVE"] = 2] = "ACTIVE";
|
|
12
|
-
/** Account is inactive. User cannot login */
|
|
13
|
-
UserStatus[UserStatus["INACTIVE"] = 3] = "INACTIVE";
|
|
14
|
-
/** The invitation email was sent. The user cannot login yet */
|
|
15
|
-
UserStatus[UserStatus["EMAIL_SENT"] = 4] = "EMAIL_SENT";
|
|
16
|
-
})(UserStatus || (exports.UserStatus = UserStatus = {}));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkingDay = void 0;
|
|
4
|
-
var WorkingDay;
|
|
5
|
-
(function (WorkingDay) {
|
|
6
|
-
WorkingDay[WorkingDay["SUNDAY"] = 0] = "SUNDAY";
|
|
7
|
-
WorkingDay[WorkingDay["MONDAY"] = 1] = "MONDAY";
|
|
8
|
-
WorkingDay[WorkingDay["TUESDAY"] = 2] = "TUESDAY";
|
|
9
|
-
WorkingDay[WorkingDay["WEDNESDAY"] = 3] = "WEDNESDAY";
|
|
10
|
-
WorkingDay[WorkingDay["THURSDAY"] = 4] = "THURSDAY";
|
|
11
|
-
WorkingDay[WorkingDay["FRIDAY"] = 5] = "FRIDAY";
|
|
12
|
-
WorkingDay[WorkingDay["SATURDAY"] = 6] = "SATURDAY";
|
|
13
|
-
})(WorkingDay || (exports.WorkingDay = WorkingDay = {}));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from './Absence';
|
|
2
|
-
export * from './Allowance';
|
|
3
|
-
export * from './API';
|
|
4
|
-
export * from './ClientOptions';
|
|
5
|
-
export * from './Department';
|
|
6
|
-
export * from './EmailList';
|
|
7
|
-
export * from './Location';
|
|
8
|
-
export * from './Options';
|
|
9
|
-
export * from './Reason';
|
|
10
|
-
export * from './Result';
|
|
11
|
-
export * from './Team';
|
|
12
|
-
export * from './Timespan';
|
|
13
|
-
export * from './User';
|
package/dist/interfaces/index.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./Absence"), exports);
|
|
18
|
-
__exportStar(require("./Allowance"), exports);
|
|
19
|
-
__exportStar(require("./API"), exports);
|
|
20
|
-
__exportStar(require("./ClientOptions"), exports);
|
|
21
|
-
__exportStar(require("./Department"), exports);
|
|
22
|
-
__exportStar(require("./EmailList"), exports);
|
|
23
|
-
__exportStar(require("./Location"), exports);
|
|
24
|
-
__exportStar(require("./Options"), exports);
|
|
25
|
-
__exportStar(require("./Reason"), exports);
|
|
26
|
-
__exportStar(require("./Result"), exports);
|
|
27
|
-
__exportStar(require("./Team"), exports);
|
|
28
|
-
__exportStar(require("./Timespan"), exports);
|
|
29
|
-
__exportStar(require("./User"), exports);
|