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