@dakkitor/api-contracts 1.1.141 → 1.1.143

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 (71) hide show
  1. package/dist/abilities/first-agent.abilities.json +17 -63
  2. package/dist/abilities/second-agent.abilities.json +10 -0
  3. package/dist/actives/actives.contract.d.ts +4419 -3731
  4. package/dist/actives/actives.contract.d.ts.map +1 -1
  5. package/dist/actives/actives.contract.js +22 -0
  6. package/dist/agent-client-links/agent-client-links.contract.d.ts +1285 -1285
  7. package/dist/auth/auth.contract.d.ts +40 -28
  8. package/dist/auth/auth.contract.d.ts.map +1 -1
  9. package/dist/bookings/bookings.contract.d.ts +6499 -5929
  10. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  11. package/dist/bookings/bookings.contract.js +0 -6
  12. package/dist/call-history/call-history.contract.d.ts +717 -717
  13. package/dist/client-contacts/client-contacts.contract.d.ts +309 -309
  14. package/dist/client-contacts/client-contacts.contract.js +2 -2
  15. package/dist/clients/clients.contract.d.ts +173 -173
  16. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2328 -2328
  17. package/dist/collaborations/collaborations.contract.d.ts +2052 -2052
  18. package/dist/common/call-rating.schema.d.ts +12 -12
  19. package/dist/common/call-rating.schema.js +40 -48
  20. package/dist/common/common-schemas.d.ts +10 -4
  21. package/dist/common/common-schemas.d.ts.map +1 -1
  22. package/dist/common/common-schemas.js +2 -0
  23. package/dist/common/error-schemas.d.ts +5 -11
  24. package/dist/common/error-schemas.js +8 -11
  25. package/dist/common/openapi-metadata.d.ts +44 -54
  26. package/dist/common/openapi-metadata.js +129 -135
  27. package/dist/common/pagination-query.schema.d.ts +7 -13
  28. package/dist/common/pagination-query.schema.js +8 -11
  29. package/dist/companies/companies.contract.d.ts +26 -26
  30. package/dist/cron-executions/cron-executions.contract.d.ts +255 -7
  31. package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
  32. package/dist/cron-executions/cron-executions.contract.js +28 -0
  33. package/dist/curated-workers/curated-workers.contract.d.ts +626 -558
  34. package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
  35. package/dist/curated-workers/curated-workers.contract.js +2 -4
  36. package/dist/dashboards/agent-daily-metrics.contract.d.ts +20 -11
  37. package/dist/dashboards/agent-daily-metrics.contract.d.ts.map +1 -1
  38. package/dist/dashboards/agent-daily-metrics.contract.js +1 -0
  39. package/dist/dashboards/dashboard-widgets.contract.d.ts +92 -92
  40. package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
  41. package/dist/dashboards/dashboard-widgets.contract.js +4 -1
  42. package/dist/dashboards/dashboard.contract.d.ts +12 -12
  43. package/dist/files/files.contract.d.ts +1189 -1556
  44. package/dist/files/files.contract.js +162 -177
  45. package/dist/health/health.contract.d.ts +144 -191
  46. package/dist/health/health.contract.js +40 -53
  47. package/dist/jobs/jobs.contract.d.ts +4427 -3769
  48. package/dist/jobs/jobs.contract.d.ts.map +1 -1
  49. package/dist/jobs/jobs.contract.js +106 -17
  50. package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +114 -114
  51. package/dist/lead-assignments/lead-assignments.contract.d.ts +606 -606
  52. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +217 -217
  53. package/dist/lead-distribution/lead-distribution-config.contract.d.ts +16 -16
  54. package/dist/leads/leads.contract.d.ts +199 -199
  55. package/dist/locations/locations.contract.d.ts +28 -28
  56. package/dist/own-research/own-research.contract.d.ts +736 -736
  57. package/dist/postcodes/postcodes.contract.d.ts +6 -6
  58. package/dist/qualifications/qualifications.contract.d.ts +1387 -1898
  59. package/dist/qualifications/qualifications.contract.js +171 -193
  60. package/dist/trades/trades.contract.d.ts +763 -991
  61. package/dist/trades/trades.contract.js +89 -111
  62. package/dist/users/users.contract.d.ts +632 -285
  63. package/dist/users/users.contract.d.ts.map +1 -1
  64. package/dist/users/users.contract.js +38 -1
  65. package/dist/workers/workers.contract.d.ts +4869 -3000
  66. package/dist/workers/workers.contract.d.ts.map +1 -1
  67. package/dist/workers/workers.contract.js +285 -30
  68. package/package.json +1 -1
  69. package/dist/monitoring/monitoring.contract.d.ts +0 -615
  70. package/dist/monitoring/monitoring.contract.d.ts.map +0 -1
  71. package/dist/monitoring/monitoring.contract.js +0 -106
@@ -1 +1 @@
1
- {"version":3,"file":"workers.contract.d.ts","sourceRoot":"","sources":["../../contracts/workers/workers.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyBxB,eAAO,MAAM,kBAAkB,gEAI7B,CAAC;AAIH,eAAO,MAAM,0BAA0B,4SAwBM,CAAC;AAE9C,eAAO,MAAM,mBAAmB,+DAGM,CAAC;AAEvC,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAIhE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAElC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAExC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;EAExC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAMM,CAAC;AAErC,eAAO,MAAM,uBAAuB;;;;;;;;;EAKM,CAAC;AAE3C,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;EA6BM,CAAC;AAE7C,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;EAiBM,CAAC;AAInD,eAAO,MAAM,oBAAoB,kEAK/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EAgBM,CAAC;AAC1C,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,4BAA4B;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgNjC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.workersContractRouter = exports.WorkerImportResultSchema = exports.WorkerImportJobSchema = exports.StartWorkerImportSchema = exports.WorkerImportJobStatusSchema = exports.PaginatedWorkerResponseSchema = exports.FilterWorkerSchema = exports.UpdateWorkerSchema = exports.CreateWorkerSchema = exports.WorkerSchema = exports.WorkerLiveStatusSchema = exports.WorkerUserSchema = exports.TradeFilterSchema = exports.ShareCodeSchema = exports.UpdateWorkerIdDocumentSchema = exports.CreateWorkerIdDocumentSchema = exports.WorkerIdDocumentSchema = exports.IdDocumentTypeSchema = exports.CreateWorkerQualificationSchema = exports.WorkerQualificationSchema = exports.CreateWorkerTradeSchema = exports.WorkerTradeSchema = exports.UpsertWorkerPhoneNumberSchema = exports.CreateWorkerPhoneNumberSchema = exports.WorkerPhoneNumberSchema = exports.BooleanFilterSchema = exports.WorkerSortableFieldsSchema = exports.AvailabilitySchema = void 0;
3
+ exports.workersContractRouter = exports.WorkerImportResultSchema = exports.WorkerImportJobSchema = exports.StartWorkerImportSchema = exports.WorkerImportJobStatusSchema = exports.PaginatedWorkerResponseSchema = exports.FilterWorkerSchema = exports.FilterSuggestedMatchesSchema = exports.PromoteWorkerResponseSchema = exports.BulkLinkWorkersResponseSchema = exports.BulkLinkWorkersSchema = exports.LinkWithMergeResponseSchema = exports.LinkWithMergeSchema = exports.MergeFieldSchema = exports.LinkWorkerResponseSchema = exports.LinkWorkerSchema = exports.SuggestCuratedMatchesResponseSchema = exports.MatchFieldCountsSchema = exports.SuggestedMatchSchema = exports.MatchConfidenceSchema = exports.MatchFieldSchema = exports.CuratedWorkerMatchSummarySchema = exports.WorkerMatchSummarySchema = exports.UpdateWorkerSchema = exports.CreateWorkerSchema = exports.WorkerSchema = exports.WorkerLiveStatusSchema = exports.WorkerUserSchema = exports.TradeFilterSchema = exports.ShareCodeSchema = exports.UpdateWorkerIdDocumentSchema = exports.CreateWorkerIdDocumentSchema = exports.WorkerIdDocumentSchema = exports.IdDocumentTypeSchema = exports.CreateWorkerQualificationSchema = exports.WorkerQualificationSchema = exports.CreateWorkerTradeSchema = exports.WorkerTradeSchema = exports.UpsertWorkerPhoneNumberSchema = exports.CreateWorkerPhoneNumberSchema = exports.WorkerPhoneNumberSchema = exports.BooleanFilterSchema = exports.WorkerSortableFieldsSchema = exports.AvailabilitySchema = void 0;
4
4
  const zod_openapi_1 = require("@anatine/zod-openapi");
5
5
  const core_1 = require("@ts-rest/core");
6
6
  const zod_1 = require("zod");
@@ -126,8 +126,14 @@ exports.WorkerIdDocumentSchema = zod_1.z
126
126
  .optional()
127
127
  .nullable(),
128
128
  documentNumber: zod_1.z.string().max(100).nullable().optional(),
129
- createdAt: zod_1.z.string().datetime().optional(),
130
- updatedAt: zod_1.z.string().datetime().optional(),
129
+ createdAt: zod_1.z
130
+ .union([zod_1.z.string().datetime(), zod_1.z.date()])
131
+ .transform((val) => (val instanceof Date ? val.toISOString() : val))
132
+ .optional(),
133
+ updatedAt: zod_1.z
134
+ .union([zod_1.z.string().datetime(), zod_1.z.date()])
135
+ .transform((val) => (val instanceof Date ? val.toISOString() : val))
136
+ .optional(),
131
137
  })
132
138
  .openapi({ title: 'WorkerIdDocument' });
133
139
  exports.CreateWorkerIdDocumentSchema = zod_1.z
@@ -145,8 +151,9 @@ exports.ShareCodeSchema = zod_1.z
145
151
  .object({
146
152
  code: zod_1.z
147
153
  .string()
148
- .transform((val) => val.toUpperCase().replace(/\s/g, ''))
149
- .refine((val) => val === '' || /^[A-Z0-9]{9}$/.test(val), {
154
+ .nullable()
155
+ .transform((val) => val !== null ? val.toUpperCase().replace(/\s/g, '') : null)
156
+ .refine((val) => val === null || val === '' || /^[A-Z0-9]{9}$/.test(val), {
150
157
  message: 'Share code must be 9 alphanumeric characters (e.g., ABC 123 XYZ)',
151
158
  })
152
159
  .describe('Enter share code (e.g., ABC 123 XYZ)'),
@@ -186,8 +193,6 @@ exports.WorkerLiveStatusSchema = zod_1.z.object({
186
193
  'REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE',
187
194
  'WAITING_FOR_CONFIRMATION',
188
195
  'CONFIRMED',
189
- 'CONFIRMED_OVERBOOK',
190
- 'YELLOW_FOR_TOMORROW',
191
196
  'DIDNT_START_BECAUSE_OF_WORKER',
192
197
  'DIDNT_START_BECAUSE_OF_US',
193
198
  'DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE',
@@ -278,6 +283,16 @@ exports.WorkerSchema = zod_1.z
278
283
  shareCode: exports.ShareCodeSchema.optional().nullable().describe('Share Code'),
279
284
  liveStatus: exports.WorkerLiveStatusSchema.optional().describe('Live Status'),
280
285
  availability: exports.AvailabilitySchema.describe('Availability'),
286
+ curatedWorkerId: zod_1.z
287
+ .string()
288
+ .uuid()
289
+ .nullable()
290
+ .optional()
291
+ .describe('Curated Worker ID'),
292
+ effectiveStatus: zod_1.z
293
+ .union([exports.AvailabilitySchema, curated_workers_contract_1.CuratedWorkerStatusSchema])
294
+ .optional()
295
+ .describe('Effective status (inherited from curated worker when linked)'),
281
296
  createdByUserId: zod_1.z
282
297
  .string()
283
298
  .uuid()
@@ -433,6 +448,152 @@ exports.UpdateWorkerSchema = zod_1.z
433
448
  availability: exports.AvailabilitySchema.optional().describe('Availability'),
434
449
  })
435
450
  .openapi({ title: 'UpdateWorker' });
451
+ // --- Curated Worker Linking Schemas ---
452
+ exports.WorkerMatchSummarySchema = zod_1.z
453
+ .object({
454
+ id: zod_1.z.string().uuid().describe('Worker ID'),
455
+ firstName: zod_1.z.string().describe('First Name'),
456
+ lastName: zod_1.z.string().nullable().optional().describe('Last Name'),
457
+ email: zod_1.z.string().nullable().optional().describe('Email'),
458
+ nino: zod_1.z.string().nullable().optional().describe('NINO'),
459
+ phoneNumbers: zod_1.z
460
+ .array(exports.WorkerPhoneNumberSchema)
461
+ .optional()
462
+ .default([])
463
+ .describe('Phone Numbers'),
464
+ createdByUserId: zod_1.z
465
+ .string()
466
+ .uuid()
467
+ .nullable()
468
+ .optional()
469
+ .describe('Created By User ID'),
470
+ })
471
+ .openapi({ title: 'WorkerMatchSummary' });
472
+ exports.CuratedWorkerMatchSummarySchema = zod_1.z
473
+ .object({
474
+ id: zod_1.z.string().uuid().describe('Curated Worker ID'),
475
+ firstName: zod_1.z.string().describe('First Name'),
476
+ lastName: zod_1.z.string().describe('Last Name'),
477
+ email: zod_1.z.string().nullable().optional().describe('Email'),
478
+ nino: zod_1.z.string().nullable().optional().describe('NINO'),
479
+ phoneNumbers: zod_1.z
480
+ .array(zod_1.z.object({
481
+ id: zod_1.z.string().uuid(),
482
+ phoneNumber: zod_1.z.string(),
483
+ isPrimary: zod_1.z.boolean(),
484
+ }))
485
+ .optional()
486
+ .default([])
487
+ .describe('Phone Numbers'),
488
+ status: curated_workers_contract_1.CuratedWorkerStatusSchema.describe('Status'),
489
+ })
490
+ .openapi({ title: 'CuratedWorkerMatchSummary' });
491
+ exports.MatchFieldSchema = zod_1.z.enum(['NINO', 'EMAIL', 'PHONE']);
492
+ exports.MatchConfidenceSchema = zod_1.z.enum(['HIGH', 'MEDIUM']);
493
+ exports.SuggestedMatchSchema = zod_1.z
494
+ .object({
495
+ worker: exports.WorkerMatchSummarySchema.describe('Unlinked worker'),
496
+ suggestedCuratedWorker: exports.CuratedWorkerMatchSummarySchema.describe('Suggested curated worker match'),
497
+ matchedOn: zod_1.z.array(exports.MatchFieldSchema).describe('Fields that matched'),
498
+ confidence: exports.MatchConfidenceSchema.describe('Match confidence'),
499
+ })
500
+ .openapi({ title: 'SuggestedMatch' });
501
+ exports.MatchFieldCountsSchema = zod_1.z
502
+ .object({
503
+ NINO: zod_1.z.number().describe('Workers matched by NINO'),
504
+ EMAIL: zod_1.z.number().describe('Workers matched by email'),
505
+ PHONE: zod_1.z.number().describe('Workers matched by phone'),
506
+ })
507
+ .openapi({ title: 'MatchFieldCounts' });
508
+ exports.SuggestCuratedMatchesResponseSchema = zod_1.z
509
+ .object({
510
+ matches: zod_1.z.array(exports.SuggestedMatchSchema).describe('Match suggestions'),
511
+ matchFieldCounts: exports.MatchFieldCountsSchema.describe('Count of matches per field'),
512
+ totalCount: zod_1.z.number().describe('Total matched workers (after filter)'),
513
+ totalPages: zod_1.z.number().describe('Total pages'),
514
+ page: zod_1.z.number().describe('Current page'),
515
+ limit: zod_1.z.number().describe('Items per page'),
516
+ })
517
+ .openapi({ title: 'SuggestCuratedMatchesResponse' });
518
+ exports.LinkWorkerSchema = zod_1.z
519
+ .object({
520
+ curatedWorkerId: zod_1.z.string().uuid().describe('Curated Worker ID to link to'),
521
+ })
522
+ .openapi({ title: 'LinkWorker' });
523
+ exports.LinkWorkerResponseSchema = zod_1.z
524
+ .object({
525
+ workerId: zod_1.z.string().uuid().describe('Worker ID'),
526
+ curatedWorkerId: zod_1.z.string().uuid().describe('Linked Curated Worker ID'),
527
+ })
528
+ .openapi({ title: 'LinkWorkerResponse' });
529
+ exports.MergeFieldSchema = zod_1.z.enum([
530
+ 'firstName',
531
+ 'lastName',
532
+ 'email',
533
+ 'nino',
534
+ 'dateOfBirth',
535
+ 'bio',
536
+ 'rating',
537
+ 'hasTools',
538
+ 'hasPpe',
539
+ 'englishLevel',
540
+ 'nationality',
541
+ 'locationId',
542
+ 'transportation',
543
+ 'phoneNumbers',
544
+ 'trades',
545
+ 'qualifications',
546
+ ]);
547
+ exports.LinkWithMergeSchema = zod_1.z
548
+ .object({
549
+ curatedWorkerId: zod_1.z.string().uuid().describe('Curated Worker ID to link to'),
550
+ mergeFields: zod_1.z
551
+ .array(exports.MergeFieldSchema)
552
+ .min(0)
553
+ .describe('Fields to overwrite on curated worker from worker data'),
554
+ })
555
+ .openapi({ title: 'LinkWithMerge' });
556
+ exports.LinkWithMergeResponseSchema = zod_1.z
557
+ .object({
558
+ workerId: zod_1.z.string().uuid().describe('Worker ID'),
559
+ curatedWorkerId: zod_1.z.string().uuid().describe('Linked Curated Worker ID'),
560
+ mergedFields: zod_1.z.array(exports.MergeFieldSchema).describe('Fields that were merged'),
561
+ })
562
+ .openapi({ title: 'LinkWithMergeResponse' });
563
+ exports.BulkLinkWorkersSchema = zod_1.z
564
+ .object({
565
+ links: zod_1.z
566
+ .array(zod_1.z.object({
567
+ workerId: zod_1.z.string().uuid().describe('Worker ID'),
568
+ curatedWorkerId: zod_1.z.string().uuid().describe('Curated Worker ID'),
569
+ }))
570
+ .min(1)
571
+ .max(100)
572
+ .describe('Worker-to-CuratedWorker links'),
573
+ })
574
+ .openapi({ title: 'BulkLinkWorkers' });
575
+ exports.BulkLinkWorkersResponseSchema = zod_1.z
576
+ .object({
577
+ linked: zod_1.z.number().describe('Number of workers linked'),
578
+ })
579
+ .openapi({ title: 'BulkLinkWorkersResponse' });
580
+ exports.PromoteWorkerResponseSchema = zod_1.z
581
+ .object({
582
+ workerId: zod_1.z.string().uuid().describe('Worker ID'),
583
+ curatedWorkerId: zod_1.z
584
+ .string()
585
+ .uuid()
586
+ .describe('Newly created Curated Worker ID'),
587
+ })
588
+ .openapi({ title: 'PromoteWorkerResponse' });
589
+ exports.FilterSuggestedMatchesSchema = pagination_query_schema_1.PaginationQuerySchema.extend({
590
+ matchField: exports.MatchFieldSchema.optional().describe('Filter by match field tab'),
591
+ sortBy: zod_1.z
592
+ .enum(['workerName', 'confidence'])
593
+ .optional()
594
+ .describe('Sort column'),
595
+ sortOrder: zod_1.z.enum(['ASC', 'DESC']).optional().describe('Sort direction'),
596
+ });
436
597
  exports.FilterWorkerSchema = pagination_query_schema_1.PaginationQuerySchema.extend({
437
598
  name: zod_1.z.string().optional().describe('Search by name'),
438
599
  email: zod_1.z.string().optional().describe('Filter by email'),
@@ -465,58 +626,62 @@ exports.FilterWorkerSchema = pagination_query_schema_1.PaginationQuerySchema.ext
465
626
  .nullable()
466
627
  .describe('Sort by field'),
467
628
  sortOrder: common_schemas_1.SortOrderSchema.optional().nullable().describe('Sort order'),
629
+ curatedWorkerId: zod_1.z
630
+ .enum(['linked', 'unlinked'])
631
+ .optional()
632
+ .describe('Filter by curated worker link status'),
468
633
  });
469
634
  exports.PaginatedWorkerResponseSchema = (0, pagination_schema_1.createPaginatedResponseSchema)(exports.WorkerSchema)
470
635
  .describe('Workers retrieved successfully.')
471
636
  .openapi({ title: 'WorkersPaginatedResponse' });
472
637
  // --- Worker Import Schemas ---
473
638
  exports.WorkerImportJobStatusSchema = zod_1.z
474
- .enum(["PENDING", "PROCESSING", "COMPLETED", "FAILED"])
475
- .openapi({ title: "WorkerImportJobStatus" });
639
+ .enum(['PENDING', 'PROCESSING', 'COMPLETED', 'FAILED'])
640
+ .openapi({ title: 'WorkerImportJobStatus' });
476
641
  exports.StartWorkerImportSchema = zod_1.z
477
642
  .object({
478
- fileId: zod_1.z.string().uuid().describe("ID of the uploaded CSV file"),
643
+ fileId: zod_1.z.string().uuid().describe('ID of the uploaded CSV file'),
479
644
  })
480
- .openapi({ title: "StartWorkerImport" });
645
+ .openapi({ title: 'StartWorkerImport' });
481
646
  exports.WorkerImportJobSchema = zod_1.z
482
647
  .object({
483
- id: zod_1.z.string().uuid().describe("Import Job ID"),
484
- status: exports.WorkerImportJobStatusSchema.describe("Current status"),
485
- totalRows: zod_1.z.number().describe("Total rows in CSV"),
486
- successCount: zod_1.z.number().describe("Successfully imported rows"),
487
- failedCount: zod_1.z.number().describe("Failed rows"),
488
- skippedCount: zod_1.z.number().describe("Skipped rows (duplicates)"),
648
+ id: zod_1.z.string().uuid().describe('Import Job ID'),
649
+ status: exports.WorkerImportJobStatusSchema.describe('Current status'),
650
+ totalRows: zod_1.z.number().describe('Total rows in CSV'),
651
+ successCount: zod_1.z.number().describe('Successfully imported rows'),
652
+ failedCount: zod_1.z.number().describe('Failed rows'),
653
+ skippedCount: zod_1.z.number().describe('Skipped rows (duplicates)'),
489
654
  errorMessage: zod_1.z
490
655
  .string()
491
656
  .nullable()
492
657
  .optional()
493
- .describe("Error message if failed"),
494
- sourceFileId: zod_1.z.string().uuid().describe("Source CSV file ID"),
658
+ .describe('Error message if failed'),
659
+ sourceFileId: zod_1.z.string().uuid().describe('Source CSV file ID'),
495
660
  resultFileId: zod_1.z
496
661
  .string()
497
662
  .uuid()
498
663
  .nullable()
499
664
  .optional()
500
- .describe("Result CSV file ID"),
501
- createdByUserId: zod_1.z.string().uuid().describe("User who started the import"),
665
+ .describe('Result CSV file ID'),
666
+ createdByUserId: zod_1.z.string().uuid().describe('User who started the import'),
502
667
  createdAt: zod_1.z
503
668
  .union([zod_1.z.string().datetime(), zod_1.z.date()])
504
669
  .transform((val) => (val instanceof Date ? val.toISOString() : val))
505
- .describe("Creation timestamp"),
670
+ .describe('Creation timestamp'),
506
671
  completedAt: zod_1.z
507
672
  .union([zod_1.z.string().datetime(), zod_1.z.date()])
508
673
  .transform((val) => (val instanceof Date ? val.toISOString() : val))
509
674
  .nullable()
510
675
  .optional()
511
- .describe("Completion timestamp"),
676
+ .describe('Completion timestamp'),
512
677
  })
513
- .openapi({ title: "WorkerImportJob" });
678
+ .openapi({ title: 'WorkerImportJob' });
514
679
  exports.WorkerImportResultSchema = zod_1.z
515
680
  .object({
516
- url: zod_1.z.string().describe("Pre-signed URL to download result CSV"),
517
- mimeType: zod_1.z.string().describe("MIME type (text/csv)"),
681
+ url: zod_1.z.string().describe('Pre-signed URL to download result CSV'),
682
+ mimeType: zod_1.z.string().describe('MIME type (text/csv)'),
518
683
  })
519
- .openapi({ title: "WorkerImportResult" });
684
+ .openapi({ title: 'WorkerImportResult' });
520
685
  // --- Contract ---
521
686
  const c = (0, core_1.initContract)();
522
687
  exports.workersContractRouter = c.router({
@@ -598,7 +763,10 @@ exports.workersContractRouter = c.router({
598
763
  },
599
764
  body: exports.StartWorkerImportSchema,
600
765
  summary: 'Start a worker CSV import job',
601
- metadata: { tags: ['Workers'], openApi: { operationId: 'startWorkerImport' } },
766
+ metadata: {
767
+ tags: ['Workers'],
768
+ openApi: { operationId: 'startWorkerImport' },
769
+ },
602
770
  },
603
771
  getImportJob: {
604
772
  method: 'GET',
@@ -611,7 +779,10 @@ exports.workersContractRouter = c.router({
611
779
  id: zod_1.z.string().uuid().describe('Import Job ID'),
612
780
  }),
613
781
  summary: 'Get worker import job status',
614
- metadata: { tags: ['Workers'], openApi: { operationId: 'getWorkerImportJob' } },
782
+ metadata: {
783
+ tags: ['Workers'],
784
+ openApi: { operationId: 'getWorkerImportJob' },
785
+ },
615
786
  },
616
787
  getImportResult: {
617
788
  method: 'GET',
@@ -624,7 +795,91 @@ exports.workersContractRouter = c.router({
624
795
  id: zod_1.z.string().uuid().describe('Import Job ID'),
625
796
  }),
626
797
  summary: 'Get worker import result CSV download URL',
627
- metadata: { tags: ['Workers'], openApi: { operationId: 'getWorkerImportResult' } },
798
+ metadata: {
799
+ tags: ['Workers'],
800
+ openApi: { operationId: 'getWorkerImportResult' },
801
+ },
802
+ },
803
+ suggestCuratedMatches: {
804
+ method: 'GET',
805
+ path: '/v2/workers/suggest-curated-matches',
806
+ query: exports.FilterSuggestedMatchesSchema,
807
+ responses: {
808
+ 200: exports.SuggestCuratedMatchesResponseSchema,
809
+ },
810
+ summary: 'Suggest curated worker matches for unlinked workers (paginated)',
811
+ metadata: {
812
+ tags: ['Workers'],
813
+ openApi: { operationId: 'suggestCuratedMatches' },
814
+ },
815
+ },
816
+ linkToCuratedWorker: {
817
+ method: 'POST',
818
+ path: '/v2/workers/:id/link',
819
+ responses: {
820
+ 200: exports.LinkWorkerResponseSchema,
821
+ 404: error_schemas_1.ErrorResponseSchema,
822
+ 409: error_schemas_1.ErrorResponseSchema,
823
+ },
824
+ pathParams: zod_1.z.object({
825
+ id: zod_1.z.string().uuid().describe('Worker ID'),
826
+ }),
827
+ body: exports.LinkWorkerSchema,
828
+ summary: 'Link a worker to a curated worker',
829
+ metadata: {
830
+ tags: ['Workers'],
831
+ openApi: { operationId: 'linkWorkerToCuratedWorker' },
832
+ },
833
+ },
834
+ linkWithMerge: {
835
+ method: 'POST',
836
+ path: '/v2/workers/:id/link-with-merge',
837
+ responses: {
838
+ 200: exports.LinkWithMergeResponseSchema,
839
+ 404: error_schemas_1.ErrorResponseSchema,
840
+ 409: error_schemas_1.ErrorResponseSchema,
841
+ },
842
+ pathParams: zod_1.z.object({
843
+ id: zod_1.z.string().uuid().describe('Worker ID'),
844
+ }),
845
+ body: exports.LinkWithMergeSchema,
846
+ summary: 'Link a worker to a curated worker with field-level merge',
847
+ metadata: {
848
+ tags: ['Workers'],
849
+ openApi: { operationId: 'linkWorkerWithMerge' },
850
+ },
851
+ },
852
+ promoteWorker: {
853
+ method: 'POST',
854
+ path: '/v2/workers/:id/promote',
855
+ responses: {
856
+ 201: exports.PromoteWorkerResponseSchema,
857
+ 404: error_schemas_1.ErrorResponseSchema,
858
+ 409: error_schemas_1.ErrorResponseSchema,
859
+ },
860
+ pathParams: zod_1.z.object({
861
+ id: zod_1.z.string().uuid().describe('Worker ID'),
862
+ }),
863
+ body: c.noBody(),
864
+ summary: 'Create a curated worker from worker data and link them',
865
+ metadata: {
866
+ tags: ['Workers'],
867
+ openApi: { operationId: 'promoteWorkerToCuratedWorker' },
868
+ },
869
+ },
870
+ bulkLink: {
871
+ method: 'POST',
872
+ path: '/v2/workers/bulk-link',
873
+ responses: {
874
+ 200: exports.BulkLinkWorkersResponseSchema,
875
+ 404: error_schemas_1.ErrorResponseSchema,
876
+ },
877
+ body: exports.BulkLinkWorkersSchema,
878
+ summary: 'Bulk link workers to curated workers',
879
+ metadata: {
880
+ tags: ['Workers'],
881
+ openApi: { operationId: 'bulkLinkWorkers' },
882
+ },
628
883
  },
629
884
  }, {
630
885
  commonResponses: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dakkitor/api-contracts",
3
- "version": "1.1.141",
3
+ "version": "1.1.143",
4
4
  "description": "TypeScript API contracts using ts-rest and Zod",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",