@dakkitor/api-contracts 1.1.10 → 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 (87) hide show
  1. package/dist/actives/actives.contract.d.ts +104 -104
  2. package/dist/actives/actives.contract.d.ts.map +1 -1
  3. package/dist/actives/actives.contract.js +3 -6
  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 +273 -182
  11. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  12. package/dist/bookings/bookings.contract.js +25 -33
  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 +215 -268
  17. package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
  18. package/dist/client-contacts/client-contacts.contract.js +21 -10
  19. package/dist/clients/clients.contract.d.ts +153 -125
  20. package/dist/clients/clients.contract.d.ts.map +1 -1
  21. package/dist/clients/clients.contract.js +44 -29
  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 +100 -0
  29. package/dist/common/common-schemas.d.ts.map +1 -1
  30. package/dist/common/common-schemas.js +268 -1
  31. package/dist/common/openapi-metadata.d.ts +6 -0
  32. package/dist/common/openapi-metadata.d.ts.map +1 -1
  33. package/dist/companies/companies.contract.d.ts +1108 -0
  34. package/dist/companies/companies.contract.d.ts.map +1 -0
  35. package/dist/companies/companies.contract.js +164 -0
  36. package/dist/cron-executions/cron-executions.contract.d.ts +1643 -0
  37. package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -0
  38. package/dist/cron-executions/cron-executions.contract.js +271 -0
  39. package/dist/curated-workers/curated-workers.contract.d.ts +3183 -0
  40. package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -0
  41. package/dist/curated-workers/curated-workers.contract.js +444 -0
  42. package/dist/dashboards/agent-daily-metrics.contract.d.ts +639 -0
  43. package/dist/dashboards/agent-daily-metrics.contract.d.ts.map +1 -0
  44. package/dist/dashboards/agent-daily-metrics.contract.js +118 -0
  45. package/dist/files/files.contract.d.ts +1258 -0
  46. package/dist/files/files.contract.d.ts.map +1 -0
  47. package/dist/files/files.contract.js +205 -0
  48. package/dist/health/health.contract.d.ts +161 -0
  49. package/dist/health/health.contract.d.ts.map +1 -0
  50. package/dist/health/health.contract.js +52 -0
  51. package/dist/index.d.ts +27370 -3319
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +63 -0
  54. package/dist/jobs/jobs.contract.d.ts +2303 -0
  55. package/dist/jobs/jobs.contract.d.ts.map +1 -0
  56. package/dist/jobs/jobs.contract.js +295 -0
  57. package/dist/lead-assignments/lead-assignments.contract.d.ts +1826 -0
  58. package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -0
  59. package/dist/lead-assignments/lead-assignments.contract.js +187 -0
  60. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +1147 -0
  61. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -0
  62. package/dist/lead-distribution/agent-lead-distribution.contract.js +154 -0
  63. package/dist/lead-distribution/lead-distribution-config.contract.d.ts +1085 -0
  64. package/dist/lead-distribution/lead-distribution-config.contract.d.ts.map +1 -0
  65. package/dist/lead-distribution/lead-distribution-config.contract.js +196 -0
  66. package/dist/leads/leads.contract.d.ts +1690 -0
  67. package/dist/leads/leads.contract.d.ts.map +1 -0
  68. package/dist/leads/leads.contract.js +328 -0
  69. package/dist/locations/locations.contract.d.ts +974 -0
  70. package/dist/locations/locations.contract.d.ts.map +1 -0
  71. package/dist/locations/locations.contract.js +154 -0
  72. package/dist/postcodes/postcodes.contract.d.ts +370 -0
  73. package/dist/postcodes/postcodes.contract.d.ts.map +1 -0
  74. package/dist/postcodes/postcodes.contract.js +90 -0
  75. package/dist/qualifications/qualifications.contract.d.ts +1489 -0
  76. package/dist/qualifications/qualifications.contract.d.ts.map +1 -0
  77. package/dist/qualifications/qualifications.contract.js +215 -0
  78. package/dist/trades/trades.contract.d.ts +799 -0
  79. package/dist/trades/trades.contract.d.ts.map +1 -0
  80. package/dist/trades/trades.contract.js +112 -0
  81. package/dist/users/users.contract.d.ts +102 -96
  82. package/dist/users/users.contract.d.ts.map +1 -1
  83. package/dist/users/users.contract.js +9 -21
  84. package/dist/workers/workers.contract.d.ts +3376 -0
  85. package/dist/workers/workers.contract.d.ts.map +1 -0
  86. package/dist/workers/workers.contract.js +363 -0
  87. package/package.json +4 -3
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const BookingStatusSchema: z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "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", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>;
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
3
  export declare const BookingSortableFieldsSchema: z.ZodEnum<["status", "startDate", "createdAt", "updatedAt"]>;
4
4
  export declare const BookingPaySchema: z.ZodObject<{
5
5
  rate: z.ZodNumber;
@@ -11,13 +11,6 @@ export declare const BookingPaySchema: z.ZodObject<{
11
11
  rate: number;
12
12
  unit: "DAILY" | "HOURLY";
13
13
  }>;
14
- export declare const ResourceIdSchema: z.ZodObject<{
15
- id: z.ZodString;
16
- }, "strip", z.ZodTypeAny, {
17
- id: string;
18
- }, {
19
- id: string;
20
- }>;
21
14
  export declare const BookingItemSchema: z.ZodObject<{
22
15
  worker: z.ZodObject<{
23
16
  id: z.ZodString;
@@ -28,7 +21,7 @@ export declare const BookingItemSchema: z.ZodObject<{
28
21
  }>;
29
22
  startDate: z.ZodString;
30
23
  endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
- status: z.ZodOptional<z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "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", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>>;
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"]>>;
32
25
  pay: z.ZodOptional<z.ZodObject<{
33
26
  rate: z.ZodNumber;
34
27
  unit: z.ZodEnum<["DAILY", "HOURLY"]>;
@@ -44,23 +37,23 @@ export declare const BookingItemSchema: z.ZodObject<{
44
37
  worker: {
45
38
  id: string;
46
39
  };
47
- status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
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;
48
42
  pay?: {
49
43
  rate: number;
50
44
  unit: "DAILY" | "HOURLY";
51
45
  } | undefined;
52
- endDate?: string | null | undefined;
53
46
  }, {
54
47
  startDate: string;
55
48
  worker: {
56
49
  id: string;
57
50
  };
58
- status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
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;
59
53
  pay?: {
60
54
  rate: number;
61
55
  unit: "DAILY" | "HOURLY";
62
56
  } | undefined;
63
- endDate?: string | null | undefined;
64
57
  }>;
65
58
  export declare const FilterJobInBookingSchema: z.ZodObject<{
66
59
  userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -78,22 +71,6 @@ export declare const FilterJobInBookingSchema: z.ZodObject<{
78
71
  companyId?: string | null | undefined;
79
72
  tradeId?: string | null | undefined;
80
73
  }>;
81
- export declare const BookingUserSchema: z.ZodObject<{
82
- id: z.ZodString;
83
- firstName: z.ZodString;
84
- lastName: z.ZodString;
85
- email: z.ZodString;
86
- }, "strip", z.ZodTypeAny, {
87
- id: string;
88
- firstName: string;
89
- lastName: string;
90
- email: string;
91
- }, {
92
- id: string;
93
- firstName: string;
94
- lastName: string;
95
- email: string;
96
- }>;
97
74
  export declare const BookingWorkerSchema: z.ZodObject<{
98
75
  id: z.ZodString;
99
76
  firstName: z.ZodString;
@@ -119,7 +96,7 @@ export declare const BookingJobSchema: z.ZodObject<{
119
96
  }>;
120
97
  export declare const BookingSchema: z.ZodObject<{
121
98
  id: z.ZodString;
122
- status: z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "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", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>;
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"]>;
123
100
  startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
124
101
  endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
125
102
  worker: z.ZodObject<{
@@ -175,20 +152,20 @@ export declare const BookingSchema: z.ZodObject<{
175
152
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
176
153
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
177
154
  }, "strip", z.ZodTypeAny, {
178
- status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
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;
179
157
  createdAt: string;
180
158
  updatedAt: string;
181
159
  id: string;
182
- pay: {
183
- rate: number;
184
- unit: "DAILY" | "HOURLY";
185
- };
186
- startDate: string;
187
160
  worker: {
188
161
  id: string;
189
162
  firstName: string;
190
163
  lastName: string;
191
164
  };
165
+ pay: {
166
+ rate: number;
167
+ unit: "DAILY" | "HOURLY";
168
+ };
192
169
  userId: string;
193
170
  user: {
194
171
  id: string;
@@ -202,20 +179,20 @@ export declare const BookingSchema: z.ZodObject<{
202
179
  };
203
180
  endDate?: string | null | undefined;
204
181
  }, {
205
- status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
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;
206
184
  createdAt: string | Date;
207
185
  updatedAt: string | Date;
208
186
  id: string;
209
- pay: {
210
- rate: number;
211
- unit: "DAILY" | "HOURLY";
212
- };
213
- startDate: string | Date;
214
187
  worker: {
215
188
  id: string;
216
189
  firstName: string;
217
190
  lastName: string;
218
191
  };
192
+ pay: {
193
+ rate: number;
194
+ unit: "DAILY" | "HOURLY";
195
+ };
219
196
  userId: string;
220
197
  user: {
221
198
  id: string;
@@ -247,7 +224,7 @@ export declare const CreateBookingSchema: z.ZodObject<{
247
224
  }>;
248
225
  startDate: z.ZodString;
249
226
  endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
- status: z.ZodOptional<z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "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", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>>;
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"]>>;
251
228
  pay: z.ZodOptional<z.ZodObject<{
252
229
  rate: z.ZodNumber;
253
230
  unit: z.ZodEnum<["DAILY", "HOURLY"]>;
@@ -263,23 +240,23 @@ export declare const CreateBookingSchema: z.ZodObject<{
263
240
  worker: {
264
241
  id: string;
265
242
  };
266
- status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
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;
267
245
  pay?: {
268
246
  rate: number;
269
247
  unit: "DAILY" | "HOURLY";
270
248
  } | undefined;
271
- endDate?: string | null | undefined;
272
249
  }, {
273
250
  startDate: string;
274
251
  worker: {
275
252
  id: string;
276
253
  };
277
- status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
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;
278
256
  pay?: {
279
257
  rate: number;
280
258
  unit: "DAILY" | "HOURLY";
281
259
  } | undefined;
282
- endDate?: string | null | undefined;
283
260
  }>, "many">;
284
261
  }, "strip", z.ZodTypeAny, {
285
262
  job: {
@@ -290,12 +267,12 @@ export declare const CreateBookingSchema: z.ZodObject<{
290
267
  worker: {
291
268
  id: string;
292
269
  };
293
- status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
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;
294
272
  pay?: {
295
273
  rate: number;
296
274
  unit: "DAILY" | "HOURLY";
297
275
  } | undefined;
298
- endDate?: string | null | undefined;
299
276
  }[];
300
277
  }, {
301
278
  job: {
@@ -306,24 +283,24 @@ export declare const CreateBookingSchema: z.ZodObject<{
306
283
  worker: {
307
284
  id: string;
308
285
  };
309
- status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
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;
310
288
  pay?: {
311
289
  rate: number;
312
290
  unit: "DAILY" | "HOURLY";
313
291
  } | undefined;
314
- endDate?: string | null | undefined;
315
292
  }[];
316
293
  }>;
317
294
  export declare const UpdateBookingSchema: z.ZodObject<{
318
295
  startDate: z.ZodOptional<z.ZodString>;
319
296
  endDate: z.ZodOptional<z.ZodString>;
320
- status: z.ZodOptional<z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "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", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>>;
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"]>>;
321
298
  }, "strip", z.ZodTypeAny, {
322
- status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
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;
323
300
  startDate?: string | undefined;
324
301
  endDate?: string | undefined;
325
302
  }, {
326
- status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
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;
327
304
  startDate?: string | undefined;
328
305
  endDate?: string | undefined;
329
306
  }>;
@@ -380,21 +357,19 @@ export declare const FilterBookingSchema: z.ZodObject<{
380
357
  }>>>;
381
358
  sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["status", "startDate", "createdAt", "updatedAt"]>>>;
382
359
  sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
383
- status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "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", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>>>;
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"]>>>;
384
361
  clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
385
362
  companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
386
363
  agentName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
387
364
  }, "strip", z.ZodTypeAny, {
388
365
  limit: number;
389
366
  page: number;
390
- status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | null | undefined;
391
- createdAt?: {
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?: {
392
369
  from?: string | null | undefined;
393
370
  to?: string | null | undefined;
394
371
  } | null | undefined;
395
- sortBy?: "status" | "createdAt" | "updatedAt" | "startDate" | null | undefined;
396
- sortOrder?: "ASC" | "DESC" | null | undefined;
397
- startDate?: {
372
+ createdAt?: {
398
373
  from?: string | null | undefined;
399
374
  to?: string | null | undefined;
400
375
  } | null | undefined;
@@ -411,18 +386,16 @@ export declare const FilterBookingSchema: z.ZodObject<{
411
386
  tradeId?: string | null | undefined;
412
387
  } | null | undefined;
413
388
  workerName?: string | null | undefined;
389
+ sortBy?: "status" | "startDate" | "createdAt" | "updatedAt" | null | undefined;
390
+ sortOrder?: "ASC" | "DESC" | null | undefined;
414
391
  agentName?: string | null | undefined;
415
392
  }, {
416
- status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | null | undefined;
417
- limit?: number | undefined;
418
- page?: number | undefined;
419
- createdAt?: {
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?: {
420
395
  from?: string | null | undefined;
421
396
  to?: string | null | undefined;
422
397
  } | null | undefined;
423
- sortBy?: "status" | "createdAt" | "updatedAt" | "startDate" | null | undefined;
424
- sortOrder?: "ASC" | "DESC" | null | undefined;
425
- startDate?: {
398
+ createdAt?: {
426
399
  from?: string | null | undefined;
427
400
  to?: string | null | undefined;
428
401
  } | null | undefined;
@@ -438,13 +411,17 @@ export declare const FilterBookingSchema: z.ZodObject<{
438
411
  companyId?: string | null | undefined;
439
412
  tradeId?: string | null | undefined;
440
413
  } | null | undefined;
414
+ limit?: number | undefined;
415
+ page?: number | undefined;
441
416
  workerName?: string | null | undefined;
417
+ sortBy?: "status" | "startDate" | "createdAt" | "updatedAt" | null | undefined;
418
+ sortOrder?: "ASC" | "DESC" | null | undefined;
442
419
  agentName?: string | null | undefined;
443
420
  }>;
444
421
  export declare const PaginatedBookingResponseSchema: z.ZodObject<{
445
422
  items: z.ZodArray<z.ZodObject<{
446
423
  id: z.ZodString;
447
- status: z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "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", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>;
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"]>;
448
425
  startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
449
426
  endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
450
427
  worker: z.ZodObject<{
@@ -500,20 +477,20 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
500
477
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
501
478
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
502
479
  }, "strip", z.ZodTypeAny, {
503
- status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
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;
504
482
  createdAt: string;
505
483
  updatedAt: string;
506
484
  id: string;
507
- pay: {
508
- rate: number;
509
- unit: "DAILY" | "HOURLY";
510
- };
511
- startDate: string;
512
485
  worker: {
513
486
  id: string;
514
487
  firstName: string;
515
488
  lastName: string;
516
489
  };
490
+ pay: {
491
+ rate: number;
492
+ unit: "DAILY" | "HOURLY";
493
+ };
517
494
  userId: string;
518
495
  user: {
519
496
  id: string;
@@ -527,20 +504,20 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
527
504
  };
528
505
  endDate?: string | null | undefined;
529
506
  }, {
530
- status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
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;
531
509
  createdAt: string | Date;
532
510
  updatedAt: string | Date;
533
511
  id: string;
534
- pay: {
535
- rate: number;
536
- unit: "DAILY" | "HOURLY";
537
- };
538
- startDate: string | Date;
539
512
  worker: {
540
513
  id: string;
541
514
  firstName: string;
542
515
  lastName: string;
543
516
  };
517
+ pay: {
518
+ rate: number;
519
+ unit: "DAILY" | "HOURLY";
520
+ };
544
521
  userId: string;
545
522
  user: {
546
523
  id: string;
@@ -562,20 +539,20 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
562
539
  }, "strip", z.ZodTypeAny, {
563
540
  limit: number;
564
541
  items: {
565
- status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
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;
566
544
  createdAt: string;
567
545
  updatedAt: string;
568
546
  id: string;
569
- pay: {
570
- rate: number;
571
- unit: "DAILY" | "HOURLY";
572
- };
573
- startDate: string;
574
547
  worker: {
575
548
  id: string;
576
549
  firstName: string;
577
550
  lastName: string;
578
551
  };
552
+ pay: {
553
+ rate: number;
554
+ unit: "DAILY" | "HOURLY";
555
+ };
579
556
  userId: string;
580
557
  user: {
581
558
  id: string;
@@ -596,20 +573,20 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
596
573
  }, {
597
574
  limit: number;
598
575
  items: {
599
- status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
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;
600
578
  createdAt: string | Date;
601
579
  updatedAt: string | Date;
602
580
  id: string;
603
- pay: {
604
- rate: number;
605
- unit: "DAILY" | "HOURLY";
606
- };
607
- startDate: string | Date;
608
581
  worker: {
609
582
  id: string;
610
583
  firstName: string;
611
584
  lastName: string;
612
585
  };
586
+ pay: {
587
+ rate: number;
588
+ unit: "DAILY" | "HOURLY";
589
+ };
613
590
  userId: string;
614
591
  user: {
615
592
  id: string;
@@ -628,17 +605,131 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
628
605
  currentPage: number;
629
606
  totalPages: number;
630
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">;
631
720
  export type BookingStatus = z.infer<typeof BookingStatusSchema>;
632
721
  export type BookingSortableFields = z.infer<typeof BookingSortableFieldsSchema>;
633
722
  export type BookingPay = z.infer<typeof BookingPaySchema>;
634
- export type ResourceId = z.infer<typeof ResourceIdSchema>;
635
723
  export type BookingItem = z.infer<typeof BookingItemSchema>;
636
724
  export type FilterJobInBooking = z.infer<typeof FilterJobInBookingSchema>;
725
+ export type BookingWorker = z.infer<typeof BookingWorkerSchema>;
726
+ export type BookingJob = z.infer<typeof BookingJobSchema>;
637
727
  export type Booking = z.infer<typeof BookingSchema>;
638
728
  export type CreateBooking = z.infer<typeof CreateBookingSchema>;
639
729
  export type UpdateBooking = z.infer<typeof UpdateBookingSchema>;
640
730
  export type FilterBooking = z.infer<typeof FilterBookingSchema>;
641
731
  export type PaginatedBookingResponse = z.infer<typeof PaginatedBookingResponseSchema>;
732
+ export type BookingArray = z.infer<typeof BookingArraySchema>;
642
733
  export declare const bookingsContractRouter: {
643
734
  create: {
644
735
  metadata: {
@@ -667,7 +758,7 @@ export declare const bookingsContractRouter: {
667
758
  }>;
668
759
  startDate: z.ZodString;
669
760
  endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
670
- status: z.ZodOptional<z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "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", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>>;
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"]>>;
671
762
  pay: z.ZodOptional<z.ZodObject<{
672
763
  rate: z.ZodNumber;
673
764
  unit: z.ZodEnum<["DAILY", "HOURLY"]>;
@@ -683,23 +774,23 @@ export declare const bookingsContractRouter: {
683
774
  worker: {
684
775
  id: string;
685
776
  };
686
- status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
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;
687
779
  pay?: {
688
780
  rate: number;
689
781
  unit: "DAILY" | "HOURLY";
690
782
  } | undefined;
691
- endDate?: string | null | undefined;
692
783
  }, {
693
784
  startDate: string;
694
785
  worker: {
695
786
  id: string;
696
787
  };
697
- status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
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;
698
790
  pay?: {
699
791
  rate: number;
700
792
  unit: "DAILY" | "HOURLY";
701
793
  } | undefined;
702
- endDate?: string | null | undefined;
703
794
  }>, "many">;
704
795
  }, "strip", z.ZodTypeAny, {
705
796
  job: {
@@ -710,12 +801,12 @@ export declare const bookingsContractRouter: {
710
801
  worker: {
711
802
  id: string;
712
803
  };
713
- status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
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;
714
806
  pay?: {
715
807
  rate: number;
716
808
  unit: "DAILY" | "HOURLY";
717
809
  } | undefined;
718
- endDate?: string | null | undefined;
719
810
  }[];
720
811
  }, {
721
812
  job: {
@@ -726,12 +817,12 @@ export declare const bookingsContractRouter: {
726
817
  worker: {
727
818
  id: string;
728
819
  };
729
- status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
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;
730
822
  pay?: {
731
823
  rate: number;
732
824
  unit: "DAILY" | "HOURLY";
733
825
  } | undefined;
734
- endDate?: string | null | undefined;
735
826
  }[];
736
827
  }>;
737
828
  path: "/v2/bookings";
@@ -838,7 +929,7 @@ export declare const bookingsContractRouter: {
838
929
  }>;
839
930
  201: z.ZodArray<z.ZodObject<{
840
931
  id: z.ZodString;
841
- status: z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "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", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>;
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"]>;
842
933
  startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
843
934
  endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
844
935
  worker: z.ZodObject<{
@@ -894,20 +985,20 @@ export declare const bookingsContractRouter: {
894
985
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
895
986
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
896
987
  }, "strip", z.ZodTypeAny, {
897
- status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
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;
898
990
  createdAt: string;
899
991
  updatedAt: string;
900
992
  id: string;
901
- pay: {
902
- rate: number;
903
- unit: "DAILY" | "HOURLY";
904
- };
905
- startDate: string;
906
993
  worker: {
907
994
  id: string;
908
995
  firstName: string;
909
996
  lastName: string;
910
997
  };
998
+ pay: {
999
+ rate: number;
1000
+ unit: "DAILY" | "HOURLY";
1001
+ };
911
1002
  userId: string;
912
1003
  user: {
913
1004
  id: string;
@@ -921,20 +1012,20 @@ export declare const bookingsContractRouter: {
921
1012
  };
922
1013
  endDate?: string | null | undefined;
923
1014
  }, {
924
- status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
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;
925
1017
  createdAt: string | Date;
926
1018
  updatedAt: string | Date;
927
1019
  id: string;
928
- pay: {
929
- rate: number;
930
- unit: "DAILY" | "HOURLY";
931
- };
932
- startDate: string | Date;
933
1020
  worker: {
934
1021
  id: string;
935
1022
  firstName: string;
936
1023
  lastName: string;
937
1024
  };
1025
+ pay: {
1026
+ rate: number;
1027
+ unit: "DAILY" | "HOURLY";
1028
+ };
938
1029
  userId: string;
939
1030
  user: {
940
1031
  id: string;
@@ -1035,21 +1126,19 @@ export declare const bookingsContractRouter: {
1035
1126
  }>>>;
1036
1127
  sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["status", "startDate", "createdAt", "updatedAt"]>>>;
1037
1128
  sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
1038
- status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "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", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>>>;
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"]>>>;
1039
1130
  clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1040
1131
  companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1041
1132
  agentName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1042
1133
  }, "strip", z.ZodTypeAny, {
1043
1134
  limit: number;
1044
1135
  page: number;
1045
- status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | null | undefined;
1046
- createdAt?: {
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?: {
1047
1138
  from?: string | null | undefined;
1048
1139
  to?: string | null | undefined;
1049
1140
  } | null | undefined;
1050
- sortBy?: "status" | "createdAt" | "updatedAt" | "startDate" | null | undefined;
1051
- sortOrder?: "ASC" | "DESC" | null | undefined;
1052
- startDate?: {
1141
+ createdAt?: {
1053
1142
  from?: string | null | undefined;
1054
1143
  to?: string | null | undefined;
1055
1144
  } | null | undefined;
@@ -1066,18 +1155,16 @@ export declare const bookingsContractRouter: {
1066
1155
  tradeId?: string | null | undefined;
1067
1156
  } | null | undefined;
1068
1157
  workerName?: string | null | undefined;
1158
+ sortBy?: "status" | "startDate" | "createdAt" | "updatedAt" | null | undefined;
1159
+ sortOrder?: "ASC" | "DESC" | null | undefined;
1069
1160
  agentName?: string | null | undefined;
1070
1161
  }, {
1071
- status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | null | undefined;
1072
- limit?: number | undefined;
1073
- page?: number | undefined;
1074
- createdAt?: {
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?: {
1075
1164
  from?: string | null | undefined;
1076
1165
  to?: string | null | undefined;
1077
1166
  } | null | undefined;
1078
- sortBy?: "status" | "createdAt" | "updatedAt" | "startDate" | null | undefined;
1079
- sortOrder?: "ASC" | "DESC" | null | undefined;
1080
- startDate?: {
1167
+ createdAt?: {
1081
1168
  from?: string | null | undefined;
1082
1169
  to?: string | null | undefined;
1083
1170
  } | null | undefined;
@@ -1093,7 +1180,11 @@ export declare const bookingsContractRouter: {
1093
1180
  companyId?: string | null | undefined;
1094
1181
  tradeId?: string | null | undefined;
1095
1182
  } | null | undefined;
1183
+ limit?: number | undefined;
1184
+ page?: number | undefined;
1096
1185
  workerName?: string | null | undefined;
1186
+ sortBy?: "status" | "startDate" | "createdAt" | "updatedAt" | null | undefined;
1187
+ sortOrder?: "ASC" | "DESC" | null | undefined;
1097
1188
  agentName?: string | null | undefined;
1098
1189
  }>;
1099
1190
  summary: "Get all bookings";
@@ -1203,7 +1294,7 @@ export declare const bookingsContractRouter: {
1203
1294
  200: z.ZodObject<{
1204
1295
  items: z.ZodArray<z.ZodObject<{
1205
1296
  id: z.ZodString;
1206
- status: z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "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", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>;
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"]>;
1207
1298
  startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1208
1299
  endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1209
1300
  worker: z.ZodObject<{
@@ -1259,20 +1350,20 @@ export declare const bookingsContractRouter: {
1259
1350
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1260
1351
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1261
1352
  }, "strip", z.ZodTypeAny, {
1262
- status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
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;
1263
1355
  createdAt: string;
1264
1356
  updatedAt: string;
1265
1357
  id: string;
1266
- pay: {
1267
- rate: number;
1268
- unit: "DAILY" | "HOURLY";
1269
- };
1270
- startDate: string;
1271
1358
  worker: {
1272
1359
  id: string;
1273
1360
  firstName: string;
1274
1361
  lastName: string;
1275
1362
  };
1363
+ pay: {
1364
+ rate: number;
1365
+ unit: "DAILY" | "HOURLY";
1366
+ };
1276
1367
  userId: string;
1277
1368
  user: {
1278
1369
  id: string;
@@ -1286,20 +1377,20 @@ export declare const bookingsContractRouter: {
1286
1377
  };
1287
1378
  endDate?: string | null | undefined;
1288
1379
  }, {
1289
- status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
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;
1290
1382
  createdAt: string | Date;
1291
1383
  updatedAt: string | Date;
1292
1384
  id: string;
1293
- pay: {
1294
- rate: number;
1295
- unit: "DAILY" | "HOURLY";
1296
- };
1297
- startDate: string | Date;
1298
1385
  worker: {
1299
1386
  id: string;
1300
1387
  firstName: string;
1301
1388
  lastName: string;
1302
1389
  };
1390
+ pay: {
1391
+ rate: number;
1392
+ unit: "DAILY" | "HOURLY";
1393
+ };
1303
1394
  userId: string;
1304
1395
  user: {
1305
1396
  id: string;
@@ -1321,20 +1412,20 @@ export declare const bookingsContractRouter: {
1321
1412
  }, "strip", z.ZodTypeAny, {
1322
1413
  limit: number;
1323
1414
  items: {
1324
- status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
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;
1325
1417
  createdAt: string;
1326
1418
  updatedAt: string;
1327
1419
  id: string;
1328
- pay: {
1329
- rate: number;
1330
- unit: "DAILY" | "HOURLY";
1331
- };
1332
- startDate: string;
1333
1420
  worker: {
1334
1421
  id: string;
1335
1422
  firstName: string;
1336
1423
  lastName: string;
1337
1424
  };
1425
+ pay: {
1426
+ rate: number;
1427
+ unit: "DAILY" | "HOURLY";
1428
+ };
1338
1429
  userId: string;
1339
1430
  user: {
1340
1431
  id: string;
@@ -1355,20 +1446,20 @@ export declare const bookingsContractRouter: {
1355
1446
  }, {
1356
1447
  limit: number;
1357
1448
  items: {
1358
- status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
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;
1359
1451
  createdAt: string | Date;
1360
1452
  updatedAt: string | Date;
1361
1453
  id: string;
1362
- pay: {
1363
- rate: number;
1364
- unit: "DAILY" | "HOURLY";
1365
- };
1366
- startDate: string | Date;
1367
1454
  worker: {
1368
1455
  id: string;
1369
1456
  firstName: string;
1370
1457
  lastName: string;
1371
1458
  };
1459
+ pay: {
1460
+ rate: number;
1461
+ unit: "DAILY" | "HOURLY";
1462
+ };
1372
1463
  userId: string;
1373
1464
  user: {
1374
1465
  id: string;
@@ -1509,7 +1600,7 @@ export declare const bookingsContractRouter: {
1509
1600
  }>;
1510
1601
  200: z.ZodObject<{
1511
1602
  id: z.ZodString;
1512
- status: z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "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", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>;
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"]>;
1513
1604
  startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1514
1605
  endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1515
1606
  worker: z.ZodObject<{
@@ -1565,20 +1656,20 @@ export declare const bookingsContractRouter: {
1565
1656
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1566
1657
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1567
1658
  }, "strip", z.ZodTypeAny, {
1568
- status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
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;
1569
1661
  createdAt: string;
1570
1662
  updatedAt: string;
1571
1663
  id: string;
1572
- pay: {
1573
- rate: number;
1574
- unit: "DAILY" | "HOURLY";
1575
- };
1576
- startDate: string;
1577
1664
  worker: {
1578
1665
  id: string;
1579
1666
  firstName: string;
1580
1667
  lastName: string;
1581
1668
  };
1669
+ pay: {
1670
+ rate: number;
1671
+ unit: "DAILY" | "HOURLY";
1672
+ };
1582
1673
  userId: string;
1583
1674
  user: {
1584
1675
  id: string;
@@ -1592,20 +1683,20 @@ export declare const bookingsContractRouter: {
1592
1683
  };
1593
1684
  endDate?: string | null | undefined;
1594
1685
  }, {
1595
- status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
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;
1596
1688
  createdAt: string | Date;
1597
1689
  updatedAt: string | Date;
1598
1690
  id: string;
1599
- pay: {
1600
- rate: number;
1601
- unit: "DAILY" | "HOURLY";
1602
- };
1603
- startDate: string | Date;
1604
1691
  worker: {
1605
1692
  id: string;
1606
1693
  firstName: string;
1607
1694
  lastName: string;
1608
1695
  };
1696
+ pay: {
1697
+ rate: number;
1698
+ unit: "DAILY" | "HOURLY";
1699
+ };
1609
1700
  userId: string;
1610
1701
  user: {
1611
1702
  id: string;
@@ -1665,13 +1756,13 @@ export declare const bookingsContractRouter: {
1665
1756
  body: z.ZodObject<{
1666
1757
  startDate: z.ZodOptional<z.ZodString>;
1667
1758
  endDate: z.ZodOptional<z.ZodString>;
1668
- status: z.ZodOptional<z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "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", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>>;
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"]>>;
1669
1760
  }, "strip", z.ZodTypeAny, {
1670
- status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
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;
1671
1762
  startDate?: string | undefined;
1672
1763
  endDate?: string | undefined;
1673
1764
  }, {
1674
- status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
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;
1675
1766
  startDate?: string | undefined;
1676
1767
  endDate?: string | undefined;
1677
1768
  }>;
@@ -1779,7 +1870,7 @@ export declare const bookingsContractRouter: {
1779
1870
  }>;
1780
1871
  200: z.ZodObject<{
1781
1872
  id: z.ZodString;
1782
- status: z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "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", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>;
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"]>;
1783
1874
  startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1784
1875
  endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1785
1876
  worker: z.ZodObject<{
@@ -1835,20 +1926,20 @@ export declare const bookingsContractRouter: {
1835
1926
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1836
1927
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1837
1928
  }, "strip", z.ZodTypeAny, {
1838
- status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
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;
1839
1931
  createdAt: string;
1840
1932
  updatedAt: string;
1841
1933
  id: string;
1842
- pay: {
1843
- rate: number;
1844
- unit: "DAILY" | "HOURLY";
1845
- };
1846
- startDate: string;
1847
1934
  worker: {
1848
1935
  id: string;
1849
1936
  firstName: string;
1850
1937
  lastName: string;
1851
1938
  };
1939
+ pay: {
1940
+ rate: number;
1941
+ unit: "DAILY" | "HOURLY";
1942
+ };
1852
1943
  userId: string;
1853
1944
  user: {
1854
1945
  id: string;
@@ -1862,20 +1953,20 @@ export declare const bookingsContractRouter: {
1862
1953
  };
1863
1954
  endDate?: string | null | undefined;
1864
1955
  }, {
1865
- status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "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" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
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;
1866
1958
  createdAt: string | Date;
1867
1959
  updatedAt: string | Date;
1868
1960
  id: string;
1869
- pay: {
1870
- rate: number;
1871
- unit: "DAILY" | "HOURLY";
1872
- };
1873
- startDate: string | Date;
1874
1961
  worker: {
1875
1962
  id: string;
1876
1963
  firstName: string;
1877
1964
  lastName: string;
1878
1965
  };
1966
+ pay: {
1967
+ rate: number;
1968
+ unit: "DAILY" | "HOURLY";
1969
+ };
1879
1970
  userId: string;
1880
1971
  user: {
1881
1972
  id: string;