@t4dhg/mcp-factorial 1.1.0 → 3.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.
Files changed (52) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +175 -58
  3. package/dist/api.d.ts +424 -8
  4. package/dist/api.d.ts.map +1 -1
  5. package/dist/api.js +1156 -100
  6. package/dist/api.js.map +1 -1
  7. package/dist/audit.d.ts +86 -0
  8. package/dist/audit.d.ts.map +1 -0
  9. package/dist/audit.js +119 -0
  10. package/dist/audit.js.map +1 -0
  11. package/dist/cache.d.ts +88 -0
  12. package/dist/cache.d.ts.map +1 -0
  13. package/dist/cache.js +169 -0
  14. package/dist/cache.js.map +1 -0
  15. package/dist/config.d.ts +57 -0
  16. package/dist/config.d.ts.map +1 -0
  17. package/dist/config.js +112 -0
  18. package/dist/config.js.map +1 -0
  19. package/dist/confirmation.d.ts +118 -0
  20. package/dist/confirmation.d.ts.map +1 -0
  21. package/dist/confirmation.js +153 -0
  22. package/dist/confirmation.js.map +1 -0
  23. package/dist/errors.d.ts +133 -0
  24. package/dist/errors.d.ts.map +1 -0
  25. package/dist/errors.js +251 -0
  26. package/dist/errors.js.map +1 -0
  27. package/dist/http-client.d.ts +80 -0
  28. package/dist/http-client.d.ts.map +1 -0
  29. package/dist/http-client.js +243 -0
  30. package/dist/http-client.js.map +1 -0
  31. package/dist/index.d.ts +12 -2
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +3272 -73
  34. package/dist/index.js.map +1 -1
  35. package/dist/pagination.d.ts +96 -0
  36. package/dist/pagination.d.ts.map +1 -0
  37. package/dist/pagination.js +114 -0
  38. package/dist/pagination.js.map +1 -0
  39. package/dist/schemas.d.ts +1789 -0
  40. package/dist/schemas.d.ts.map +1 -0
  41. package/dist/schemas.js +718 -0
  42. package/dist/schemas.js.map +1 -0
  43. package/dist/types.d.ts +61 -50
  44. package/dist/types.d.ts.map +1 -1
  45. package/dist/types.js +6 -1
  46. package/dist/types.js.map +1 -1
  47. package/dist/write-safety.d.ts +53 -0
  48. package/dist/write-safety.d.ts.map +1 -0
  49. package/dist/write-safety.js +239 -0
  50. package/dist/write-safety.js.map +1 -0
  51. package/llms.txt +115 -0
  52. package/package.json +63 -7
@@ -0,0 +1,1789 @@
1
+ /**
2
+ * Zod schemas for runtime validation of API responses
3
+ *
4
+ * Catches API version mismatches and ensures type safety at runtime.
5
+ */
6
+ import { z } from 'zod';
7
+ /**
8
+ * Employee schema
9
+ */
10
+ export declare const EmployeeSchema: z.ZodObject<{
11
+ id: z.ZodNumber;
12
+ first_name: z.ZodNullable<z.ZodString>;
13
+ last_name: z.ZodNullable<z.ZodString>;
14
+ full_name: z.ZodNullable<z.ZodString>;
15
+ email: z.ZodNullable<z.ZodString>;
16
+ birthday_on: z.ZodNullable<z.ZodString>;
17
+ hired_on: z.ZodNullable<z.ZodString>;
18
+ start_date: z.ZodNullable<z.ZodString>;
19
+ terminated_on: z.ZodNullable<z.ZodString>;
20
+ gender: z.ZodNullable<z.ZodString>;
21
+ nationality: z.ZodNullable<z.ZodString>;
22
+ manager_id: z.ZodNullable<z.ZodNumber>;
23
+ role: z.ZodNullable<z.ZodString>;
24
+ timeoff_manager_id: z.ZodNullable<z.ZodNumber>;
25
+ company_id: z.ZodNullable<z.ZodNumber>;
26
+ legal_entity_id: z.ZodNullable<z.ZodNumber>;
27
+ team_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
28
+ location_id: z.ZodNullable<z.ZodNumber>;
29
+ created_at: z.ZodNullable<z.ZodString>;
30
+ updated_at: z.ZodNullable<z.ZodString>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ id: number;
33
+ first_name: string | null;
34
+ last_name: string | null;
35
+ full_name: string | null;
36
+ email: string | null;
37
+ birthday_on: string | null;
38
+ hired_on: string | null;
39
+ start_date: string | null;
40
+ terminated_on: string | null;
41
+ gender: string | null;
42
+ nationality: string | null;
43
+ manager_id: number | null;
44
+ role: string | null;
45
+ timeoff_manager_id: number | null;
46
+ company_id: number | null;
47
+ legal_entity_id: number | null;
48
+ team_ids: number[];
49
+ location_id: number | null;
50
+ created_at: string | null;
51
+ updated_at: string | null;
52
+ }, {
53
+ id: number;
54
+ first_name: string | null;
55
+ last_name: string | null;
56
+ full_name: string | null;
57
+ email: string | null;
58
+ birthday_on: string | null;
59
+ hired_on: string | null;
60
+ start_date: string | null;
61
+ terminated_on: string | null;
62
+ gender: string | null;
63
+ nationality: string | null;
64
+ manager_id: number | null;
65
+ role: string | null;
66
+ timeoff_manager_id: number | null;
67
+ company_id: number | null;
68
+ legal_entity_id: number | null;
69
+ location_id: number | null;
70
+ created_at: string | null;
71
+ updated_at: string | null;
72
+ team_ids?: number[] | undefined;
73
+ }>;
74
+ export type Employee = z.infer<typeof EmployeeSchema>;
75
+ /**
76
+ * Team schema
77
+ */
78
+ export declare const TeamSchema: z.ZodObject<{
79
+ id: z.ZodNumber;
80
+ name: z.ZodString;
81
+ description: z.ZodNullable<z.ZodString>;
82
+ company_id: z.ZodNullable<z.ZodNumber>;
83
+ employee_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
84
+ lead_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
85
+ created_at: z.ZodNullable<z.ZodString>;
86
+ updated_at: z.ZodNullable<z.ZodString>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ id: number;
89
+ company_id: number | null;
90
+ created_at: string | null;
91
+ updated_at: string | null;
92
+ name: string;
93
+ description: string | null;
94
+ employee_ids: number[];
95
+ lead_ids: number[];
96
+ }, {
97
+ id: number;
98
+ company_id: number | null;
99
+ created_at: string | null;
100
+ updated_at: string | null;
101
+ name: string;
102
+ description: string | null;
103
+ employee_ids?: number[] | undefined;
104
+ lead_ids?: number[] | undefined;
105
+ }>;
106
+ export type Team = z.infer<typeof TeamSchema>;
107
+ /**
108
+ * Location schema
109
+ */
110
+ export declare const LocationSchema: z.ZodObject<{
111
+ id: z.ZodNumber;
112
+ name: z.ZodString;
113
+ country: z.ZodNullable<z.ZodString>;
114
+ phone_number: z.ZodNullable<z.ZodString>;
115
+ state: z.ZodNullable<z.ZodString>;
116
+ city: z.ZodNullable<z.ZodString>;
117
+ address_line_1: z.ZodNullable<z.ZodString>;
118
+ address_line_2: z.ZodNullable<z.ZodString>;
119
+ postal_code: z.ZodNullable<z.ZodString>;
120
+ company_id: z.ZodNullable<z.ZodNumber>;
121
+ created_at: z.ZodNullable<z.ZodString>;
122
+ updated_at: z.ZodNullable<z.ZodString>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ id: number;
125
+ company_id: number | null;
126
+ created_at: string | null;
127
+ updated_at: string | null;
128
+ name: string;
129
+ country: string | null;
130
+ phone_number: string | null;
131
+ state: string | null;
132
+ city: string | null;
133
+ address_line_1: string | null;
134
+ address_line_2: string | null;
135
+ postal_code: string | null;
136
+ }, {
137
+ id: number;
138
+ company_id: number | null;
139
+ created_at: string | null;
140
+ updated_at: string | null;
141
+ name: string;
142
+ country: string | null;
143
+ phone_number: string | null;
144
+ state: string | null;
145
+ city: string | null;
146
+ address_line_1: string | null;
147
+ address_line_2: string | null;
148
+ postal_code: string | null;
149
+ }>;
150
+ export type Location = z.infer<typeof LocationSchema>;
151
+ /**
152
+ * Contract schema
153
+ */
154
+ export declare const ContractSchema: z.ZodObject<{
155
+ id: z.ZodNumber;
156
+ employee_id: z.ZodNumber;
157
+ job_title: z.ZodNullable<z.ZodString>;
158
+ effective_on: z.ZodNullable<z.ZodString>;
159
+ created_at: z.ZodNullable<z.ZodString>;
160
+ updated_at: z.ZodNullable<z.ZodString>;
161
+ }, "strip", z.ZodTypeAny, {
162
+ id: number;
163
+ created_at: string | null;
164
+ updated_at: string | null;
165
+ employee_id: number;
166
+ job_title: string | null;
167
+ effective_on: string | null;
168
+ }, {
169
+ id: number;
170
+ created_at: string | null;
171
+ updated_at: string | null;
172
+ employee_id: number;
173
+ job_title: string | null;
174
+ effective_on: string | null;
175
+ }>;
176
+ export type Contract = z.infer<typeof ContractSchema>;
177
+ /**
178
+ * Leave schema
179
+ */
180
+ export declare const LeaveSchema: z.ZodObject<{
181
+ id: z.ZodNumber;
182
+ employee_id: z.ZodNumber;
183
+ leave_type_id: z.ZodNumber;
184
+ start_on: z.ZodString;
185
+ finish_on: z.ZodString;
186
+ half_day: z.ZodNullable<z.ZodEnum<["all_day", "start", "finish"]>>;
187
+ status: z.ZodEnum<["pending", "approved", "declined"]>;
188
+ description: z.ZodNullable<z.ZodString>;
189
+ deleted_at: z.ZodNullable<z.ZodString>;
190
+ duration_attributes: z.ZodNullable<z.ZodObject<{
191
+ days: z.ZodNumber;
192
+ hours: z.ZodNumber;
193
+ }, "strip", z.ZodTypeAny, {
194
+ days: number;
195
+ hours: number;
196
+ }, {
197
+ days: number;
198
+ hours: number;
199
+ }>>;
200
+ created_at: z.ZodNullable<z.ZodString>;
201
+ updated_at: z.ZodNullable<z.ZodString>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ id: number;
204
+ status: "pending" | "approved" | "declined";
205
+ created_at: string | null;
206
+ updated_at: string | null;
207
+ description: string | null;
208
+ employee_id: number;
209
+ leave_type_id: number;
210
+ start_on: string;
211
+ finish_on: string;
212
+ half_day: "all_day" | "start" | "finish" | null;
213
+ deleted_at: string | null;
214
+ duration_attributes: {
215
+ days: number;
216
+ hours: number;
217
+ } | null;
218
+ }, {
219
+ id: number;
220
+ status: "pending" | "approved" | "declined";
221
+ created_at: string | null;
222
+ updated_at: string | null;
223
+ description: string | null;
224
+ employee_id: number;
225
+ leave_type_id: number;
226
+ start_on: string;
227
+ finish_on: string;
228
+ half_day: "all_day" | "start" | "finish" | null;
229
+ deleted_at: string | null;
230
+ duration_attributes: {
231
+ days: number;
232
+ hours: number;
233
+ } | null;
234
+ }>;
235
+ export type Leave = z.infer<typeof LeaveSchema>;
236
+ /**
237
+ * Leave type schema
238
+ */
239
+ export declare const LeaveTypeSchema: z.ZodObject<{
240
+ id: z.ZodNumber;
241
+ name: z.ZodString;
242
+ code: z.ZodNullable<z.ZodString>;
243
+ color: z.ZodNullable<z.ZodString>;
244
+ description: z.ZodNullable<z.ZodString>;
245
+ company_id: z.ZodNullable<z.ZodNumber>;
246
+ created_at: z.ZodNullable<z.ZodString>;
247
+ updated_at: z.ZodNullable<z.ZodString>;
248
+ }, "strip", z.ZodTypeAny, {
249
+ id: number;
250
+ company_id: number | null;
251
+ code: string | null;
252
+ created_at: string | null;
253
+ updated_at: string | null;
254
+ name: string;
255
+ description: string | null;
256
+ color: string | null;
257
+ }, {
258
+ id: number;
259
+ company_id: number | null;
260
+ code: string | null;
261
+ created_at: string | null;
262
+ updated_at: string | null;
263
+ name: string;
264
+ description: string | null;
265
+ color: string | null;
266
+ }>;
267
+ export type LeaveType = z.infer<typeof LeaveTypeSchema>;
268
+ /**
269
+ * Allowance schema
270
+ */
271
+ export declare const AllowanceSchema: z.ZodObject<{
272
+ id: z.ZodNumber;
273
+ employee_id: z.ZodNumber;
274
+ leave_type_id: z.ZodNumber;
275
+ policy_id: z.ZodNullable<z.ZodNumber>;
276
+ balance_days: z.ZodNumber;
277
+ consumed_days: z.ZodNumber;
278
+ available_days: z.ZodNumber;
279
+ valid_from: z.ZodNullable<z.ZodString>;
280
+ valid_to: z.ZodNullable<z.ZodString>;
281
+ created_at: z.ZodNullable<z.ZodString>;
282
+ updated_at: z.ZodNullable<z.ZodString>;
283
+ }, "strip", z.ZodTypeAny, {
284
+ id: number;
285
+ created_at: string | null;
286
+ updated_at: string | null;
287
+ employee_id: number;
288
+ leave_type_id: number;
289
+ policy_id: number | null;
290
+ balance_days: number;
291
+ consumed_days: number;
292
+ available_days: number;
293
+ valid_from: string | null;
294
+ valid_to: string | null;
295
+ }, {
296
+ id: number;
297
+ created_at: string | null;
298
+ updated_at: string | null;
299
+ employee_id: number;
300
+ leave_type_id: number;
301
+ policy_id: number | null;
302
+ balance_days: number;
303
+ consumed_days: number;
304
+ available_days: number;
305
+ valid_from: string | null;
306
+ valid_to: string | null;
307
+ }>;
308
+ export type Allowance = z.infer<typeof AllowanceSchema>;
309
+ /**
310
+ * Shift schema
311
+ */
312
+ export declare const ShiftSchema: z.ZodObject<{
313
+ id: z.ZodNumber;
314
+ employee_id: z.ZodNumber;
315
+ clock_in: z.ZodString;
316
+ clock_out: z.ZodNullable<z.ZodString>;
317
+ worked_hours: z.ZodNullable<z.ZodNumber>;
318
+ break_minutes: z.ZodNullable<z.ZodNumber>;
319
+ location: z.ZodNullable<z.ZodString>;
320
+ notes: z.ZodNullable<z.ZodString>;
321
+ created_at: z.ZodNullable<z.ZodString>;
322
+ updated_at: z.ZodNullable<z.ZodString>;
323
+ }, "strip", z.ZodTypeAny, {
324
+ id: number;
325
+ created_at: string | null;
326
+ updated_at: string | null;
327
+ employee_id: number;
328
+ clock_in: string;
329
+ clock_out: string | null;
330
+ worked_hours: number | null;
331
+ break_minutes: number | null;
332
+ location: string | null;
333
+ notes: string | null;
334
+ }, {
335
+ id: number;
336
+ created_at: string | null;
337
+ updated_at: string | null;
338
+ employee_id: number;
339
+ clock_in: string;
340
+ clock_out: string | null;
341
+ worked_hours: number | null;
342
+ break_minutes: number | null;
343
+ location: string | null;
344
+ notes: string | null;
345
+ }>;
346
+ export type Shift = z.infer<typeof ShiftSchema>;
347
+ /**
348
+ * Folder schema
349
+ */
350
+ export declare const FolderSchema: z.ZodObject<{
351
+ id: z.ZodNumber;
352
+ name: z.ZodString;
353
+ parent_id: z.ZodNullable<z.ZodNumber>;
354
+ company_id: z.ZodNullable<z.ZodNumber>;
355
+ created_at: z.ZodNullable<z.ZodString>;
356
+ updated_at: z.ZodNullable<z.ZodString>;
357
+ }, "strip", z.ZodTypeAny, {
358
+ id: number;
359
+ company_id: number | null;
360
+ created_at: string | null;
361
+ updated_at: string | null;
362
+ name: string;
363
+ parent_id: number | null;
364
+ }, {
365
+ id: number;
366
+ company_id: number | null;
367
+ created_at: string | null;
368
+ updated_at: string | null;
369
+ name: string;
370
+ parent_id: number | null;
371
+ }>;
372
+ export type Folder = z.infer<typeof FolderSchema>;
373
+ /**
374
+ * Document schema
375
+ */
376
+ export declare const DocumentSchema: z.ZodObject<{
377
+ id: z.ZodNumber;
378
+ name: z.ZodString;
379
+ folder_id: z.ZodNullable<z.ZodNumber>;
380
+ author_id: z.ZodNullable<z.ZodNumber>;
381
+ company_id: z.ZodNullable<z.ZodNumber>;
382
+ public: z.ZodDefault<z.ZodBoolean>;
383
+ space: z.ZodNullable<z.ZodString>;
384
+ file_url: z.ZodNullable<z.ZodString>;
385
+ mime_type: z.ZodNullable<z.ZodString>;
386
+ size_bytes: z.ZodNullable<z.ZodNumber>;
387
+ created_at: z.ZodNullable<z.ZodString>;
388
+ updated_at: z.ZodNullable<z.ZodString>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ id: number;
391
+ company_id: number | null;
392
+ created_at: string | null;
393
+ updated_at: string | null;
394
+ name: string;
395
+ folder_id: number | null;
396
+ author_id: number | null;
397
+ public: boolean;
398
+ space: string | null;
399
+ file_url: string | null;
400
+ mime_type: string | null;
401
+ size_bytes: number | null;
402
+ }, {
403
+ id: number;
404
+ company_id: number | null;
405
+ created_at: string | null;
406
+ updated_at: string | null;
407
+ name: string;
408
+ folder_id: number | null;
409
+ author_id: number | null;
410
+ space: string | null;
411
+ file_url: string | null;
412
+ mime_type: string | null;
413
+ size_bytes: number | null;
414
+ public?: boolean | undefined;
415
+ }>;
416
+ export type Document = z.infer<typeof DocumentSchema>;
417
+ /**
418
+ * Job role schema
419
+ */
420
+ export declare const JobRoleSchema: z.ZodObject<{
421
+ id: z.ZodNumber;
422
+ name: z.ZodString;
423
+ description: z.ZodNullable<z.ZodString>;
424
+ company_id: z.ZodNullable<z.ZodNumber>;
425
+ created_at: z.ZodNullable<z.ZodString>;
426
+ updated_at: z.ZodNullable<z.ZodString>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ id: number;
429
+ company_id: number | null;
430
+ created_at: string | null;
431
+ updated_at: string | null;
432
+ name: string;
433
+ description: string | null;
434
+ }, {
435
+ id: number;
436
+ company_id: number | null;
437
+ created_at: string | null;
438
+ updated_at: string | null;
439
+ name: string;
440
+ description: string | null;
441
+ }>;
442
+ export type JobRole = z.infer<typeof JobRoleSchema>;
443
+ /**
444
+ * Job level schema
445
+ */
446
+ export declare const JobLevelSchema: z.ZodObject<{
447
+ id: z.ZodNumber;
448
+ name: z.ZodString;
449
+ description: z.ZodNullable<z.ZodString>;
450
+ company_id: z.ZodNullable<z.ZodNumber>;
451
+ created_at: z.ZodNullable<z.ZodString>;
452
+ updated_at: z.ZodNullable<z.ZodString>;
453
+ }, "strip", z.ZodTypeAny, {
454
+ id: number;
455
+ company_id: number | null;
456
+ created_at: string | null;
457
+ updated_at: string | null;
458
+ name: string;
459
+ description: string | null;
460
+ }, {
461
+ id: number;
462
+ company_id: number | null;
463
+ created_at: string | null;
464
+ updated_at: string | null;
465
+ name: string;
466
+ description: string | null;
467
+ }>;
468
+ export type JobLevel = z.infer<typeof JobLevelSchema>;
469
+ /**
470
+ * Employee create input schema
471
+ */
472
+ export declare const CreateEmployeeInputSchema: z.ZodObject<{
473
+ first_name: z.ZodString;
474
+ last_name: z.ZodString;
475
+ email: z.ZodString;
476
+ birthday_on: z.ZodOptional<z.ZodString>;
477
+ hired_on: z.ZodOptional<z.ZodString>;
478
+ start_date: z.ZodOptional<z.ZodString>;
479
+ gender: z.ZodOptional<z.ZodEnum<["male", "female", "other"]>>;
480
+ nationality: z.ZodOptional<z.ZodString>;
481
+ manager_id: z.ZodOptional<z.ZodNumber>;
482
+ role: z.ZodOptional<z.ZodString>;
483
+ team_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
484
+ location_id: z.ZodOptional<z.ZodNumber>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ first_name: string;
487
+ last_name: string;
488
+ email: string;
489
+ birthday_on?: string | undefined;
490
+ hired_on?: string | undefined;
491
+ start_date?: string | undefined;
492
+ gender?: "male" | "female" | "other" | undefined;
493
+ nationality?: string | undefined;
494
+ manager_id?: number | undefined;
495
+ role?: string | undefined;
496
+ team_ids?: number[] | undefined;
497
+ location_id?: number | undefined;
498
+ }, {
499
+ first_name: string;
500
+ last_name: string;
501
+ email: string;
502
+ birthday_on?: string | undefined;
503
+ hired_on?: string | undefined;
504
+ start_date?: string | undefined;
505
+ gender?: "male" | "female" | "other" | undefined;
506
+ nationality?: string | undefined;
507
+ manager_id?: number | undefined;
508
+ role?: string | undefined;
509
+ team_ids?: number[] | undefined;
510
+ location_id?: number | undefined;
511
+ }>;
512
+ export type CreateEmployeeInput = z.infer<typeof CreateEmployeeInputSchema>;
513
+ /**
514
+ * Employee update input schema (all fields optional)
515
+ */
516
+ export declare const UpdateEmployeeInputSchema: z.ZodObject<{
517
+ first_name: z.ZodOptional<z.ZodString>;
518
+ last_name: z.ZodOptional<z.ZodString>;
519
+ email: z.ZodOptional<z.ZodString>;
520
+ birthday_on: z.ZodOptional<z.ZodOptional<z.ZodString>>;
521
+ hired_on: z.ZodOptional<z.ZodOptional<z.ZodString>>;
522
+ start_date: z.ZodOptional<z.ZodOptional<z.ZodString>>;
523
+ gender: z.ZodOptional<z.ZodOptional<z.ZodEnum<["male", "female", "other"]>>>;
524
+ nationality: z.ZodOptional<z.ZodOptional<z.ZodString>>;
525
+ manager_id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
526
+ role: z.ZodOptional<z.ZodOptional<z.ZodString>>;
527
+ team_ids: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
528
+ location_id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
529
+ }, "strip", z.ZodTypeAny, {
530
+ first_name?: string | undefined;
531
+ last_name?: string | undefined;
532
+ email?: string | undefined;
533
+ birthday_on?: string | undefined;
534
+ hired_on?: string | undefined;
535
+ start_date?: string | undefined;
536
+ gender?: "male" | "female" | "other" | undefined;
537
+ nationality?: string | undefined;
538
+ manager_id?: number | undefined;
539
+ role?: string | undefined;
540
+ team_ids?: number[] | undefined;
541
+ location_id?: number | undefined;
542
+ }, {
543
+ first_name?: string | undefined;
544
+ last_name?: string | undefined;
545
+ email?: string | undefined;
546
+ birthday_on?: string | undefined;
547
+ hired_on?: string | undefined;
548
+ start_date?: string | undefined;
549
+ gender?: "male" | "female" | "other" | undefined;
550
+ nationality?: string | undefined;
551
+ manager_id?: number | undefined;
552
+ role?: string | undefined;
553
+ team_ids?: number[] | undefined;
554
+ location_id?: number | undefined;
555
+ }>;
556
+ export type UpdateEmployeeInput = z.infer<typeof UpdateEmployeeInputSchema>;
557
+ /**
558
+ * Employee termination input schema
559
+ */
560
+ export declare const TerminateEmployeeInputSchema: z.ZodObject<{
561
+ terminated_on: z.ZodString;
562
+ reason: z.ZodOptional<z.ZodString>;
563
+ }, "strip", z.ZodTypeAny, {
564
+ terminated_on: string;
565
+ reason?: string | undefined;
566
+ }, {
567
+ terminated_on: string;
568
+ reason?: string | undefined;
569
+ }>;
570
+ export type TerminateEmployeeInput = z.infer<typeof TerminateEmployeeInputSchema>;
571
+ /**
572
+ * Team create input schema
573
+ */
574
+ export declare const CreateTeamInputSchema: z.ZodObject<{
575
+ name: z.ZodString;
576
+ description: z.ZodOptional<z.ZodString>;
577
+ lead_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
578
+ employee_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
579
+ }, "strip", z.ZodTypeAny, {
580
+ name: string;
581
+ description?: string | undefined;
582
+ employee_ids?: number[] | undefined;
583
+ lead_ids?: number[] | undefined;
584
+ }, {
585
+ name: string;
586
+ description?: string | undefined;
587
+ employee_ids?: number[] | undefined;
588
+ lead_ids?: number[] | undefined;
589
+ }>;
590
+ export type CreateTeamInput = z.infer<typeof CreateTeamInputSchema>;
591
+ /**
592
+ * Team update input schema
593
+ */
594
+ export declare const UpdateTeamInputSchema: z.ZodObject<{
595
+ name: z.ZodOptional<z.ZodString>;
596
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
597
+ lead_ids: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
598
+ employee_ids: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
599
+ }, "strip", z.ZodTypeAny, {
600
+ name?: string | undefined;
601
+ description?: string | undefined;
602
+ employee_ids?: number[] | undefined;
603
+ lead_ids?: number[] | undefined;
604
+ }, {
605
+ name?: string | undefined;
606
+ description?: string | undefined;
607
+ employee_ids?: number[] | undefined;
608
+ lead_ids?: number[] | undefined;
609
+ }>;
610
+ export type UpdateTeamInput = z.infer<typeof UpdateTeamInputSchema>;
611
+ /**
612
+ * Location create input schema
613
+ */
614
+ export declare const CreateLocationInputSchema: z.ZodObject<{
615
+ name: z.ZodString;
616
+ country: z.ZodOptional<z.ZodString>;
617
+ state: z.ZodOptional<z.ZodString>;
618
+ city: z.ZodOptional<z.ZodString>;
619
+ address_line_1: z.ZodOptional<z.ZodString>;
620
+ address_line_2: z.ZodOptional<z.ZodString>;
621
+ postal_code: z.ZodOptional<z.ZodString>;
622
+ phone_number: z.ZodOptional<z.ZodString>;
623
+ }, "strip", z.ZodTypeAny, {
624
+ name: string;
625
+ country?: string | undefined;
626
+ phone_number?: string | undefined;
627
+ state?: string | undefined;
628
+ city?: string | undefined;
629
+ address_line_1?: string | undefined;
630
+ address_line_2?: string | undefined;
631
+ postal_code?: string | undefined;
632
+ }, {
633
+ name: string;
634
+ country?: string | undefined;
635
+ phone_number?: string | undefined;
636
+ state?: string | undefined;
637
+ city?: string | undefined;
638
+ address_line_1?: string | undefined;
639
+ address_line_2?: string | undefined;
640
+ postal_code?: string | undefined;
641
+ }>;
642
+ export type CreateLocationInput = z.infer<typeof CreateLocationInputSchema>;
643
+ /**
644
+ * Location update input schema
645
+ */
646
+ export declare const UpdateLocationInputSchema: z.ZodObject<{
647
+ name: z.ZodOptional<z.ZodString>;
648
+ country: z.ZodOptional<z.ZodOptional<z.ZodString>>;
649
+ state: z.ZodOptional<z.ZodOptional<z.ZodString>>;
650
+ city: z.ZodOptional<z.ZodOptional<z.ZodString>>;
651
+ address_line_1: z.ZodOptional<z.ZodOptional<z.ZodString>>;
652
+ address_line_2: z.ZodOptional<z.ZodOptional<z.ZodString>>;
653
+ postal_code: z.ZodOptional<z.ZodOptional<z.ZodString>>;
654
+ phone_number: z.ZodOptional<z.ZodOptional<z.ZodString>>;
655
+ }, "strip", z.ZodTypeAny, {
656
+ name?: string | undefined;
657
+ country?: string | undefined;
658
+ phone_number?: string | undefined;
659
+ state?: string | undefined;
660
+ city?: string | undefined;
661
+ address_line_1?: string | undefined;
662
+ address_line_2?: string | undefined;
663
+ postal_code?: string | undefined;
664
+ }, {
665
+ name?: string | undefined;
666
+ country?: string | undefined;
667
+ phone_number?: string | undefined;
668
+ state?: string | undefined;
669
+ city?: string | undefined;
670
+ address_line_1?: string | undefined;
671
+ address_line_2?: string | undefined;
672
+ postal_code?: string | undefined;
673
+ }>;
674
+ export type UpdateLocationInput = z.infer<typeof UpdateLocationInputSchema>;
675
+ /**
676
+ * Leave create input schema
677
+ */
678
+ export declare const CreateLeaveInputSchema: z.ZodObject<{
679
+ employee_id: z.ZodNumber;
680
+ leave_type_id: z.ZodNumber;
681
+ start_on: z.ZodString;
682
+ finish_on: z.ZodString;
683
+ half_day: z.ZodOptional<z.ZodEnum<["all_day", "start", "finish"]>>;
684
+ description: z.ZodOptional<z.ZodString>;
685
+ }, "strip", z.ZodTypeAny, {
686
+ employee_id: number;
687
+ leave_type_id: number;
688
+ start_on: string;
689
+ finish_on: string;
690
+ description?: string | undefined;
691
+ half_day?: "all_day" | "start" | "finish" | undefined;
692
+ }, {
693
+ employee_id: number;
694
+ leave_type_id: number;
695
+ start_on: string;
696
+ finish_on: string;
697
+ description?: string | undefined;
698
+ half_day?: "all_day" | "start" | "finish" | undefined;
699
+ }>;
700
+ export type CreateLeaveInput = z.infer<typeof CreateLeaveInputSchema>;
701
+ /**
702
+ * Leave update input schema
703
+ */
704
+ export declare const UpdateLeaveInputSchema: z.ZodObject<Omit<{
705
+ employee_id: z.ZodOptional<z.ZodNumber>;
706
+ leave_type_id: z.ZodOptional<z.ZodNumber>;
707
+ start_on: z.ZodOptional<z.ZodString>;
708
+ finish_on: z.ZodOptional<z.ZodString>;
709
+ half_day: z.ZodOptional<z.ZodOptional<z.ZodEnum<["all_day", "start", "finish"]>>>;
710
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
711
+ }, "employee_id">, "strip", z.ZodTypeAny, {
712
+ description?: string | undefined;
713
+ leave_type_id?: number | undefined;
714
+ start_on?: string | undefined;
715
+ finish_on?: string | undefined;
716
+ half_day?: "all_day" | "start" | "finish" | undefined;
717
+ }, {
718
+ description?: string | undefined;
719
+ leave_type_id?: number | undefined;
720
+ start_on?: string | undefined;
721
+ finish_on?: string | undefined;
722
+ half_day?: "all_day" | "start" | "finish" | undefined;
723
+ }>;
724
+ export type UpdateLeaveInput = z.infer<typeof UpdateLeaveInputSchema>;
725
+ /**
726
+ * Leave approval/rejection input schema
727
+ */
728
+ export declare const LeaveDecisionInputSchema: z.ZodObject<{
729
+ reason: z.ZodOptional<z.ZodString>;
730
+ }, "strip", z.ZodTypeAny, {
731
+ reason?: string | undefined;
732
+ }, {
733
+ reason?: string | undefined;
734
+ }>;
735
+ export type LeaveDecisionInput = z.infer<typeof LeaveDecisionInputSchema>;
736
+ /**
737
+ * Shift create input schema
738
+ */
739
+ export declare const CreateShiftInputSchema: z.ZodObject<{
740
+ employee_id: z.ZodNumber;
741
+ clock_in: z.ZodString;
742
+ clock_out: z.ZodOptional<z.ZodString>;
743
+ break_minutes: z.ZodOptional<z.ZodNumber>;
744
+ location: z.ZodOptional<z.ZodString>;
745
+ notes: z.ZodOptional<z.ZodString>;
746
+ }, "strip", z.ZodTypeAny, {
747
+ employee_id: number;
748
+ clock_in: string;
749
+ clock_out?: string | undefined;
750
+ break_minutes?: number | undefined;
751
+ location?: string | undefined;
752
+ notes?: string | undefined;
753
+ }, {
754
+ employee_id: number;
755
+ clock_in: string;
756
+ clock_out?: string | undefined;
757
+ break_minutes?: number | undefined;
758
+ location?: string | undefined;
759
+ notes?: string | undefined;
760
+ }>;
761
+ export type CreateShiftInput = z.infer<typeof CreateShiftInputSchema>;
762
+ /**
763
+ * Shift update input schema
764
+ */
765
+ export declare const UpdateShiftInputSchema: z.ZodObject<Omit<{
766
+ employee_id: z.ZodOptional<z.ZodNumber>;
767
+ clock_in: z.ZodOptional<z.ZodString>;
768
+ clock_out: z.ZodOptional<z.ZodOptional<z.ZodString>>;
769
+ break_minutes: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
770
+ location: z.ZodOptional<z.ZodOptional<z.ZodString>>;
771
+ notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
772
+ }, "employee_id">, "strip", z.ZodTypeAny, {
773
+ clock_in?: string | undefined;
774
+ clock_out?: string | undefined;
775
+ break_minutes?: number | undefined;
776
+ location?: string | undefined;
777
+ notes?: string | undefined;
778
+ }, {
779
+ clock_in?: string | undefined;
780
+ clock_out?: string | undefined;
781
+ break_minutes?: number | undefined;
782
+ location?: string | undefined;
783
+ notes?: string | undefined;
784
+ }>;
785
+ export type UpdateShiftInput = z.infer<typeof UpdateShiftInputSchema>;
786
+ /**
787
+ * Project schema
788
+ */
789
+ export declare const ProjectSchema: z.ZodObject<{
790
+ id: z.ZodNumber;
791
+ name: z.ZodString;
792
+ code: z.ZodNullable<z.ZodString>;
793
+ description: z.ZodNullable<z.ZodString>;
794
+ status: z.ZodNullable<z.ZodEnum<["active", "inactive", "archived"]>>;
795
+ employees_assignment: z.ZodNullable<z.ZodEnum<["manual", "company"]>>;
796
+ company_id: z.ZodNullable<z.ZodNumber>;
797
+ created_at: z.ZodNullable<z.ZodString>;
798
+ updated_at: z.ZodNullable<z.ZodString>;
799
+ }, "strip", z.ZodTypeAny, {
800
+ id: number;
801
+ company_id: number | null;
802
+ code: string | null;
803
+ status: "active" | "inactive" | "archived" | null;
804
+ created_at: string | null;
805
+ updated_at: string | null;
806
+ name: string;
807
+ description: string | null;
808
+ employees_assignment: "manual" | "company" | null;
809
+ }, {
810
+ id: number;
811
+ company_id: number | null;
812
+ code: string | null;
813
+ status: "active" | "inactive" | "archived" | null;
814
+ created_at: string | null;
815
+ updated_at: string | null;
816
+ name: string;
817
+ description: string | null;
818
+ employees_assignment: "manual" | "company" | null;
819
+ }>;
820
+ export type Project = z.infer<typeof ProjectSchema>;
821
+ /**
822
+ * Project create input schema
823
+ */
824
+ export declare const CreateProjectInputSchema: z.ZodObject<{
825
+ name: z.ZodString;
826
+ code: z.ZodOptional<z.ZodString>;
827
+ description: z.ZodOptional<z.ZodString>;
828
+ employees_assignment: z.ZodOptional<z.ZodEnum<["manual", "company"]>>;
829
+ }, "strip", z.ZodTypeAny, {
830
+ name: string;
831
+ code?: string | undefined;
832
+ description?: string | undefined;
833
+ employees_assignment?: "manual" | "company" | undefined;
834
+ }, {
835
+ name: string;
836
+ code?: string | undefined;
837
+ description?: string | undefined;
838
+ employees_assignment?: "manual" | "company" | undefined;
839
+ }>;
840
+ export type CreateProjectInput = z.infer<typeof CreateProjectInputSchema>;
841
+ /**
842
+ * Project update input schema
843
+ */
844
+ export declare const UpdateProjectInputSchema: z.ZodObject<{
845
+ name: z.ZodOptional<z.ZodString>;
846
+ code: z.ZodOptional<z.ZodOptional<z.ZodString>>;
847
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
848
+ employees_assignment: z.ZodOptional<z.ZodOptional<z.ZodEnum<["manual", "company"]>>>;
849
+ } & {
850
+ status: z.ZodOptional<z.ZodEnum<["active", "inactive", "archived"]>>;
851
+ }, "strip", z.ZodTypeAny, {
852
+ code?: string | undefined;
853
+ status?: "active" | "inactive" | "archived" | undefined;
854
+ name?: string | undefined;
855
+ description?: string | undefined;
856
+ employees_assignment?: "manual" | "company" | undefined;
857
+ }, {
858
+ code?: string | undefined;
859
+ status?: "active" | "inactive" | "archived" | undefined;
860
+ name?: string | undefined;
861
+ description?: string | undefined;
862
+ employees_assignment?: "manual" | "company" | undefined;
863
+ }>;
864
+ export type UpdateProjectInput = z.infer<typeof UpdateProjectInputSchema>;
865
+ /**
866
+ * Project Task schema
867
+ */
868
+ export declare const ProjectTaskSchema: z.ZodObject<{
869
+ id: z.ZodNumber;
870
+ name: z.ZodString;
871
+ project_id: z.ZodNumber;
872
+ subproject_id: z.ZodNullable<z.ZodNumber>;
873
+ description: z.ZodNullable<z.ZodString>;
874
+ completed: z.ZodDefault<z.ZodBoolean>;
875
+ due_on: z.ZodNullable<z.ZodString>;
876
+ due_status: z.ZodNullable<z.ZodString>;
877
+ created_at: z.ZodNullable<z.ZodString>;
878
+ updated_at: z.ZodNullable<z.ZodString>;
879
+ }, "strip", z.ZodTypeAny, {
880
+ id: number;
881
+ created_at: string | null;
882
+ updated_at: string | null;
883
+ name: string;
884
+ description: string | null;
885
+ project_id: number;
886
+ subproject_id: number | null;
887
+ completed: boolean;
888
+ due_on: string | null;
889
+ due_status: string | null;
890
+ }, {
891
+ id: number;
892
+ created_at: string | null;
893
+ updated_at: string | null;
894
+ name: string;
895
+ description: string | null;
896
+ project_id: number;
897
+ subproject_id: number | null;
898
+ due_on: string | null;
899
+ due_status: string | null;
900
+ completed?: boolean | undefined;
901
+ }>;
902
+ export type ProjectTask = z.infer<typeof ProjectTaskSchema>;
903
+ /**
904
+ * Project Task create input schema
905
+ */
906
+ export declare const CreateProjectTaskInputSchema: z.ZodObject<{
907
+ name: z.ZodString;
908
+ project_id: z.ZodNumber;
909
+ description: z.ZodOptional<z.ZodString>;
910
+ due_on: z.ZodOptional<z.ZodString>;
911
+ }, "strip", z.ZodTypeAny, {
912
+ name: string;
913
+ project_id: number;
914
+ description?: string | undefined;
915
+ due_on?: string | undefined;
916
+ }, {
917
+ name: string;
918
+ project_id: number;
919
+ description?: string | undefined;
920
+ due_on?: string | undefined;
921
+ }>;
922
+ export type CreateProjectTaskInput = z.infer<typeof CreateProjectTaskInputSchema>;
923
+ /**
924
+ * Project Task update input schema
925
+ */
926
+ export declare const UpdateProjectTaskInputSchema: z.ZodObject<Omit<{
927
+ name: z.ZodOptional<z.ZodString>;
928
+ project_id: z.ZodOptional<z.ZodNumber>;
929
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
930
+ due_on: z.ZodOptional<z.ZodOptional<z.ZodString>>;
931
+ }, "project_id"> & {
932
+ completed: z.ZodOptional<z.ZodBoolean>;
933
+ }, "strip", z.ZodTypeAny, {
934
+ name?: string | undefined;
935
+ description?: string | undefined;
936
+ completed?: boolean | undefined;
937
+ due_on?: string | undefined;
938
+ }, {
939
+ name?: string | undefined;
940
+ description?: string | undefined;
941
+ completed?: boolean | undefined;
942
+ due_on?: string | undefined;
943
+ }>;
944
+ export type UpdateProjectTaskInput = z.infer<typeof UpdateProjectTaskInputSchema>;
945
+ /**
946
+ * Project Worker schema
947
+ */
948
+ export declare const ProjectWorkerSchema: z.ZodObject<{
949
+ id: z.ZodNumber;
950
+ project_id: z.ZodNumber;
951
+ employee_id: z.ZodNumber;
952
+ company_labor_cost_cents: z.ZodNullable<z.ZodNumber>;
953
+ created_at: z.ZodNullable<z.ZodString>;
954
+ updated_at: z.ZodNullable<z.ZodString>;
955
+ }, "strip", z.ZodTypeAny, {
956
+ id: number;
957
+ created_at: string | null;
958
+ updated_at: string | null;
959
+ employee_id: number;
960
+ project_id: number;
961
+ company_labor_cost_cents: number | null;
962
+ }, {
963
+ id: number;
964
+ created_at: string | null;
965
+ updated_at: string | null;
966
+ employee_id: number;
967
+ project_id: number;
968
+ company_labor_cost_cents: number | null;
969
+ }>;
970
+ export type ProjectWorker = z.infer<typeof ProjectWorkerSchema>;
971
+ /**
972
+ * Project Worker assign input schema
973
+ */
974
+ export declare const AssignProjectWorkerInputSchema: z.ZodObject<{
975
+ project_id: z.ZodNumber;
976
+ employee_id: z.ZodNumber;
977
+ }, "strip", z.ZodTypeAny, {
978
+ employee_id: number;
979
+ project_id: number;
980
+ }, {
981
+ employee_id: number;
982
+ project_id: number;
983
+ }>;
984
+ export type AssignProjectWorkerInput = z.infer<typeof AssignProjectWorkerInputSchema>;
985
+ /**
986
+ * Time Record schema
987
+ */
988
+ export declare const TimeRecordSchema: z.ZodObject<{
989
+ id: z.ZodNumber;
990
+ project_worker_id: z.ZodNumber;
991
+ subproject_id: z.ZodNullable<z.ZodNumber>;
992
+ attendance_shift_id: z.ZodNullable<z.ZodNumber>;
993
+ minutes: z.ZodNumber;
994
+ date: z.ZodString;
995
+ description: z.ZodNullable<z.ZodString>;
996
+ created_at: z.ZodNullable<z.ZodString>;
997
+ updated_at: z.ZodNullable<z.ZodString>;
998
+ }, "strip", z.ZodTypeAny, {
999
+ id: number;
1000
+ created_at: string | null;
1001
+ updated_at: string | null;
1002
+ description: string | null;
1003
+ date: string;
1004
+ subproject_id: number | null;
1005
+ project_worker_id: number;
1006
+ attendance_shift_id: number | null;
1007
+ minutes: number;
1008
+ }, {
1009
+ id: number;
1010
+ created_at: string | null;
1011
+ updated_at: string | null;
1012
+ description: string | null;
1013
+ date: string;
1014
+ subproject_id: number | null;
1015
+ project_worker_id: number;
1016
+ attendance_shift_id: number | null;
1017
+ minutes: number;
1018
+ }>;
1019
+ export type TimeRecord = z.infer<typeof TimeRecordSchema>;
1020
+ /**
1021
+ * Time Record create input schema
1022
+ */
1023
+ export declare const CreateTimeRecordInputSchema: z.ZodObject<{
1024
+ project_worker_id: z.ZodNumber;
1025
+ date: z.ZodString;
1026
+ minutes: z.ZodNumber;
1027
+ description: z.ZodOptional<z.ZodString>;
1028
+ }, "strip", z.ZodTypeAny, {
1029
+ date: string;
1030
+ project_worker_id: number;
1031
+ minutes: number;
1032
+ description?: string | undefined;
1033
+ }, {
1034
+ date: string;
1035
+ project_worker_id: number;
1036
+ minutes: number;
1037
+ description?: string | undefined;
1038
+ }>;
1039
+ export type CreateTimeRecordInput = z.infer<typeof CreateTimeRecordInputSchema>;
1040
+ /**
1041
+ * Time Record update input schema
1042
+ */
1043
+ export declare const UpdateTimeRecordInputSchema: z.ZodObject<Omit<{
1044
+ project_worker_id: z.ZodOptional<z.ZodNumber>;
1045
+ date: z.ZodOptional<z.ZodString>;
1046
+ minutes: z.ZodOptional<z.ZodNumber>;
1047
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1048
+ }, "project_worker_id">, "strip", z.ZodTypeAny, {
1049
+ description?: string | undefined;
1050
+ date?: string | undefined;
1051
+ minutes?: number | undefined;
1052
+ }, {
1053
+ description?: string | undefined;
1054
+ date?: string | undefined;
1055
+ minutes?: number | undefined;
1056
+ }>;
1057
+ export type UpdateTimeRecordInput = z.infer<typeof UpdateTimeRecordInputSchema>;
1058
+ /**
1059
+ * Training schema
1060
+ */
1061
+ export declare const TrainingSchema: z.ZodObject<{
1062
+ id: z.ZodNumber;
1063
+ name: z.ZodString;
1064
+ description: z.ZodNullable<z.ZodString>;
1065
+ category_id: z.ZodNullable<z.ZodNumber>;
1066
+ status: z.ZodNullable<z.ZodString>;
1067
+ subsidized: z.ZodNullable<z.ZodBoolean>;
1068
+ total_training_indirect_cost: z.ZodNullable<z.ZodNumber>;
1069
+ total_training_salary_cost: z.ZodNullable<z.ZodNumber>;
1070
+ company_id: z.ZodNullable<z.ZodNumber>;
1071
+ created_at: z.ZodNullable<z.ZodString>;
1072
+ updated_at: z.ZodNullable<z.ZodString>;
1073
+ }, "strip", z.ZodTypeAny, {
1074
+ id: number;
1075
+ company_id: number | null;
1076
+ status: string | null;
1077
+ created_at: string | null;
1078
+ updated_at: string | null;
1079
+ name: string;
1080
+ description: string | null;
1081
+ category_id: number | null;
1082
+ subsidized: boolean | null;
1083
+ total_training_indirect_cost: number | null;
1084
+ total_training_salary_cost: number | null;
1085
+ }, {
1086
+ id: number;
1087
+ company_id: number | null;
1088
+ status: string | null;
1089
+ created_at: string | null;
1090
+ updated_at: string | null;
1091
+ name: string;
1092
+ description: string | null;
1093
+ category_id: number | null;
1094
+ subsidized: boolean | null;
1095
+ total_training_indirect_cost: number | null;
1096
+ total_training_salary_cost: number | null;
1097
+ }>;
1098
+ export type Training = z.infer<typeof TrainingSchema>;
1099
+ /**
1100
+ * Training create input schema
1101
+ */
1102
+ export declare const CreateTrainingInputSchema: z.ZodObject<{
1103
+ name: z.ZodString;
1104
+ description: z.ZodOptional<z.ZodString>;
1105
+ category_id: z.ZodOptional<z.ZodNumber>;
1106
+ subsidized: z.ZodOptional<z.ZodBoolean>;
1107
+ }, "strip", z.ZodTypeAny, {
1108
+ name: string;
1109
+ description?: string | undefined;
1110
+ category_id?: number | undefined;
1111
+ subsidized?: boolean | undefined;
1112
+ }, {
1113
+ name: string;
1114
+ description?: string | undefined;
1115
+ category_id?: number | undefined;
1116
+ subsidized?: boolean | undefined;
1117
+ }>;
1118
+ export type CreateTrainingInput = z.infer<typeof CreateTrainingInputSchema>;
1119
+ /**
1120
+ * Training update input schema
1121
+ */
1122
+ export declare const UpdateTrainingInputSchema: z.ZodObject<{
1123
+ name: z.ZodOptional<z.ZodString>;
1124
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1125
+ category_id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1126
+ subsidized: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1127
+ }, "strip", z.ZodTypeAny, {
1128
+ name?: string | undefined;
1129
+ description?: string | undefined;
1130
+ category_id?: number | undefined;
1131
+ subsidized?: boolean | undefined;
1132
+ }, {
1133
+ name?: string | undefined;
1134
+ description?: string | undefined;
1135
+ category_id?: number | undefined;
1136
+ subsidized?: boolean | undefined;
1137
+ }>;
1138
+ export type UpdateTrainingInput = z.infer<typeof UpdateTrainingInputSchema>;
1139
+ /**
1140
+ * Training Session schema
1141
+ */
1142
+ export declare const TrainingSessionSchema: z.ZodObject<{
1143
+ id: z.ZodNumber;
1144
+ training_id: z.ZodNumber;
1145
+ name: z.ZodNullable<z.ZodString>;
1146
+ start_date: z.ZodNullable<z.ZodString>;
1147
+ end_date: z.ZodNullable<z.ZodString>;
1148
+ location: z.ZodNullable<z.ZodString>;
1149
+ max_attendees: z.ZodNullable<z.ZodNumber>;
1150
+ created_at: z.ZodNullable<z.ZodString>;
1151
+ updated_at: z.ZodNullable<z.ZodString>;
1152
+ }, "strip", z.ZodTypeAny, {
1153
+ id: number;
1154
+ start_date: string | null;
1155
+ created_at: string | null;
1156
+ updated_at: string | null;
1157
+ name: string | null;
1158
+ location: string | null;
1159
+ training_id: number;
1160
+ end_date: string | null;
1161
+ max_attendees: number | null;
1162
+ }, {
1163
+ id: number;
1164
+ start_date: string | null;
1165
+ created_at: string | null;
1166
+ updated_at: string | null;
1167
+ name: string | null;
1168
+ location: string | null;
1169
+ training_id: number;
1170
+ end_date: string | null;
1171
+ max_attendees: number | null;
1172
+ }>;
1173
+ export type TrainingSession = z.infer<typeof TrainingSessionSchema>;
1174
+ /**
1175
+ * Training Session create input schema
1176
+ */
1177
+ export declare const CreateTrainingSessionInputSchema: z.ZodObject<{
1178
+ training_id: z.ZodNumber;
1179
+ name: z.ZodOptional<z.ZodString>;
1180
+ start_date: z.ZodOptional<z.ZodString>;
1181
+ end_date: z.ZodOptional<z.ZodString>;
1182
+ location: z.ZodOptional<z.ZodString>;
1183
+ max_attendees: z.ZodOptional<z.ZodNumber>;
1184
+ }, "strip", z.ZodTypeAny, {
1185
+ training_id: number;
1186
+ start_date?: string | undefined;
1187
+ name?: string | undefined;
1188
+ location?: string | undefined;
1189
+ end_date?: string | undefined;
1190
+ max_attendees?: number | undefined;
1191
+ }, {
1192
+ training_id: number;
1193
+ start_date?: string | undefined;
1194
+ name?: string | undefined;
1195
+ location?: string | undefined;
1196
+ end_date?: string | undefined;
1197
+ max_attendees?: number | undefined;
1198
+ }>;
1199
+ export type CreateTrainingSessionInput = z.infer<typeof CreateTrainingSessionInputSchema>;
1200
+ /**
1201
+ * Training Session update input schema
1202
+ */
1203
+ export declare const UpdateTrainingSessionInputSchema: z.ZodObject<Omit<{
1204
+ training_id: z.ZodOptional<z.ZodNumber>;
1205
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1206
+ start_date: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1207
+ end_date: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1208
+ location: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1209
+ max_attendees: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1210
+ }, "training_id">, "strip", z.ZodTypeAny, {
1211
+ start_date?: string | undefined;
1212
+ name?: string | undefined;
1213
+ location?: string | undefined;
1214
+ end_date?: string | undefined;
1215
+ max_attendees?: number | undefined;
1216
+ }, {
1217
+ start_date?: string | undefined;
1218
+ name?: string | undefined;
1219
+ location?: string | undefined;
1220
+ end_date?: string | undefined;
1221
+ max_attendees?: number | undefined;
1222
+ }>;
1223
+ export type UpdateTrainingSessionInput = z.infer<typeof UpdateTrainingSessionInputSchema>;
1224
+ /**
1225
+ * Training Membership (Enrollment) schema
1226
+ */
1227
+ export declare const TrainingMembershipSchema: z.ZodObject<{
1228
+ id: z.ZodNumber;
1229
+ training_id: z.ZodNumber;
1230
+ employee_id: z.ZodNumber;
1231
+ session_id: z.ZodNullable<z.ZodNumber>;
1232
+ status: z.ZodNullable<z.ZodString>;
1233
+ enrolled_at: z.ZodNullable<z.ZodString>;
1234
+ completed_at: z.ZodNullable<z.ZodString>;
1235
+ created_at: z.ZodNullable<z.ZodString>;
1236
+ updated_at: z.ZodNullable<z.ZodString>;
1237
+ }, "strip", z.ZodTypeAny, {
1238
+ id: number;
1239
+ status: string | null;
1240
+ created_at: string | null;
1241
+ updated_at: string | null;
1242
+ employee_id: number;
1243
+ training_id: number;
1244
+ session_id: number | null;
1245
+ enrolled_at: string | null;
1246
+ completed_at: string | null;
1247
+ }, {
1248
+ id: number;
1249
+ status: string | null;
1250
+ created_at: string | null;
1251
+ updated_at: string | null;
1252
+ employee_id: number;
1253
+ training_id: number;
1254
+ session_id: number | null;
1255
+ enrolled_at: string | null;
1256
+ completed_at: string | null;
1257
+ }>;
1258
+ export type TrainingMembership = z.infer<typeof TrainingMembershipSchema>;
1259
+ /**
1260
+ * Training enrollment input schema
1261
+ */
1262
+ export declare const EnrollTrainingInputSchema: z.ZodObject<{
1263
+ training_id: z.ZodNumber;
1264
+ employee_id: z.ZodNumber;
1265
+ session_id: z.ZodOptional<z.ZodNumber>;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ employee_id: number;
1268
+ training_id: number;
1269
+ session_id?: number | undefined;
1270
+ }, {
1271
+ employee_id: number;
1272
+ training_id: number;
1273
+ session_id?: number | undefined;
1274
+ }>;
1275
+ export type EnrollTrainingInput = z.infer<typeof EnrollTrainingInputSchema>;
1276
+ /**
1277
+ * Work Area schema
1278
+ */
1279
+ export declare const WorkAreaSchema: z.ZodObject<{
1280
+ id: z.ZodNumber;
1281
+ name: z.ZodString;
1282
+ description: z.ZodNullable<z.ZodString>;
1283
+ location_id: z.ZodNullable<z.ZodNumber>;
1284
+ company_id: z.ZodNullable<z.ZodNumber>;
1285
+ archived: z.ZodDefault<z.ZodBoolean>;
1286
+ created_at: z.ZodNullable<z.ZodString>;
1287
+ updated_at: z.ZodNullable<z.ZodString>;
1288
+ }, "strip", z.ZodTypeAny, {
1289
+ id: number;
1290
+ company_id: number | null;
1291
+ location_id: number | null;
1292
+ created_at: string | null;
1293
+ updated_at: string | null;
1294
+ name: string;
1295
+ description: string | null;
1296
+ archived: boolean;
1297
+ }, {
1298
+ id: number;
1299
+ company_id: number | null;
1300
+ location_id: number | null;
1301
+ created_at: string | null;
1302
+ updated_at: string | null;
1303
+ name: string;
1304
+ description: string | null;
1305
+ archived?: boolean | undefined;
1306
+ }>;
1307
+ export type WorkArea = z.infer<typeof WorkAreaSchema>;
1308
+ /**
1309
+ * Work Area create input schema
1310
+ */
1311
+ export declare const CreateWorkAreaInputSchema: z.ZodObject<{
1312
+ name: z.ZodString;
1313
+ description: z.ZodOptional<z.ZodString>;
1314
+ location_id: z.ZodOptional<z.ZodNumber>;
1315
+ }, "strip", z.ZodTypeAny, {
1316
+ name: string;
1317
+ location_id?: number | undefined;
1318
+ description?: string | undefined;
1319
+ }, {
1320
+ name: string;
1321
+ location_id?: number | undefined;
1322
+ description?: string | undefined;
1323
+ }>;
1324
+ export type CreateWorkAreaInput = z.infer<typeof CreateWorkAreaInputSchema>;
1325
+ /**
1326
+ * Work Area update input schema
1327
+ */
1328
+ export declare const UpdateWorkAreaInputSchema: z.ZodObject<{
1329
+ name: z.ZodOptional<z.ZodString>;
1330
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1331
+ location_id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1332
+ }, "strip", z.ZodTypeAny, {
1333
+ location_id?: number | undefined;
1334
+ name?: string | undefined;
1335
+ description?: string | undefined;
1336
+ }, {
1337
+ location_id?: number | undefined;
1338
+ name?: string | undefined;
1339
+ description?: string | undefined;
1340
+ }>;
1341
+ export type UpdateWorkAreaInput = z.infer<typeof UpdateWorkAreaInputSchema>;
1342
+ /**
1343
+ * Job Posting schema
1344
+ */
1345
+ export declare const JobPostingSchema: z.ZodObject<{
1346
+ id: z.ZodNumber;
1347
+ title: z.ZodString;
1348
+ description: z.ZodNullable<z.ZodString>;
1349
+ department: z.ZodNullable<z.ZodString>;
1350
+ location_id: z.ZodNullable<z.ZodNumber>;
1351
+ team_id: z.ZodNullable<z.ZodNumber>;
1352
+ status: z.ZodNullable<z.ZodEnum<["draft", "published", "closed", "archived"]>>;
1353
+ employment_type: z.ZodNullable<z.ZodString>;
1354
+ remote_status: z.ZodNullable<z.ZodString>;
1355
+ company_id: z.ZodNullable<z.ZodNumber>;
1356
+ published_at: z.ZodNullable<z.ZodString>;
1357
+ closed_at: z.ZodNullable<z.ZodString>;
1358
+ created_at: z.ZodNullable<z.ZodString>;
1359
+ updated_at: z.ZodNullable<z.ZodString>;
1360
+ }, "strip", z.ZodTypeAny, {
1361
+ id: number;
1362
+ company_id: number | null;
1363
+ status: "archived" | "draft" | "published" | "closed" | null;
1364
+ location_id: number | null;
1365
+ created_at: string | null;
1366
+ updated_at: string | null;
1367
+ description: string | null;
1368
+ title: string;
1369
+ department: string | null;
1370
+ team_id: number | null;
1371
+ employment_type: string | null;
1372
+ remote_status: string | null;
1373
+ published_at: string | null;
1374
+ closed_at: string | null;
1375
+ }, {
1376
+ id: number;
1377
+ company_id: number | null;
1378
+ status: "archived" | "draft" | "published" | "closed" | null;
1379
+ location_id: number | null;
1380
+ created_at: string | null;
1381
+ updated_at: string | null;
1382
+ description: string | null;
1383
+ title: string;
1384
+ department: string | null;
1385
+ team_id: number | null;
1386
+ employment_type: string | null;
1387
+ remote_status: string | null;
1388
+ published_at: string | null;
1389
+ closed_at: string | null;
1390
+ }>;
1391
+ export type JobPosting = z.infer<typeof JobPostingSchema>;
1392
+ /**
1393
+ * Job Posting create input schema
1394
+ */
1395
+ export declare const CreateJobPostingInputSchema: z.ZodObject<{
1396
+ title: z.ZodString;
1397
+ description: z.ZodOptional<z.ZodString>;
1398
+ department: z.ZodOptional<z.ZodString>;
1399
+ location_id: z.ZodOptional<z.ZodNumber>;
1400
+ team_id: z.ZodOptional<z.ZodNumber>;
1401
+ employment_type: z.ZodOptional<z.ZodString>;
1402
+ remote_status: z.ZodOptional<z.ZodString>;
1403
+ }, "strip", z.ZodTypeAny, {
1404
+ title: string;
1405
+ location_id?: number | undefined;
1406
+ description?: string | undefined;
1407
+ department?: string | undefined;
1408
+ team_id?: number | undefined;
1409
+ employment_type?: string | undefined;
1410
+ remote_status?: string | undefined;
1411
+ }, {
1412
+ title: string;
1413
+ location_id?: number | undefined;
1414
+ description?: string | undefined;
1415
+ department?: string | undefined;
1416
+ team_id?: number | undefined;
1417
+ employment_type?: string | undefined;
1418
+ remote_status?: string | undefined;
1419
+ }>;
1420
+ export type CreateJobPostingInput = z.infer<typeof CreateJobPostingInputSchema>;
1421
+ /**
1422
+ * Job Posting update input schema
1423
+ */
1424
+ export declare const UpdateJobPostingInputSchema: z.ZodObject<{
1425
+ title: z.ZodOptional<z.ZodString>;
1426
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1427
+ department: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1428
+ location_id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1429
+ team_id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1430
+ employment_type: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1431
+ remote_status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1432
+ } & {
1433
+ status: z.ZodOptional<z.ZodEnum<["draft", "published", "closed", "archived"]>>;
1434
+ }, "strip", z.ZodTypeAny, {
1435
+ status?: "archived" | "draft" | "published" | "closed" | undefined;
1436
+ location_id?: number | undefined;
1437
+ description?: string | undefined;
1438
+ title?: string | undefined;
1439
+ department?: string | undefined;
1440
+ team_id?: number | undefined;
1441
+ employment_type?: string | undefined;
1442
+ remote_status?: string | undefined;
1443
+ }, {
1444
+ status?: "archived" | "draft" | "published" | "closed" | undefined;
1445
+ location_id?: number | undefined;
1446
+ description?: string | undefined;
1447
+ title?: string | undefined;
1448
+ department?: string | undefined;
1449
+ team_id?: number | undefined;
1450
+ employment_type?: string | undefined;
1451
+ remote_status?: string | undefined;
1452
+ }>;
1453
+ export type UpdateJobPostingInput = z.infer<typeof UpdateJobPostingInputSchema>;
1454
+ /**
1455
+ * Candidate schema
1456
+ */
1457
+ export declare const CandidateSchema: z.ZodObject<{
1458
+ id: z.ZodNumber;
1459
+ first_name: z.ZodNullable<z.ZodString>;
1460
+ last_name: z.ZodNullable<z.ZodString>;
1461
+ full_name: z.ZodNullable<z.ZodString>;
1462
+ email: z.ZodNullable<z.ZodString>;
1463
+ phone: z.ZodNullable<z.ZodString>;
1464
+ source: z.ZodNullable<z.ZodString>;
1465
+ resume_url: z.ZodNullable<z.ZodString>;
1466
+ linkedin_url: z.ZodNullable<z.ZodString>;
1467
+ company_id: z.ZodNullable<z.ZodNumber>;
1468
+ created_at: z.ZodNullable<z.ZodString>;
1469
+ updated_at: z.ZodNullable<z.ZodString>;
1470
+ }, "strip", z.ZodTypeAny, {
1471
+ id: number;
1472
+ first_name: string | null;
1473
+ last_name: string | null;
1474
+ full_name: string | null;
1475
+ email: string | null;
1476
+ company_id: number | null;
1477
+ created_at: string | null;
1478
+ updated_at: string | null;
1479
+ phone: string | null;
1480
+ source: string | null;
1481
+ resume_url: string | null;
1482
+ linkedin_url: string | null;
1483
+ }, {
1484
+ id: number;
1485
+ first_name: string | null;
1486
+ last_name: string | null;
1487
+ full_name: string | null;
1488
+ email: string | null;
1489
+ company_id: number | null;
1490
+ created_at: string | null;
1491
+ updated_at: string | null;
1492
+ phone: string | null;
1493
+ source: string | null;
1494
+ resume_url: string | null;
1495
+ linkedin_url: string | null;
1496
+ }>;
1497
+ export type Candidate = z.infer<typeof CandidateSchema>;
1498
+ /**
1499
+ * Candidate create input schema
1500
+ */
1501
+ export declare const CreateCandidateInputSchema: z.ZodObject<{
1502
+ first_name: z.ZodString;
1503
+ last_name: z.ZodString;
1504
+ email: z.ZodOptional<z.ZodString>;
1505
+ phone: z.ZodOptional<z.ZodString>;
1506
+ source: z.ZodOptional<z.ZodString>;
1507
+ linkedin_url: z.ZodOptional<z.ZodString>;
1508
+ }, "strip", z.ZodTypeAny, {
1509
+ first_name: string;
1510
+ last_name: string;
1511
+ email?: string | undefined;
1512
+ phone?: string | undefined;
1513
+ source?: string | undefined;
1514
+ linkedin_url?: string | undefined;
1515
+ }, {
1516
+ first_name: string;
1517
+ last_name: string;
1518
+ email?: string | undefined;
1519
+ phone?: string | undefined;
1520
+ source?: string | undefined;
1521
+ linkedin_url?: string | undefined;
1522
+ }>;
1523
+ export type CreateCandidateInput = z.infer<typeof CreateCandidateInputSchema>;
1524
+ /**
1525
+ * Candidate update input schema
1526
+ */
1527
+ export declare const UpdateCandidateInputSchema: z.ZodObject<{
1528
+ first_name: z.ZodOptional<z.ZodString>;
1529
+ last_name: z.ZodOptional<z.ZodString>;
1530
+ email: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1531
+ phone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1532
+ source: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1533
+ linkedin_url: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1534
+ }, "strip", z.ZodTypeAny, {
1535
+ first_name?: string | undefined;
1536
+ last_name?: string | undefined;
1537
+ email?: string | undefined;
1538
+ phone?: string | undefined;
1539
+ source?: string | undefined;
1540
+ linkedin_url?: string | undefined;
1541
+ }, {
1542
+ first_name?: string | undefined;
1543
+ last_name?: string | undefined;
1544
+ email?: string | undefined;
1545
+ phone?: string | undefined;
1546
+ source?: string | undefined;
1547
+ linkedin_url?: string | undefined;
1548
+ }>;
1549
+ export type UpdateCandidateInput = z.infer<typeof UpdateCandidateInputSchema>;
1550
+ /**
1551
+ * Application schema
1552
+ */
1553
+ export declare const ApplicationSchema: z.ZodObject<{
1554
+ id: z.ZodNumber;
1555
+ job_posting_id: z.ZodNumber;
1556
+ candidate_id: z.ZodNumber;
1557
+ hiring_stage_id: z.ZodNullable<z.ZodNumber>;
1558
+ ats_application_phase_id: z.ZodNullable<z.ZodNumber>;
1559
+ status: z.ZodNullable<z.ZodString>;
1560
+ rating: z.ZodNullable<z.ZodNumber>;
1561
+ notes: z.ZodNullable<z.ZodString>;
1562
+ applied_at: z.ZodNullable<z.ZodString>;
1563
+ rejected_at: z.ZodNullable<z.ZodString>;
1564
+ hired_at: z.ZodNullable<z.ZodString>;
1565
+ created_at: z.ZodNullable<z.ZodString>;
1566
+ updated_at: z.ZodNullable<z.ZodString>;
1567
+ }, "strip", z.ZodTypeAny, {
1568
+ id: number;
1569
+ status: string | null;
1570
+ created_at: string | null;
1571
+ updated_at: string | null;
1572
+ notes: string | null;
1573
+ job_posting_id: number;
1574
+ candidate_id: number;
1575
+ hiring_stage_id: number | null;
1576
+ ats_application_phase_id: number | null;
1577
+ rating: number | null;
1578
+ applied_at: string | null;
1579
+ rejected_at: string | null;
1580
+ hired_at: string | null;
1581
+ }, {
1582
+ id: number;
1583
+ status: string | null;
1584
+ created_at: string | null;
1585
+ updated_at: string | null;
1586
+ notes: string | null;
1587
+ job_posting_id: number;
1588
+ candidate_id: number;
1589
+ hiring_stage_id: number | null;
1590
+ ats_application_phase_id: number | null;
1591
+ rating: number | null;
1592
+ applied_at: string | null;
1593
+ rejected_at: string | null;
1594
+ hired_at: string | null;
1595
+ }>;
1596
+ export type Application = z.infer<typeof ApplicationSchema>;
1597
+ /**
1598
+ * Application create input schema
1599
+ */
1600
+ export declare const CreateApplicationInputSchema: z.ZodObject<{
1601
+ job_posting_id: z.ZodNumber;
1602
+ candidate_id: z.ZodNumber;
1603
+ notes: z.ZodOptional<z.ZodString>;
1604
+ }, "strip", z.ZodTypeAny, {
1605
+ job_posting_id: number;
1606
+ candidate_id: number;
1607
+ notes?: string | undefined;
1608
+ }, {
1609
+ job_posting_id: number;
1610
+ candidate_id: number;
1611
+ notes?: string | undefined;
1612
+ }>;
1613
+ export type CreateApplicationInput = z.infer<typeof CreateApplicationInputSchema>;
1614
+ /**
1615
+ * Application update input schema
1616
+ */
1617
+ export declare const UpdateApplicationInputSchema: z.ZodObject<{
1618
+ hiring_stage_id: z.ZodOptional<z.ZodNumber>;
1619
+ rating: z.ZodOptional<z.ZodNumber>;
1620
+ notes: z.ZodOptional<z.ZodString>;
1621
+ }, "strip", z.ZodTypeAny, {
1622
+ notes?: string | undefined;
1623
+ hiring_stage_id?: number | undefined;
1624
+ rating?: number | undefined;
1625
+ }, {
1626
+ notes?: string | undefined;
1627
+ hiring_stage_id?: number | undefined;
1628
+ rating?: number | undefined;
1629
+ }>;
1630
+ export type UpdateApplicationInput = z.infer<typeof UpdateApplicationInputSchema>;
1631
+ /**
1632
+ * Hiring Stage schema
1633
+ */
1634
+ export declare const HiringStageSchema: z.ZodObject<{
1635
+ id: z.ZodNumber;
1636
+ name: z.ZodString;
1637
+ label: z.ZodNullable<z.ZodString>;
1638
+ ats_application_phase_id: z.ZodNullable<z.ZodNumber>;
1639
+ position: z.ZodNullable<z.ZodNumber>;
1640
+ company_id: z.ZodNullable<z.ZodNumber>;
1641
+ created_at: z.ZodNullable<z.ZodString>;
1642
+ updated_at: z.ZodNullable<z.ZodString>;
1643
+ }, "strip", z.ZodTypeAny, {
1644
+ id: number;
1645
+ company_id: number | null;
1646
+ created_at: string | null;
1647
+ updated_at: string | null;
1648
+ name: string;
1649
+ ats_application_phase_id: number | null;
1650
+ label: string | null;
1651
+ position: number | null;
1652
+ }, {
1653
+ id: number;
1654
+ company_id: number | null;
1655
+ created_at: string | null;
1656
+ updated_at: string | null;
1657
+ name: string;
1658
+ ats_application_phase_id: number | null;
1659
+ label: string | null;
1660
+ position: number | null;
1661
+ }>;
1662
+ export type HiringStage = z.infer<typeof HiringStageSchema>;
1663
+ /**
1664
+ * Payroll Supplement schema
1665
+ */
1666
+ export declare const PayrollSupplementSchema: z.ZodObject<{
1667
+ id: z.ZodNumber;
1668
+ employee_id: z.ZodNumber;
1669
+ supplement_type_id: z.ZodNullable<z.ZodNumber>;
1670
+ name: z.ZodNullable<z.ZodString>;
1671
+ amount_cents: z.ZodNullable<z.ZodNumber>;
1672
+ effective_on: z.ZodNullable<z.ZodString>;
1673
+ company_id: z.ZodNullable<z.ZodNumber>;
1674
+ created_at: z.ZodNullable<z.ZodString>;
1675
+ updated_at: z.ZodNullable<z.ZodString>;
1676
+ }, "strip", z.ZodTypeAny, {
1677
+ id: number;
1678
+ company_id: number | null;
1679
+ created_at: string | null;
1680
+ updated_at: string | null;
1681
+ name: string | null;
1682
+ employee_id: number;
1683
+ effective_on: string | null;
1684
+ supplement_type_id: number | null;
1685
+ amount_cents: number | null;
1686
+ }, {
1687
+ id: number;
1688
+ company_id: number | null;
1689
+ created_at: string | null;
1690
+ updated_at: string | null;
1691
+ name: string | null;
1692
+ employee_id: number;
1693
+ effective_on: string | null;
1694
+ supplement_type_id: number | null;
1695
+ amount_cents: number | null;
1696
+ }>;
1697
+ export type PayrollSupplement = z.infer<typeof PayrollSupplementSchema>;
1698
+ /**
1699
+ * Tax Identifier schema
1700
+ */
1701
+ export declare const TaxIdentifierSchema: z.ZodObject<{
1702
+ id: z.ZodNumber;
1703
+ employee_id: z.ZodNumber;
1704
+ identifier_type: z.ZodNullable<z.ZodString>;
1705
+ identifier_value: z.ZodNullable<z.ZodString>;
1706
+ country: z.ZodNullable<z.ZodString>;
1707
+ created_at: z.ZodNullable<z.ZodString>;
1708
+ updated_at: z.ZodNullable<z.ZodString>;
1709
+ }, "strip", z.ZodTypeAny, {
1710
+ id: number;
1711
+ created_at: string | null;
1712
+ updated_at: string | null;
1713
+ country: string | null;
1714
+ employee_id: number;
1715
+ identifier_type: string | null;
1716
+ identifier_value: string | null;
1717
+ }, {
1718
+ id: number;
1719
+ created_at: string | null;
1720
+ updated_at: string | null;
1721
+ country: string | null;
1722
+ employee_id: number;
1723
+ identifier_type: string | null;
1724
+ identifier_value: string | null;
1725
+ }>;
1726
+ export type TaxIdentifier = z.infer<typeof TaxIdentifierSchema>;
1727
+ /**
1728
+ * Family Situation schema
1729
+ */
1730
+ export declare const FamilySituationSchema: z.ZodObject<{
1731
+ id: z.ZodNumber;
1732
+ employee_id: z.ZodNumber;
1733
+ marital_status: z.ZodNullable<z.ZodString>;
1734
+ number_of_dependents: z.ZodNullable<z.ZodNumber>;
1735
+ effective_on: z.ZodNullable<z.ZodString>;
1736
+ created_at: z.ZodNullable<z.ZodString>;
1737
+ updated_at: z.ZodNullable<z.ZodString>;
1738
+ }, "strip", z.ZodTypeAny, {
1739
+ id: number;
1740
+ created_at: string | null;
1741
+ updated_at: string | null;
1742
+ employee_id: number;
1743
+ effective_on: string | null;
1744
+ marital_status: string | null;
1745
+ number_of_dependents: number | null;
1746
+ }, {
1747
+ id: number;
1748
+ created_at: string | null;
1749
+ updated_at: string | null;
1750
+ employee_id: number;
1751
+ effective_on: string | null;
1752
+ marital_status: string | null;
1753
+ number_of_dependents: number | null;
1754
+ }>;
1755
+ export type FamilySituation = z.infer<typeof FamilySituationSchema>;
1756
+ /**
1757
+ * API response wrapper schema
1758
+ */
1759
+ export declare function createApiResponseSchema<T extends z.ZodTypeAny>(dataSchema: T): z.ZodObject<{
1760
+ data: T;
1761
+ }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
1762
+ data: T;
1763
+ }>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
1764
+ data: T;
1765
+ }> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
1766
+ /**
1767
+ * API list response wrapper schema
1768
+ */
1769
+ export declare function createApiListResponseSchema<T extends z.ZodTypeAny>(itemSchema: T): z.ZodObject<{
1770
+ data: z.ZodArray<T, "many">;
1771
+ }, "strip", z.ZodTypeAny, {
1772
+ data: T["_output"][];
1773
+ }, {
1774
+ data: T["_input"][];
1775
+ }>;
1776
+ /**
1777
+ * Parse and validate data against a schema
1778
+ * @throws SchemaValidationError if validation fails
1779
+ */
1780
+ export declare function parseData<T>(schemaName: string, schema: z.ZodSchema<T>, data: unknown): T;
1781
+ /**
1782
+ * Safely parse data without throwing (returns undefined on failure)
1783
+ */
1784
+ export declare function safeParseData<T>(schema: z.ZodSchema<T>, data: unknown): T | undefined;
1785
+ /**
1786
+ * Parse an array of items against a schema
1787
+ */
1788
+ export declare function parseArray<T>(schemaName: string, itemSchema: z.ZodSchema<T>, data: unknown): T[];
1789
+ //# sourceMappingURL=schemas.d.ts.map