@t4dhg/mcp-factorial 8.2.0 → 10.0.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 +77 -15
- package/dist/api/attendance.d.ts +37 -13
- package/dist/api/attendance.d.ts.map +1 -1
- package/dist/api/attendance.js +161 -31
- package/dist/api/attendance.js.map +1 -1
- package/dist/api/contracts.js +4 -4
- package/dist/api/contracts.js.map +1 -1
- package/dist/api/documents.d.ts +6 -5
- package/dist/api/documents.d.ts.map +1 -1
- package/dist/api/documents.js +17 -12
- package/dist/api/documents.js.map +1 -1
- package/dist/api/employees.d.ts +5 -3
- package/dist/api/employees.d.ts.map +1 -1
- package/dist/api/employees.js +7 -5
- package/dist/api/employees.js.map +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/index.js.map +1 -1
- package/dist/api/time-off.d.ts +6 -1
- package/dist/api/time-off.d.ts.map +1 -1
- package/dist/api/time-off.js +20 -16
- package/dist/api/time-off.js.map +1 -1
- package/dist/attendance/backfill.d.ts +36 -0
- package/dist/attendance/backfill.d.ts.map +1 -0
- package/dist/attendance/backfill.js +104 -0
- package/dist/attendance/backfill.js.map +1 -0
- package/dist/attendance/gate.d.ts +40 -0
- package/dist/attendance/gate.d.ts.map +1 -0
- package/dist/attendance/gate.js +63 -0
- package/dist/attendance/gate.js.map +1 -0
- package/dist/attendance/identity.d.ts +27 -0
- package/dist/attendance/identity.d.ts.map +1 -0
- package/dist/attendance/identity.js +73 -0
- package/dist/attendance/identity.js.map +1 -0
- package/dist/attendance/planner.d.ts +147 -0
- package/dist/attendance/planner.d.ts.map +1 -0
- package/dist/attendance/planner.js +316 -0
- package/dist/attendance/planner.js.map +1 -0
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +4 -1
- package/dist/config.js.map +1 -1
- package/dist/endpoints.d.ts +5 -0
- package/dist/endpoints.d.ts.map +1 -1
- package/dist/endpoints.js +5 -0
- package/dist/endpoints.js.map +1 -1
- package/dist/http-client.d.ts +26 -1
- package/dist/http-client.d.ts.map +1 -1
- package/dist/http-client.js +68 -8
- package/dist/http-client.js.map +1 -1
- package/dist/schemas/ats.d.ts +204 -127
- package/dist/schemas/ats.d.ts.map +1 -1
- package/dist/schemas/ats.js +77 -39
- package/dist/schemas/ats.js.map +1 -1
- package/dist/schemas/attendance.d.ts +367 -0
- package/dist/schemas/attendance.d.ts.map +1 -0
- package/dist/schemas/attendance.js +159 -0
- package/dist/schemas/attendance.js.map +1 -0
- package/dist/schemas/documents.d.ts +75 -45
- package/dist/schemas/documents.d.ts.map +1 -1
- package/dist/schemas/documents.js +44 -15
- package/dist/schemas/documents.js.map +1 -1
- package/dist/schemas/employees.d.ts +135 -77
- package/dist/schemas/employees.d.ts.map +1 -1
- package/dist/schemas/employees.js +65 -30
- package/dist/schemas/employees.js.map +1 -1
- package/dist/schemas/index.d.ts +3 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +4 -2
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/job-catalog.d.ts +39 -27
- package/dist/schemas/job-catalog.d.ts.map +1 -1
- package/dist/schemas/job-catalog.js +16 -9
- package/dist/schemas/job-catalog.js.map +1 -1
- package/dist/schemas/payroll.d.ts +89 -70
- package/dist/schemas/payroll.d.ts.map +1 -1
- package/dist/schemas/payroll.js +49 -24
- package/dist/schemas/payroll.js.map +1 -1
- package/dist/schemas/projects.d.ts +123 -97
- package/dist/schemas/projects.d.ts.map +1 -1
- package/dist/schemas/projects.js +51 -32
- package/dist/schemas/projects.js.map +1 -1
- package/dist/schemas/shared.d.ts +13 -0
- package/dist/schemas/shared.d.ts.map +1 -1
- package/dist/schemas/shared.js +13 -0
- package/dist/schemas/shared.js.map +1 -1
- package/dist/schemas/time-off.d.ts +244 -187
- package/dist/schemas/time-off.d.ts.map +1 -1
- package/dist/schemas/time-off.js +96 -63
- package/dist/schemas/time-off.js.map +1 -1
- package/dist/schemas/training.d.ts +180 -76
- package/dist/schemas/training.d.ts.map +1 -1
- package/dist/schemas/training.js +75 -25
- package/dist/schemas/training.js.map +1 -1
- package/dist/schemas/work-areas.d.ts +14 -21
- package/dist/schemas/work-areas.d.ts.map +1 -1
- package/dist/schemas/work-areas.js +9 -7
- package/dist/schemas/work-areas.js.map +1 -1
- package/dist/tools/ats.js +3 -3
- package/dist/tools/ats.js.map +1 -1
- package/dist/tools/attendance.d.ts +9 -1
- package/dist/tools/attendance.d.ts.map +1 -1
- package/dist/tools/attendance.js +314 -24
- package/dist/tools/attendance.js.map +1 -1
- package/dist/tools/documents.js +6 -6
- package/dist/tools/documents.js.map +1 -1
- package/dist/tools/index.js +2 -2
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/shared.d.ts +2 -2
- package/dist/tools/shared.d.ts.map +1 -1
- package/dist/tools/shared.js +14 -2
- package/dist/tools/shared.js.map +1 -1
- package/dist/tools/time-off.d.ts.map +1 -1
- package/dist/tools/time-off.js +15 -6
- package/dist/tools/time-off.js.map +1 -1
- package/dist/tools/work-areas.js +2 -2
- package/dist/tools/work-areas.js.map +1 -1
- package/dist/types.d.ts +29 -14
- package/dist/types.d.ts.map +1 -1
- package/dist/write-safety.d.ts +18 -0
- package/dist/write-safety.d.ts.map +1 -1
- package/dist/write-safety.js +19 -0
- package/dist/write-safety.js.map +1 -1
- package/llms.txt +6 -4
- package/package.json +1 -1
|
@@ -1,177 +1,284 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Time Off schemas: Leave, LeaveType, Allowance
|
|
2
|
+
* Time Off schemas: Leave, LeaveType, Allowance
|
|
3
3
|
*/
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
/**
|
|
6
6
|
* Leave schema
|
|
7
|
+
*
|
|
8
|
+
* Field set verified against live /timeoff/leaves responses on API version
|
|
9
|
+
* 2026-07-01 (2026-09-06). There is no `status` field: approval is the
|
|
10
|
+
* boolean `approved`, null while pending. `half_day` is null for a full day,
|
|
11
|
+
* or `beggining_of_day` / `end_of_day` (Factorial's spelling). Declared with
|
|
12
|
+
* passthrough so a new field does not break parsing.
|
|
7
13
|
*/
|
|
8
14
|
export declare const LeaveSchema: z.ZodObject<{
|
|
9
|
-
id: z.
|
|
10
|
-
|
|
11
|
-
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
company_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
employee_id: z.ZodString;
|
|
18
|
+
employee_full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
leave_type_id: z.ZodString;
|
|
20
|
+
leave_type_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
21
|
start_on: z.ZodString;
|
|
13
22
|
finish_on: z.ZodString;
|
|
14
|
-
half_day: z.ZodNullable<z.
|
|
15
|
-
|
|
23
|
+
half_day: z.ZodNullable<z.ZodString>;
|
|
24
|
+
approved: z.ZodNullable<z.ZodBoolean>;
|
|
16
25
|
description: z.ZodNullable<z.ZodString>;
|
|
26
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
start_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
hours_amount_in_cents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
29
|
deleted_at: z.ZodNullable<z.ZodString>;
|
|
18
|
-
duration_attributes: z.ZodNullable<z.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
deleted_at:
|
|
58
|
-
duration_attributes:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
30
|
+
duration_attributes: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
31
|
+
days_taken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
company_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
employee_id: z.ZodString;
|
|
38
|
+
employee_full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
leave_type_id: z.ZodString;
|
|
40
|
+
leave_type_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
start_on: z.ZodString;
|
|
42
|
+
finish_on: z.ZodString;
|
|
43
|
+
half_day: z.ZodNullable<z.ZodString>;
|
|
44
|
+
approved: z.ZodNullable<z.ZodBoolean>;
|
|
45
|
+
description: z.ZodNullable<z.ZodString>;
|
|
46
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
start_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
hours_amount_in_cents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
49
|
+
deleted_at: z.ZodNullable<z.ZodString>;
|
|
50
|
+
duration_attributes: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
51
|
+
days_taken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
company_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
employee_id: z.ZodString;
|
|
58
|
+
employee_full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
leave_type_id: z.ZodString;
|
|
60
|
+
leave_type_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
start_on: z.ZodString;
|
|
62
|
+
finish_on: z.ZodString;
|
|
63
|
+
half_day: z.ZodNullable<z.ZodString>;
|
|
64
|
+
approved: z.ZodNullable<z.ZodBoolean>;
|
|
65
|
+
description: z.ZodNullable<z.ZodString>;
|
|
66
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
start_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
hours_amount_in_cents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
69
|
+
deleted_at: z.ZodNullable<z.ZodString>;
|
|
70
|
+
duration_attributes: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
71
|
+
days_taken: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
72
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
63
75
|
export type Leave = z.infer<typeof LeaveSchema>;
|
|
64
76
|
/**
|
|
65
77
|
* Leave type schema
|
|
78
|
+
*
|
|
79
|
+
* Field set verified against live /timeoff/leave-types responses on API
|
|
80
|
+
* version 2026-07-01. Leave types carry no `code` and no timestamps.
|
|
66
81
|
*/
|
|
67
82
|
export declare const LeaveTypeSchema: z.ZodObject<{
|
|
68
|
-
id: z.
|
|
83
|
+
id: z.ZodString;
|
|
69
84
|
name: z.ZodString;
|
|
70
|
-
|
|
85
|
+
translated_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
/** Built-in kind: 'holiday', 'sick', 'parental', 'compassionate', 'overtime_compensation', 'other', 'custom' */
|
|
87
|
+
identifier: z.ZodString;
|
|
71
88
|
color: z.ZodNullable<z.ZodString>;
|
|
72
89
|
description: z.ZodNullable<z.ZodString>;
|
|
73
|
-
company_id: z.ZodNullable<z.
|
|
74
|
-
|
|
75
|
-
|
|
90
|
+
company_id: z.ZodNullable<z.ZodString>;
|
|
91
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
editable: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
approval_required: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
accrues: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
attachment: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
+
is_attachment_mandatory: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
+
allow_endless: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
restricted: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
visibility: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
workable: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
payable: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
+
details_required: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
half_days_units_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
eau_eligible: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
+
allowance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
106
|
+
max_days_in_cents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
107
|
+
min_days_in_cents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
76
108
|
}, "strip", z.ZodTypeAny, {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
company_id:
|
|
80
|
-
created_at: string | null;
|
|
81
|
-
updated_at: string | null;
|
|
109
|
+
id: string;
|
|
110
|
+
identifier: string;
|
|
111
|
+
company_id: string | null;
|
|
82
112
|
name: string;
|
|
83
113
|
description: string | null;
|
|
84
114
|
color: string | null;
|
|
115
|
+
active?: boolean | undefined;
|
|
116
|
+
workable?: boolean | undefined;
|
|
117
|
+
translated_name?: string | null | undefined;
|
|
118
|
+
editable?: boolean | undefined;
|
|
119
|
+
approval_required?: boolean | undefined;
|
|
120
|
+
accrues?: boolean | undefined;
|
|
121
|
+
attachment?: boolean | undefined;
|
|
122
|
+
is_attachment_mandatory?: boolean | undefined;
|
|
123
|
+
allow_endless?: boolean | undefined;
|
|
124
|
+
restricted?: boolean | undefined;
|
|
125
|
+
visibility?: boolean | undefined;
|
|
126
|
+
payable?: boolean | undefined;
|
|
127
|
+
details_required?: boolean | undefined;
|
|
128
|
+
half_days_units_enabled?: boolean | undefined;
|
|
129
|
+
eau_eligible?: boolean | undefined;
|
|
130
|
+
allowance_ids?: string[] | undefined;
|
|
131
|
+
max_days_in_cents?: number | null | undefined;
|
|
132
|
+
min_days_in_cents?: number | null | undefined;
|
|
85
133
|
}, {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
company_id:
|
|
89
|
-
created_at: string | null;
|
|
90
|
-
updated_at: string | null;
|
|
134
|
+
id: string;
|
|
135
|
+
identifier: string;
|
|
136
|
+
company_id: string | null;
|
|
91
137
|
name: string;
|
|
92
138
|
description: string | null;
|
|
93
139
|
color: string | null;
|
|
140
|
+
active?: boolean | undefined;
|
|
141
|
+
workable?: boolean | undefined;
|
|
142
|
+
translated_name?: string | null | undefined;
|
|
143
|
+
editable?: boolean | undefined;
|
|
144
|
+
approval_required?: boolean | undefined;
|
|
145
|
+
accrues?: boolean | undefined;
|
|
146
|
+
attachment?: boolean | undefined;
|
|
147
|
+
is_attachment_mandatory?: boolean | undefined;
|
|
148
|
+
allow_endless?: boolean | undefined;
|
|
149
|
+
restricted?: boolean | undefined;
|
|
150
|
+
visibility?: boolean | undefined;
|
|
151
|
+
payable?: boolean | undefined;
|
|
152
|
+
details_required?: boolean | undefined;
|
|
153
|
+
half_days_units_enabled?: boolean | undefined;
|
|
154
|
+
eau_eligible?: boolean | undefined;
|
|
155
|
+
allowance_ids?: string[] | undefined;
|
|
156
|
+
max_days_in_cents?: number | null | undefined;
|
|
157
|
+
min_days_in_cents?: number | null | undefined;
|
|
94
158
|
}>;
|
|
95
159
|
export type LeaveType = z.infer<typeof LeaveTypeSchema>;
|
|
96
160
|
/**
|
|
97
161
|
* Allowance schema
|
|
162
|
+
*
|
|
163
|
+
* /timeoff/allowances returns the allowance *definitions* of a time-off
|
|
164
|
+
* policy (cycle, accrual, carry-over and rounding rules), not per-employee
|
|
165
|
+
* balances. Field set verified against a live response on API version
|
|
166
|
+
* 2026-07-01. Per-employee balances live in /timeoff/allowance_stats, which
|
|
167
|
+
* this server does not call.
|
|
98
168
|
*/
|
|
99
169
|
export declare const AllowanceSchema: z.ZodObject<{
|
|
100
|
-
id: z.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
timeoff_policy_id: z.ZodString;
|
|
172
|
+
name: z.ZodString;
|
|
173
|
+
leave_type_ids: z.ZodArray<z.ZodString, "many">;
|
|
174
|
+
allowance_type: z.ZodEnum<["days", "hours"]>;
|
|
175
|
+
available_days: z.ZodString;
|
|
176
|
+
days_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
177
|
+
timeoff_cycle: z.ZodString;
|
|
178
|
+
cycle_start: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
179
|
+
cycle_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
180
|
+
frequency: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly_flexible", "yearly", "lifetime"]>>>;
|
|
181
|
+
source_units: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
182
|
+
accrued_units_availability: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
183
|
+
accrued_factor_in_cents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
184
|
+
accrued_denominator_in_cents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
185
|
+
holiday_allowance_in_cents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
186
|
+
maximum_amount_in_cents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
187
|
+
unlimited_holidays: z.ZodOptional<z.ZodBoolean>;
|
|
188
|
+
unlimited_accrued_hours: z.ZodOptional<z.ZodBoolean>;
|
|
189
|
+
carry_over_days: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
190
|
+
carry_over_units_in_cents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
191
|
+
unlimited_carry_over: z.ZodOptional<z.ZodBoolean>;
|
|
192
|
+
unlimited_carry_over_expiration: z.ZodOptional<z.ZodBoolean>;
|
|
193
|
+
expire_in_months: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
194
|
+
employee_carry_over_starting_year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
195
|
+
count_holiday_as_workable: z.ZodBoolean;
|
|
196
|
+
negative_counter_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
|
+
proration_type: z.ZodEnum<["proration_enabled", "proration_disabled"]>;
|
|
198
|
+
pto_proratio_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
+
range_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
200
|
+
rounding: z.ZodEnum<["half_day", "decimals", "quarters", "round_up"]>;
|
|
201
|
+
send_notification: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
202
|
+
tenure_periods_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
203
|
+
tenure_periods: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
204
|
+
tenure_period_transition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
205
|
+
position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
111
206
|
}, "strip", z.ZodTypeAny, {
|
|
112
|
-
id:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
207
|
+
id: string;
|
|
208
|
+
name: string;
|
|
209
|
+
timeoff_policy_id: string;
|
|
210
|
+
leave_type_ids: string[];
|
|
211
|
+
allowance_type: "days" | "hours";
|
|
212
|
+
available_days: string;
|
|
213
|
+
timeoff_cycle: string;
|
|
214
|
+
count_holiday_as_workable: boolean;
|
|
215
|
+
proration_type: "proration_enabled" | "proration_disabled";
|
|
216
|
+
rounding: "half_day" | "decimals" | "quarters" | "round_up";
|
|
217
|
+
days_type?: string | null | undefined;
|
|
218
|
+
cycle_start?: string | null | undefined;
|
|
219
|
+
cycle_length?: number | null | undefined;
|
|
220
|
+
frequency?: "yearly" | "monthly_flexible" | "lifetime" | null | undefined;
|
|
221
|
+
source_units?: string | null | undefined;
|
|
222
|
+
accrued_units_availability?: string | null | undefined;
|
|
223
|
+
accrued_factor_in_cents?: number | null | undefined;
|
|
224
|
+
accrued_denominator_in_cents?: number | null | undefined;
|
|
225
|
+
holiday_allowance_in_cents?: number | null | undefined;
|
|
226
|
+
maximum_amount_in_cents?: number | null | undefined;
|
|
227
|
+
unlimited_holidays?: boolean | undefined;
|
|
228
|
+
unlimited_accrued_hours?: boolean | undefined;
|
|
229
|
+
carry_over_days?: number | null | undefined;
|
|
230
|
+
carry_over_units_in_cents?: number | null | undefined;
|
|
231
|
+
unlimited_carry_over?: boolean | undefined;
|
|
232
|
+
unlimited_carry_over_expiration?: boolean | undefined;
|
|
233
|
+
expire_in_months?: number | null | undefined;
|
|
234
|
+
employee_carry_over_starting_year?: number | null | undefined;
|
|
235
|
+
negative_counter_type?: string | null | undefined;
|
|
236
|
+
pto_proratio_enabled?: boolean | undefined;
|
|
237
|
+
range_type?: string | null | undefined;
|
|
238
|
+
send_notification?: boolean | null | undefined;
|
|
239
|
+
tenure_periods_enabled?: boolean | undefined;
|
|
240
|
+
tenure_periods?: unknown[] | undefined;
|
|
241
|
+
tenure_period_transition?: string | null | undefined;
|
|
242
|
+
position?: number | null | undefined;
|
|
123
243
|
}, {
|
|
124
|
-
id:
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
244
|
+
id: string;
|
|
245
|
+
name: string;
|
|
246
|
+
timeoff_policy_id: string;
|
|
247
|
+
leave_type_ids: string[];
|
|
248
|
+
allowance_type: "days" | "hours";
|
|
249
|
+
available_days: string;
|
|
250
|
+
timeoff_cycle: string;
|
|
251
|
+
count_holiday_as_workable: boolean;
|
|
252
|
+
proration_type: "proration_enabled" | "proration_disabled";
|
|
253
|
+
rounding: "half_day" | "decimals" | "quarters" | "round_up";
|
|
254
|
+
days_type?: string | null | undefined;
|
|
255
|
+
cycle_start?: string | null | undefined;
|
|
256
|
+
cycle_length?: number | null | undefined;
|
|
257
|
+
frequency?: "yearly" | "monthly_flexible" | "lifetime" | null | undefined;
|
|
258
|
+
source_units?: string | null | undefined;
|
|
259
|
+
accrued_units_availability?: string | null | undefined;
|
|
260
|
+
accrued_factor_in_cents?: number | null | undefined;
|
|
261
|
+
accrued_denominator_in_cents?: number | null | undefined;
|
|
262
|
+
holiday_allowance_in_cents?: number | null | undefined;
|
|
263
|
+
maximum_amount_in_cents?: number | null | undefined;
|
|
264
|
+
unlimited_holidays?: boolean | undefined;
|
|
265
|
+
unlimited_accrued_hours?: boolean | undefined;
|
|
266
|
+
carry_over_days?: number | null | undefined;
|
|
267
|
+
carry_over_units_in_cents?: number | null | undefined;
|
|
268
|
+
unlimited_carry_over?: boolean | undefined;
|
|
269
|
+
unlimited_carry_over_expiration?: boolean | undefined;
|
|
270
|
+
expire_in_months?: number | null | undefined;
|
|
271
|
+
employee_carry_over_starting_year?: number | null | undefined;
|
|
272
|
+
negative_counter_type?: string | null | undefined;
|
|
273
|
+
pto_proratio_enabled?: boolean | undefined;
|
|
274
|
+
range_type?: string | null | undefined;
|
|
275
|
+
send_notification?: boolean | null | undefined;
|
|
276
|
+
tenure_periods_enabled?: boolean | undefined;
|
|
277
|
+
tenure_periods?: unknown[] | undefined;
|
|
278
|
+
tenure_period_transition?: string | null | undefined;
|
|
279
|
+
position?: number | null | undefined;
|
|
135
280
|
}>;
|
|
136
281
|
export type Allowance = z.infer<typeof AllowanceSchema>;
|
|
137
|
-
/**
|
|
138
|
-
* Shift schema
|
|
139
|
-
*/
|
|
140
|
-
export declare const ShiftSchema: z.ZodObject<{
|
|
141
|
-
id: z.ZodNumber;
|
|
142
|
-
employee_id: z.ZodNumber;
|
|
143
|
-
clock_in: z.ZodString;
|
|
144
|
-
clock_out: z.ZodNullable<z.ZodString>;
|
|
145
|
-
worked_hours: z.ZodNullable<z.ZodNumber>;
|
|
146
|
-
break_minutes: z.ZodNullable<z.ZodNumber>;
|
|
147
|
-
location: z.ZodNullable<z.ZodString>;
|
|
148
|
-
notes: z.ZodNullable<z.ZodString>;
|
|
149
|
-
created_at: z.ZodNullable<z.ZodString>;
|
|
150
|
-
updated_at: z.ZodNullable<z.ZodString>;
|
|
151
|
-
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
id: number;
|
|
153
|
-
created_at: string | null;
|
|
154
|
-
updated_at: string | null;
|
|
155
|
-
employee_id: number;
|
|
156
|
-
clock_in: string;
|
|
157
|
-
clock_out: string | null;
|
|
158
|
-
worked_hours: number | null;
|
|
159
|
-
break_minutes: number | null;
|
|
160
|
-
location: string | null;
|
|
161
|
-
notes: string | null;
|
|
162
|
-
}, {
|
|
163
|
-
id: number;
|
|
164
|
-
created_at: string | null;
|
|
165
|
-
updated_at: string | null;
|
|
166
|
-
employee_id: number;
|
|
167
|
-
clock_in: string;
|
|
168
|
-
clock_out: string | null;
|
|
169
|
-
worked_hours: number | null;
|
|
170
|
-
break_minutes: number | null;
|
|
171
|
-
location: string | null;
|
|
172
|
-
notes: string | null;
|
|
173
|
-
}>;
|
|
174
|
-
export type Shift = z.infer<typeof ShiftSchema>;
|
|
175
282
|
/**
|
|
176
283
|
* Leave create input schema
|
|
177
284
|
*/
|
|
@@ -233,54 +340,4 @@ export declare const LeaveDecisionInputSchema: z.ZodObject<{
|
|
|
233
340
|
reason?: string | undefined;
|
|
234
341
|
}>;
|
|
235
342
|
export type LeaveDecisionInput = z.infer<typeof LeaveDecisionInputSchema>;
|
|
236
|
-
/**
|
|
237
|
-
* Shift create input schema
|
|
238
|
-
*/
|
|
239
|
-
export declare const CreateShiftInputSchema: z.ZodObject<{
|
|
240
|
-
employee_id: z.ZodNumber;
|
|
241
|
-
clock_in: z.ZodString;
|
|
242
|
-
clock_out: z.ZodOptional<z.ZodString>;
|
|
243
|
-
break_minutes: z.ZodOptional<z.ZodNumber>;
|
|
244
|
-
location: z.ZodOptional<z.ZodString>;
|
|
245
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
246
|
-
}, "strip", z.ZodTypeAny, {
|
|
247
|
-
employee_id: number;
|
|
248
|
-
clock_in: string;
|
|
249
|
-
clock_out?: string | undefined;
|
|
250
|
-
break_minutes?: number | undefined;
|
|
251
|
-
location?: string | undefined;
|
|
252
|
-
notes?: string | undefined;
|
|
253
|
-
}, {
|
|
254
|
-
employee_id: number;
|
|
255
|
-
clock_in: string;
|
|
256
|
-
clock_out?: string | undefined;
|
|
257
|
-
break_minutes?: number | undefined;
|
|
258
|
-
location?: string | undefined;
|
|
259
|
-
notes?: string | undefined;
|
|
260
|
-
}>;
|
|
261
|
-
export type CreateShiftInput = z.infer<typeof CreateShiftInputSchema>;
|
|
262
|
-
/**
|
|
263
|
-
* Shift update input schema
|
|
264
|
-
*/
|
|
265
|
-
export declare const UpdateShiftInputSchema: z.ZodObject<Omit<{
|
|
266
|
-
employee_id: z.ZodOptional<z.ZodNumber>;
|
|
267
|
-
clock_in: z.ZodOptional<z.ZodString>;
|
|
268
|
-
clock_out: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
269
|
-
break_minutes: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
270
|
-
location: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
271
|
-
notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
272
|
-
}, "employee_id">, "strip", z.ZodTypeAny, {
|
|
273
|
-
clock_in?: string | undefined;
|
|
274
|
-
clock_out?: string | undefined;
|
|
275
|
-
break_minutes?: number | undefined;
|
|
276
|
-
location?: string | undefined;
|
|
277
|
-
notes?: string | undefined;
|
|
278
|
-
}, {
|
|
279
|
-
clock_in?: string | undefined;
|
|
280
|
-
clock_out?: string | undefined;
|
|
281
|
-
break_minutes?: number | undefined;
|
|
282
|
-
location?: string | undefined;
|
|
283
|
-
notes?: string | undefined;
|
|
284
|
-
}>;
|
|
285
|
-
export type UpdateShiftInput = z.infer<typeof UpdateShiftInputSchema>;
|
|
286
343
|
//# sourceMappingURL=time-off.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-off.d.ts","sourceRoot":"","sources":["../../src/schemas/time-off.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB
|
|
1
|
+
{"version":3,"file":"time-off.d.ts","sourceRoot":"","sources":["../../src/schemas/time-off.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAuBR,CAAC;AAEjB,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;IAI1B,gHAAgH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBhH,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqC1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAMxD;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;EAOjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;EAA+D,CAAC;AAEnG,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;EAEnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|