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