@dakkitor/api-contracts 1.1.9 → 1.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/actives/actives.contract.d.ts +263 -263
  2. package/dist/actives/actives.contract.d.ts.map +1 -1
  3. package/dist/actives/actives.contract.js +9 -17
  4. package/dist/agent-client-links/agent-client-links.contract.d.ts +1905 -0
  5. package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -0
  6. package/dist/agent-client-links/agent-client-links.contract.js +127 -0
  7. package/dist/auth/auth.contract.d.ts +319 -0
  8. package/dist/auth/auth.contract.d.ts.map +1 -0
  9. package/dist/auth/auth.contract.js +63 -0
  10. package/dist/bookings/bookings.contract.d.ts +2183 -0
  11. package/dist/bookings/bookings.contract.d.ts.map +1 -0
  12. package/dist/bookings/bookings.contract.js +278 -0
  13. package/dist/call-history/call-history.contract.d.ts +1164 -0
  14. package/dist/call-history/call-history.contract.d.ts.map +1 -0
  15. package/dist/call-history/call-history.contract.js +254 -0
  16. package/dist/client-contacts/client-contacts.contract.d.ts +421 -472
  17. package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
  18. package/dist/client-contacts/client-contacts.contract.js +26 -15
  19. package/dist/clients/clients.contract.d.ts +336 -308
  20. package/dist/clients/clients.contract.d.ts.map +1 -1
  21. package/dist/clients/clients.contract.js +49 -52
  22. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +3013 -0
  23. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -0
  24. package/dist/collaboration-checkings/collaboration-checkings.contract.js +247 -0
  25. package/dist/collaborations/collaborations.contract.d.ts +2229 -0
  26. package/dist/collaborations/collaborations.contract.d.ts.map +1 -0
  27. package/dist/collaborations/collaborations.contract.js +284 -0
  28. package/dist/common/common-schemas.d.ts +120 -0
  29. package/dist/common/common-schemas.d.ts.map +1 -0
  30. package/dist/common/common-schemas.js +296 -0
  31. package/dist/common/error-schemas.d.ts +6 -6
  32. package/dist/common/openapi-metadata.d.ts +6 -0
  33. package/dist/common/openapi-metadata.d.ts.map +1 -1
  34. package/dist/common/pagination-query.schema.d.ts +17 -0
  35. package/dist/common/pagination-query.schema.d.ts.map +1 -0
  36. package/dist/common/pagination-query.schema.js +15 -0
  37. package/dist/common/pagination.schema.d.ts +2 -2
  38. package/dist/companies/companies.contract.d.ts +1108 -0
  39. package/dist/companies/companies.contract.d.ts.map +1 -0
  40. package/dist/companies/companies.contract.js +164 -0
  41. package/dist/cron-executions/cron-executions.contract.d.ts +1643 -0
  42. package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -0
  43. package/dist/cron-executions/cron-executions.contract.js +271 -0
  44. package/dist/curated-workers/curated-workers.contract.d.ts +3183 -0
  45. package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -0
  46. package/dist/curated-workers/curated-workers.contract.js +444 -0
  47. package/dist/dashboards/agent-daily-metrics.contract.d.ts +639 -0
  48. package/dist/dashboards/agent-daily-metrics.contract.d.ts.map +1 -0
  49. package/dist/dashboards/agent-daily-metrics.contract.js +118 -0
  50. package/dist/files/files.contract.d.ts +1258 -0
  51. package/dist/files/files.contract.d.ts.map +1 -0
  52. package/dist/files/files.contract.js +205 -0
  53. package/dist/health/health.contract.d.ts +161 -0
  54. package/dist/health/health.contract.d.ts.map +1 -0
  55. package/dist/health/health.contract.js +52 -0
  56. package/dist/index.d.ts +28596 -3088
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/index.js +68 -0
  59. package/dist/jobs/jobs.contract.d.ts +2303 -0
  60. package/dist/jobs/jobs.contract.d.ts.map +1 -0
  61. package/dist/jobs/jobs.contract.js +295 -0
  62. package/dist/lead-assignments/lead-assignments.contract.d.ts +1826 -0
  63. package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -0
  64. package/dist/lead-assignments/lead-assignments.contract.js +187 -0
  65. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +1147 -0
  66. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -0
  67. package/dist/lead-distribution/agent-lead-distribution.contract.js +154 -0
  68. package/dist/lead-distribution/lead-distribution-config.contract.d.ts +1085 -0
  69. package/dist/lead-distribution/lead-distribution-config.contract.d.ts.map +1 -0
  70. package/dist/lead-distribution/lead-distribution-config.contract.js +196 -0
  71. package/dist/leads/leads.contract.d.ts +1690 -0
  72. package/dist/leads/leads.contract.d.ts.map +1 -0
  73. package/dist/leads/leads.contract.js +328 -0
  74. package/dist/locations/locations.contract.d.ts +974 -0
  75. package/dist/locations/locations.contract.d.ts.map +1 -0
  76. package/dist/locations/locations.contract.js +154 -0
  77. package/dist/postcodes/postcodes.contract.d.ts +370 -0
  78. package/dist/postcodes/postcodes.contract.d.ts.map +1 -0
  79. package/dist/postcodes/postcodes.contract.js +90 -0
  80. package/dist/qualifications/qualifications.contract.d.ts +1489 -0
  81. package/dist/qualifications/qualifications.contract.d.ts.map +1 -0
  82. package/dist/qualifications/qualifications.contract.js +215 -0
  83. package/dist/trades/trades.contract.d.ts +799 -0
  84. package/dist/trades/trades.contract.d.ts.map +1 -0
  85. package/dist/trades/trades.contract.js +112 -0
  86. package/dist/users/users.contract.d.ts +315 -299
  87. package/dist/users/users.contract.d.ts.map +1 -1
  88. package/dist/users/users.contract.js +13 -29
  89. package/dist/workers/workers.contract.d.ts +3376 -0
  90. package/dist/workers/workers.contract.d.ts.map +1 -0
  91. package/dist/workers/workers.contract.js +363 -0
  92. package/package.json +4 -3
@@ -0,0 +1,2183 @@
1
+ import { z } from 'zod';
2
+ export declare const BookingStatusSchema: z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>;
3
+ export declare const BookingSortableFieldsSchema: z.ZodEnum<["status", "startDate", "createdAt", "updatedAt"]>;
4
+ export declare const BookingPaySchema: z.ZodObject<{
5
+ rate: z.ZodNumber;
6
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ rate: number;
9
+ unit: "DAILY" | "HOURLY";
10
+ }, {
11
+ rate: number;
12
+ unit: "DAILY" | "HOURLY";
13
+ }>;
14
+ export declare const BookingItemSchema: z.ZodObject<{
15
+ worker: z.ZodObject<{
16
+ id: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ id: string;
19
+ }, {
20
+ id: string;
21
+ }>;
22
+ startDate: z.ZodString;
23
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ status: z.ZodOptional<z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>>;
25
+ pay: z.ZodOptional<z.ZodObject<{
26
+ rate: z.ZodNumber;
27
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ rate: number;
30
+ unit: "DAILY" | "HOURLY";
31
+ }, {
32
+ rate: number;
33
+ unit: "DAILY" | "HOURLY";
34
+ }>>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ startDate: string;
37
+ worker: {
38
+ id: string;
39
+ };
40
+ status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | undefined;
41
+ endDate?: string | null | undefined;
42
+ pay?: {
43
+ rate: number;
44
+ unit: "DAILY" | "HOURLY";
45
+ } | undefined;
46
+ }, {
47
+ startDate: string;
48
+ worker: {
49
+ id: string;
50
+ };
51
+ status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | undefined;
52
+ endDate?: string | null | undefined;
53
+ pay?: {
54
+ rate: number;
55
+ unit: "DAILY" | "HOURLY";
56
+ } | undefined;
57
+ }>;
58
+ export declare const FilterJobInBookingSchema: z.ZodObject<{
59
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
60
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
61
+ companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
62
+ tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ userId?: string | null | undefined;
65
+ clientId?: string | null | undefined;
66
+ companyId?: string | null | undefined;
67
+ tradeId?: string | null | undefined;
68
+ }, {
69
+ userId?: string | null | undefined;
70
+ clientId?: string | null | undefined;
71
+ companyId?: string | null | undefined;
72
+ tradeId?: string | null | undefined;
73
+ }>;
74
+ export declare const BookingWorkerSchema: z.ZodObject<{
75
+ id: z.ZodString;
76
+ firstName: z.ZodString;
77
+ lastName: z.ZodString;
78
+ }, "strip", z.ZodTypeAny, {
79
+ id: string;
80
+ firstName: string;
81
+ lastName: string;
82
+ }, {
83
+ id: string;
84
+ firstName: string;
85
+ lastName: string;
86
+ }>;
87
+ export declare const BookingJobSchema: z.ZodObject<{
88
+ id: z.ZodString;
89
+ title: z.ZodString;
90
+ }, "strip", z.ZodTypeAny, {
91
+ id: string;
92
+ title: string;
93
+ }, {
94
+ id: string;
95
+ title: string;
96
+ }>;
97
+ export declare const BookingSchema: z.ZodObject<{
98
+ id: z.ZodString;
99
+ status: z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>;
100
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
101
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
102
+ worker: z.ZodObject<{
103
+ id: z.ZodString;
104
+ firstName: z.ZodString;
105
+ lastName: z.ZodString;
106
+ }, "strip", z.ZodTypeAny, {
107
+ id: string;
108
+ firstName: string;
109
+ lastName: string;
110
+ }, {
111
+ id: string;
112
+ firstName: string;
113
+ lastName: string;
114
+ }>;
115
+ user: z.ZodObject<{
116
+ id: z.ZodString;
117
+ firstName: z.ZodString;
118
+ lastName: z.ZodString;
119
+ email: z.ZodString;
120
+ }, "strip", z.ZodTypeAny, {
121
+ id: string;
122
+ firstName: string;
123
+ lastName: string;
124
+ email: string;
125
+ }, {
126
+ id: string;
127
+ firstName: string;
128
+ lastName: string;
129
+ email: string;
130
+ }>;
131
+ pay: z.ZodObject<{
132
+ rate: z.ZodNumber;
133
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ rate: number;
136
+ unit: "DAILY" | "HOURLY";
137
+ }, {
138
+ rate: number;
139
+ unit: "DAILY" | "HOURLY";
140
+ }>;
141
+ job: z.ZodObject<{
142
+ id: z.ZodString;
143
+ title: z.ZodString;
144
+ }, "strip", z.ZodTypeAny, {
145
+ id: string;
146
+ title: string;
147
+ }, {
148
+ id: string;
149
+ title: string;
150
+ }>;
151
+ userId: z.ZodString;
152
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
153
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
154
+ }, "strip", z.ZodTypeAny, {
155
+ status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
156
+ startDate: string;
157
+ createdAt: string;
158
+ updatedAt: string;
159
+ id: string;
160
+ worker: {
161
+ id: string;
162
+ firstName: string;
163
+ lastName: string;
164
+ };
165
+ pay: {
166
+ rate: number;
167
+ unit: "DAILY" | "HOURLY";
168
+ };
169
+ userId: string;
170
+ user: {
171
+ id: string;
172
+ firstName: string;
173
+ lastName: string;
174
+ email: string;
175
+ };
176
+ job: {
177
+ id: string;
178
+ title: string;
179
+ };
180
+ endDate?: string | null | undefined;
181
+ }, {
182
+ status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
183
+ startDate: string | Date;
184
+ createdAt: string | Date;
185
+ updatedAt: string | Date;
186
+ id: string;
187
+ worker: {
188
+ id: string;
189
+ firstName: string;
190
+ lastName: string;
191
+ };
192
+ pay: {
193
+ rate: number;
194
+ unit: "DAILY" | "HOURLY";
195
+ };
196
+ userId: string;
197
+ user: {
198
+ id: string;
199
+ firstName: string;
200
+ lastName: string;
201
+ email: string;
202
+ };
203
+ job: {
204
+ id: string;
205
+ title: string;
206
+ };
207
+ endDate?: string | Date | null | undefined;
208
+ }>;
209
+ export declare const CreateBookingSchema: z.ZodObject<{
210
+ job: z.ZodObject<{
211
+ id: z.ZodString;
212
+ }, "strip", z.ZodTypeAny, {
213
+ id: string;
214
+ }, {
215
+ id: string;
216
+ }>;
217
+ bookings: z.ZodArray<z.ZodObject<{
218
+ worker: z.ZodObject<{
219
+ id: z.ZodString;
220
+ }, "strip", z.ZodTypeAny, {
221
+ id: string;
222
+ }, {
223
+ id: string;
224
+ }>;
225
+ startDate: z.ZodString;
226
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
227
+ status: z.ZodOptional<z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>>;
228
+ pay: z.ZodOptional<z.ZodObject<{
229
+ rate: z.ZodNumber;
230
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ rate: number;
233
+ unit: "DAILY" | "HOURLY";
234
+ }, {
235
+ rate: number;
236
+ unit: "DAILY" | "HOURLY";
237
+ }>>;
238
+ }, "strip", z.ZodTypeAny, {
239
+ startDate: string;
240
+ worker: {
241
+ id: string;
242
+ };
243
+ status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | undefined;
244
+ endDate?: string | null | undefined;
245
+ pay?: {
246
+ rate: number;
247
+ unit: "DAILY" | "HOURLY";
248
+ } | undefined;
249
+ }, {
250
+ startDate: string;
251
+ worker: {
252
+ id: string;
253
+ };
254
+ status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | undefined;
255
+ endDate?: string | null | undefined;
256
+ pay?: {
257
+ rate: number;
258
+ unit: "DAILY" | "HOURLY";
259
+ } | undefined;
260
+ }>, "many">;
261
+ }, "strip", z.ZodTypeAny, {
262
+ job: {
263
+ id: string;
264
+ };
265
+ bookings: {
266
+ startDate: string;
267
+ worker: {
268
+ id: string;
269
+ };
270
+ status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | undefined;
271
+ endDate?: string | null | undefined;
272
+ pay?: {
273
+ rate: number;
274
+ unit: "DAILY" | "HOURLY";
275
+ } | undefined;
276
+ }[];
277
+ }, {
278
+ job: {
279
+ id: string;
280
+ };
281
+ bookings: {
282
+ startDate: string;
283
+ worker: {
284
+ id: string;
285
+ };
286
+ status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | undefined;
287
+ endDate?: string | null | undefined;
288
+ pay?: {
289
+ rate: number;
290
+ unit: "DAILY" | "HOURLY";
291
+ } | undefined;
292
+ }[];
293
+ }>;
294
+ export declare const UpdateBookingSchema: z.ZodObject<{
295
+ startDate: z.ZodOptional<z.ZodString>;
296
+ endDate: z.ZodOptional<z.ZodString>;
297
+ status: z.ZodOptional<z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | undefined;
300
+ startDate?: string | undefined;
301
+ endDate?: string | undefined;
302
+ }, {
303
+ status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | undefined;
304
+ startDate?: string | undefined;
305
+ endDate?: string | undefined;
306
+ }>;
307
+ export declare const FilterBookingSchema: z.ZodObject<{
308
+ limit: z.ZodDefault<z.ZodNumber>;
309
+ page: z.ZodDefault<z.ZodNumber>;
310
+ } & {
311
+ workerName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
312
+ job: z.ZodNullable<z.ZodOptional<z.ZodObject<{
313
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
314
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
315
+ companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
316
+ tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
317
+ }, "strip", z.ZodTypeAny, {
318
+ userId?: string | null | undefined;
319
+ clientId?: string | null | undefined;
320
+ companyId?: string | null | undefined;
321
+ tradeId?: string | null | undefined;
322
+ }, {
323
+ userId?: string | null | undefined;
324
+ clientId?: string | null | undefined;
325
+ companyId?: string | null | undefined;
326
+ tradeId?: string | null | undefined;
327
+ }>>>;
328
+ createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
329
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ from?: string | null | undefined;
333
+ to?: string | null | undefined;
334
+ }, {
335
+ from?: string | null | undefined;
336
+ to?: string | null | undefined;
337
+ }>>>;
338
+ startDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
339
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
340
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
341
+ }, "strip", z.ZodTypeAny, {
342
+ from?: string | null | undefined;
343
+ to?: string | null | undefined;
344
+ }, {
345
+ from?: string | null | undefined;
346
+ to?: string | null | undefined;
347
+ }>>>;
348
+ endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
349
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
350
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ from?: string | null | undefined;
353
+ to?: string | null | undefined;
354
+ }, {
355
+ from?: string | null | undefined;
356
+ to?: string | null | undefined;
357
+ }>>>;
358
+ sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["status", "startDate", "createdAt", "updatedAt"]>>>;
359
+ sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
360
+ status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>>>;
361
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
362
+ companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
363
+ agentName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ limit: number;
366
+ page: number;
367
+ status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | null | undefined;
368
+ startDate?: {
369
+ from?: string | null | undefined;
370
+ to?: string | null | undefined;
371
+ } | null | undefined;
372
+ createdAt?: {
373
+ from?: string | null | undefined;
374
+ to?: string | null | undefined;
375
+ } | null | undefined;
376
+ endDate?: {
377
+ from?: string | null | undefined;
378
+ to?: string | null | undefined;
379
+ } | null | undefined;
380
+ clientId?: string | null | undefined;
381
+ companyId?: string | null | undefined;
382
+ job?: {
383
+ userId?: string | null | undefined;
384
+ clientId?: string | null | undefined;
385
+ companyId?: string | null | undefined;
386
+ tradeId?: string | null | undefined;
387
+ } | null | undefined;
388
+ workerName?: string | null | undefined;
389
+ sortBy?: "status" | "startDate" | "createdAt" | "updatedAt" | null | undefined;
390
+ sortOrder?: "ASC" | "DESC" | null | undefined;
391
+ agentName?: string | null | undefined;
392
+ }, {
393
+ status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | null | undefined;
394
+ startDate?: {
395
+ from?: string | null | undefined;
396
+ to?: string | null | undefined;
397
+ } | null | undefined;
398
+ createdAt?: {
399
+ from?: string | null | undefined;
400
+ to?: string | null | undefined;
401
+ } | null | undefined;
402
+ endDate?: {
403
+ from?: string | null | undefined;
404
+ to?: string | null | undefined;
405
+ } | null | undefined;
406
+ clientId?: string | null | undefined;
407
+ companyId?: string | null | undefined;
408
+ job?: {
409
+ userId?: string | null | undefined;
410
+ clientId?: string | null | undefined;
411
+ companyId?: string | null | undefined;
412
+ tradeId?: string | null | undefined;
413
+ } | null | undefined;
414
+ limit?: number | undefined;
415
+ page?: number | undefined;
416
+ workerName?: string | null | undefined;
417
+ sortBy?: "status" | "startDate" | "createdAt" | "updatedAt" | null | undefined;
418
+ sortOrder?: "ASC" | "DESC" | null | undefined;
419
+ agentName?: string | null | undefined;
420
+ }>;
421
+ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
422
+ items: z.ZodArray<z.ZodObject<{
423
+ id: z.ZodString;
424
+ status: z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>;
425
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
426
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
427
+ worker: z.ZodObject<{
428
+ id: z.ZodString;
429
+ firstName: z.ZodString;
430
+ lastName: z.ZodString;
431
+ }, "strip", z.ZodTypeAny, {
432
+ id: string;
433
+ firstName: string;
434
+ lastName: string;
435
+ }, {
436
+ id: string;
437
+ firstName: string;
438
+ lastName: string;
439
+ }>;
440
+ user: z.ZodObject<{
441
+ id: z.ZodString;
442
+ firstName: z.ZodString;
443
+ lastName: z.ZodString;
444
+ email: z.ZodString;
445
+ }, "strip", z.ZodTypeAny, {
446
+ id: string;
447
+ firstName: string;
448
+ lastName: string;
449
+ email: string;
450
+ }, {
451
+ id: string;
452
+ firstName: string;
453
+ lastName: string;
454
+ email: string;
455
+ }>;
456
+ pay: z.ZodObject<{
457
+ rate: z.ZodNumber;
458
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
459
+ }, "strip", z.ZodTypeAny, {
460
+ rate: number;
461
+ unit: "DAILY" | "HOURLY";
462
+ }, {
463
+ rate: number;
464
+ unit: "DAILY" | "HOURLY";
465
+ }>;
466
+ job: z.ZodObject<{
467
+ id: z.ZodString;
468
+ title: z.ZodString;
469
+ }, "strip", z.ZodTypeAny, {
470
+ id: string;
471
+ title: string;
472
+ }, {
473
+ id: string;
474
+ title: string;
475
+ }>;
476
+ userId: z.ZodString;
477
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
478
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
479
+ }, "strip", z.ZodTypeAny, {
480
+ status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
481
+ startDate: string;
482
+ createdAt: string;
483
+ updatedAt: string;
484
+ id: string;
485
+ worker: {
486
+ id: string;
487
+ firstName: string;
488
+ lastName: string;
489
+ };
490
+ pay: {
491
+ rate: number;
492
+ unit: "DAILY" | "HOURLY";
493
+ };
494
+ userId: string;
495
+ user: {
496
+ id: string;
497
+ firstName: string;
498
+ lastName: string;
499
+ email: string;
500
+ };
501
+ job: {
502
+ id: string;
503
+ title: string;
504
+ };
505
+ endDate?: string | null | undefined;
506
+ }, {
507
+ status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
508
+ startDate: string | Date;
509
+ createdAt: string | Date;
510
+ updatedAt: string | Date;
511
+ id: string;
512
+ worker: {
513
+ id: string;
514
+ firstName: string;
515
+ lastName: string;
516
+ };
517
+ pay: {
518
+ rate: number;
519
+ unit: "DAILY" | "HOURLY";
520
+ };
521
+ userId: string;
522
+ user: {
523
+ id: string;
524
+ firstName: string;
525
+ lastName: string;
526
+ email: string;
527
+ };
528
+ job: {
529
+ id: string;
530
+ title: string;
531
+ };
532
+ endDate?: string | Date | null | undefined;
533
+ }>, "many">;
534
+ totalCount: z.ZodNumber;
535
+ limit: z.ZodNumber;
536
+ skip: z.ZodNumber;
537
+ currentPage: z.ZodNumber;
538
+ totalPages: z.ZodNumber;
539
+ }, "strip", z.ZodTypeAny, {
540
+ limit: number;
541
+ items: {
542
+ status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
543
+ startDate: string;
544
+ createdAt: string;
545
+ updatedAt: string;
546
+ id: string;
547
+ worker: {
548
+ id: string;
549
+ firstName: string;
550
+ lastName: string;
551
+ };
552
+ pay: {
553
+ rate: number;
554
+ unit: "DAILY" | "HOURLY";
555
+ };
556
+ userId: string;
557
+ user: {
558
+ id: string;
559
+ firstName: string;
560
+ lastName: string;
561
+ email: string;
562
+ };
563
+ job: {
564
+ id: string;
565
+ title: string;
566
+ };
567
+ endDate?: string | null | undefined;
568
+ }[];
569
+ totalCount: number;
570
+ skip: number;
571
+ currentPage: number;
572
+ totalPages: number;
573
+ }, {
574
+ limit: number;
575
+ items: {
576
+ status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
577
+ startDate: string | Date;
578
+ createdAt: string | Date;
579
+ updatedAt: string | Date;
580
+ id: string;
581
+ worker: {
582
+ id: string;
583
+ firstName: string;
584
+ lastName: string;
585
+ };
586
+ pay: {
587
+ rate: number;
588
+ unit: "DAILY" | "HOURLY";
589
+ };
590
+ userId: string;
591
+ user: {
592
+ id: string;
593
+ firstName: string;
594
+ lastName: string;
595
+ email: string;
596
+ };
597
+ job: {
598
+ id: string;
599
+ title: string;
600
+ };
601
+ endDate?: string | Date | null | undefined;
602
+ }[];
603
+ totalCount: number;
604
+ skip: number;
605
+ currentPage: number;
606
+ totalPages: number;
607
+ }>;
608
+ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
609
+ id: z.ZodString;
610
+ status: z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>;
611
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
612
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
613
+ worker: z.ZodObject<{
614
+ id: z.ZodString;
615
+ firstName: z.ZodString;
616
+ lastName: z.ZodString;
617
+ }, "strip", z.ZodTypeAny, {
618
+ id: string;
619
+ firstName: string;
620
+ lastName: string;
621
+ }, {
622
+ id: string;
623
+ firstName: string;
624
+ lastName: string;
625
+ }>;
626
+ user: z.ZodObject<{
627
+ id: z.ZodString;
628
+ firstName: z.ZodString;
629
+ lastName: z.ZodString;
630
+ email: z.ZodString;
631
+ }, "strip", z.ZodTypeAny, {
632
+ id: string;
633
+ firstName: string;
634
+ lastName: string;
635
+ email: string;
636
+ }, {
637
+ id: string;
638
+ firstName: string;
639
+ lastName: string;
640
+ email: string;
641
+ }>;
642
+ pay: z.ZodObject<{
643
+ rate: z.ZodNumber;
644
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
645
+ }, "strip", z.ZodTypeAny, {
646
+ rate: number;
647
+ unit: "DAILY" | "HOURLY";
648
+ }, {
649
+ rate: number;
650
+ unit: "DAILY" | "HOURLY";
651
+ }>;
652
+ job: z.ZodObject<{
653
+ id: z.ZodString;
654
+ title: z.ZodString;
655
+ }, "strip", z.ZodTypeAny, {
656
+ id: string;
657
+ title: string;
658
+ }, {
659
+ id: string;
660
+ title: string;
661
+ }>;
662
+ userId: z.ZodString;
663
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
664
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
665
+ }, "strip", z.ZodTypeAny, {
666
+ status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
667
+ startDate: string;
668
+ createdAt: string;
669
+ updatedAt: string;
670
+ id: string;
671
+ worker: {
672
+ id: string;
673
+ firstName: string;
674
+ lastName: string;
675
+ };
676
+ pay: {
677
+ rate: number;
678
+ unit: "DAILY" | "HOURLY";
679
+ };
680
+ userId: string;
681
+ user: {
682
+ id: string;
683
+ firstName: string;
684
+ lastName: string;
685
+ email: string;
686
+ };
687
+ job: {
688
+ id: string;
689
+ title: string;
690
+ };
691
+ endDate?: string | null | undefined;
692
+ }, {
693
+ status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
694
+ startDate: string | Date;
695
+ createdAt: string | Date;
696
+ updatedAt: string | Date;
697
+ id: string;
698
+ worker: {
699
+ id: string;
700
+ firstName: string;
701
+ lastName: string;
702
+ };
703
+ pay: {
704
+ rate: number;
705
+ unit: "DAILY" | "HOURLY";
706
+ };
707
+ userId: string;
708
+ user: {
709
+ id: string;
710
+ firstName: string;
711
+ lastName: string;
712
+ email: string;
713
+ };
714
+ job: {
715
+ id: string;
716
+ title: string;
717
+ };
718
+ endDate?: string | Date | null | undefined;
719
+ }>, "many">;
720
+ export type BookingStatus = z.infer<typeof BookingStatusSchema>;
721
+ export type BookingSortableFields = z.infer<typeof BookingSortableFieldsSchema>;
722
+ export type BookingPay = z.infer<typeof BookingPaySchema>;
723
+ export type BookingItem = z.infer<typeof BookingItemSchema>;
724
+ export type FilterJobInBooking = z.infer<typeof FilterJobInBookingSchema>;
725
+ export type BookingWorker = z.infer<typeof BookingWorkerSchema>;
726
+ export type BookingJob = z.infer<typeof BookingJobSchema>;
727
+ export type Booking = z.infer<typeof BookingSchema>;
728
+ export type CreateBooking = z.infer<typeof CreateBookingSchema>;
729
+ export type UpdateBooking = z.infer<typeof UpdateBookingSchema>;
730
+ export type FilterBooking = z.infer<typeof FilterBookingSchema>;
731
+ export type PaginatedBookingResponse = z.infer<typeof PaginatedBookingResponseSchema>;
732
+ export type BookingArray = z.infer<typeof BookingArraySchema>;
733
+ export declare const bookingsContractRouter: {
734
+ create: {
735
+ metadata: {
736
+ tags: string[];
737
+ openApi: {
738
+ operationId: string;
739
+ };
740
+ };
741
+ summary: "Create new bookings (bulk operation)";
742
+ method: "POST";
743
+ body: z.ZodObject<{
744
+ job: z.ZodObject<{
745
+ id: z.ZodString;
746
+ }, "strip", z.ZodTypeAny, {
747
+ id: string;
748
+ }, {
749
+ id: string;
750
+ }>;
751
+ bookings: z.ZodArray<z.ZodObject<{
752
+ worker: z.ZodObject<{
753
+ id: z.ZodString;
754
+ }, "strip", z.ZodTypeAny, {
755
+ id: string;
756
+ }, {
757
+ id: string;
758
+ }>;
759
+ startDate: z.ZodString;
760
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
761
+ status: z.ZodOptional<z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>>;
762
+ pay: z.ZodOptional<z.ZodObject<{
763
+ rate: z.ZodNumber;
764
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
765
+ }, "strip", z.ZodTypeAny, {
766
+ rate: number;
767
+ unit: "DAILY" | "HOURLY";
768
+ }, {
769
+ rate: number;
770
+ unit: "DAILY" | "HOURLY";
771
+ }>>;
772
+ }, "strip", z.ZodTypeAny, {
773
+ startDate: string;
774
+ worker: {
775
+ id: string;
776
+ };
777
+ status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | undefined;
778
+ endDate?: string | null | undefined;
779
+ pay?: {
780
+ rate: number;
781
+ unit: "DAILY" | "HOURLY";
782
+ } | undefined;
783
+ }, {
784
+ startDate: string;
785
+ worker: {
786
+ id: string;
787
+ };
788
+ status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | undefined;
789
+ endDate?: string | null | undefined;
790
+ pay?: {
791
+ rate: number;
792
+ unit: "DAILY" | "HOURLY";
793
+ } | undefined;
794
+ }>, "many">;
795
+ }, "strip", z.ZodTypeAny, {
796
+ job: {
797
+ id: string;
798
+ };
799
+ bookings: {
800
+ startDate: string;
801
+ worker: {
802
+ id: string;
803
+ };
804
+ status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | undefined;
805
+ endDate?: string | null | undefined;
806
+ pay?: {
807
+ rate: number;
808
+ unit: "DAILY" | "HOURLY";
809
+ } | undefined;
810
+ }[];
811
+ }, {
812
+ job: {
813
+ id: string;
814
+ };
815
+ bookings: {
816
+ startDate: string;
817
+ worker: {
818
+ id: string;
819
+ };
820
+ status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | undefined;
821
+ endDate?: string | null | undefined;
822
+ pay?: {
823
+ rate: number;
824
+ unit: "DAILY" | "HOURLY";
825
+ } | undefined;
826
+ }[];
827
+ }>;
828
+ path: "/v2/bookings";
829
+ responses: {
830
+ 400: z.ZodObject<{
831
+ statusCode: z.ZodNumber;
832
+ message: z.ZodString;
833
+ code: z.ZodString;
834
+ details: z.ZodOptional<z.ZodUnknown>;
835
+ timestamp: z.ZodString;
836
+ path: z.ZodString;
837
+ correlationId: z.ZodOptional<z.ZodString>;
838
+ }, "strip", z.ZodTypeAny, {
839
+ code: string;
840
+ path: string;
841
+ message: string;
842
+ statusCode: number;
843
+ timestamp: string;
844
+ details?: unknown;
845
+ correlationId?: string | undefined;
846
+ }, {
847
+ code: string;
848
+ path: string;
849
+ message: string;
850
+ statusCode: number;
851
+ timestamp: string;
852
+ details?: unknown;
853
+ correlationId?: string | undefined;
854
+ }>;
855
+ 401: z.ZodObject<{
856
+ statusCode: z.ZodNumber;
857
+ message: z.ZodString;
858
+ code: z.ZodString;
859
+ details: z.ZodOptional<z.ZodUnknown>;
860
+ timestamp: z.ZodString;
861
+ path: z.ZodString;
862
+ correlationId: z.ZodOptional<z.ZodString>;
863
+ }, "strip", z.ZodTypeAny, {
864
+ code: string;
865
+ path: string;
866
+ message: string;
867
+ statusCode: number;
868
+ timestamp: string;
869
+ details?: unknown;
870
+ correlationId?: string | undefined;
871
+ }, {
872
+ code: string;
873
+ path: string;
874
+ message: string;
875
+ statusCode: number;
876
+ timestamp: string;
877
+ details?: unknown;
878
+ correlationId?: string | undefined;
879
+ }>;
880
+ 403: z.ZodObject<{
881
+ statusCode: z.ZodNumber;
882
+ message: z.ZodString;
883
+ code: z.ZodString;
884
+ details: z.ZodOptional<z.ZodUnknown>;
885
+ timestamp: z.ZodString;
886
+ path: z.ZodString;
887
+ correlationId: z.ZodOptional<z.ZodString>;
888
+ }, "strip", z.ZodTypeAny, {
889
+ code: string;
890
+ path: string;
891
+ message: string;
892
+ statusCode: number;
893
+ timestamp: string;
894
+ details?: unknown;
895
+ correlationId?: string | undefined;
896
+ }, {
897
+ code: string;
898
+ path: string;
899
+ message: string;
900
+ statusCode: number;
901
+ timestamp: string;
902
+ details?: unknown;
903
+ correlationId?: string | undefined;
904
+ }>;
905
+ 500: z.ZodObject<{
906
+ statusCode: z.ZodNumber;
907
+ message: z.ZodString;
908
+ code: z.ZodString;
909
+ details: z.ZodOptional<z.ZodUnknown>;
910
+ timestamp: z.ZodString;
911
+ path: z.ZodString;
912
+ correlationId: z.ZodOptional<z.ZodString>;
913
+ }, "strip", z.ZodTypeAny, {
914
+ code: string;
915
+ path: string;
916
+ message: string;
917
+ statusCode: number;
918
+ timestamp: string;
919
+ details?: unknown;
920
+ correlationId?: string | undefined;
921
+ }, {
922
+ code: string;
923
+ path: string;
924
+ message: string;
925
+ statusCode: number;
926
+ timestamp: string;
927
+ details?: unknown;
928
+ correlationId?: string | undefined;
929
+ }>;
930
+ 201: z.ZodArray<z.ZodObject<{
931
+ id: z.ZodString;
932
+ status: z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>;
933
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
934
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
935
+ worker: z.ZodObject<{
936
+ id: z.ZodString;
937
+ firstName: z.ZodString;
938
+ lastName: z.ZodString;
939
+ }, "strip", z.ZodTypeAny, {
940
+ id: string;
941
+ firstName: string;
942
+ lastName: string;
943
+ }, {
944
+ id: string;
945
+ firstName: string;
946
+ lastName: string;
947
+ }>;
948
+ user: z.ZodObject<{
949
+ id: z.ZodString;
950
+ firstName: z.ZodString;
951
+ lastName: z.ZodString;
952
+ email: z.ZodString;
953
+ }, "strip", z.ZodTypeAny, {
954
+ id: string;
955
+ firstName: string;
956
+ lastName: string;
957
+ email: string;
958
+ }, {
959
+ id: string;
960
+ firstName: string;
961
+ lastName: string;
962
+ email: string;
963
+ }>;
964
+ pay: z.ZodObject<{
965
+ rate: z.ZodNumber;
966
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
967
+ }, "strip", z.ZodTypeAny, {
968
+ rate: number;
969
+ unit: "DAILY" | "HOURLY";
970
+ }, {
971
+ rate: number;
972
+ unit: "DAILY" | "HOURLY";
973
+ }>;
974
+ job: z.ZodObject<{
975
+ id: z.ZodString;
976
+ title: z.ZodString;
977
+ }, "strip", z.ZodTypeAny, {
978
+ id: string;
979
+ title: string;
980
+ }, {
981
+ id: string;
982
+ title: string;
983
+ }>;
984
+ userId: z.ZodString;
985
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
986
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
987
+ }, "strip", z.ZodTypeAny, {
988
+ status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
989
+ startDate: string;
990
+ createdAt: string;
991
+ updatedAt: string;
992
+ id: string;
993
+ worker: {
994
+ id: string;
995
+ firstName: string;
996
+ lastName: string;
997
+ };
998
+ pay: {
999
+ rate: number;
1000
+ unit: "DAILY" | "HOURLY";
1001
+ };
1002
+ userId: string;
1003
+ user: {
1004
+ id: string;
1005
+ firstName: string;
1006
+ lastName: string;
1007
+ email: string;
1008
+ };
1009
+ job: {
1010
+ id: string;
1011
+ title: string;
1012
+ };
1013
+ endDate?: string | null | undefined;
1014
+ }, {
1015
+ status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
1016
+ startDate: string | Date;
1017
+ createdAt: string | Date;
1018
+ updatedAt: string | Date;
1019
+ id: string;
1020
+ worker: {
1021
+ id: string;
1022
+ firstName: string;
1023
+ lastName: string;
1024
+ };
1025
+ pay: {
1026
+ rate: number;
1027
+ unit: "DAILY" | "HOURLY";
1028
+ };
1029
+ userId: string;
1030
+ user: {
1031
+ id: string;
1032
+ firstName: string;
1033
+ lastName: string;
1034
+ email: string;
1035
+ };
1036
+ job: {
1037
+ id: string;
1038
+ title: string;
1039
+ };
1040
+ endDate?: string | Date | null | undefined;
1041
+ }>, "many">;
1042
+ 409: z.ZodObject<{
1043
+ statusCode: z.ZodNumber;
1044
+ message: z.ZodString;
1045
+ code: z.ZodString;
1046
+ details: z.ZodOptional<z.ZodUnknown>;
1047
+ timestamp: z.ZodString;
1048
+ path: z.ZodString;
1049
+ correlationId: z.ZodOptional<z.ZodString>;
1050
+ }, "strip", z.ZodTypeAny, {
1051
+ code: string;
1052
+ path: string;
1053
+ message: string;
1054
+ statusCode: number;
1055
+ timestamp: string;
1056
+ details?: unknown;
1057
+ correlationId?: string | undefined;
1058
+ }, {
1059
+ code: string;
1060
+ path: string;
1061
+ message: string;
1062
+ statusCode: number;
1063
+ timestamp: string;
1064
+ details?: unknown;
1065
+ correlationId?: string | undefined;
1066
+ }>;
1067
+ };
1068
+ };
1069
+ findAll: {
1070
+ metadata: {
1071
+ tags: string[];
1072
+ openApi: {
1073
+ operationId: string;
1074
+ };
1075
+ };
1076
+ query: z.ZodObject<{
1077
+ limit: z.ZodDefault<z.ZodNumber>;
1078
+ page: z.ZodDefault<z.ZodNumber>;
1079
+ } & {
1080
+ workerName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1081
+ job: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1082
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1083
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1084
+ companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1085
+ tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1086
+ }, "strip", z.ZodTypeAny, {
1087
+ userId?: string | null | undefined;
1088
+ clientId?: string | null | undefined;
1089
+ companyId?: string | null | undefined;
1090
+ tradeId?: string | null | undefined;
1091
+ }, {
1092
+ userId?: string | null | undefined;
1093
+ clientId?: string | null | undefined;
1094
+ companyId?: string | null | undefined;
1095
+ tradeId?: string | null | undefined;
1096
+ }>>>;
1097
+ createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1098
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1099
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1100
+ }, "strip", z.ZodTypeAny, {
1101
+ from?: string | null | undefined;
1102
+ to?: string | null | undefined;
1103
+ }, {
1104
+ from?: string | null | undefined;
1105
+ to?: string | null | undefined;
1106
+ }>>>;
1107
+ startDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1108
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1109
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1110
+ }, "strip", z.ZodTypeAny, {
1111
+ from?: string | null | undefined;
1112
+ to?: string | null | undefined;
1113
+ }, {
1114
+ from?: string | null | undefined;
1115
+ to?: string | null | undefined;
1116
+ }>>>;
1117
+ endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1118
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1119
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1120
+ }, "strip", z.ZodTypeAny, {
1121
+ from?: string | null | undefined;
1122
+ to?: string | null | undefined;
1123
+ }, {
1124
+ from?: string | null | undefined;
1125
+ to?: string | null | undefined;
1126
+ }>>>;
1127
+ sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["status", "startDate", "createdAt", "updatedAt"]>>>;
1128
+ sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
1129
+ status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>>>;
1130
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1131
+ companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1132
+ agentName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1133
+ }, "strip", z.ZodTypeAny, {
1134
+ limit: number;
1135
+ page: number;
1136
+ status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | null | undefined;
1137
+ startDate?: {
1138
+ from?: string | null | undefined;
1139
+ to?: string | null | undefined;
1140
+ } | null | undefined;
1141
+ createdAt?: {
1142
+ from?: string | null | undefined;
1143
+ to?: string | null | undefined;
1144
+ } | null | undefined;
1145
+ endDate?: {
1146
+ from?: string | null | undefined;
1147
+ to?: string | null | undefined;
1148
+ } | null | undefined;
1149
+ clientId?: string | null | undefined;
1150
+ companyId?: string | null | undefined;
1151
+ job?: {
1152
+ userId?: string | null | undefined;
1153
+ clientId?: string | null | undefined;
1154
+ companyId?: string | null | undefined;
1155
+ tradeId?: string | null | undefined;
1156
+ } | null | undefined;
1157
+ workerName?: string | null | undefined;
1158
+ sortBy?: "status" | "startDate" | "createdAt" | "updatedAt" | null | undefined;
1159
+ sortOrder?: "ASC" | "DESC" | null | undefined;
1160
+ agentName?: string | null | undefined;
1161
+ }, {
1162
+ status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | null | undefined;
1163
+ startDate?: {
1164
+ from?: string | null | undefined;
1165
+ to?: string | null | undefined;
1166
+ } | null | undefined;
1167
+ createdAt?: {
1168
+ from?: string | null | undefined;
1169
+ to?: string | null | undefined;
1170
+ } | null | undefined;
1171
+ endDate?: {
1172
+ from?: string | null | undefined;
1173
+ to?: string | null | undefined;
1174
+ } | null | undefined;
1175
+ clientId?: string | null | undefined;
1176
+ companyId?: string | null | undefined;
1177
+ job?: {
1178
+ userId?: string | null | undefined;
1179
+ clientId?: string | null | undefined;
1180
+ companyId?: string | null | undefined;
1181
+ tradeId?: string | null | undefined;
1182
+ } | null | undefined;
1183
+ limit?: number | undefined;
1184
+ page?: number | undefined;
1185
+ workerName?: string | null | undefined;
1186
+ sortBy?: "status" | "startDate" | "createdAt" | "updatedAt" | null | undefined;
1187
+ sortOrder?: "ASC" | "DESC" | null | undefined;
1188
+ agentName?: string | null | undefined;
1189
+ }>;
1190
+ summary: "Get all bookings";
1191
+ method: "GET";
1192
+ path: "/v2/bookings";
1193
+ responses: {
1194
+ 400: z.ZodObject<{
1195
+ statusCode: z.ZodNumber;
1196
+ message: z.ZodString;
1197
+ code: z.ZodString;
1198
+ details: z.ZodOptional<z.ZodUnknown>;
1199
+ timestamp: z.ZodString;
1200
+ path: z.ZodString;
1201
+ correlationId: z.ZodOptional<z.ZodString>;
1202
+ }, "strip", z.ZodTypeAny, {
1203
+ code: string;
1204
+ path: string;
1205
+ message: string;
1206
+ statusCode: number;
1207
+ timestamp: string;
1208
+ details?: unknown;
1209
+ correlationId?: string | undefined;
1210
+ }, {
1211
+ code: string;
1212
+ path: string;
1213
+ message: string;
1214
+ statusCode: number;
1215
+ timestamp: string;
1216
+ details?: unknown;
1217
+ correlationId?: string | undefined;
1218
+ }>;
1219
+ 401: z.ZodObject<{
1220
+ statusCode: z.ZodNumber;
1221
+ message: z.ZodString;
1222
+ code: z.ZodString;
1223
+ details: z.ZodOptional<z.ZodUnknown>;
1224
+ timestamp: z.ZodString;
1225
+ path: z.ZodString;
1226
+ correlationId: z.ZodOptional<z.ZodString>;
1227
+ }, "strip", z.ZodTypeAny, {
1228
+ code: string;
1229
+ path: string;
1230
+ message: string;
1231
+ statusCode: number;
1232
+ timestamp: string;
1233
+ details?: unknown;
1234
+ correlationId?: string | undefined;
1235
+ }, {
1236
+ code: string;
1237
+ path: string;
1238
+ message: string;
1239
+ statusCode: number;
1240
+ timestamp: string;
1241
+ details?: unknown;
1242
+ correlationId?: string | undefined;
1243
+ }>;
1244
+ 403: z.ZodObject<{
1245
+ statusCode: z.ZodNumber;
1246
+ message: z.ZodString;
1247
+ code: z.ZodString;
1248
+ details: z.ZodOptional<z.ZodUnknown>;
1249
+ timestamp: z.ZodString;
1250
+ path: z.ZodString;
1251
+ correlationId: z.ZodOptional<z.ZodString>;
1252
+ }, "strip", z.ZodTypeAny, {
1253
+ code: string;
1254
+ path: string;
1255
+ message: string;
1256
+ statusCode: number;
1257
+ timestamp: string;
1258
+ details?: unknown;
1259
+ correlationId?: string | undefined;
1260
+ }, {
1261
+ code: string;
1262
+ path: string;
1263
+ message: string;
1264
+ statusCode: number;
1265
+ timestamp: string;
1266
+ details?: unknown;
1267
+ correlationId?: string | undefined;
1268
+ }>;
1269
+ 500: z.ZodObject<{
1270
+ statusCode: z.ZodNumber;
1271
+ message: z.ZodString;
1272
+ code: z.ZodString;
1273
+ details: z.ZodOptional<z.ZodUnknown>;
1274
+ timestamp: z.ZodString;
1275
+ path: z.ZodString;
1276
+ correlationId: z.ZodOptional<z.ZodString>;
1277
+ }, "strip", z.ZodTypeAny, {
1278
+ code: string;
1279
+ path: string;
1280
+ message: string;
1281
+ statusCode: number;
1282
+ timestamp: string;
1283
+ details?: unknown;
1284
+ correlationId?: string | undefined;
1285
+ }, {
1286
+ code: string;
1287
+ path: string;
1288
+ message: string;
1289
+ statusCode: number;
1290
+ timestamp: string;
1291
+ details?: unknown;
1292
+ correlationId?: string | undefined;
1293
+ }>;
1294
+ 200: z.ZodObject<{
1295
+ items: z.ZodArray<z.ZodObject<{
1296
+ id: z.ZodString;
1297
+ status: z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>;
1298
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1299
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1300
+ worker: z.ZodObject<{
1301
+ id: z.ZodString;
1302
+ firstName: z.ZodString;
1303
+ lastName: z.ZodString;
1304
+ }, "strip", z.ZodTypeAny, {
1305
+ id: string;
1306
+ firstName: string;
1307
+ lastName: string;
1308
+ }, {
1309
+ id: string;
1310
+ firstName: string;
1311
+ lastName: string;
1312
+ }>;
1313
+ user: z.ZodObject<{
1314
+ id: z.ZodString;
1315
+ firstName: z.ZodString;
1316
+ lastName: z.ZodString;
1317
+ email: z.ZodString;
1318
+ }, "strip", z.ZodTypeAny, {
1319
+ id: string;
1320
+ firstName: string;
1321
+ lastName: string;
1322
+ email: string;
1323
+ }, {
1324
+ id: string;
1325
+ firstName: string;
1326
+ lastName: string;
1327
+ email: string;
1328
+ }>;
1329
+ pay: z.ZodObject<{
1330
+ rate: z.ZodNumber;
1331
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
1332
+ }, "strip", z.ZodTypeAny, {
1333
+ rate: number;
1334
+ unit: "DAILY" | "HOURLY";
1335
+ }, {
1336
+ rate: number;
1337
+ unit: "DAILY" | "HOURLY";
1338
+ }>;
1339
+ job: z.ZodObject<{
1340
+ id: z.ZodString;
1341
+ title: z.ZodString;
1342
+ }, "strip", z.ZodTypeAny, {
1343
+ id: string;
1344
+ title: string;
1345
+ }, {
1346
+ id: string;
1347
+ title: string;
1348
+ }>;
1349
+ userId: z.ZodString;
1350
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1351
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1352
+ }, "strip", z.ZodTypeAny, {
1353
+ status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
1354
+ startDate: string;
1355
+ createdAt: string;
1356
+ updatedAt: string;
1357
+ id: string;
1358
+ worker: {
1359
+ id: string;
1360
+ firstName: string;
1361
+ lastName: string;
1362
+ };
1363
+ pay: {
1364
+ rate: number;
1365
+ unit: "DAILY" | "HOURLY";
1366
+ };
1367
+ userId: string;
1368
+ user: {
1369
+ id: string;
1370
+ firstName: string;
1371
+ lastName: string;
1372
+ email: string;
1373
+ };
1374
+ job: {
1375
+ id: string;
1376
+ title: string;
1377
+ };
1378
+ endDate?: string | null | undefined;
1379
+ }, {
1380
+ status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
1381
+ startDate: string | Date;
1382
+ createdAt: string | Date;
1383
+ updatedAt: string | Date;
1384
+ id: string;
1385
+ worker: {
1386
+ id: string;
1387
+ firstName: string;
1388
+ lastName: string;
1389
+ };
1390
+ pay: {
1391
+ rate: number;
1392
+ unit: "DAILY" | "HOURLY";
1393
+ };
1394
+ userId: string;
1395
+ user: {
1396
+ id: string;
1397
+ firstName: string;
1398
+ lastName: string;
1399
+ email: string;
1400
+ };
1401
+ job: {
1402
+ id: string;
1403
+ title: string;
1404
+ };
1405
+ endDate?: string | Date | null | undefined;
1406
+ }>, "many">;
1407
+ totalCount: z.ZodNumber;
1408
+ limit: z.ZodNumber;
1409
+ skip: z.ZodNumber;
1410
+ currentPage: z.ZodNumber;
1411
+ totalPages: z.ZodNumber;
1412
+ }, "strip", z.ZodTypeAny, {
1413
+ limit: number;
1414
+ items: {
1415
+ status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
1416
+ startDate: string;
1417
+ createdAt: string;
1418
+ updatedAt: string;
1419
+ id: string;
1420
+ worker: {
1421
+ id: string;
1422
+ firstName: string;
1423
+ lastName: string;
1424
+ };
1425
+ pay: {
1426
+ rate: number;
1427
+ unit: "DAILY" | "HOURLY";
1428
+ };
1429
+ userId: string;
1430
+ user: {
1431
+ id: string;
1432
+ firstName: string;
1433
+ lastName: string;
1434
+ email: string;
1435
+ };
1436
+ job: {
1437
+ id: string;
1438
+ title: string;
1439
+ };
1440
+ endDate?: string | null | undefined;
1441
+ }[];
1442
+ totalCount: number;
1443
+ skip: number;
1444
+ currentPage: number;
1445
+ totalPages: number;
1446
+ }, {
1447
+ limit: number;
1448
+ items: {
1449
+ status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
1450
+ startDate: string | Date;
1451
+ createdAt: string | Date;
1452
+ updatedAt: string | Date;
1453
+ id: string;
1454
+ worker: {
1455
+ id: string;
1456
+ firstName: string;
1457
+ lastName: string;
1458
+ };
1459
+ pay: {
1460
+ rate: number;
1461
+ unit: "DAILY" | "HOURLY";
1462
+ };
1463
+ userId: string;
1464
+ user: {
1465
+ id: string;
1466
+ firstName: string;
1467
+ lastName: string;
1468
+ email: string;
1469
+ };
1470
+ job: {
1471
+ id: string;
1472
+ title: string;
1473
+ };
1474
+ endDate?: string | Date | null | undefined;
1475
+ }[];
1476
+ totalCount: number;
1477
+ skip: number;
1478
+ currentPage: number;
1479
+ totalPages: number;
1480
+ }>;
1481
+ };
1482
+ };
1483
+ findOne: {
1484
+ metadata: {
1485
+ tags: string[];
1486
+ openApi: {
1487
+ operationId: string;
1488
+ };
1489
+ };
1490
+ pathParams: z.ZodObject<{
1491
+ id: z.ZodString;
1492
+ }, "strip", z.ZodTypeAny, {
1493
+ id: string;
1494
+ }, {
1495
+ id: string;
1496
+ }>;
1497
+ summary: "Get a booking by ID";
1498
+ method: "GET";
1499
+ path: "/v2/bookings/:id";
1500
+ responses: {
1501
+ 400: z.ZodObject<{
1502
+ statusCode: z.ZodNumber;
1503
+ message: z.ZodString;
1504
+ code: z.ZodString;
1505
+ details: z.ZodOptional<z.ZodUnknown>;
1506
+ timestamp: z.ZodString;
1507
+ path: z.ZodString;
1508
+ correlationId: z.ZodOptional<z.ZodString>;
1509
+ }, "strip", z.ZodTypeAny, {
1510
+ code: string;
1511
+ path: string;
1512
+ message: string;
1513
+ statusCode: number;
1514
+ timestamp: string;
1515
+ details?: unknown;
1516
+ correlationId?: string | undefined;
1517
+ }, {
1518
+ code: string;
1519
+ path: string;
1520
+ message: string;
1521
+ statusCode: number;
1522
+ timestamp: string;
1523
+ details?: unknown;
1524
+ correlationId?: string | undefined;
1525
+ }>;
1526
+ 401: z.ZodObject<{
1527
+ statusCode: z.ZodNumber;
1528
+ message: z.ZodString;
1529
+ code: z.ZodString;
1530
+ details: z.ZodOptional<z.ZodUnknown>;
1531
+ timestamp: z.ZodString;
1532
+ path: z.ZodString;
1533
+ correlationId: z.ZodOptional<z.ZodString>;
1534
+ }, "strip", z.ZodTypeAny, {
1535
+ code: string;
1536
+ path: string;
1537
+ message: string;
1538
+ statusCode: number;
1539
+ timestamp: string;
1540
+ details?: unknown;
1541
+ correlationId?: string | undefined;
1542
+ }, {
1543
+ code: string;
1544
+ path: string;
1545
+ message: string;
1546
+ statusCode: number;
1547
+ timestamp: string;
1548
+ details?: unknown;
1549
+ correlationId?: string | undefined;
1550
+ }>;
1551
+ 403: z.ZodObject<{
1552
+ statusCode: z.ZodNumber;
1553
+ message: z.ZodString;
1554
+ code: z.ZodString;
1555
+ details: z.ZodOptional<z.ZodUnknown>;
1556
+ timestamp: z.ZodString;
1557
+ path: z.ZodString;
1558
+ correlationId: z.ZodOptional<z.ZodString>;
1559
+ }, "strip", z.ZodTypeAny, {
1560
+ code: string;
1561
+ path: string;
1562
+ message: string;
1563
+ statusCode: number;
1564
+ timestamp: string;
1565
+ details?: unknown;
1566
+ correlationId?: string | undefined;
1567
+ }, {
1568
+ code: string;
1569
+ path: string;
1570
+ message: string;
1571
+ statusCode: number;
1572
+ timestamp: string;
1573
+ details?: unknown;
1574
+ correlationId?: string | undefined;
1575
+ }>;
1576
+ 500: z.ZodObject<{
1577
+ statusCode: z.ZodNumber;
1578
+ message: z.ZodString;
1579
+ code: z.ZodString;
1580
+ details: z.ZodOptional<z.ZodUnknown>;
1581
+ timestamp: z.ZodString;
1582
+ path: z.ZodString;
1583
+ correlationId: z.ZodOptional<z.ZodString>;
1584
+ }, "strip", z.ZodTypeAny, {
1585
+ code: string;
1586
+ path: string;
1587
+ message: string;
1588
+ statusCode: number;
1589
+ timestamp: string;
1590
+ details?: unknown;
1591
+ correlationId?: string | undefined;
1592
+ }, {
1593
+ code: string;
1594
+ path: string;
1595
+ message: string;
1596
+ statusCode: number;
1597
+ timestamp: string;
1598
+ details?: unknown;
1599
+ correlationId?: string | undefined;
1600
+ }>;
1601
+ 200: z.ZodObject<{
1602
+ id: z.ZodString;
1603
+ status: z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>;
1604
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1605
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1606
+ worker: z.ZodObject<{
1607
+ id: z.ZodString;
1608
+ firstName: z.ZodString;
1609
+ lastName: z.ZodString;
1610
+ }, "strip", z.ZodTypeAny, {
1611
+ id: string;
1612
+ firstName: string;
1613
+ lastName: string;
1614
+ }, {
1615
+ id: string;
1616
+ firstName: string;
1617
+ lastName: string;
1618
+ }>;
1619
+ user: z.ZodObject<{
1620
+ id: z.ZodString;
1621
+ firstName: z.ZodString;
1622
+ lastName: z.ZodString;
1623
+ email: z.ZodString;
1624
+ }, "strip", z.ZodTypeAny, {
1625
+ id: string;
1626
+ firstName: string;
1627
+ lastName: string;
1628
+ email: string;
1629
+ }, {
1630
+ id: string;
1631
+ firstName: string;
1632
+ lastName: string;
1633
+ email: string;
1634
+ }>;
1635
+ pay: z.ZodObject<{
1636
+ rate: z.ZodNumber;
1637
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
1638
+ }, "strip", z.ZodTypeAny, {
1639
+ rate: number;
1640
+ unit: "DAILY" | "HOURLY";
1641
+ }, {
1642
+ rate: number;
1643
+ unit: "DAILY" | "HOURLY";
1644
+ }>;
1645
+ job: z.ZodObject<{
1646
+ id: z.ZodString;
1647
+ title: z.ZodString;
1648
+ }, "strip", z.ZodTypeAny, {
1649
+ id: string;
1650
+ title: string;
1651
+ }, {
1652
+ id: string;
1653
+ title: string;
1654
+ }>;
1655
+ userId: z.ZodString;
1656
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1657
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1658
+ }, "strip", z.ZodTypeAny, {
1659
+ status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
1660
+ startDate: string;
1661
+ createdAt: string;
1662
+ updatedAt: string;
1663
+ id: string;
1664
+ worker: {
1665
+ id: string;
1666
+ firstName: string;
1667
+ lastName: string;
1668
+ };
1669
+ pay: {
1670
+ rate: number;
1671
+ unit: "DAILY" | "HOURLY";
1672
+ };
1673
+ userId: string;
1674
+ user: {
1675
+ id: string;
1676
+ firstName: string;
1677
+ lastName: string;
1678
+ email: string;
1679
+ };
1680
+ job: {
1681
+ id: string;
1682
+ title: string;
1683
+ };
1684
+ endDate?: string | null | undefined;
1685
+ }, {
1686
+ status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
1687
+ startDate: string | Date;
1688
+ createdAt: string | Date;
1689
+ updatedAt: string | Date;
1690
+ id: string;
1691
+ worker: {
1692
+ id: string;
1693
+ firstName: string;
1694
+ lastName: string;
1695
+ };
1696
+ pay: {
1697
+ rate: number;
1698
+ unit: "DAILY" | "HOURLY";
1699
+ };
1700
+ userId: string;
1701
+ user: {
1702
+ id: string;
1703
+ firstName: string;
1704
+ lastName: string;
1705
+ email: string;
1706
+ };
1707
+ job: {
1708
+ id: string;
1709
+ title: string;
1710
+ };
1711
+ endDate?: string | Date | null | undefined;
1712
+ }>;
1713
+ 404: z.ZodObject<{
1714
+ statusCode: z.ZodNumber;
1715
+ message: z.ZodString;
1716
+ code: z.ZodString;
1717
+ details: z.ZodOptional<z.ZodUnknown>;
1718
+ timestamp: z.ZodString;
1719
+ path: z.ZodString;
1720
+ correlationId: z.ZodOptional<z.ZodString>;
1721
+ }, "strip", z.ZodTypeAny, {
1722
+ code: string;
1723
+ path: string;
1724
+ message: string;
1725
+ statusCode: number;
1726
+ timestamp: string;
1727
+ details?: unknown;
1728
+ correlationId?: string | undefined;
1729
+ }, {
1730
+ code: string;
1731
+ path: string;
1732
+ message: string;
1733
+ statusCode: number;
1734
+ timestamp: string;
1735
+ details?: unknown;
1736
+ correlationId?: string | undefined;
1737
+ }>;
1738
+ };
1739
+ };
1740
+ update: {
1741
+ metadata: {
1742
+ tags: string[];
1743
+ openApi: {
1744
+ operationId: string;
1745
+ };
1746
+ };
1747
+ pathParams: z.ZodObject<{
1748
+ id: z.ZodString;
1749
+ }, "strip", z.ZodTypeAny, {
1750
+ id: string;
1751
+ }, {
1752
+ id: string;
1753
+ }>;
1754
+ summary: "Update a booking";
1755
+ method: "PATCH";
1756
+ body: z.ZodObject<{
1757
+ startDate: z.ZodOptional<z.ZodString>;
1758
+ endDate: z.ZodOptional<z.ZodString>;
1759
+ status: z.ZodOptional<z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>>;
1760
+ }, "strip", z.ZodTypeAny, {
1761
+ status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | undefined;
1762
+ startDate?: string | undefined;
1763
+ endDate?: string | undefined;
1764
+ }, {
1765
+ status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | undefined;
1766
+ startDate?: string | undefined;
1767
+ endDate?: string | undefined;
1768
+ }>;
1769
+ path: "/v2/bookings/:id";
1770
+ responses: {
1771
+ 400: z.ZodObject<{
1772
+ statusCode: z.ZodNumber;
1773
+ message: z.ZodString;
1774
+ code: z.ZodString;
1775
+ details: z.ZodOptional<z.ZodUnknown>;
1776
+ timestamp: z.ZodString;
1777
+ path: z.ZodString;
1778
+ correlationId: z.ZodOptional<z.ZodString>;
1779
+ }, "strip", z.ZodTypeAny, {
1780
+ code: string;
1781
+ path: string;
1782
+ message: string;
1783
+ statusCode: number;
1784
+ timestamp: string;
1785
+ details?: unknown;
1786
+ correlationId?: string | undefined;
1787
+ }, {
1788
+ code: string;
1789
+ path: string;
1790
+ message: string;
1791
+ statusCode: number;
1792
+ timestamp: string;
1793
+ details?: unknown;
1794
+ correlationId?: string | undefined;
1795
+ }>;
1796
+ 401: z.ZodObject<{
1797
+ statusCode: z.ZodNumber;
1798
+ message: z.ZodString;
1799
+ code: z.ZodString;
1800
+ details: z.ZodOptional<z.ZodUnknown>;
1801
+ timestamp: z.ZodString;
1802
+ path: z.ZodString;
1803
+ correlationId: z.ZodOptional<z.ZodString>;
1804
+ }, "strip", z.ZodTypeAny, {
1805
+ code: string;
1806
+ path: string;
1807
+ message: string;
1808
+ statusCode: number;
1809
+ timestamp: string;
1810
+ details?: unknown;
1811
+ correlationId?: string | undefined;
1812
+ }, {
1813
+ code: string;
1814
+ path: string;
1815
+ message: string;
1816
+ statusCode: number;
1817
+ timestamp: string;
1818
+ details?: unknown;
1819
+ correlationId?: string | undefined;
1820
+ }>;
1821
+ 403: z.ZodObject<{
1822
+ statusCode: z.ZodNumber;
1823
+ message: z.ZodString;
1824
+ code: z.ZodString;
1825
+ details: z.ZodOptional<z.ZodUnknown>;
1826
+ timestamp: z.ZodString;
1827
+ path: z.ZodString;
1828
+ correlationId: z.ZodOptional<z.ZodString>;
1829
+ }, "strip", z.ZodTypeAny, {
1830
+ code: string;
1831
+ path: string;
1832
+ message: string;
1833
+ statusCode: number;
1834
+ timestamp: string;
1835
+ details?: unknown;
1836
+ correlationId?: string | undefined;
1837
+ }, {
1838
+ code: string;
1839
+ path: string;
1840
+ message: string;
1841
+ statusCode: number;
1842
+ timestamp: string;
1843
+ details?: unknown;
1844
+ correlationId?: string | undefined;
1845
+ }>;
1846
+ 500: z.ZodObject<{
1847
+ statusCode: z.ZodNumber;
1848
+ message: z.ZodString;
1849
+ code: z.ZodString;
1850
+ details: z.ZodOptional<z.ZodUnknown>;
1851
+ timestamp: z.ZodString;
1852
+ path: z.ZodString;
1853
+ correlationId: z.ZodOptional<z.ZodString>;
1854
+ }, "strip", z.ZodTypeAny, {
1855
+ code: string;
1856
+ path: string;
1857
+ message: string;
1858
+ statusCode: number;
1859
+ timestamp: string;
1860
+ details?: unknown;
1861
+ correlationId?: string | undefined;
1862
+ }, {
1863
+ code: string;
1864
+ path: string;
1865
+ message: string;
1866
+ statusCode: number;
1867
+ timestamp: string;
1868
+ details?: unknown;
1869
+ correlationId?: string | undefined;
1870
+ }>;
1871
+ 200: z.ZodObject<{
1872
+ id: z.ZodString;
1873
+ status: z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>;
1874
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1875
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1876
+ worker: z.ZodObject<{
1877
+ id: z.ZodString;
1878
+ firstName: z.ZodString;
1879
+ lastName: z.ZodString;
1880
+ }, "strip", z.ZodTypeAny, {
1881
+ id: string;
1882
+ firstName: string;
1883
+ lastName: string;
1884
+ }, {
1885
+ id: string;
1886
+ firstName: string;
1887
+ lastName: string;
1888
+ }>;
1889
+ user: z.ZodObject<{
1890
+ id: z.ZodString;
1891
+ firstName: z.ZodString;
1892
+ lastName: z.ZodString;
1893
+ email: z.ZodString;
1894
+ }, "strip", z.ZodTypeAny, {
1895
+ id: string;
1896
+ firstName: string;
1897
+ lastName: string;
1898
+ email: string;
1899
+ }, {
1900
+ id: string;
1901
+ firstName: string;
1902
+ lastName: string;
1903
+ email: string;
1904
+ }>;
1905
+ pay: z.ZodObject<{
1906
+ rate: z.ZodNumber;
1907
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
1908
+ }, "strip", z.ZodTypeAny, {
1909
+ rate: number;
1910
+ unit: "DAILY" | "HOURLY";
1911
+ }, {
1912
+ rate: number;
1913
+ unit: "DAILY" | "HOURLY";
1914
+ }>;
1915
+ job: z.ZodObject<{
1916
+ id: z.ZodString;
1917
+ title: z.ZodString;
1918
+ }, "strip", z.ZodTypeAny, {
1919
+ id: string;
1920
+ title: string;
1921
+ }, {
1922
+ id: string;
1923
+ title: string;
1924
+ }>;
1925
+ userId: z.ZodString;
1926
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1927
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1928
+ }, "strip", z.ZodTypeAny, {
1929
+ status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
1930
+ startDate: string;
1931
+ createdAt: string;
1932
+ updatedAt: string;
1933
+ id: string;
1934
+ worker: {
1935
+ id: string;
1936
+ firstName: string;
1937
+ lastName: string;
1938
+ };
1939
+ pay: {
1940
+ rate: number;
1941
+ unit: "DAILY" | "HOURLY";
1942
+ };
1943
+ userId: string;
1944
+ user: {
1945
+ id: string;
1946
+ firstName: string;
1947
+ lastName: string;
1948
+ email: string;
1949
+ };
1950
+ job: {
1951
+ id: string;
1952
+ title: string;
1953
+ };
1954
+ endDate?: string | null | undefined;
1955
+ }, {
1956
+ status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
1957
+ startDate: string | Date;
1958
+ createdAt: string | Date;
1959
+ updatedAt: string | Date;
1960
+ id: string;
1961
+ worker: {
1962
+ id: string;
1963
+ firstName: string;
1964
+ lastName: string;
1965
+ };
1966
+ pay: {
1967
+ rate: number;
1968
+ unit: "DAILY" | "HOURLY";
1969
+ };
1970
+ userId: string;
1971
+ user: {
1972
+ id: string;
1973
+ firstName: string;
1974
+ lastName: string;
1975
+ email: string;
1976
+ };
1977
+ job: {
1978
+ id: string;
1979
+ title: string;
1980
+ };
1981
+ endDate?: string | Date | null | undefined;
1982
+ }>;
1983
+ 404: z.ZodObject<{
1984
+ statusCode: z.ZodNumber;
1985
+ message: z.ZodString;
1986
+ code: z.ZodString;
1987
+ details: z.ZodOptional<z.ZodUnknown>;
1988
+ timestamp: z.ZodString;
1989
+ path: z.ZodString;
1990
+ correlationId: z.ZodOptional<z.ZodString>;
1991
+ }, "strip", z.ZodTypeAny, {
1992
+ code: string;
1993
+ path: string;
1994
+ message: string;
1995
+ statusCode: number;
1996
+ timestamp: string;
1997
+ details?: unknown;
1998
+ correlationId?: string | undefined;
1999
+ }, {
2000
+ code: string;
2001
+ path: string;
2002
+ message: string;
2003
+ statusCode: number;
2004
+ timestamp: string;
2005
+ details?: unknown;
2006
+ correlationId?: string | undefined;
2007
+ }>;
2008
+ 409: z.ZodObject<{
2009
+ statusCode: z.ZodNumber;
2010
+ message: z.ZodString;
2011
+ code: z.ZodString;
2012
+ details: z.ZodOptional<z.ZodUnknown>;
2013
+ timestamp: z.ZodString;
2014
+ path: z.ZodString;
2015
+ correlationId: z.ZodOptional<z.ZodString>;
2016
+ }, "strip", z.ZodTypeAny, {
2017
+ code: string;
2018
+ path: string;
2019
+ message: string;
2020
+ statusCode: number;
2021
+ timestamp: string;
2022
+ details?: unknown;
2023
+ correlationId?: string | undefined;
2024
+ }, {
2025
+ code: string;
2026
+ path: string;
2027
+ message: string;
2028
+ statusCode: number;
2029
+ timestamp: string;
2030
+ details?: unknown;
2031
+ correlationId?: string | undefined;
2032
+ }>;
2033
+ };
2034
+ };
2035
+ remove: {
2036
+ metadata: {
2037
+ tags: string[];
2038
+ openApi: {
2039
+ operationId: string;
2040
+ };
2041
+ };
2042
+ pathParams: z.ZodObject<{
2043
+ id: z.ZodString;
2044
+ }, "strip", z.ZodTypeAny, {
2045
+ id: string;
2046
+ }, {
2047
+ id: string;
2048
+ }>;
2049
+ summary: "Delete a booking";
2050
+ method: "DELETE";
2051
+ body: typeof import("@ts-rest/core").ContractNoBody;
2052
+ path: "/v2/bookings/:id";
2053
+ responses: {
2054
+ 400: z.ZodObject<{
2055
+ statusCode: z.ZodNumber;
2056
+ message: z.ZodString;
2057
+ code: z.ZodString;
2058
+ details: z.ZodOptional<z.ZodUnknown>;
2059
+ timestamp: z.ZodString;
2060
+ path: z.ZodString;
2061
+ correlationId: z.ZodOptional<z.ZodString>;
2062
+ }, "strip", z.ZodTypeAny, {
2063
+ code: string;
2064
+ path: string;
2065
+ message: string;
2066
+ statusCode: number;
2067
+ timestamp: string;
2068
+ details?: unknown;
2069
+ correlationId?: string | undefined;
2070
+ }, {
2071
+ code: string;
2072
+ path: string;
2073
+ message: string;
2074
+ statusCode: number;
2075
+ timestamp: string;
2076
+ details?: unknown;
2077
+ correlationId?: string | undefined;
2078
+ }>;
2079
+ 401: z.ZodObject<{
2080
+ statusCode: z.ZodNumber;
2081
+ message: z.ZodString;
2082
+ code: z.ZodString;
2083
+ details: z.ZodOptional<z.ZodUnknown>;
2084
+ timestamp: z.ZodString;
2085
+ path: z.ZodString;
2086
+ correlationId: z.ZodOptional<z.ZodString>;
2087
+ }, "strip", z.ZodTypeAny, {
2088
+ code: string;
2089
+ path: string;
2090
+ message: string;
2091
+ statusCode: number;
2092
+ timestamp: string;
2093
+ details?: unknown;
2094
+ correlationId?: string | undefined;
2095
+ }, {
2096
+ code: string;
2097
+ path: string;
2098
+ message: string;
2099
+ statusCode: number;
2100
+ timestamp: string;
2101
+ details?: unknown;
2102
+ correlationId?: string | undefined;
2103
+ }>;
2104
+ 403: z.ZodObject<{
2105
+ statusCode: z.ZodNumber;
2106
+ message: z.ZodString;
2107
+ code: z.ZodString;
2108
+ details: z.ZodOptional<z.ZodUnknown>;
2109
+ timestamp: z.ZodString;
2110
+ path: z.ZodString;
2111
+ correlationId: z.ZodOptional<z.ZodString>;
2112
+ }, "strip", z.ZodTypeAny, {
2113
+ code: string;
2114
+ path: string;
2115
+ message: string;
2116
+ statusCode: number;
2117
+ timestamp: string;
2118
+ details?: unknown;
2119
+ correlationId?: string | undefined;
2120
+ }, {
2121
+ code: string;
2122
+ path: string;
2123
+ message: string;
2124
+ statusCode: number;
2125
+ timestamp: string;
2126
+ details?: unknown;
2127
+ correlationId?: string | undefined;
2128
+ }>;
2129
+ 500: z.ZodObject<{
2130
+ statusCode: z.ZodNumber;
2131
+ message: z.ZodString;
2132
+ code: z.ZodString;
2133
+ details: z.ZodOptional<z.ZodUnknown>;
2134
+ timestamp: z.ZodString;
2135
+ path: z.ZodString;
2136
+ correlationId: z.ZodOptional<z.ZodString>;
2137
+ }, "strip", z.ZodTypeAny, {
2138
+ code: string;
2139
+ path: string;
2140
+ message: string;
2141
+ statusCode: number;
2142
+ timestamp: string;
2143
+ details?: unknown;
2144
+ correlationId?: string | undefined;
2145
+ }, {
2146
+ code: string;
2147
+ path: string;
2148
+ message: string;
2149
+ statusCode: number;
2150
+ timestamp: string;
2151
+ details?: unknown;
2152
+ correlationId?: string | undefined;
2153
+ }>;
2154
+ 204: z.ZodUndefined;
2155
+ 404: z.ZodObject<{
2156
+ statusCode: z.ZodNumber;
2157
+ message: z.ZodString;
2158
+ code: z.ZodString;
2159
+ details: z.ZodOptional<z.ZodUnknown>;
2160
+ timestamp: z.ZodString;
2161
+ path: z.ZodString;
2162
+ correlationId: z.ZodOptional<z.ZodString>;
2163
+ }, "strip", z.ZodTypeAny, {
2164
+ code: string;
2165
+ path: string;
2166
+ message: string;
2167
+ statusCode: number;
2168
+ timestamp: string;
2169
+ details?: unknown;
2170
+ correlationId?: string | undefined;
2171
+ }, {
2172
+ code: string;
2173
+ path: string;
2174
+ message: string;
2175
+ statusCode: number;
2176
+ timestamp: string;
2177
+ details?: unknown;
2178
+ correlationId?: string | undefined;
2179
+ }>;
2180
+ };
2181
+ };
2182
+ };
2183
+ //# sourceMappingURL=bookings.contract.d.ts.map