@dakkitor/api-contracts 1.4.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/dist/abilities/abilities.contract.d.ts +8 -2
  2. package/dist/abilities/abilities.contract.d.ts.map +1 -1
  3. package/dist/abilities/abilities.contract.js +48 -1
  4. package/dist/abilities/abilities.contract.spec.js +98 -0
  5. package/dist/abilities/first-agent.abilities.json +9 -2
  6. package/dist/abilities/outreach-service.abilities.json +14 -0
  7. package/dist/abilities/outreach.abilities.json +25 -0
  8. package/dist/abilities/second-agent.abilities.json +5 -1
  9. package/dist/actives/actives.contract.d.ts +7160 -7021
  10. package/dist/actives/actives.contract.d.ts.map +1 -1
  11. package/dist/actives/actives.contract.js +2 -0
  12. package/dist/actives/actives.contract.spec.d.ts +2 -0
  13. package/dist/actives/actives.contract.spec.d.ts.map +1 -0
  14. package/dist/actives/actives.contract.spec.js +35 -0
  15. package/dist/agent-client-links/agent-client-links.contract.d.ts +1087 -1087
  16. package/dist/auth/auth.contract.d.ts +108 -108
  17. package/dist/bookings/bookings.contract.d.ts +10131 -9939
  18. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  19. package/dist/call-history/call-history.contract.d.ts +718 -718
  20. package/dist/calls-feed/calls-feed.contract.d.ts +86 -86
  21. package/dist/client-contacts/client-contacts.contract.d.ts +469 -469
  22. package/dist/clients/clients.contract.d.ts +203 -203
  23. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2713 -2713
  24. package/dist/collaborations/collaborations.contract.d.ts +2270 -2270
  25. package/dist/common/common-schemas.d.ts +12 -12
  26. package/dist/companies/companies.contract.d.ts +74 -74
  27. package/dist/crews/crews.contract.d.ts +253 -253
  28. package/dist/cron-executions/cron-executions.contract.d.ts +182 -182
  29. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +3353 -3353
  30. package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +20 -20
  31. package/dist/curated-worker-leads/consent-queue.contract.d.ts +196 -166
  32. package/dist/curated-worker-leads/consent-queue.contract.d.ts.map +1 -1
  33. package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts +16 -16
  34. package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts +2 -2
  35. package/dist/curated-worker-leads/jobs-tab.contract.d.ts +1192 -564
  36. package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
  37. package/dist/curated-worker-leads/jobs-tab.contract.js +65 -2
  38. package/dist/curated-worker-leads/lead-agent-area.contract.d.ts +4 -4
  39. package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.d.ts +2 -0
  40. package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.d.ts.map +1 -0
  41. package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.js +39 -0
  42. package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +46 -46
  43. package/dist/curated-workers/curated-workers.contract.d.ts +789 -789
  44. package/dist/dashboards/agent-daily-metrics.contract.d.ts +2 -2
  45. package/dist/dashboards/dashboard-widgets.contract.d.ts +292 -292
  46. package/dist/dashboards/dashboard.contract.d.ts +12 -12
  47. package/dist/document-intake/document-intake.contract.d.ts +601 -601
  48. package/dist/export-jobs/export-jobs.contract.d.ts +572 -562
  49. package/dist/export-jobs/export-jobs.contract.d.ts.map +1 -1
  50. package/dist/exports-events/exports-events.schemas.d.ts +6 -6
  51. package/dist/files/files.contract.d.ts +74 -74
  52. package/dist/index.d.ts +10 -0
  53. package/dist/index.d.ts.map +1 -1
  54. package/dist/index.js +10 -0
  55. package/dist/interactions/interactions.contract.d.ts +6 -6
  56. package/dist/job-clusters/job-clusters.contract.d.ts +112 -112
  57. package/dist/jobs/job-moderation-fields.spec.d.ts +2 -0
  58. package/dist/jobs/job-moderation-fields.spec.d.ts.map +1 -0
  59. package/dist/jobs/job-moderation-fields.spec.js +72 -0
  60. package/dist/jobs/jobs.contract.d.ts +7734 -7474
  61. package/dist/jobs/jobs.contract.d.ts.map +1 -1
  62. package/dist/jobs/jobs.contract.js +57 -0
  63. package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +141 -141
  64. package/dist/lead-assignments/lead-assignments.contract.d.ts +911 -911
  65. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +209 -209
  66. package/dist/lead-distribution/lead-distribution-config.contract.d.ts +77 -77
  67. package/dist/leads/leads.contract.d.ts +283 -283
  68. package/dist/locations/locations.contract.d.ts +49 -49
  69. package/dist/notifications/notifications.contract.d.ts +49 -49
  70. package/dist/offices/offices.contract.d.ts +34 -34
  71. package/dist/outreach/__tests__/outreach-claim.test.js +1 -0
  72. package/dist/outreach/__tests__/outreach-contract-additions.spec.d.ts +2 -0
  73. package/dist/outreach/__tests__/outreach-contract-additions.spec.d.ts.map +1 -0
  74. package/dist/outreach/__tests__/outreach-contract-additions.spec.js +89 -0
  75. package/dist/outreach/__tests__/outreach-requests.contract.spec.d.ts +2 -0
  76. package/dist/outreach/__tests__/outreach-requests.contract.spec.d.ts.map +1 -0
  77. package/dist/outreach/__tests__/outreach-requests.contract.spec.js +77 -0
  78. package/dist/outreach/__tests__/outreach-routes.test.js +14 -3
  79. package/dist/outreach/__tests__/outreach.schemas.test.js +5 -1
  80. package/dist/outreach/outreach-requests.contract.d.ts +1753 -0
  81. package/dist/outreach/outreach-requests.contract.d.ts.map +1 -0
  82. package/dist/outreach/outreach-requests.contract.js +154 -0
  83. package/dist/outreach/outreach-requests.schemas.d.ts +95 -0
  84. package/dist/outreach/outreach-requests.schemas.d.ts.map +1 -0
  85. package/dist/outreach/outreach-requests.schemas.js +63 -0
  86. package/dist/outreach/outreach.contract.d.ts +373 -101
  87. package/dist/outreach/outreach.contract.d.ts.map +1 -1
  88. package/dist/outreach/outreach.contract.js +18 -0
  89. package/dist/outreach/outreach.contract.spec.d.ts +2 -0
  90. package/dist/outreach/outreach.contract.spec.d.ts.map +1 -0
  91. package/dist/outreach/outreach.contract.spec.js +54 -0
  92. package/dist/outreach/outreach.schemas.d.ts +15 -10
  93. package/dist/outreach/outreach.schemas.d.ts.map +1 -1
  94. package/dist/outreach/outreach.schemas.js +5 -2
  95. package/dist/own-research/own-research.contract.d.ts +775 -775
  96. package/dist/postcodes/postcodes.contract.d.ts +24 -24
  97. package/dist/proofs/proof-type.enum.d.ts +4 -4
  98. package/dist/proofs/proofs.contract.d.ts +363 -363
  99. package/dist/proofs/proofs.dtos.d.ts +124 -124
  100. package/dist/qualifications/qualifications.contract.d.ts +38 -38
  101. package/dist/relay-pods/relay-pod-sessions.contract.d.ts +680 -0
  102. package/dist/relay-pods/relay-pod-sessions.contract.d.ts.map +1 -0
  103. package/dist/relay-pods/relay-pod-sessions.contract.js +67 -0
  104. package/dist/relay-pods/relay-pod-sessions.contract.spec.d.ts +2 -0
  105. package/dist/relay-pods/relay-pod-sessions.contract.spec.d.ts.map +1 -0
  106. package/dist/relay-pods/relay-pod-sessions.contract.spec.js +129 -0
  107. package/dist/relay-pods/relay-pods.contract.d.ts +1569 -0
  108. package/dist/relay-pods/relay-pods.contract.d.ts.map +1 -0
  109. package/dist/relay-pods/relay-pods.contract.js +188 -0
  110. package/dist/relay-pods/relay-pods.contract.spec.d.ts +2 -0
  111. package/dist/relay-pods/relay-pods.contract.spec.d.ts.map +1 -0
  112. package/dist/relay-pods/relay-pods.contract.spec.js +141 -0
  113. package/dist/relay-pods/relay-pods.schemas.d.ts +415 -0
  114. package/dist/relay-pods/relay-pods.schemas.d.ts.map +1 -0
  115. package/dist/relay-pods/relay-pods.schemas.js +112 -0
  116. package/dist/shared/live-booking.schema.d.ts +4 -4
  117. package/dist/shared/summary-schemas.d.ts +6 -6
  118. package/dist/sheets-sync/sheets-sync.contract.d.ts +939 -939
  119. package/dist/telegram/telegram.contract.d.ts +22 -22
  120. package/dist/trades/trades.contract.d.ts +90 -90
  121. package/dist/user-access-grants/user-access-grants.contract.d.ts +165 -165
  122. package/dist/users/__tests__/assignable-roles.spec.d.ts +2 -0
  123. package/dist/users/__tests__/assignable-roles.spec.d.ts.map +1 -0
  124. package/dist/users/__tests__/assignable-roles.spec.js +41 -0
  125. package/dist/users/users.contract.d.ts +399 -393
  126. package/dist/users/users.contract.d.ts.map +1 -1
  127. package/dist/users/users.contract.js +11 -0
  128. package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts +585 -527
  129. package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts.map +1 -1
  130. package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts +278 -236
  131. package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts.map +1 -1
  132. package/dist/worker-merge-proposals/worker-merge-proposals.contract.js +1 -0
  133. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +153 -153
  134. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.d.ts +59 -59
  135. package/dist/workers/workers.contract.d.ts +2919 -2919
  136. package/package.json +1 -1
  137. package/dist/bookings/bookings.contract.spec.d.ts +0 -2
  138. package/dist/bookings/bookings.contract.spec.d.ts.map +0 -1
  139. package/dist/bookings/bookings.contract.spec.js +0 -11
@@ -245,7 +245,7 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
245
245
  }>>>;
246
246
  }, "strip", z.ZodTypeAny, {
247
247
  bookingId?: string | null | undefined;
248
- booking?: "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | "CANCELLED" | "JOB_CANCELLED" | null | undefined;
248
+ booking?: "COMPLETED" | "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "JOB_CANCELLED" | null | undefined;
249
249
  active?: {
250
250
  status: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
251
251
  } | null | undefined;
@@ -257,7 +257,7 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
257
257
  } | null | undefined;
258
258
  }, {
259
259
  bookingId?: string | null | undefined;
260
- booking?: "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | "CANCELLED" | "JOB_CANCELLED" | null | undefined;
260
+ booking?: "COMPLETED" | "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "JOB_CANCELLED" | null | undefined;
261
261
  active?: {
262
262
  status: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
263
263
  } | null | undefined;
@@ -325,21 +325,21 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
325
325
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
326
326
  }, "strip", z.ZodTypeAny, {
327
327
  id: string;
328
+ createdAt: string;
328
329
  proofDocumentFileId: string | null;
329
330
  referenceNumber: string | null;
330
331
  qualificationId: string;
331
332
  qualificationTypeId: string | null;
332
- createdAt: string;
333
333
  updatedAt: string;
334
334
  issueDate?: string | null | undefined;
335
335
  expiryDate?: string | null | undefined;
336
336
  }, {
337
337
  id: string;
338
+ createdAt: string | Date;
338
339
  proofDocumentFileId: string | null;
339
340
  referenceNumber: string | null;
340
341
  qualificationId: string;
341
342
  qualificationTypeId: string | null;
342
- createdAt: string | Date;
343
343
  updatedAt: string | Date;
344
344
  issueDate?: string | Date | null | undefined;
345
345
  expiryDate?: string | Date | null | undefined;
@@ -364,8 +364,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
364
364
  createdAt: string | Date;
365
365
  updatedAt: string | Date;
366
366
  phoneNumber: string;
367
- isPrimary?: boolean | undefined;
368
367
  description?: string | null | undefined;
368
+ isPrimary?: boolean | undefined;
369
369
  }>, "many">>>;
370
370
  idDocuments: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
371
371
  id: z.ZodString;
@@ -377,16 +377,16 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
377
377
  updatedAt: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
378
378
  }, "strip", z.ZodTypeAny, {
379
379
  id: string;
380
- expiryDate?: string | null | undefined;
381
380
  createdAt?: string | undefined;
381
+ expiryDate?: string | null | undefined;
382
382
  updatedAt?: string | undefined;
383
383
  fileId?: string | null | undefined;
384
384
  documentType?: "unknown" | "passport" | "id_card" | "driving_license" | null | undefined;
385
385
  documentNumber?: string | null | undefined;
386
386
  }, {
387
387
  id: string;
388
- expiryDate?: string | Date | null | undefined;
389
388
  createdAt?: string | Date | undefined;
389
+ expiryDate?: string | Date | null | undefined;
390
390
  updatedAt?: string | Date | undefined;
391
391
  fileId?: string | null | undefined;
392
392
  documentType?: "unknown" | "passport" | "id_card" | "driving_license" | null | undefined;
@@ -394,8 +394,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
394
394
  }>, "many">>>;
395
395
  }, "strip", z.ZodTypeAny, {
396
396
  id: string;
397
- firstName: string;
398
397
  createdAt: string;
398
+ firstName: string;
399
399
  updatedAt: string;
400
400
  hasTools: boolean | null;
401
401
  hasPpe: boolean | null;
@@ -410,8 +410,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
410
410
  } | null;
411
411
  idDocuments: {
412
412
  id: string;
413
- expiryDate?: string | null | undefined;
414
413
  createdAt?: string | undefined;
414
+ expiryDate?: string | null | undefined;
415
415
  updatedAt?: string | undefined;
416
416
  fileId?: string | null | undefined;
417
417
  documentType?: "unknown" | "passport" | "id_card" | "driving_license" | null | undefined;
@@ -458,7 +458,7 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
458
458
  } | null | undefined;
459
459
  liveStatus?: {
460
460
  bookingId?: string | null | undefined;
461
- booking?: "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | "CANCELLED" | "JOB_CANCELLED" | null | undefined;
461
+ booking?: "COMPLETED" | "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "JOB_CANCELLED" | null | undefined;
462
462
  active?: {
463
463
  status: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
464
464
  } | null | undefined;
@@ -469,7 +469,7 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
469
469
  lastName: string;
470
470
  } | null | undefined;
471
471
  } | undefined;
472
- occupancyStatus?: "BOOKED" | "ACTIVE" | null | undefined;
472
+ occupancyStatus?: "ACTIVE" | "BOOKED" | null | undefined;
473
473
  workingUntil?: string | null | undefined;
474
474
  blacklistReason?: string | null | undefined;
475
475
  trades?: {
@@ -481,11 +481,11 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
481
481
  }[] | null | undefined;
482
482
  qualifications?: {
483
483
  id: string;
484
+ createdAt: string;
484
485
  proofDocumentFileId: string | null;
485
486
  referenceNumber: string | null;
486
487
  qualificationId: string;
487
488
  qualificationTypeId: string | null;
488
- createdAt: string;
489
489
  updatedAt: string;
490
490
  issueDate?: string | null | undefined;
491
491
  expiryDate?: string | null | undefined;
@@ -500,8 +500,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
500
500
  }[] | null | undefined;
501
501
  }, {
502
502
  id: string;
503
- firstName: string;
504
503
  createdAt: string | Date;
504
+ firstName: string;
505
505
  updatedAt: string | Date;
506
506
  hasTools: boolean | null;
507
507
  hasPpe: boolean | null;
@@ -555,7 +555,7 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
555
555
  } | null | undefined;
556
556
  liveStatus?: {
557
557
  bookingId?: string | null | undefined;
558
- booking?: "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | "CANCELLED" | "JOB_CANCELLED" | null | undefined;
558
+ booking?: "COMPLETED" | "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "JOB_CANCELLED" | null | undefined;
559
559
  active?: {
560
560
  status: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
561
561
  } | null | undefined;
@@ -566,7 +566,7 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
566
566
  lastName: string;
567
567
  } | null | undefined;
568
568
  } | undefined;
569
- occupancyStatus?: "BOOKED" | "ACTIVE" | null | undefined;
569
+ occupancyStatus?: "ACTIVE" | "BOOKED" | null | undefined;
570
570
  workingUntil?: string | Date | null | undefined;
571
571
  blacklistReason?: string | null | undefined;
572
572
  trades?: {
@@ -578,11 +578,11 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
578
578
  }[] | null | undefined;
579
579
  qualifications?: {
580
580
  id: string;
581
+ createdAt: string | Date;
581
582
  proofDocumentFileId: string | null;
582
583
  referenceNumber: string | null;
583
584
  qualificationId: string;
584
585
  qualificationTypeId: string | null;
585
- createdAt: string | Date;
586
586
  updatedAt: string | Date;
587
587
  issueDate?: string | Date | null | undefined;
588
588
  expiryDate?: string | Date | null | undefined;
@@ -592,13 +592,13 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
592
592
  createdAt: string | Date;
593
593
  updatedAt: string | Date;
594
594
  phoneNumber: string;
595
- isPrimary?: boolean | undefined;
596
595
  description?: string | null | undefined;
596
+ isPrimary?: boolean | undefined;
597
597
  }[] | null | undefined;
598
598
  idDocuments?: {
599
599
  id: string;
600
- expiryDate?: string | Date | null | undefined;
601
600
  createdAt?: string | Date | undefined;
601
+ expiryDate?: string | Date | null | undefined;
602
602
  updatedAt?: string | Date | undefined;
603
603
  fileId?: string | null | undefined;
604
604
  documentType?: "unknown" | "passport" | "id_card" | "driving_license" | null | undefined;
@@ -615,19 +615,19 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
615
615
  status: z.ZodEnum<["NEW", "TOO_FAR", "NOT_INTERESTED", "OFFER_SENT", "BOOKED"]>;
616
616
  statusUpdatedAt: z.ZodNullable<z.ZodString>;
617
617
  }, "strip", z.ZodTypeAny, {
618
- subjectKind: "OWNED" | "CURATED";
619
- subjectId: string;
620
618
  jobId: string;
621
619
  status: "NEW" | "TOO_FAR" | "NOT_INTERESTED" | "OFFER_SENT" | "BOOKED";
620
+ subjectKind: "OWNED" | "CURATED";
621
+ subjectId: string;
622
622
  distanceKm: number | null;
623
623
  driveMinutes: number | null;
624
624
  transitMinutes: number | null;
625
625
  statusUpdatedAt: string | null;
626
626
  }, {
627
- subjectKind: "OWNED" | "CURATED";
628
- subjectId: string;
629
627
  jobId: string;
630
628
  status: "NEW" | "TOO_FAR" | "NOT_INTERESTED" | "OFFER_SENT" | "BOOKED";
629
+ subjectKind: "OWNED" | "CURATED";
630
+ subjectId: string;
631
631
  distanceKm: number | null;
632
632
  driveMinutes: number | null;
633
633
  transitMinutes: number | null;
@@ -729,8 +729,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
729
729
  }, {
730
730
  id: string;
731
731
  phoneNumber: string;
732
- isPrimary?: boolean | undefined;
733
732
  description?: string | null | undefined;
733
+ isPrimary?: boolean | undefined;
734
734
  }>, "many">>>;
735
735
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
736
736
  }, "strip", z.ZodTypeAny, {
@@ -751,14 +751,14 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
751
751
  phoneNumbers?: {
752
752
  id: string;
753
753
  phoneNumber: string;
754
- isPrimary?: boolean | undefined;
755
754
  description?: string | null | undefined;
755
+ isPrimary?: boolean | undefined;
756
756
  }[] | undefined;
757
757
  deletedAt?: string | Date | null | undefined;
758
758
  }>>>;
759
759
  }, "strip", z.ZodTypeAny, {
760
- status?: string | null | undefined;
761
760
  id?: string | null | undefined;
761
+ status?: string | null | undefined;
762
762
  userId?: string | null | undefined;
763
763
  client?: {
764
764
  id: string;
@@ -781,8 +781,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
781
781
  deletedAt?: string | null | undefined;
782
782
  } | null | undefined;
783
783
  }, {
784
- status?: string | null | undefined;
785
784
  id?: string | null | undefined;
785
+ status?: string | null | undefined;
786
786
  userId?: string | null | undefined;
787
787
  client?: {
788
788
  id: string;
@@ -799,8 +799,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
799
799
  phoneNumbers?: {
800
800
  id: string;
801
801
  phoneNumber: string;
802
- isPrimary?: boolean | undefined;
803
802
  description?: string | null | undefined;
803
+ isPrimary?: boolean | undefined;
804
804
  }[] | undefined;
805
805
  deletedAt?: string | Date | null | undefined;
806
806
  } | null | undefined;
@@ -825,8 +825,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
825
825
  }, {
826
826
  id: string;
827
827
  phoneNumber: string;
828
- isPrimary?: boolean | undefined;
829
828
  description?: string | null | undefined;
829
+ isPrimary?: boolean | undefined;
830
830
  }>, "many">>>;
831
831
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
832
832
  }, "strip", z.ZodTypeAny, {
@@ -847,8 +847,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
847
847
  phoneNumbers?: {
848
848
  id: string;
849
849
  phoneNumber: string;
850
- isPrimary?: boolean | undefined;
851
850
  description?: string | null | undefined;
851
+ isPrimary?: boolean | undefined;
852
852
  }[] | undefined;
853
853
  deletedAt?: string | Date | null | undefined;
854
854
  }>>>;
@@ -856,9 +856,14 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
856
856
  distanceKm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
857
857
  filledPositions: z.ZodDefault<z.ZodNumber>;
858
858
  startDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
859
+ sourceMessageDeletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
860
+ minimumRateDeletionExemptAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
861
+ minimumRateDeletionExemptById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
859
862
  }, "strip", z.ZodTypeAny, {
860
- status: "AVAILABLE" | "NOT_AVAILABLE";
861
863
  id: string;
864
+ status: "AVAILABLE" | "NOT_AVAILABLE";
865
+ createdAt: string;
866
+ description: string;
862
867
  pay: {
863
868
  rateUnit: "DAILY" | "HOURLY";
864
869
  isNegotiable: boolean;
@@ -866,10 +871,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
866
871
  rateMax?: number | null | undefined;
867
872
  receivedRate?: number | null | undefined;
868
873
  };
869
- createdAt: string;
870
874
  updatedAt: string;
871
875
  tradeId: string;
872
- description: string;
873
876
  numberOfPositions: number;
874
877
  filledPositions: number;
875
878
  distanceKm?: number | null | undefined;
@@ -899,8 +902,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
899
902
  qualificationTypeId?: string | null | undefined;
900
903
  }[] | null | undefined;
901
904
  collaboration?: {
902
- status?: string | null | undefined;
903
905
  id?: string | null | undefined;
906
+ status?: string | null | undefined;
904
907
  userId?: string | null | undefined;
905
908
  client?: {
906
909
  id: string;
@@ -925,9 +928,14 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
925
928
  } | null | undefined;
926
929
  createdById?: string | null | undefined;
927
930
  creationSource?: "MANUAL" | "BOT" | null | undefined;
931
+ sourceMessageDeletedAt?: string | null | undefined;
932
+ minimumRateDeletionExemptAt?: string | null | undefined;
933
+ minimumRateDeletionExemptById?: string | null | undefined;
928
934
  }, {
929
- status: "AVAILABLE" | "NOT_AVAILABLE";
930
935
  id: string;
936
+ status: "AVAILABLE" | "NOT_AVAILABLE";
937
+ createdAt: string | Date;
938
+ description: string;
931
939
  pay: {
932
940
  rateUnit: "DAILY" | "HOURLY";
933
941
  rate?: number | null | undefined;
@@ -935,10 +943,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
935
943
  rateMax?: number | null | undefined;
936
944
  receivedRate?: number | null | undefined;
937
945
  };
938
- createdAt: string | Date;
939
946
  updatedAt: string | Date;
940
947
  tradeId: string;
941
- description: string;
942
948
  numberOfPositions: number;
943
949
  distanceKm?: number | null | undefined;
944
950
  startDate?: string | null | undefined;
@@ -955,8 +961,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
955
961
  phoneNumbers?: {
956
962
  id: string;
957
963
  phoneNumber: string;
958
- isPrimary?: boolean | undefined;
959
964
  description?: string | null | undefined;
965
+ isPrimary?: boolean | undefined;
960
966
  }[] | undefined;
961
967
  deletedAt?: string | Date | null | undefined;
962
968
  } | null | undefined;
@@ -967,8 +973,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
967
973
  qualificationTypeId?: string | null | undefined;
968
974
  }[] | null | undefined;
969
975
  collaboration?: {
970
- status?: string | null | undefined;
971
976
  id?: string | null | undefined;
977
+ status?: string | null | undefined;
972
978
  userId?: string | null | undefined;
973
979
  client?: {
974
980
  id: string;
@@ -985,8 +991,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
985
991
  phoneNumbers?: {
986
992
  id: string;
987
993
  phoneNumber: string;
988
- isPrimary?: boolean | undefined;
989
994
  description?: string | null | undefined;
995
+ isPrimary?: boolean | undefined;
990
996
  }[] | undefined;
991
997
  deletedAt?: string | Date | null | undefined;
992
998
  } | null | undefined;
@@ -994,13 +1000,16 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
994
1000
  createdById?: string | null | undefined;
995
1001
  creationSource?: "MANUAL" | "BOT" | null | undefined;
996
1002
  filledPositions?: number | undefined;
1003
+ sourceMessageDeletedAt?: string | Date | null | undefined;
1004
+ minimumRateDeletionExemptAt?: string | Date | null | undefined;
1005
+ minimumRateDeletionExemptById?: string | null | undefined;
997
1006
  }>, "many">;
998
1007
  }, "strip", z.ZodTypeAny, {
999
1008
  matches: {
1000
- subjectKind: "OWNED" | "CURATED";
1001
- subjectId: string;
1002
1009
  jobId: string;
1003
1010
  status: "NEW" | "TOO_FAR" | "NOT_INTERESTED" | "OFFER_SENT" | "BOOKED";
1011
+ subjectKind: "OWNED" | "CURATED";
1012
+ subjectId: string;
1004
1013
  distanceKm: number | null;
1005
1014
  driveMinutes: number | null;
1006
1015
  transitMinutes: number | null;
@@ -1008,8 +1017,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1008
1017
  }[];
1009
1018
  worker: {
1010
1019
  id: string;
1011
- firstName: string;
1012
1020
  createdAt: string;
1021
+ firstName: string;
1013
1022
  updatedAt: string;
1014
1023
  hasTools: boolean | null;
1015
1024
  hasPpe: boolean | null;
@@ -1024,8 +1033,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1024
1033
  } | null;
1025
1034
  idDocuments: {
1026
1035
  id: string;
1027
- expiryDate?: string | null | undefined;
1028
1036
  createdAt?: string | undefined;
1037
+ expiryDate?: string | null | undefined;
1029
1038
  updatedAt?: string | undefined;
1030
1039
  fileId?: string | null | undefined;
1031
1040
  documentType?: "unknown" | "passport" | "id_card" | "driving_license" | null | undefined;
@@ -1072,7 +1081,7 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1072
1081
  } | null | undefined;
1073
1082
  liveStatus?: {
1074
1083
  bookingId?: string | null | undefined;
1075
- booking?: "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | "CANCELLED" | "JOB_CANCELLED" | null | undefined;
1084
+ booking?: "COMPLETED" | "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "JOB_CANCELLED" | null | undefined;
1076
1085
  active?: {
1077
1086
  status: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
1078
1087
  } | null | undefined;
@@ -1083,7 +1092,7 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1083
1092
  lastName: string;
1084
1093
  } | null | undefined;
1085
1094
  } | undefined;
1086
- occupancyStatus?: "BOOKED" | "ACTIVE" | null | undefined;
1095
+ occupancyStatus?: "ACTIVE" | "BOOKED" | null | undefined;
1087
1096
  workingUntil?: string | null | undefined;
1088
1097
  blacklistReason?: string | null | undefined;
1089
1098
  trades?: {
@@ -1095,11 +1104,11 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1095
1104
  }[] | null | undefined;
1096
1105
  qualifications?: {
1097
1106
  id: string;
1107
+ createdAt: string;
1098
1108
  proofDocumentFileId: string | null;
1099
1109
  referenceNumber: string | null;
1100
1110
  qualificationId: string;
1101
1111
  qualificationTypeId: string | null;
1102
- createdAt: string;
1103
1112
  updatedAt: string;
1104
1113
  issueDate?: string | null | undefined;
1105
1114
  expiryDate?: string | null | undefined;
@@ -1114,8 +1123,10 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1114
1123
  }[] | null | undefined;
1115
1124
  };
1116
1125
  jobCards: {
1117
- status: "AVAILABLE" | "NOT_AVAILABLE";
1118
1126
  id: string;
1127
+ status: "AVAILABLE" | "NOT_AVAILABLE";
1128
+ createdAt: string;
1129
+ description: string;
1119
1130
  pay: {
1120
1131
  rateUnit: "DAILY" | "HOURLY";
1121
1132
  isNegotiable: boolean;
@@ -1123,10 +1134,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1123
1134
  rateMax?: number | null | undefined;
1124
1135
  receivedRate?: number | null | undefined;
1125
1136
  };
1126
- createdAt: string;
1127
1137
  updatedAt: string;
1128
1138
  tradeId: string;
1129
- description: string;
1130
1139
  numberOfPositions: number;
1131
1140
  filledPositions: number;
1132
1141
  distanceKm?: number | null | undefined;
@@ -1156,8 +1165,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1156
1165
  qualificationTypeId?: string | null | undefined;
1157
1166
  }[] | null | undefined;
1158
1167
  collaboration?: {
1159
- status?: string | null | undefined;
1160
1168
  id?: string | null | undefined;
1169
+ status?: string | null | undefined;
1161
1170
  userId?: string | null | undefined;
1162
1171
  client?: {
1163
1172
  id: string;
@@ -1182,13 +1191,16 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1182
1191
  } | null | undefined;
1183
1192
  createdById?: string | null | undefined;
1184
1193
  creationSource?: "MANUAL" | "BOT" | null | undefined;
1194
+ sourceMessageDeletedAt?: string | null | undefined;
1195
+ minimumRateDeletionExemptAt?: string | null | undefined;
1196
+ minimumRateDeletionExemptById?: string | null | undefined;
1185
1197
  }[];
1186
1198
  }, {
1187
1199
  matches: {
1188
- subjectKind: "OWNED" | "CURATED";
1189
- subjectId: string;
1190
1200
  jobId: string;
1191
1201
  status: "NEW" | "TOO_FAR" | "NOT_INTERESTED" | "OFFER_SENT" | "BOOKED";
1202
+ subjectKind: "OWNED" | "CURATED";
1203
+ subjectId: string;
1192
1204
  distanceKm: number | null;
1193
1205
  driveMinutes: number | null;
1194
1206
  transitMinutes: number | null;
@@ -1196,8 +1208,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1196
1208
  }[];
1197
1209
  worker: {
1198
1210
  id: string;
1199
- firstName: string;
1200
1211
  createdAt: string | Date;
1212
+ firstName: string;
1201
1213
  updatedAt: string | Date;
1202
1214
  hasTools: boolean | null;
1203
1215
  hasPpe: boolean | null;
@@ -1251,7 +1263,7 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1251
1263
  } | null | undefined;
1252
1264
  liveStatus?: {
1253
1265
  bookingId?: string | null | undefined;
1254
- booking?: "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | "CANCELLED" | "JOB_CANCELLED" | null | undefined;
1266
+ booking?: "COMPLETED" | "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "JOB_CANCELLED" | null | undefined;
1255
1267
  active?: {
1256
1268
  status: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
1257
1269
  } | null | undefined;
@@ -1262,7 +1274,7 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1262
1274
  lastName: string;
1263
1275
  } | null | undefined;
1264
1276
  } | undefined;
1265
- occupancyStatus?: "BOOKED" | "ACTIVE" | null | undefined;
1277
+ occupancyStatus?: "ACTIVE" | "BOOKED" | null | undefined;
1266
1278
  workingUntil?: string | Date | null | undefined;
1267
1279
  blacklistReason?: string | null | undefined;
1268
1280
  trades?: {
@@ -1274,11 +1286,11 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1274
1286
  }[] | null | undefined;
1275
1287
  qualifications?: {
1276
1288
  id: string;
1289
+ createdAt: string | Date;
1277
1290
  proofDocumentFileId: string | null;
1278
1291
  referenceNumber: string | null;
1279
1292
  qualificationId: string;
1280
1293
  qualificationTypeId: string | null;
1281
- createdAt: string | Date;
1282
1294
  updatedAt: string | Date;
1283
1295
  issueDate?: string | Date | null | undefined;
1284
1296
  expiryDate?: string | Date | null | undefined;
@@ -1288,13 +1300,13 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1288
1300
  createdAt: string | Date;
1289
1301
  updatedAt: string | Date;
1290
1302
  phoneNumber: string;
1291
- isPrimary?: boolean | undefined;
1292
1303
  description?: string | null | undefined;
1304
+ isPrimary?: boolean | undefined;
1293
1305
  }[] | null | undefined;
1294
1306
  idDocuments?: {
1295
1307
  id: string;
1296
- expiryDate?: string | Date | null | undefined;
1297
1308
  createdAt?: string | Date | undefined;
1309
+ expiryDate?: string | Date | null | undefined;
1298
1310
  updatedAt?: string | Date | undefined;
1299
1311
  fileId?: string | null | undefined;
1300
1312
  documentType?: "unknown" | "passport" | "id_card" | "driving_license" | null | undefined;
@@ -1302,8 +1314,10 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1302
1314
  }[] | undefined;
1303
1315
  };
1304
1316
  jobCards: {
1305
- status: "AVAILABLE" | "NOT_AVAILABLE";
1306
1317
  id: string;
1318
+ status: "AVAILABLE" | "NOT_AVAILABLE";
1319
+ createdAt: string | Date;
1320
+ description: string;
1307
1321
  pay: {
1308
1322
  rateUnit: "DAILY" | "HOURLY";
1309
1323
  rate?: number | null | undefined;
@@ -1311,10 +1325,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1311
1325
  rateMax?: number | null | undefined;
1312
1326
  receivedRate?: number | null | undefined;
1313
1327
  };
1314
- createdAt: string | Date;
1315
1328
  updatedAt: string | Date;
1316
1329
  tradeId: string;
1317
- description: string;
1318
1330
  numberOfPositions: number;
1319
1331
  distanceKm?: number | null | undefined;
1320
1332
  startDate?: string | null | undefined;
@@ -1331,8 +1343,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1331
1343
  phoneNumbers?: {
1332
1344
  id: string;
1333
1345
  phoneNumber: string;
1334
- isPrimary?: boolean | undefined;
1335
1346
  description?: string | null | undefined;
1347
+ isPrimary?: boolean | undefined;
1336
1348
  }[] | undefined;
1337
1349
  deletedAt?: string | Date | null | undefined;
1338
1350
  } | null | undefined;
@@ -1343,8 +1355,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1343
1355
  qualificationTypeId?: string | null | undefined;
1344
1356
  }[] | null | undefined;
1345
1357
  collaboration?: {
1346
- status?: string | null | undefined;
1347
1358
  id?: string | null | undefined;
1359
+ status?: string | null | undefined;
1348
1360
  userId?: string | null | undefined;
1349
1361
  client?: {
1350
1362
  id: string;
@@ -1361,8 +1373,8 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1361
1373
  phoneNumbers?: {
1362
1374
  id: string;
1363
1375
  phoneNumber: string;
1364
- isPrimary?: boolean | undefined;
1365
1376
  description?: string | null | undefined;
1377
+ isPrimary?: boolean | undefined;
1366
1378
  }[] | undefined;
1367
1379
  deletedAt?: string | Date | null | undefined;
1368
1380
  } | null | undefined;
@@ -1370,6 +1382,9 @@ export declare const ConsentJobsResponseSchema: z.ZodObject<{
1370
1382
  createdById?: string | null | undefined;
1371
1383
  creationSource?: "MANUAL" | "BOT" | null | undefined;
1372
1384
  filledPositions?: number | undefined;
1385
+ sourceMessageDeletedAt?: string | Date | null | undefined;
1386
+ minimumRateDeletionExemptAt?: string | Date | null | undefined;
1387
+ minimumRateDeletionExemptById?: string | null | undefined;
1373
1388
  }[];
1374
1389
  }>;
1375
1390
  export type ConsentJobsResponse = z.infer<typeof ConsentJobsResponseSchema>;
@@ -1379,27 +1394,27 @@ export declare const ConsentAndOfferSchema: z.ZodObject<{
1379
1394
  subjectId: z.ZodString;
1380
1395
  jobId: z.ZodString;
1381
1396
  }, "strip", z.ZodTypeAny, {
1397
+ jobId: string;
1382
1398
  subjectKind: "OWNED" | "CURATED";
1383
1399
  subjectId: string;
1384
- jobId: string;
1385
1400
  }, {
1401
+ jobId: string;
1386
1402
  subjectKind: "OWNED" | "CURATED";
1387
1403
  subjectId: string;
1388
- jobId: string;
1389
1404
  }>, "many">;
1390
1405
  channel: z.ZodOptional<z.ZodEnum<["WHATSAPP", "PHONE"]>>;
1391
1406
  }, "strip", z.ZodTypeAny, {
1392
1407
  tuples: {
1408
+ jobId: string;
1393
1409
  subjectKind: "OWNED" | "CURATED";
1394
1410
  subjectId: string;
1395
- jobId: string;
1396
1411
  }[];
1397
1412
  channel?: "WHATSAPP" | "PHONE" | undefined;
1398
1413
  }, {
1399
1414
  tuples: {
1415
+ jobId: string;
1400
1416
  subjectKind: "OWNED" | "CURATED";
1401
1417
  subjectId: string;
1402
- jobId: string;
1403
1418
  }[];
1404
1419
  channel?: "WHATSAPP" | "PHONE" | undefined;
1405
1420
  }>;
@@ -1471,7 +1486,7 @@ export declare const consentQueueContract: {
1471
1486
  method: "GET";
1472
1487
  path: "/v2/curated-worker-leads/consent-queue/next";
1473
1488
  responses: {
1474
- 500: z.ZodObject<{
1489
+ 400: z.ZodObject<{
1475
1490
  statusCode: z.ZodNumber;
1476
1491
  message: z.ZodString;
1477
1492
  code: z.ZodString;
@@ -1496,7 +1511,7 @@ export declare const consentQueueContract: {
1496
1511
  details?: unknown;
1497
1512
  correlationId?: string | undefined;
1498
1513
  }>;
1499
- 400: z.ZodObject<{
1514
+ 401: z.ZodObject<{
1500
1515
  statusCode: z.ZodNumber;
1501
1516
  message: z.ZodString;
1502
1517
  code: z.ZodString;
@@ -1521,7 +1536,7 @@ export declare const consentQueueContract: {
1521
1536
  details?: unknown;
1522
1537
  correlationId?: string | undefined;
1523
1538
  }>;
1524
- 401: z.ZodObject<{
1539
+ 500: z.ZodObject<{
1525
1540
  statusCode: z.ZodNumber;
1526
1541
  message: z.ZodString;
1527
1542
  code: z.ZodString;
@@ -1612,7 +1627,7 @@ export declare const consentQueueContract: {
1612
1627
  method: "GET";
1613
1628
  path: "/v2/curated-worker-leads/consent-queue/status";
1614
1629
  responses: {
1615
- 500: z.ZodObject<{
1630
+ 400: z.ZodObject<{
1616
1631
  statusCode: z.ZodNumber;
1617
1632
  message: z.ZodString;
1618
1633
  code: z.ZodString;
@@ -1637,7 +1652,7 @@ export declare const consentQueueContract: {
1637
1652
  details?: unknown;
1638
1653
  correlationId?: string | undefined;
1639
1654
  }>;
1640
- 400: z.ZodObject<{
1655
+ 401: z.ZodObject<{
1641
1656
  statusCode: z.ZodNumber;
1642
1657
  message: z.ZodString;
1643
1658
  code: z.ZodString;
@@ -1662,7 +1677,7 @@ export declare const consentQueueContract: {
1662
1677
  details?: unknown;
1663
1678
  correlationId?: string | undefined;
1664
1679
  }>;
1665
- 401: z.ZodObject<{
1680
+ 500: z.ZodObject<{
1666
1681
  statusCode: z.ZodNumber;
1667
1682
  message: z.ZodString;
1668
1683
  code: z.ZodString;
@@ -1740,7 +1755,7 @@ export declare const consentQueueContract: {
1740
1755
  body: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
1741
1756
  path: "/v2/curated-worker-leads/consent-queue/:id/consent";
1742
1757
  responses: {
1743
- 500: z.ZodObject<{
1758
+ 400: z.ZodObject<{
1744
1759
  statusCode: z.ZodNumber;
1745
1760
  message: z.ZodString;
1746
1761
  code: z.ZodString;
@@ -1765,7 +1780,7 @@ export declare const consentQueueContract: {
1765
1780
  details?: unknown;
1766
1781
  correlationId?: string | undefined;
1767
1782
  }>;
1768
- 400: z.ZodObject<{
1783
+ 401: z.ZodObject<{
1769
1784
  statusCode: z.ZodNumber;
1770
1785
  message: z.ZodString;
1771
1786
  code: z.ZodString;
@@ -1790,7 +1805,7 @@ export declare const consentQueueContract: {
1790
1805
  details?: unknown;
1791
1806
  correlationId?: string | undefined;
1792
1807
  }>;
1793
- 401: z.ZodObject<{
1808
+ 500: z.ZodObject<{
1794
1809
  statusCode: z.ZodNumber;
1795
1810
  message: z.ZodString;
1796
1811
  code: z.ZodString;
@@ -1949,7 +1964,7 @@ export declare const consentQueueContract: {
1949
1964
  }>;
1950
1965
  path: "/v2/curated-worker-leads/consent-queue/:id/decline";
1951
1966
  responses: {
1952
- 500: z.ZodObject<{
1967
+ 400: z.ZodObject<{
1953
1968
  statusCode: z.ZodNumber;
1954
1969
  message: z.ZodString;
1955
1970
  code: z.ZodString;
@@ -1974,7 +1989,7 @@ export declare const consentQueueContract: {
1974
1989
  details?: unknown;
1975
1990
  correlationId?: string | undefined;
1976
1991
  }>;
1977
- 400: z.ZodObject<{
1992
+ 401: z.ZodObject<{
1978
1993
  statusCode: z.ZodNumber;
1979
1994
  message: z.ZodString;
1980
1995
  code: z.ZodString;
@@ -1999,7 +2014,7 @@ export declare const consentQueueContract: {
1999
2014
  details?: unknown;
2000
2015
  correlationId?: string | undefined;
2001
2016
  }>;
2002
- 401: z.ZodObject<{
2017
+ 500: z.ZodObject<{
2003
2018
  statusCode: z.ZodNumber;
2004
2019
  message: z.ZodString;
2005
2020
  code: z.ZodString;
@@ -2158,7 +2173,7 @@ export declare const consentQueueContract: {
2158
2173
  }>;
2159
2174
  path: "/v2/curated-worker-leads/consent-queue/:id/mark-phone-invalid";
2160
2175
  responses: {
2161
- 500: z.ZodObject<{
2176
+ 400: z.ZodObject<{
2162
2177
  statusCode: z.ZodNumber;
2163
2178
  message: z.ZodString;
2164
2179
  code: z.ZodString;
@@ -2183,7 +2198,7 @@ export declare const consentQueueContract: {
2183
2198
  details?: unknown;
2184
2199
  correlationId?: string | undefined;
2185
2200
  }>;
2186
- 400: z.ZodObject<{
2201
+ 401: z.ZodObject<{
2187
2202
  statusCode: z.ZodNumber;
2188
2203
  message: z.ZodString;
2189
2204
  code: z.ZodString;
@@ -2208,7 +2223,7 @@ export declare const consentQueueContract: {
2208
2223
  details?: unknown;
2209
2224
  correlationId?: string | undefined;
2210
2225
  }>;
2211
- 401: z.ZodObject<{
2226
+ 500: z.ZodObject<{
2212
2227
  statusCode: z.ZodNumber;
2213
2228
  message: z.ZodString;
2214
2229
  code: z.ZodString;
@@ -2357,7 +2372,7 @@ export declare const consentQueueContract: {
2357
2372
  method: "GET";
2358
2373
  path: "/v2/curated-worker-leads/consent-queue/jobs";
2359
2374
  responses: {
2360
- 500: z.ZodObject<{
2375
+ 400: z.ZodObject<{
2361
2376
  statusCode: z.ZodNumber;
2362
2377
  message: z.ZodString;
2363
2378
  code: z.ZodString;
@@ -2382,7 +2397,7 @@ export declare const consentQueueContract: {
2382
2397
  details?: unknown;
2383
2398
  correlationId?: string | undefined;
2384
2399
  }>;
2385
- 400: z.ZodObject<{
2400
+ 401: z.ZodObject<{
2386
2401
  statusCode: z.ZodNumber;
2387
2402
  message: z.ZodString;
2388
2403
  code: z.ZodString;
@@ -2407,7 +2422,7 @@ export declare const consentQueueContract: {
2407
2422
  details?: unknown;
2408
2423
  correlationId?: string | undefined;
2409
2424
  }>;
2410
- 401: z.ZodObject<{
2425
+ 500: z.ZodObject<{
2411
2426
  statusCode: z.ZodNumber;
2412
2427
  message: z.ZodString;
2413
2428
  code: z.ZodString;
@@ -2553,7 +2568,7 @@ export declare const consentQueueContract: {
2553
2568
  }>>>;
2554
2569
  }, "strip", z.ZodTypeAny, {
2555
2570
  bookingId?: string | null | undefined;
2556
- booking?: "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | "CANCELLED" | "JOB_CANCELLED" | null | undefined;
2571
+ booking?: "COMPLETED" | "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "JOB_CANCELLED" | null | undefined;
2557
2572
  active?: {
2558
2573
  status: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
2559
2574
  } | null | undefined;
@@ -2565,7 +2580,7 @@ export declare const consentQueueContract: {
2565
2580
  } | null | undefined;
2566
2581
  }, {
2567
2582
  bookingId?: string | null | undefined;
2568
- booking?: "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | "CANCELLED" | "JOB_CANCELLED" | null | undefined;
2583
+ booking?: "COMPLETED" | "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "JOB_CANCELLED" | null | undefined;
2569
2584
  active?: {
2570
2585
  status: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
2571
2586
  } | null | undefined;
@@ -2633,21 +2648,21 @@ export declare const consentQueueContract: {
2633
2648
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2634
2649
  }, "strip", z.ZodTypeAny, {
2635
2650
  id: string;
2651
+ createdAt: string;
2636
2652
  proofDocumentFileId: string | null;
2637
2653
  referenceNumber: string | null;
2638
2654
  qualificationId: string;
2639
2655
  qualificationTypeId: string | null;
2640
- createdAt: string;
2641
2656
  updatedAt: string;
2642
2657
  issueDate?: string | null | undefined;
2643
2658
  expiryDate?: string | null | undefined;
2644
2659
  }, {
2645
2660
  id: string;
2661
+ createdAt: string | Date;
2646
2662
  proofDocumentFileId: string | null;
2647
2663
  referenceNumber: string | null;
2648
2664
  qualificationId: string;
2649
2665
  qualificationTypeId: string | null;
2650
- createdAt: string | Date;
2651
2666
  updatedAt: string | Date;
2652
2667
  issueDate?: string | Date | null | undefined;
2653
2668
  expiryDate?: string | Date | null | undefined;
@@ -2672,8 +2687,8 @@ export declare const consentQueueContract: {
2672
2687
  createdAt: string | Date;
2673
2688
  updatedAt: string | Date;
2674
2689
  phoneNumber: string;
2675
- isPrimary?: boolean | undefined;
2676
2690
  description?: string | null | undefined;
2691
+ isPrimary?: boolean | undefined;
2677
2692
  }>, "many">>>;
2678
2693
  idDocuments: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2679
2694
  id: z.ZodString;
@@ -2685,16 +2700,16 @@ export declare const consentQueueContract: {
2685
2700
  updatedAt: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
2686
2701
  }, "strip", z.ZodTypeAny, {
2687
2702
  id: string;
2688
- expiryDate?: string | null | undefined;
2689
2703
  createdAt?: string | undefined;
2704
+ expiryDate?: string | null | undefined;
2690
2705
  updatedAt?: string | undefined;
2691
2706
  fileId?: string | null | undefined;
2692
2707
  documentType?: "unknown" | "passport" | "id_card" | "driving_license" | null | undefined;
2693
2708
  documentNumber?: string | null | undefined;
2694
2709
  }, {
2695
2710
  id: string;
2696
- expiryDate?: string | Date | null | undefined;
2697
2711
  createdAt?: string | Date | undefined;
2712
+ expiryDate?: string | Date | null | undefined;
2698
2713
  updatedAt?: string | Date | undefined;
2699
2714
  fileId?: string | null | undefined;
2700
2715
  documentType?: "unknown" | "passport" | "id_card" | "driving_license" | null | undefined;
@@ -2702,8 +2717,8 @@ export declare const consentQueueContract: {
2702
2717
  }>, "many">>>;
2703
2718
  }, "strip", z.ZodTypeAny, {
2704
2719
  id: string;
2705
- firstName: string;
2706
2720
  createdAt: string;
2721
+ firstName: string;
2707
2722
  updatedAt: string;
2708
2723
  hasTools: boolean | null;
2709
2724
  hasPpe: boolean | null;
@@ -2718,8 +2733,8 @@ export declare const consentQueueContract: {
2718
2733
  } | null;
2719
2734
  idDocuments: {
2720
2735
  id: string;
2721
- expiryDate?: string | null | undefined;
2722
2736
  createdAt?: string | undefined;
2737
+ expiryDate?: string | null | undefined;
2723
2738
  updatedAt?: string | undefined;
2724
2739
  fileId?: string | null | undefined;
2725
2740
  documentType?: "unknown" | "passport" | "id_card" | "driving_license" | null | undefined;
@@ -2766,7 +2781,7 @@ export declare const consentQueueContract: {
2766
2781
  } | null | undefined;
2767
2782
  liveStatus?: {
2768
2783
  bookingId?: string | null | undefined;
2769
- booking?: "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | "CANCELLED" | "JOB_CANCELLED" | null | undefined;
2784
+ booking?: "COMPLETED" | "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "JOB_CANCELLED" | null | undefined;
2770
2785
  active?: {
2771
2786
  status: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
2772
2787
  } | null | undefined;
@@ -2777,7 +2792,7 @@ export declare const consentQueueContract: {
2777
2792
  lastName: string;
2778
2793
  } | null | undefined;
2779
2794
  } | undefined;
2780
- occupancyStatus?: "BOOKED" | "ACTIVE" | null | undefined;
2795
+ occupancyStatus?: "ACTIVE" | "BOOKED" | null | undefined;
2781
2796
  workingUntil?: string | null | undefined;
2782
2797
  blacklistReason?: string | null | undefined;
2783
2798
  trades?: {
@@ -2789,11 +2804,11 @@ export declare const consentQueueContract: {
2789
2804
  }[] | null | undefined;
2790
2805
  qualifications?: {
2791
2806
  id: string;
2807
+ createdAt: string;
2792
2808
  proofDocumentFileId: string | null;
2793
2809
  referenceNumber: string | null;
2794
2810
  qualificationId: string;
2795
2811
  qualificationTypeId: string | null;
2796
- createdAt: string;
2797
2812
  updatedAt: string;
2798
2813
  issueDate?: string | null | undefined;
2799
2814
  expiryDate?: string | null | undefined;
@@ -2808,8 +2823,8 @@ export declare const consentQueueContract: {
2808
2823
  }[] | null | undefined;
2809
2824
  }, {
2810
2825
  id: string;
2811
- firstName: string;
2812
2826
  createdAt: string | Date;
2827
+ firstName: string;
2813
2828
  updatedAt: string | Date;
2814
2829
  hasTools: boolean | null;
2815
2830
  hasPpe: boolean | null;
@@ -2863,7 +2878,7 @@ export declare const consentQueueContract: {
2863
2878
  } | null | undefined;
2864
2879
  liveStatus?: {
2865
2880
  bookingId?: string | null | undefined;
2866
- booking?: "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | "CANCELLED" | "JOB_CANCELLED" | null | undefined;
2881
+ booking?: "COMPLETED" | "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "JOB_CANCELLED" | null | undefined;
2867
2882
  active?: {
2868
2883
  status: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
2869
2884
  } | null | undefined;
@@ -2874,7 +2889,7 @@ export declare const consentQueueContract: {
2874
2889
  lastName: string;
2875
2890
  } | null | undefined;
2876
2891
  } | undefined;
2877
- occupancyStatus?: "BOOKED" | "ACTIVE" | null | undefined;
2892
+ occupancyStatus?: "ACTIVE" | "BOOKED" | null | undefined;
2878
2893
  workingUntil?: string | Date | null | undefined;
2879
2894
  blacklistReason?: string | null | undefined;
2880
2895
  trades?: {
@@ -2886,11 +2901,11 @@ export declare const consentQueueContract: {
2886
2901
  }[] | null | undefined;
2887
2902
  qualifications?: {
2888
2903
  id: string;
2904
+ createdAt: string | Date;
2889
2905
  proofDocumentFileId: string | null;
2890
2906
  referenceNumber: string | null;
2891
2907
  qualificationId: string;
2892
2908
  qualificationTypeId: string | null;
2893
- createdAt: string | Date;
2894
2909
  updatedAt: string | Date;
2895
2910
  issueDate?: string | Date | null | undefined;
2896
2911
  expiryDate?: string | Date | null | undefined;
@@ -2900,13 +2915,13 @@ export declare const consentQueueContract: {
2900
2915
  createdAt: string | Date;
2901
2916
  updatedAt: string | Date;
2902
2917
  phoneNumber: string;
2903
- isPrimary?: boolean | undefined;
2904
2918
  description?: string | null | undefined;
2919
+ isPrimary?: boolean | undefined;
2905
2920
  }[] | null | undefined;
2906
2921
  idDocuments?: {
2907
2922
  id: string;
2908
- expiryDate?: string | Date | null | undefined;
2909
2923
  createdAt?: string | Date | undefined;
2924
+ expiryDate?: string | Date | null | undefined;
2910
2925
  updatedAt?: string | Date | undefined;
2911
2926
  fileId?: string | null | undefined;
2912
2927
  documentType?: "unknown" | "passport" | "id_card" | "driving_license" | null | undefined;
@@ -2923,19 +2938,19 @@ export declare const consentQueueContract: {
2923
2938
  status: z.ZodEnum<["NEW", "TOO_FAR", "NOT_INTERESTED", "OFFER_SENT", "BOOKED"]>;
2924
2939
  statusUpdatedAt: z.ZodNullable<z.ZodString>;
2925
2940
  }, "strip", z.ZodTypeAny, {
2926
- subjectKind: "OWNED" | "CURATED";
2927
- subjectId: string;
2928
2941
  jobId: string;
2929
2942
  status: "NEW" | "TOO_FAR" | "NOT_INTERESTED" | "OFFER_SENT" | "BOOKED";
2943
+ subjectKind: "OWNED" | "CURATED";
2944
+ subjectId: string;
2930
2945
  distanceKm: number | null;
2931
2946
  driveMinutes: number | null;
2932
2947
  transitMinutes: number | null;
2933
2948
  statusUpdatedAt: string | null;
2934
2949
  }, {
2935
- subjectKind: "OWNED" | "CURATED";
2936
- subjectId: string;
2937
2950
  jobId: string;
2938
2951
  status: "NEW" | "TOO_FAR" | "NOT_INTERESTED" | "OFFER_SENT" | "BOOKED";
2952
+ subjectKind: "OWNED" | "CURATED";
2953
+ subjectId: string;
2939
2954
  distanceKm: number | null;
2940
2955
  driveMinutes: number | null;
2941
2956
  transitMinutes: number | null;
@@ -3037,8 +3052,8 @@ export declare const consentQueueContract: {
3037
3052
  }, {
3038
3053
  id: string;
3039
3054
  phoneNumber: string;
3040
- isPrimary?: boolean | undefined;
3041
3055
  description?: string | null | undefined;
3056
+ isPrimary?: boolean | undefined;
3042
3057
  }>, "many">>>;
3043
3058
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
3044
3059
  }, "strip", z.ZodTypeAny, {
@@ -3059,14 +3074,14 @@ export declare const consentQueueContract: {
3059
3074
  phoneNumbers?: {
3060
3075
  id: string;
3061
3076
  phoneNumber: string;
3062
- isPrimary?: boolean | undefined;
3063
3077
  description?: string | null | undefined;
3078
+ isPrimary?: boolean | undefined;
3064
3079
  }[] | undefined;
3065
3080
  deletedAt?: string | Date | null | undefined;
3066
3081
  }>>>;
3067
3082
  }, "strip", z.ZodTypeAny, {
3068
- status?: string | null | undefined;
3069
3083
  id?: string | null | undefined;
3084
+ status?: string | null | undefined;
3070
3085
  userId?: string | null | undefined;
3071
3086
  client?: {
3072
3087
  id: string;
@@ -3089,8 +3104,8 @@ export declare const consentQueueContract: {
3089
3104
  deletedAt?: string | null | undefined;
3090
3105
  } | null | undefined;
3091
3106
  }, {
3092
- status?: string | null | undefined;
3093
3107
  id?: string | null | undefined;
3108
+ status?: string | null | undefined;
3094
3109
  userId?: string | null | undefined;
3095
3110
  client?: {
3096
3111
  id: string;
@@ -3107,8 +3122,8 @@ export declare const consentQueueContract: {
3107
3122
  phoneNumbers?: {
3108
3123
  id: string;
3109
3124
  phoneNumber: string;
3110
- isPrimary?: boolean | undefined;
3111
3125
  description?: string | null | undefined;
3126
+ isPrimary?: boolean | undefined;
3112
3127
  }[] | undefined;
3113
3128
  deletedAt?: string | Date | null | undefined;
3114
3129
  } | null | undefined;
@@ -3133,8 +3148,8 @@ export declare const consentQueueContract: {
3133
3148
  }, {
3134
3149
  id: string;
3135
3150
  phoneNumber: string;
3136
- isPrimary?: boolean | undefined;
3137
3151
  description?: string | null | undefined;
3152
+ isPrimary?: boolean | undefined;
3138
3153
  }>, "many">>>;
3139
3154
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
3140
3155
  }, "strip", z.ZodTypeAny, {
@@ -3155,8 +3170,8 @@ export declare const consentQueueContract: {
3155
3170
  phoneNumbers?: {
3156
3171
  id: string;
3157
3172
  phoneNumber: string;
3158
- isPrimary?: boolean | undefined;
3159
3173
  description?: string | null | undefined;
3174
+ isPrimary?: boolean | undefined;
3160
3175
  }[] | undefined;
3161
3176
  deletedAt?: string | Date | null | undefined;
3162
3177
  }>>>;
@@ -3164,9 +3179,14 @@ export declare const consentQueueContract: {
3164
3179
  distanceKm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3165
3180
  filledPositions: z.ZodDefault<z.ZodNumber>;
3166
3181
  startDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3182
+ sourceMessageDeletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
3183
+ minimumRateDeletionExemptAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
3184
+ minimumRateDeletionExemptById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3167
3185
  }, "strip", z.ZodTypeAny, {
3168
- status: "AVAILABLE" | "NOT_AVAILABLE";
3169
3186
  id: string;
3187
+ status: "AVAILABLE" | "NOT_AVAILABLE";
3188
+ createdAt: string;
3189
+ description: string;
3170
3190
  pay: {
3171
3191
  rateUnit: "DAILY" | "HOURLY";
3172
3192
  isNegotiable: boolean;
@@ -3174,10 +3194,8 @@ export declare const consentQueueContract: {
3174
3194
  rateMax?: number | null | undefined;
3175
3195
  receivedRate?: number | null | undefined;
3176
3196
  };
3177
- createdAt: string;
3178
3197
  updatedAt: string;
3179
3198
  tradeId: string;
3180
- description: string;
3181
3199
  numberOfPositions: number;
3182
3200
  filledPositions: number;
3183
3201
  distanceKm?: number | null | undefined;
@@ -3207,8 +3225,8 @@ export declare const consentQueueContract: {
3207
3225
  qualificationTypeId?: string | null | undefined;
3208
3226
  }[] | null | undefined;
3209
3227
  collaboration?: {
3210
- status?: string | null | undefined;
3211
3228
  id?: string | null | undefined;
3229
+ status?: string | null | undefined;
3212
3230
  userId?: string | null | undefined;
3213
3231
  client?: {
3214
3232
  id: string;
@@ -3233,9 +3251,14 @@ export declare const consentQueueContract: {
3233
3251
  } | null | undefined;
3234
3252
  createdById?: string | null | undefined;
3235
3253
  creationSource?: "MANUAL" | "BOT" | null | undefined;
3254
+ sourceMessageDeletedAt?: string | null | undefined;
3255
+ minimumRateDeletionExemptAt?: string | null | undefined;
3256
+ minimumRateDeletionExemptById?: string | null | undefined;
3236
3257
  }, {
3237
- status: "AVAILABLE" | "NOT_AVAILABLE";
3238
3258
  id: string;
3259
+ status: "AVAILABLE" | "NOT_AVAILABLE";
3260
+ createdAt: string | Date;
3261
+ description: string;
3239
3262
  pay: {
3240
3263
  rateUnit: "DAILY" | "HOURLY";
3241
3264
  rate?: number | null | undefined;
@@ -3243,10 +3266,8 @@ export declare const consentQueueContract: {
3243
3266
  rateMax?: number | null | undefined;
3244
3267
  receivedRate?: number | null | undefined;
3245
3268
  };
3246
- createdAt: string | Date;
3247
3269
  updatedAt: string | Date;
3248
3270
  tradeId: string;
3249
- description: string;
3250
3271
  numberOfPositions: number;
3251
3272
  distanceKm?: number | null | undefined;
3252
3273
  startDate?: string | null | undefined;
@@ -3263,8 +3284,8 @@ export declare const consentQueueContract: {
3263
3284
  phoneNumbers?: {
3264
3285
  id: string;
3265
3286
  phoneNumber: string;
3266
- isPrimary?: boolean | undefined;
3267
3287
  description?: string | null | undefined;
3288
+ isPrimary?: boolean | undefined;
3268
3289
  }[] | undefined;
3269
3290
  deletedAt?: string | Date | null | undefined;
3270
3291
  } | null | undefined;
@@ -3275,8 +3296,8 @@ export declare const consentQueueContract: {
3275
3296
  qualificationTypeId?: string | null | undefined;
3276
3297
  }[] | null | undefined;
3277
3298
  collaboration?: {
3278
- status?: string | null | undefined;
3279
3299
  id?: string | null | undefined;
3300
+ status?: string | null | undefined;
3280
3301
  userId?: string | null | undefined;
3281
3302
  client?: {
3282
3303
  id: string;
@@ -3293,8 +3314,8 @@ export declare const consentQueueContract: {
3293
3314
  phoneNumbers?: {
3294
3315
  id: string;
3295
3316
  phoneNumber: string;
3296
- isPrimary?: boolean | undefined;
3297
3317
  description?: string | null | undefined;
3318
+ isPrimary?: boolean | undefined;
3298
3319
  }[] | undefined;
3299
3320
  deletedAt?: string | Date | null | undefined;
3300
3321
  } | null | undefined;
@@ -3302,13 +3323,16 @@ export declare const consentQueueContract: {
3302
3323
  createdById?: string | null | undefined;
3303
3324
  creationSource?: "MANUAL" | "BOT" | null | undefined;
3304
3325
  filledPositions?: number | undefined;
3326
+ sourceMessageDeletedAt?: string | Date | null | undefined;
3327
+ minimumRateDeletionExemptAt?: string | Date | null | undefined;
3328
+ minimumRateDeletionExemptById?: string | null | undefined;
3305
3329
  }>, "many">;
3306
3330
  }, "strip", z.ZodTypeAny, {
3307
3331
  matches: {
3308
- subjectKind: "OWNED" | "CURATED";
3309
- subjectId: string;
3310
3332
  jobId: string;
3311
3333
  status: "NEW" | "TOO_FAR" | "NOT_INTERESTED" | "OFFER_SENT" | "BOOKED";
3334
+ subjectKind: "OWNED" | "CURATED";
3335
+ subjectId: string;
3312
3336
  distanceKm: number | null;
3313
3337
  driveMinutes: number | null;
3314
3338
  transitMinutes: number | null;
@@ -3316,8 +3340,8 @@ export declare const consentQueueContract: {
3316
3340
  }[];
3317
3341
  worker: {
3318
3342
  id: string;
3319
- firstName: string;
3320
3343
  createdAt: string;
3344
+ firstName: string;
3321
3345
  updatedAt: string;
3322
3346
  hasTools: boolean | null;
3323
3347
  hasPpe: boolean | null;
@@ -3332,8 +3356,8 @@ export declare const consentQueueContract: {
3332
3356
  } | null;
3333
3357
  idDocuments: {
3334
3358
  id: string;
3335
- expiryDate?: string | null | undefined;
3336
3359
  createdAt?: string | undefined;
3360
+ expiryDate?: string | null | undefined;
3337
3361
  updatedAt?: string | undefined;
3338
3362
  fileId?: string | null | undefined;
3339
3363
  documentType?: "unknown" | "passport" | "id_card" | "driving_license" | null | undefined;
@@ -3380,7 +3404,7 @@ export declare const consentQueueContract: {
3380
3404
  } | null | undefined;
3381
3405
  liveStatus?: {
3382
3406
  bookingId?: string | null | undefined;
3383
- booking?: "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | "CANCELLED" | "JOB_CANCELLED" | null | undefined;
3407
+ booking?: "COMPLETED" | "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "JOB_CANCELLED" | null | undefined;
3384
3408
  active?: {
3385
3409
  status: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
3386
3410
  } | null | undefined;
@@ -3391,7 +3415,7 @@ export declare const consentQueueContract: {
3391
3415
  lastName: string;
3392
3416
  } | null | undefined;
3393
3417
  } | undefined;
3394
- occupancyStatus?: "BOOKED" | "ACTIVE" | null | undefined;
3418
+ occupancyStatus?: "ACTIVE" | "BOOKED" | null | undefined;
3395
3419
  workingUntil?: string | null | undefined;
3396
3420
  blacklistReason?: string | null | undefined;
3397
3421
  trades?: {
@@ -3403,11 +3427,11 @@ export declare const consentQueueContract: {
3403
3427
  }[] | null | undefined;
3404
3428
  qualifications?: {
3405
3429
  id: string;
3430
+ createdAt: string;
3406
3431
  proofDocumentFileId: string | null;
3407
3432
  referenceNumber: string | null;
3408
3433
  qualificationId: string;
3409
3434
  qualificationTypeId: string | null;
3410
- createdAt: string;
3411
3435
  updatedAt: string;
3412
3436
  issueDate?: string | null | undefined;
3413
3437
  expiryDate?: string | null | undefined;
@@ -3422,8 +3446,10 @@ export declare const consentQueueContract: {
3422
3446
  }[] | null | undefined;
3423
3447
  };
3424
3448
  jobCards: {
3425
- status: "AVAILABLE" | "NOT_AVAILABLE";
3426
3449
  id: string;
3450
+ status: "AVAILABLE" | "NOT_AVAILABLE";
3451
+ createdAt: string;
3452
+ description: string;
3427
3453
  pay: {
3428
3454
  rateUnit: "DAILY" | "HOURLY";
3429
3455
  isNegotiable: boolean;
@@ -3431,10 +3457,8 @@ export declare const consentQueueContract: {
3431
3457
  rateMax?: number | null | undefined;
3432
3458
  receivedRate?: number | null | undefined;
3433
3459
  };
3434
- createdAt: string;
3435
3460
  updatedAt: string;
3436
3461
  tradeId: string;
3437
- description: string;
3438
3462
  numberOfPositions: number;
3439
3463
  filledPositions: number;
3440
3464
  distanceKm?: number | null | undefined;
@@ -3464,8 +3488,8 @@ export declare const consentQueueContract: {
3464
3488
  qualificationTypeId?: string | null | undefined;
3465
3489
  }[] | null | undefined;
3466
3490
  collaboration?: {
3467
- status?: string | null | undefined;
3468
3491
  id?: string | null | undefined;
3492
+ status?: string | null | undefined;
3469
3493
  userId?: string | null | undefined;
3470
3494
  client?: {
3471
3495
  id: string;
@@ -3490,13 +3514,16 @@ export declare const consentQueueContract: {
3490
3514
  } | null | undefined;
3491
3515
  createdById?: string | null | undefined;
3492
3516
  creationSource?: "MANUAL" | "BOT" | null | undefined;
3517
+ sourceMessageDeletedAt?: string | null | undefined;
3518
+ minimumRateDeletionExemptAt?: string | null | undefined;
3519
+ minimumRateDeletionExemptById?: string | null | undefined;
3493
3520
  }[];
3494
3521
  }, {
3495
3522
  matches: {
3496
- subjectKind: "OWNED" | "CURATED";
3497
- subjectId: string;
3498
3523
  jobId: string;
3499
3524
  status: "NEW" | "TOO_FAR" | "NOT_INTERESTED" | "OFFER_SENT" | "BOOKED";
3525
+ subjectKind: "OWNED" | "CURATED";
3526
+ subjectId: string;
3500
3527
  distanceKm: number | null;
3501
3528
  driveMinutes: number | null;
3502
3529
  transitMinutes: number | null;
@@ -3504,8 +3531,8 @@ export declare const consentQueueContract: {
3504
3531
  }[];
3505
3532
  worker: {
3506
3533
  id: string;
3507
- firstName: string;
3508
3534
  createdAt: string | Date;
3535
+ firstName: string;
3509
3536
  updatedAt: string | Date;
3510
3537
  hasTools: boolean | null;
3511
3538
  hasPpe: boolean | null;
@@ -3559,7 +3586,7 @@ export declare const consentQueueContract: {
3559
3586
  } | null | undefined;
3560
3587
  liveStatus?: {
3561
3588
  bookingId?: string | null | undefined;
3562
- booking?: "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | "CANCELLED" | "JOB_CANCELLED" | null | undefined;
3589
+ booking?: "COMPLETED" | "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" | "CONFIRMED" | "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" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "JOB_CANCELLED" | null | undefined;
3563
3590
  active?: {
3564
3591
  status: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
3565
3592
  } | null | undefined;
@@ -3570,7 +3597,7 @@ export declare const consentQueueContract: {
3570
3597
  lastName: string;
3571
3598
  } | null | undefined;
3572
3599
  } | undefined;
3573
- occupancyStatus?: "BOOKED" | "ACTIVE" | null | undefined;
3600
+ occupancyStatus?: "ACTIVE" | "BOOKED" | null | undefined;
3574
3601
  workingUntil?: string | Date | null | undefined;
3575
3602
  blacklistReason?: string | null | undefined;
3576
3603
  trades?: {
@@ -3582,11 +3609,11 @@ export declare const consentQueueContract: {
3582
3609
  }[] | null | undefined;
3583
3610
  qualifications?: {
3584
3611
  id: string;
3612
+ createdAt: string | Date;
3585
3613
  proofDocumentFileId: string | null;
3586
3614
  referenceNumber: string | null;
3587
3615
  qualificationId: string;
3588
3616
  qualificationTypeId: string | null;
3589
- createdAt: string | Date;
3590
3617
  updatedAt: string | Date;
3591
3618
  issueDate?: string | Date | null | undefined;
3592
3619
  expiryDate?: string | Date | null | undefined;
@@ -3596,13 +3623,13 @@ export declare const consentQueueContract: {
3596
3623
  createdAt: string | Date;
3597
3624
  updatedAt: string | Date;
3598
3625
  phoneNumber: string;
3599
- isPrimary?: boolean | undefined;
3600
3626
  description?: string | null | undefined;
3627
+ isPrimary?: boolean | undefined;
3601
3628
  }[] | null | undefined;
3602
3629
  idDocuments?: {
3603
3630
  id: string;
3604
- expiryDate?: string | Date | null | undefined;
3605
3631
  createdAt?: string | Date | undefined;
3632
+ expiryDate?: string | Date | null | undefined;
3606
3633
  updatedAt?: string | Date | undefined;
3607
3634
  fileId?: string | null | undefined;
3608
3635
  documentType?: "unknown" | "passport" | "id_card" | "driving_license" | null | undefined;
@@ -3610,8 +3637,10 @@ export declare const consentQueueContract: {
3610
3637
  }[] | undefined;
3611
3638
  };
3612
3639
  jobCards: {
3613
- status: "AVAILABLE" | "NOT_AVAILABLE";
3614
3640
  id: string;
3641
+ status: "AVAILABLE" | "NOT_AVAILABLE";
3642
+ createdAt: string | Date;
3643
+ description: string;
3615
3644
  pay: {
3616
3645
  rateUnit: "DAILY" | "HOURLY";
3617
3646
  rate?: number | null | undefined;
@@ -3619,10 +3648,8 @@ export declare const consentQueueContract: {
3619
3648
  rateMax?: number | null | undefined;
3620
3649
  receivedRate?: number | null | undefined;
3621
3650
  };
3622
- createdAt: string | Date;
3623
3651
  updatedAt: string | Date;
3624
3652
  tradeId: string;
3625
- description: string;
3626
3653
  numberOfPositions: number;
3627
3654
  distanceKm?: number | null | undefined;
3628
3655
  startDate?: string | null | undefined;
@@ -3639,8 +3666,8 @@ export declare const consentQueueContract: {
3639
3666
  phoneNumbers?: {
3640
3667
  id: string;
3641
3668
  phoneNumber: string;
3642
- isPrimary?: boolean | undefined;
3643
3669
  description?: string | null | undefined;
3670
+ isPrimary?: boolean | undefined;
3644
3671
  }[] | undefined;
3645
3672
  deletedAt?: string | Date | null | undefined;
3646
3673
  } | null | undefined;
@@ -3651,8 +3678,8 @@ export declare const consentQueueContract: {
3651
3678
  qualificationTypeId?: string | null | undefined;
3652
3679
  }[] | null | undefined;
3653
3680
  collaboration?: {
3654
- status?: string | null | undefined;
3655
3681
  id?: string | null | undefined;
3682
+ status?: string | null | undefined;
3656
3683
  userId?: string | null | undefined;
3657
3684
  client?: {
3658
3685
  id: string;
@@ -3669,8 +3696,8 @@ export declare const consentQueueContract: {
3669
3696
  phoneNumbers?: {
3670
3697
  id: string;
3671
3698
  phoneNumber: string;
3672
- isPrimary?: boolean | undefined;
3673
3699
  description?: string | null | undefined;
3700
+ isPrimary?: boolean | undefined;
3674
3701
  }[] | undefined;
3675
3702
  deletedAt?: string | Date | null | undefined;
3676
3703
  } | null | undefined;
@@ -3678,6 +3705,9 @@ export declare const consentQueueContract: {
3678
3705
  createdById?: string | null | undefined;
3679
3706
  creationSource?: "MANUAL" | "BOT" | null | undefined;
3680
3707
  filledPositions?: number | undefined;
3708
+ sourceMessageDeletedAt?: string | Date | null | undefined;
3709
+ minimumRateDeletionExemptAt?: string | Date | null | undefined;
3710
+ minimumRateDeletionExemptById?: string | null | undefined;
3681
3711
  }[];
3682
3712
  }>;
3683
3713
  403: z.ZodObject<{
@@ -3751,33 +3781,33 @@ export declare const consentQueueContract: {
3751
3781
  subjectId: z.ZodString;
3752
3782
  jobId: z.ZodString;
3753
3783
  }, "strip", z.ZodTypeAny, {
3784
+ jobId: string;
3754
3785
  subjectKind: "OWNED" | "CURATED";
3755
3786
  subjectId: string;
3756
- jobId: string;
3757
3787
  }, {
3788
+ jobId: string;
3758
3789
  subjectKind: "OWNED" | "CURATED";
3759
3790
  subjectId: string;
3760
- jobId: string;
3761
3791
  }>, "many">;
3762
3792
  channel: z.ZodOptional<z.ZodEnum<["WHATSAPP", "PHONE"]>>;
3763
3793
  }, "strip", z.ZodTypeAny, {
3764
3794
  tuples: {
3795
+ jobId: string;
3765
3796
  subjectKind: "OWNED" | "CURATED";
3766
3797
  subjectId: string;
3767
- jobId: string;
3768
3798
  }[];
3769
3799
  channel?: "WHATSAPP" | "PHONE" | undefined;
3770
3800
  }, {
3771
3801
  tuples: {
3802
+ jobId: string;
3772
3803
  subjectKind: "OWNED" | "CURATED";
3773
3804
  subjectId: string;
3774
- jobId: string;
3775
3805
  }[];
3776
3806
  channel?: "WHATSAPP" | "PHONE" | undefined;
3777
3807
  }>;
3778
3808
  path: "/v2/curated-worker-leads/consent-queue/:id/consent-and-offer";
3779
3809
  responses: {
3780
- 500: z.ZodObject<{
3810
+ 400: z.ZodObject<{
3781
3811
  statusCode: z.ZodNumber;
3782
3812
  message: z.ZodString;
3783
3813
  code: z.ZodString;
@@ -3802,7 +3832,7 @@ export declare const consentQueueContract: {
3802
3832
  details?: unknown;
3803
3833
  correlationId?: string | undefined;
3804
3834
  }>;
3805
- 400: z.ZodObject<{
3835
+ 401: z.ZodObject<{
3806
3836
  statusCode: z.ZodNumber;
3807
3837
  message: z.ZodString;
3808
3838
  code: z.ZodString;
@@ -3827,7 +3857,7 @@ export declare const consentQueueContract: {
3827
3857
  details?: unknown;
3828
3858
  correlationId?: string | undefined;
3829
3859
  }>;
3830
- 401: z.ZodObject<{
3860
+ 500: z.ZodObject<{
3831
3861
  statusCode: z.ZodNumber;
3832
3862
  message: z.ZodString;
3833
3863
  code: z.ZodString;
@@ -4003,7 +4033,7 @@ export declare const consentQueueContract: {
4003
4033
  }>;
4004
4034
  path: "/v2/curated-worker-leads/consent-queue/:id/consent-and-apply";
4005
4035
  responses: {
4006
- 500: z.ZodObject<{
4036
+ 400: z.ZodObject<{
4007
4037
  statusCode: z.ZodNumber;
4008
4038
  message: z.ZodString;
4009
4039
  code: z.ZodString;
@@ -4028,7 +4058,7 @@ export declare const consentQueueContract: {
4028
4058
  details?: unknown;
4029
4059
  correlationId?: string | undefined;
4030
4060
  }>;
4031
- 400: z.ZodObject<{
4061
+ 401: z.ZodObject<{
4032
4062
  statusCode: z.ZodNumber;
4033
4063
  message: z.ZodString;
4034
4064
  code: z.ZodString;
@@ -4053,7 +4083,7 @@ export declare const consentQueueContract: {
4053
4083
  details?: unknown;
4054
4084
  correlationId?: string | undefined;
4055
4085
  }>;
4056
- 401: z.ZodObject<{
4086
+ 500: z.ZodObject<{
4057
4087
  statusCode: z.ZodNumber;
4058
4088
  message: z.ZodString;
4059
4089
  code: z.ZodString;
@@ -4203,7 +4233,7 @@ export declare const consentQueueContract: {
4203
4233
  body: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
4204
4234
  path: "/v2/curated-worker-leads/consent-queue/worker/:curatedWorkerId/bring-back";
4205
4235
  responses: {
4206
- 500: z.ZodObject<{
4236
+ 400: z.ZodObject<{
4207
4237
  statusCode: z.ZodNumber;
4208
4238
  message: z.ZodString;
4209
4239
  code: z.ZodString;
@@ -4228,7 +4258,7 @@ export declare const consentQueueContract: {
4228
4258
  details?: unknown;
4229
4259
  correlationId?: string | undefined;
4230
4260
  }>;
4231
- 400: z.ZodObject<{
4261
+ 401: z.ZodObject<{
4232
4262
  statusCode: z.ZodNumber;
4233
4263
  message: z.ZodString;
4234
4264
  code: z.ZodString;
@@ -4253,7 +4283,7 @@ export declare const consentQueueContract: {
4253
4283
  details?: unknown;
4254
4284
  correlationId?: string | undefined;
4255
4285
  }>;
4256
- 401: z.ZodObject<{
4286
+ 500: z.ZodObject<{
4257
4287
  statusCode: z.ZodNumber;
4258
4288
  message: z.ZodString;
4259
4289
  code: z.ZodString;
@@ -4359,7 +4389,7 @@ export declare const consentQueueContract: {
4359
4389
  }>;
4360
4390
  path: "/v2/curated-worker-leads/consent-queue/worker/:curatedWorkerId/re-snooze";
4361
4391
  responses: {
4362
- 500: z.ZodObject<{
4392
+ 400: z.ZodObject<{
4363
4393
  statusCode: z.ZodNumber;
4364
4394
  message: z.ZodString;
4365
4395
  code: z.ZodString;
@@ -4384,7 +4414,7 @@ export declare const consentQueueContract: {
4384
4414
  details?: unknown;
4385
4415
  correlationId?: string | undefined;
4386
4416
  }>;
4387
- 400: z.ZodObject<{
4417
+ 401: z.ZodObject<{
4388
4418
  statusCode: z.ZodNumber;
4389
4419
  message: z.ZodString;
4390
4420
  code: z.ZodString;
@@ -4409,7 +4439,7 @@ export declare const consentQueueContract: {
4409
4439
  details?: unknown;
4410
4440
  correlationId?: string | undefined;
4411
4441
  }>;
4412
- 401: z.ZodObject<{
4442
+ 500: z.ZodObject<{
4413
4443
  statusCode: z.ZodNumber;
4414
4444
  message: z.ZodString;
4415
4445
  code: z.ZodString;