rotacloud 1.0.10 → 1.0.11
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/cjs/models/user.model.d.ts +31 -1
- package/dist/cjs/models/user.model.js +31 -1
- package/dist/cjs/version.js +1 -1
- package/dist/mjs/models/user.model.d.ts +31 -1
- package/dist/mjs/models/user.model.js +31 -1
- package/dist/mjs/version.js +1 -1
- package/package.json +1 -1
- package/src/models/user.model.ts +66 -6
- package/src/version.ts +1 -1
|
@@ -25,9 +25,39 @@ export interface TeamProperties {
|
|
|
25
25
|
}
|
|
26
26
|
export declare class User {
|
|
27
27
|
id: number;
|
|
28
|
+
created_at: number;
|
|
29
|
+
created_by: number;
|
|
30
|
+
deleted: boolean;
|
|
31
|
+
deleted_at: number | null;
|
|
32
|
+
deleted_by: number | null;
|
|
33
|
+
level: string;
|
|
28
34
|
first_name: string;
|
|
35
|
+
middle_name: string | null;
|
|
29
36
|
last_name: string;
|
|
30
|
-
photo: string | null;
|
|
31
37
|
preferred_name: string | null;
|
|
38
|
+
photo: string | null;
|
|
39
|
+
two_factor_enabled: boolean;
|
|
40
|
+
email: string;
|
|
41
|
+
has_account: boolean;
|
|
42
|
+
invite_sent: boolean;
|
|
43
|
+
group: number | null;
|
|
44
|
+
locations: number[];
|
|
45
|
+
roles: number[];
|
|
46
|
+
default_role: number | null;
|
|
47
|
+
dob: string | null;
|
|
48
|
+
start_date: string | null;
|
|
49
|
+
final_working_date: string | null;
|
|
50
|
+
weekly_hours: number | null;
|
|
51
|
+
holiday_allowance: number;
|
|
52
|
+
holiday_allowance_unit: string;
|
|
53
|
+
payroll_id: string | null;
|
|
54
|
+
salary: number;
|
|
55
|
+
salary_type: string;
|
|
56
|
+
overtime_rate: number;
|
|
57
|
+
role_rates: LeaveRates;
|
|
58
|
+
leave_rates: RoleRates;
|
|
59
|
+
leave_rates_unit: string;
|
|
60
|
+
leave_rates_type: string;
|
|
61
|
+
notes: string | null;
|
|
32
62
|
constructor(user: ApiUser);
|
|
33
63
|
}
|
|
@@ -5,10 +5,40 @@ exports.User = void 0;
|
|
|
5
5
|
class User {
|
|
6
6
|
constructor(user) {
|
|
7
7
|
this.id = user.id;
|
|
8
|
+
this.created_at = user.created_at;
|
|
9
|
+
this.created_by = user.created_by;
|
|
10
|
+
this.deleted = user.deleted;
|
|
11
|
+
this.deleted_at = user.deleted_at;
|
|
12
|
+
this.deleted_by = user.deleted_by;
|
|
13
|
+
this.level = user.level;
|
|
8
14
|
this.first_name = user.first_name;
|
|
15
|
+
this.middle_name = user.middle_name;
|
|
9
16
|
this.last_name = user.last_name;
|
|
10
|
-
this.photo = user.photo;
|
|
11
17
|
this.preferred_name = user.preferred_name;
|
|
18
|
+
this.photo = user.photo;
|
|
19
|
+
this.two_factor_enabled = user.two_factor_enabled;
|
|
20
|
+
this.email = user.email;
|
|
21
|
+
this.has_account = user.has_account;
|
|
22
|
+
this.invite_sent = user.invite_sent;
|
|
23
|
+
this.group = user.group;
|
|
24
|
+
this.locations = user.locations;
|
|
25
|
+
this.roles = user.roles;
|
|
26
|
+
this.default_role = user.default_role;
|
|
27
|
+
this.dob = user.dob;
|
|
28
|
+
this.start_date = user.start_date;
|
|
29
|
+
this.final_working_date = user.final_working_date;
|
|
30
|
+
this.weekly_hours = user.weekly_hours;
|
|
31
|
+
this.holiday_allowance = user.holiday_allowance;
|
|
32
|
+
this.holiday_allowance_unit = user.holiday_allowance_unit;
|
|
33
|
+
this.payroll_id = user.payroll_id;
|
|
34
|
+
this.salary = user.salary;
|
|
35
|
+
this.salary_type = user.salary_type;
|
|
36
|
+
this.overtime_rate = user.overtime_rate;
|
|
37
|
+
this.role_rates = user.role_rates;
|
|
38
|
+
this.leave_rates = user.leave_rates;
|
|
39
|
+
this.leave_rates_unit = user.leave_rates_unit;
|
|
40
|
+
this.leave_rates_type = user.leave_rates_type;
|
|
41
|
+
this.notes = user.notes;
|
|
12
42
|
}
|
|
13
43
|
}
|
|
14
44
|
exports.User = User;
|
package/dist/cjs/version.js
CHANGED
|
@@ -25,9 +25,39 @@ export interface TeamProperties {
|
|
|
25
25
|
}
|
|
26
26
|
export declare class User {
|
|
27
27
|
id: number;
|
|
28
|
+
created_at: number;
|
|
29
|
+
created_by: number;
|
|
30
|
+
deleted: boolean;
|
|
31
|
+
deleted_at: number | null;
|
|
32
|
+
deleted_by: number | null;
|
|
33
|
+
level: string;
|
|
28
34
|
first_name: string;
|
|
35
|
+
middle_name: string | null;
|
|
29
36
|
last_name: string;
|
|
30
|
-
photo: string | null;
|
|
31
37
|
preferred_name: string | null;
|
|
38
|
+
photo: string | null;
|
|
39
|
+
two_factor_enabled: boolean;
|
|
40
|
+
email: string;
|
|
41
|
+
has_account: boolean;
|
|
42
|
+
invite_sent: boolean;
|
|
43
|
+
group: number | null;
|
|
44
|
+
locations: number[];
|
|
45
|
+
roles: number[];
|
|
46
|
+
default_role: number | null;
|
|
47
|
+
dob: string | null;
|
|
48
|
+
start_date: string | null;
|
|
49
|
+
final_working_date: string | null;
|
|
50
|
+
weekly_hours: number | null;
|
|
51
|
+
holiday_allowance: number;
|
|
52
|
+
holiday_allowance_unit: string;
|
|
53
|
+
payroll_id: string | null;
|
|
54
|
+
salary: number;
|
|
55
|
+
salary_type: string;
|
|
56
|
+
overtime_rate: number;
|
|
57
|
+
role_rates: LeaveRates;
|
|
58
|
+
leave_rates: RoleRates;
|
|
59
|
+
leave_rates_unit: string;
|
|
60
|
+
leave_rates_type: string;
|
|
61
|
+
notes: string | null;
|
|
32
62
|
constructor(user: ApiUser);
|
|
33
63
|
}
|
|
@@ -2,9 +2,39 @@
|
|
|
2
2
|
export class User {
|
|
3
3
|
constructor(user) {
|
|
4
4
|
this.id = user.id;
|
|
5
|
+
this.created_at = user.created_at;
|
|
6
|
+
this.created_by = user.created_by;
|
|
7
|
+
this.deleted = user.deleted;
|
|
8
|
+
this.deleted_at = user.deleted_at;
|
|
9
|
+
this.deleted_by = user.deleted_by;
|
|
10
|
+
this.level = user.level;
|
|
5
11
|
this.first_name = user.first_name;
|
|
12
|
+
this.middle_name = user.middle_name;
|
|
6
13
|
this.last_name = user.last_name;
|
|
7
|
-
this.photo = user.photo;
|
|
8
14
|
this.preferred_name = user.preferred_name;
|
|
15
|
+
this.photo = user.photo;
|
|
16
|
+
this.two_factor_enabled = user.two_factor_enabled;
|
|
17
|
+
this.email = user.email;
|
|
18
|
+
this.has_account = user.has_account;
|
|
19
|
+
this.invite_sent = user.invite_sent;
|
|
20
|
+
this.group = user.group;
|
|
21
|
+
this.locations = user.locations;
|
|
22
|
+
this.roles = user.roles;
|
|
23
|
+
this.default_role = user.default_role;
|
|
24
|
+
this.dob = user.dob;
|
|
25
|
+
this.start_date = user.start_date;
|
|
26
|
+
this.final_working_date = user.final_working_date;
|
|
27
|
+
this.weekly_hours = user.weekly_hours;
|
|
28
|
+
this.holiday_allowance = user.holiday_allowance;
|
|
29
|
+
this.holiday_allowance_unit = user.holiday_allowance_unit;
|
|
30
|
+
this.payroll_id = user.payroll_id;
|
|
31
|
+
this.salary = user.salary;
|
|
32
|
+
this.salary_type = user.salary_type;
|
|
33
|
+
this.overtime_rate = user.overtime_rate;
|
|
34
|
+
this.role_rates = user.role_rates;
|
|
35
|
+
this.leave_rates = user.leave_rates;
|
|
36
|
+
this.leave_rates_unit = user.leave_rates_unit;
|
|
37
|
+
this.leave_rates_type = user.leave_rates_type;
|
|
38
|
+
this.notes = user.notes;
|
|
9
39
|
}
|
|
10
40
|
}
|
package/dist/mjs/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const Version = { version: "1.0.
|
|
1
|
+
export const Version = { version: "1.0.11" };
|
package/package.json
CHANGED
package/src/models/user.model.ts
CHANGED
|
@@ -31,17 +31,77 @@ export interface TeamProperties {
|
|
|
31
31
|
|
|
32
32
|
// Models should be an abstraction over Api Models/Responses
|
|
33
33
|
export class User {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
id: number;
|
|
35
|
+
created_at: number;
|
|
36
|
+
created_by: number;
|
|
37
|
+
deleted: boolean;
|
|
38
|
+
deleted_at: number | null;
|
|
39
|
+
deleted_by: number | null;
|
|
40
|
+
level: string;
|
|
41
|
+
first_name: string;
|
|
42
|
+
middle_name: string | null;
|
|
43
|
+
last_name: string;
|
|
44
|
+
preferred_name: string | null;
|
|
45
|
+
photo: string | null;
|
|
46
|
+
two_factor_enabled: boolean;
|
|
47
|
+
email: string;
|
|
48
|
+
has_account: boolean;
|
|
49
|
+
invite_sent: boolean;
|
|
50
|
+
group: number | null;
|
|
51
|
+
locations: number[];
|
|
52
|
+
roles: number[];
|
|
53
|
+
default_role: number | null;
|
|
54
|
+
dob: string | null;
|
|
55
|
+
start_date: string | null;
|
|
56
|
+
final_working_date: string | null;
|
|
57
|
+
weekly_hours: number | null;
|
|
58
|
+
holiday_allowance: number;
|
|
59
|
+
holiday_allowance_unit: string;
|
|
60
|
+
payroll_id: string | null;
|
|
61
|
+
salary: number;
|
|
62
|
+
salary_type: string;
|
|
63
|
+
overtime_rate: number;
|
|
64
|
+
role_rates: LeaveRates;
|
|
65
|
+
leave_rates: RoleRates;
|
|
66
|
+
leave_rates_unit: string;
|
|
67
|
+
leave_rates_type: string;
|
|
68
|
+
notes: string | null;
|
|
39
69
|
|
|
40
70
|
constructor(user: ApiUser) {
|
|
41
71
|
this.id = user.id;
|
|
72
|
+
this.created_at = user.created_at;
|
|
73
|
+
this.created_by = user.created_by;
|
|
74
|
+
this.deleted = user.deleted;
|
|
75
|
+
this.deleted_at = user.deleted_at;
|
|
76
|
+
this.deleted_by = user.deleted_by;
|
|
77
|
+
this.level = user.level;
|
|
42
78
|
this.first_name = user.first_name;
|
|
79
|
+
this.middle_name = user.middle_name;
|
|
43
80
|
this.last_name = user.last_name;
|
|
44
|
-
this.photo = user.photo;
|
|
45
81
|
this.preferred_name = user.preferred_name;
|
|
82
|
+
this.photo = user.photo;
|
|
83
|
+
this.two_factor_enabled = user.two_factor_enabled;
|
|
84
|
+
this.email = user.email;
|
|
85
|
+
this.has_account = user.has_account;
|
|
86
|
+
this.invite_sent = user.invite_sent;
|
|
87
|
+
this.group = user.group;
|
|
88
|
+
this.locations = user.locations;
|
|
89
|
+
this.roles = user.roles;
|
|
90
|
+
this.default_role = user.default_role;
|
|
91
|
+
this.dob = user.dob;
|
|
92
|
+
this.start_date = user.start_date;
|
|
93
|
+
this.final_working_date = user.final_working_date;
|
|
94
|
+
this.weekly_hours = user.weekly_hours;
|
|
95
|
+
this.holiday_allowance = user.holiday_allowance;
|
|
96
|
+
this.holiday_allowance_unit = user.holiday_allowance_unit;
|
|
97
|
+
this.payroll_id = user.payroll_id;
|
|
98
|
+
this.salary = user.salary;
|
|
99
|
+
this.salary_type = user.salary_type;
|
|
100
|
+
this.overtime_rate = user.overtime_rate;
|
|
101
|
+
this.role_rates = user.role_rates;
|
|
102
|
+
this.leave_rates = user.leave_rates;
|
|
103
|
+
this.leave_rates_unit = user.leave_rates_unit;
|
|
104
|
+
this.leave_rates_type = user.leave_rates_type;
|
|
105
|
+
this.notes = user.notes;
|
|
46
106
|
}
|
|
47
107
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const Version = { version: "1.0.
|
|
1
|
+
export const Version = { version: "1.0.11" }
|