@dakkitor/api-contracts 1.1.140 → 1.1.142
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.
- package/dist/abilities/first-agent.abilities.json +7 -4
- package/dist/abilities/second-agent.abilities.json +10 -0
- package/dist/actives/actives.contract.d.ts +3210 -1295
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +36 -2
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1285 -1285
- package/dist/auth/auth.contract.d.ts +40 -28
- package/dist/auth/auth.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.d.ts +6359 -3709
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +30 -17
- package/dist/call-history/call-history.contract.d.ts +716 -745
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.js +2 -12
- package/dist/client-contacts/client-contacts.contract.d.ts +309 -309
- package/dist/client-contacts/client-contacts.contract.js +2 -2
- package/dist/clients/clients.contract.d.ts +173 -173
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2328 -2328
- package/dist/collaborations/collaborations.contract.d.ts +2052 -2052
- package/dist/common/call-rating.schema.d.ts +12 -12
- package/dist/common/call-rating.schema.js +40 -48
- package/dist/common/common-schemas.d.ts +10 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +2 -0
- package/dist/common/error-schemas.d.ts +5 -11
- package/dist/common/error-schemas.js +8 -11
- package/dist/common/openapi-metadata.d.ts +44 -54
- package/dist/common/openapi-metadata.js +129 -135
- package/dist/common/pagination-query.schema.d.ts +7 -13
- package/dist/common/pagination-query.schema.js +8 -11
- package/dist/companies/companies.contract.d.ts +26 -26
- package/dist/cron-executions/cron-executions.contract.d.ts +255 -7
- package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.js +28 -0
- package/dist/curated-workers/curated-workers.contract.d.ts +626 -558
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/curated-workers/curated-workers.contract.js +2 -4
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +20 -11
- package/dist/dashboards/agent-daily-metrics.contract.d.ts.map +1 -1
- package/dist/dashboards/agent-daily-metrics.contract.js +1 -0
- package/dist/dashboards/dashboard-widgets.contract.d.ts +62 -62
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +4 -1
- package/dist/dashboards/dashboard.contract.d.ts +12 -12
- package/dist/files/files.contract.d.ts +1189 -1556
- package/dist/files/files.contract.js +162 -177
- package/dist/health/health.contract.d.ts +144 -191
- package/dist/health/health.contract.js +40 -53
- package/dist/jobs/jobs.contract.d.ts +4427 -3769
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +106 -17
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +114 -114
- package/dist/lead-assignments/lead-assignments.contract.d.ts +606 -606
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +217 -217
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +16 -16
- package/dist/leads/leads.contract.d.ts +167 -173
- package/dist/leads/leads.contract.d.ts.map +1 -1
- package/dist/leads/leads.contract.js +0 -4
- package/dist/locations/locations.contract.d.ts +28 -28
- package/dist/own-research/own-research.contract.d.ts +867 -867
- package/dist/postcodes/postcodes.contract.d.ts +6 -6
- package/dist/qualifications/qualifications.contract.d.ts +1387 -1898
- package/dist/qualifications/qualifications.contract.js +171 -193
- package/dist/trades/trades.contract.d.ts +763 -991
- package/dist/trades/trades.contract.js +89 -111
- package/dist/users/users.contract.d.ts +632 -285
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +38 -1
- package/dist/workers/workers.contract.d.ts +4581 -2712
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +277 -28
- package/package.json +1 -1
- package/dist/monitoring/monitoring.contract.d.ts +0 -615
- package/dist/monitoring/monitoring.contract.d.ts.map +0 -1
- 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;;;;;;;;;;;;;;;EAOM,CAAC;AAChD,MAAM,MAAM,s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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");
|
|
@@ -145,8 +145,9 @@ exports.ShareCodeSchema = zod_1.z
|
|
|
145
145
|
.object({
|
|
146
146
|
code: zod_1.z
|
|
147
147
|
.string()
|
|
148
|
-
.
|
|
149
|
-
.
|
|
148
|
+
.nullable()
|
|
149
|
+
.transform((val) => val !== null ? val.toUpperCase().replace(/\s/g, '') : null)
|
|
150
|
+
.refine((val) => val === null || val === '' || /^[A-Z0-9]{9}$/.test(val), {
|
|
150
151
|
message: 'Share code must be 9 alphanumeric characters (e.g., ABC 123 XYZ)',
|
|
151
152
|
})
|
|
152
153
|
.describe('Enter share code (e.g., ABC 123 XYZ)'),
|
|
@@ -186,8 +187,6 @@ exports.WorkerLiveStatusSchema = zod_1.z.object({
|
|
|
186
187
|
'REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE',
|
|
187
188
|
'WAITING_FOR_CONFIRMATION',
|
|
188
189
|
'CONFIRMED',
|
|
189
|
-
'CONFIRMED_OVERBOOK',
|
|
190
|
-
'YELLOW_FOR_TOMORROW',
|
|
191
190
|
'DIDNT_START_BECAUSE_OF_WORKER',
|
|
192
191
|
'DIDNT_START_BECAUSE_OF_US',
|
|
193
192
|
'DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE',
|
|
@@ -278,6 +277,16 @@ exports.WorkerSchema = zod_1.z
|
|
|
278
277
|
shareCode: exports.ShareCodeSchema.optional().nullable().describe('Share Code'),
|
|
279
278
|
liveStatus: exports.WorkerLiveStatusSchema.optional().describe('Live Status'),
|
|
280
279
|
availability: exports.AvailabilitySchema.describe('Availability'),
|
|
280
|
+
curatedWorkerId: zod_1.z
|
|
281
|
+
.string()
|
|
282
|
+
.uuid()
|
|
283
|
+
.nullable()
|
|
284
|
+
.optional()
|
|
285
|
+
.describe('Curated Worker ID'),
|
|
286
|
+
effectiveStatus: zod_1.z
|
|
287
|
+
.union([exports.AvailabilitySchema, curated_workers_contract_1.CuratedWorkerStatusSchema])
|
|
288
|
+
.optional()
|
|
289
|
+
.describe('Effective status (inherited from curated worker when linked)'),
|
|
281
290
|
createdByUserId: zod_1.z
|
|
282
291
|
.string()
|
|
283
292
|
.uuid()
|
|
@@ -433,6 +442,152 @@ exports.UpdateWorkerSchema = zod_1.z
|
|
|
433
442
|
availability: exports.AvailabilitySchema.optional().describe('Availability'),
|
|
434
443
|
})
|
|
435
444
|
.openapi({ title: 'UpdateWorker' });
|
|
445
|
+
// --- Curated Worker Linking Schemas ---
|
|
446
|
+
exports.WorkerMatchSummarySchema = zod_1.z
|
|
447
|
+
.object({
|
|
448
|
+
id: zod_1.z.string().uuid().describe('Worker ID'),
|
|
449
|
+
firstName: zod_1.z.string().describe('First Name'),
|
|
450
|
+
lastName: zod_1.z.string().nullable().optional().describe('Last Name'),
|
|
451
|
+
email: zod_1.z.string().nullable().optional().describe('Email'),
|
|
452
|
+
nino: zod_1.z.string().nullable().optional().describe('NINO'),
|
|
453
|
+
phoneNumbers: zod_1.z
|
|
454
|
+
.array(exports.WorkerPhoneNumberSchema)
|
|
455
|
+
.optional()
|
|
456
|
+
.default([])
|
|
457
|
+
.describe('Phone Numbers'),
|
|
458
|
+
createdByUserId: zod_1.z
|
|
459
|
+
.string()
|
|
460
|
+
.uuid()
|
|
461
|
+
.nullable()
|
|
462
|
+
.optional()
|
|
463
|
+
.describe('Created By User ID'),
|
|
464
|
+
})
|
|
465
|
+
.openapi({ title: 'WorkerMatchSummary' });
|
|
466
|
+
exports.CuratedWorkerMatchSummarySchema = zod_1.z
|
|
467
|
+
.object({
|
|
468
|
+
id: zod_1.z.string().uuid().describe('Curated Worker ID'),
|
|
469
|
+
firstName: zod_1.z.string().describe('First Name'),
|
|
470
|
+
lastName: zod_1.z.string().describe('Last Name'),
|
|
471
|
+
email: zod_1.z.string().nullable().optional().describe('Email'),
|
|
472
|
+
nino: zod_1.z.string().nullable().optional().describe('NINO'),
|
|
473
|
+
phoneNumbers: zod_1.z
|
|
474
|
+
.array(zod_1.z.object({
|
|
475
|
+
id: zod_1.z.string().uuid(),
|
|
476
|
+
phoneNumber: zod_1.z.string(),
|
|
477
|
+
isPrimary: zod_1.z.boolean(),
|
|
478
|
+
}))
|
|
479
|
+
.optional()
|
|
480
|
+
.default([])
|
|
481
|
+
.describe('Phone Numbers'),
|
|
482
|
+
status: curated_workers_contract_1.CuratedWorkerStatusSchema.describe('Status'),
|
|
483
|
+
})
|
|
484
|
+
.openapi({ title: 'CuratedWorkerMatchSummary' });
|
|
485
|
+
exports.MatchFieldSchema = zod_1.z.enum(['NINO', 'EMAIL', 'PHONE']);
|
|
486
|
+
exports.MatchConfidenceSchema = zod_1.z.enum(['HIGH', 'MEDIUM']);
|
|
487
|
+
exports.SuggestedMatchSchema = zod_1.z
|
|
488
|
+
.object({
|
|
489
|
+
worker: exports.WorkerMatchSummarySchema.describe('Unlinked worker'),
|
|
490
|
+
suggestedCuratedWorker: exports.CuratedWorkerMatchSummarySchema.describe('Suggested curated worker match'),
|
|
491
|
+
matchedOn: zod_1.z.array(exports.MatchFieldSchema).describe('Fields that matched'),
|
|
492
|
+
confidence: exports.MatchConfidenceSchema.describe('Match confidence'),
|
|
493
|
+
})
|
|
494
|
+
.openapi({ title: 'SuggestedMatch' });
|
|
495
|
+
exports.MatchFieldCountsSchema = zod_1.z
|
|
496
|
+
.object({
|
|
497
|
+
NINO: zod_1.z.number().describe('Workers matched by NINO'),
|
|
498
|
+
EMAIL: zod_1.z.number().describe('Workers matched by email'),
|
|
499
|
+
PHONE: zod_1.z.number().describe('Workers matched by phone'),
|
|
500
|
+
})
|
|
501
|
+
.openapi({ title: 'MatchFieldCounts' });
|
|
502
|
+
exports.SuggestCuratedMatchesResponseSchema = zod_1.z
|
|
503
|
+
.object({
|
|
504
|
+
matches: zod_1.z.array(exports.SuggestedMatchSchema).describe('Match suggestions'),
|
|
505
|
+
matchFieldCounts: exports.MatchFieldCountsSchema.describe('Count of matches per field'),
|
|
506
|
+
totalCount: zod_1.z.number().describe('Total matched workers (after filter)'),
|
|
507
|
+
totalPages: zod_1.z.number().describe('Total pages'),
|
|
508
|
+
page: zod_1.z.number().describe('Current page'),
|
|
509
|
+
limit: zod_1.z.number().describe('Items per page'),
|
|
510
|
+
})
|
|
511
|
+
.openapi({ title: 'SuggestCuratedMatchesResponse' });
|
|
512
|
+
exports.LinkWorkerSchema = zod_1.z
|
|
513
|
+
.object({
|
|
514
|
+
curatedWorkerId: zod_1.z.string().uuid().describe('Curated Worker ID to link to'),
|
|
515
|
+
})
|
|
516
|
+
.openapi({ title: 'LinkWorker' });
|
|
517
|
+
exports.LinkWorkerResponseSchema = zod_1.z
|
|
518
|
+
.object({
|
|
519
|
+
workerId: zod_1.z.string().uuid().describe('Worker ID'),
|
|
520
|
+
curatedWorkerId: zod_1.z.string().uuid().describe('Linked Curated Worker ID'),
|
|
521
|
+
})
|
|
522
|
+
.openapi({ title: 'LinkWorkerResponse' });
|
|
523
|
+
exports.MergeFieldSchema = zod_1.z.enum([
|
|
524
|
+
'firstName',
|
|
525
|
+
'lastName',
|
|
526
|
+
'email',
|
|
527
|
+
'nino',
|
|
528
|
+
'dateOfBirth',
|
|
529
|
+
'bio',
|
|
530
|
+
'rating',
|
|
531
|
+
'hasTools',
|
|
532
|
+
'hasPpe',
|
|
533
|
+
'englishLevel',
|
|
534
|
+
'nationality',
|
|
535
|
+
'locationId',
|
|
536
|
+
'transportation',
|
|
537
|
+
'phoneNumbers',
|
|
538
|
+
'trades',
|
|
539
|
+
'qualifications',
|
|
540
|
+
]);
|
|
541
|
+
exports.LinkWithMergeSchema = zod_1.z
|
|
542
|
+
.object({
|
|
543
|
+
curatedWorkerId: zod_1.z.string().uuid().describe('Curated Worker ID to link to'),
|
|
544
|
+
mergeFields: zod_1.z
|
|
545
|
+
.array(exports.MergeFieldSchema)
|
|
546
|
+
.min(0)
|
|
547
|
+
.describe('Fields to overwrite on curated worker from worker data'),
|
|
548
|
+
})
|
|
549
|
+
.openapi({ title: 'LinkWithMerge' });
|
|
550
|
+
exports.LinkWithMergeResponseSchema = zod_1.z
|
|
551
|
+
.object({
|
|
552
|
+
workerId: zod_1.z.string().uuid().describe('Worker ID'),
|
|
553
|
+
curatedWorkerId: zod_1.z.string().uuid().describe('Linked Curated Worker ID'),
|
|
554
|
+
mergedFields: zod_1.z.array(exports.MergeFieldSchema).describe('Fields that were merged'),
|
|
555
|
+
})
|
|
556
|
+
.openapi({ title: 'LinkWithMergeResponse' });
|
|
557
|
+
exports.BulkLinkWorkersSchema = zod_1.z
|
|
558
|
+
.object({
|
|
559
|
+
links: zod_1.z
|
|
560
|
+
.array(zod_1.z.object({
|
|
561
|
+
workerId: zod_1.z.string().uuid().describe('Worker ID'),
|
|
562
|
+
curatedWorkerId: zod_1.z.string().uuid().describe('Curated Worker ID'),
|
|
563
|
+
}))
|
|
564
|
+
.min(1)
|
|
565
|
+
.max(100)
|
|
566
|
+
.describe('Worker-to-CuratedWorker links'),
|
|
567
|
+
})
|
|
568
|
+
.openapi({ title: 'BulkLinkWorkers' });
|
|
569
|
+
exports.BulkLinkWorkersResponseSchema = zod_1.z
|
|
570
|
+
.object({
|
|
571
|
+
linked: zod_1.z.number().describe('Number of workers linked'),
|
|
572
|
+
})
|
|
573
|
+
.openapi({ title: 'BulkLinkWorkersResponse' });
|
|
574
|
+
exports.PromoteWorkerResponseSchema = zod_1.z
|
|
575
|
+
.object({
|
|
576
|
+
workerId: zod_1.z.string().uuid().describe('Worker ID'),
|
|
577
|
+
curatedWorkerId: zod_1.z
|
|
578
|
+
.string()
|
|
579
|
+
.uuid()
|
|
580
|
+
.describe('Newly created Curated Worker ID'),
|
|
581
|
+
})
|
|
582
|
+
.openapi({ title: 'PromoteWorkerResponse' });
|
|
583
|
+
exports.FilterSuggestedMatchesSchema = pagination_query_schema_1.PaginationQuerySchema.extend({
|
|
584
|
+
matchField: exports.MatchFieldSchema.optional().describe('Filter by match field tab'),
|
|
585
|
+
sortBy: zod_1.z
|
|
586
|
+
.enum(['workerName', 'confidence'])
|
|
587
|
+
.optional()
|
|
588
|
+
.describe('Sort column'),
|
|
589
|
+
sortOrder: zod_1.z.enum(['ASC', 'DESC']).optional().describe('Sort direction'),
|
|
590
|
+
});
|
|
436
591
|
exports.FilterWorkerSchema = pagination_query_schema_1.PaginationQuerySchema.extend({
|
|
437
592
|
name: zod_1.z.string().optional().describe('Search by name'),
|
|
438
593
|
email: zod_1.z.string().optional().describe('Filter by email'),
|
|
@@ -465,58 +620,62 @@ exports.FilterWorkerSchema = pagination_query_schema_1.PaginationQuerySchema.ext
|
|
|
465
620
|
.nullable()
|
|
466
621
|
.describe('Sort by field'),
|
|
467
622
|
sortOrder: common_schemas_1.SortOrderSchema.optional().nullable().describe('Sort order'),
|
|
623
|
+
curatedWorkerId: zod_1.z
|
|
624
|
+
.enum(['linked', 'unlinked'])
|
|
625
|
+
.optional()
|
|
626
|
+
.describe('Filter by curated worker link status'),
|
|
468
627
|
});
|
|
469
628
|
exports.PaginatedWorkerResponseSchema = (0, pagination_schema_1.createPaginatedResponseSchema)(exports.WorkerSchema)
|
|
470
629
|
.describe('Workers retrieved successfully.')
|
|
471
630
|
.openapi({ title: 'WorkersPaginatedResponse' });
|
|
472
631
|
// --- Worker Import Schemas ---
|
|
473
632
|
exports.WorkerImportJobStatusSchema = zod_1.z
|
|
474
|
-
.enum([
|
|
475
|
-
.openapi({ title:
|
|
633
|
+
.enum(['PENDING', 'PROCESSING', 'COMPLETED', 'FAILED'])
|
|
634
|
+
.openapi({ title: 'WorkerImportJobStatus' });
|
|
476
635
|
exports.StartWorkerImportSchema = zod_1.z
|
|
477
636
|
.object({
|
|
478
|
-
fileId: zod_1.z.string().uuid().describe(
|
|
637
|
+
fileId: zod_1.z.string().uuid().describe('ID of the uploaded CSV file'),
|
|
479
638
|
})
|
|
480
|
-
.openapi({ title:
|
|
639
|
+
.openapi({ title: 'StartWorkerImport' });
|
|
481
640
|
exports.WorkerImportJobSchema = zod_1.z
|
|
482
641
|
.object({
|
|
483
|
-
id: zod_1.z.string().uuid().describe(
|
|
484
|
-
status: exports.WorkerImportJobStatusSchema.describe(
|
|
485
|
-
totalRows: zod_1.z.number().describe(
|
|
486
|
-
successCount: zod_1.z.number().describe(
|
|
487
|
-
failedCount: zod_1.z.number().describe(
|
|
488
|
-
skippedCount: zod_1.z.number().describe(
|
|
642
|
+
id: zod_1.z.string().uuid().describe('Import Job ID'),
|
|
643
|
+
status: exports.WorkerImportJobStatusSchema.describe('Current status'),
|
|
644
|
+
totalRows: zod_1.z.number().describe('Total rows in CSV'),
|
|
645
|
+
successCount: zod_1.z.number().describe('Successfully imported rows'),
|
|
646
|
+
failedCount: zod_1.z.number().describe('Failed rows'),
|
|
647
|
+
skippedCount: zod_1.z.number().describe('Skipped rows (duplicates)'),
|
|
489
648
|
errorMessage: zod_1.z
|
|
490
649
|
.string()
|
|
491
650
|
.nullable()
|
|
492
651
|
.optional()
|
|
493
|
-
.describe(
|
|
494
|
-
sourceFileId: zod_1.z.string().uuid().describe(
|
|
652
|
+
.describe('Error message if failed'),
|
|
653
|
+
sourceFileId: zod_1.z.string().uuid().describe('Source CSV file ID'),
|
|
495
654
|
resultFileId: zod_1.z
|
|
496
655
|
.string()
|
|
497
656
|
.uuid()
|
|
498
657
|
.nullable()
|
|
499
658
|
.optional()
|
|
500
|
-
.describe(
|
|
501
|
-
createdByUserId: zod_1.z.string().uuid().describe(
|
|
659
|
+
.describe('Result CSV file ID'),
|
|
660
|
+
createdByUserId: zod_1.z.string().uuid().describe('User who started the import'),
|
|
502
661
|
createdAt: zod_1.z
|
|
503
662
|
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
504
663
|
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
505
|
-
.describe(
|
|
664
|
+
.describe('Creation timestamp'),
|
|
506
665
|
completedAt: zod_1.z
|
|
507
666
|
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
508
667
|
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
509
668
|
.nullable()
|
|
510
669
|
.optional()
|
|
511
|
-
.describe(
|
|
670
|
+
.describe('Completion timestamp'),
|
|
512
671
|
})
|
|
513
|
-
.openapi({ title:
|
|
672
|
+
.openapi({ title: 'WorkerImportJob' });
|
|
514
673
|
exports.WorkerImportResultSchema = zod_1.z
|
|
515
674
|
.object({
|
|
516
|
-
url: zod_1.z.string().describe(
|
|
517
|
-
mimeType: zod_1.z.string().describe(
|
|
675
|
+
url: zod_1.z.string().describe('Pre-signed URL to download result CSV'),
|
|
676
|
+
mimeType: zod_1.z.string().describe('MIME type (text/csv)'),
|
|
518
677
|
})
|
|
519
|
-
.openapi({ title:
|
|
678
|
+
.openapi({ title: 'WorkerImportResult' });
|
|
520
679
|
// --- Contract ---
|
|
521
680
|
const c = (0, core_1.initContract)();
|
|
522
681
|
exports.workersContractRouter = c.router({
|
|
@@ -598,7 +757,10 @@ exports.workersContractRouter = c.router({
|
|
|
598
757
|
},
|
|
599
758
|
body: exports.StartWorkerImportSchema,
|
|
600
759
|
summary: 'Start a worker CSV import job',
|
|
601
|
-
metadata: {
|
|
760
|
+
metadata: {
|
|
761
|
+
tags: ['Workers'],
|
|
762
|
+
openApi: { operationId: 'startWorkerImport' },
|
|
763
|
+
},
|
|
602
764
|
},
|
|
603
765
|
getImportJob: {
|
|
604
766
|
method: 'GET',
|
|
@@ -611,7 +773,10 @@ exports.workersContractRouter = c.router({
|
|
|
611
773
|
id: zod_1.z.string().uuid().describe('Import Job ID'),
|
|
612
774
|
}),
|
|
613
775
|
summary: 'Get worker import job status',
|
|
614
|
-
metadata: {
|
|
776
|
+
metadata: {
|
|
777
|
+
tags: ['Workers'],
|
|
778
|
+
openApi: { operationId: 'getWorkerImportJob' },
|
|
779
|
+
},
|
|
615
780
|
},
|
|
616
781
|
getImportResult: {
|
|
617
782
|
method: 'GET',
|
|
@@ -624,7 +789,91 @@ exports.workersContractRouter = c.router({
|
|
|
624
789
|
id: zod_1.z.string().uuid().describe('Import Job ID'),
|
|
625
790
|
}),
|
|
626
791
|
summary: 'Get worker import result CSV download URL',
|
|
627
|
-
metadata: {
|
|
792
|
+
metadata: {
|
|
793
|
+
tags: ['Workers'],
|
|
794
|
+
openApi: { operationId: 'getWorkerImportResult' },
|
|
795
|
+
},
|
|
796
|
+
},
|
|
797
|
+
suggestCuratedMatches: {
|
|
798
|
+
method: 'GET',
|
|
799
|
+
path: '/v2/workers/suggest-curated-matches',
|
|
800
|
+
query: exports.FilterSuggestedMatchesSchema,
|
|
801
|
+
responses: {
|
|
802
|
+
200: exports.SuggestCuratedMatchesResponseSchema,
|
|
803
|
+
},
|
|
804
|
+
summary: 'Suggest curated worker matches for unlinked workers (paginated)',
|
|
805
|
+
metadata: {
|
|
806
|
+
tags: ['Workers'],
|
|
807
|
+
openApi: { operationId: 'suggestCuratedMatches' },
|
|
808
|
+
},
|
|
809
|
+
},
|
|
810
|
+
linkToCuratedWorker: {
|
|
811
|
+
method: 'POST',
|
|
812
|
+
path: '/v2/workers/:id/link',
|
|
813
|
+
responses: {
|
|
814
|
+
200: exports.LinkWorkerResponseSchema,
|
|
815
|
+
404: error_schemas_1.ErrorResponseSchema,
|
|
816
|
+
409: error_schemas_1.ErrorResponseSchema,
|
|
817
|
+
},
|
|
818
|
+
pathParams: zod_1.z.object({
|
|
819
|
+
id: zod_1.z.string().uuid().describe('Worker ID'),
|
|
820
|
+
}),
|
|
821
|
+
body: exports.LinkWorkerSchema,
|
|
822
|
+
summary: 'Link a worker to a curated worker',
|
|
823
|
+
metadata: {
|
|
824
|
+
tags: ['Workers'],
|
|
825
|
+
openApi: { operationId: 'linkWorkerToCuratedWorker' },
|
|
826
|
+
},
|
|
827
|
+
},
|
|
828
|
+
linkWithMerge: {
|
|
829
|
+
method: 'POST',
|
|
830
|
+
path: '/v2/workers/:id/link-with-merge',
|
|
831
|
+
responses: {
|
|
832
|
+
200: exports.LinkWithMergeResponseSchema,
|
|
833
|
+
404: error_schemas_1.ErrorResponseSchema,
|
|
834
|
+
409: error_schemas_1.ErrorResponseSchema,
|
|
835
|
+
},
|
|
836
|
+
pathParams: zod_1.z.object({
|
|
837
|
+
id: zod_1.z.string().uuid().describe('Worker ID'),
|
|
838
|
+
}),
|
|
839
|
+
body: exports.LinkWithMergeSchema,
|
|
840
|
+
summary: 'Link a worker to a curated worker with field-level merge',
|
|
841
|
+
metadata: {
|
|
842
|
+
tags: ['Workers'],
|
|
843
|
+
openApi: { operationId: 'linkWorkerWithMerge' },
|
|
844
|
+
},
|
|
845
|
+
},
|
|
846
|
+
promoteWorker: {
|
|
847
|
+
method: 'POST',
|
|
848
|
+
path: '/v2/workers/:id/promote',
|
|
849
|
+
responses: {
|
|
850
|
+
201: exports.PromoteWorkerResponseSchema,
|
|
851
|
+
404: error_schemas_1.ErrorResponseSchema,
|
|
852
|
+
409: error_schemas_1.ErrorResponseSchema,
|
|
853
|
+
},
|
|
854
|
+
pathParams: zod_1.z.object({
|
|
855
|
+
id: zod_1.z.string().uuid().describe('Worker ID'),
|
|
856
|
+
}),
|
|
857
|
+
body: c.noBody(),
|
|
858
|
+
summary: 'Create a curated worker from worker data and link them',
|
|
859
|
+
metadata: {
|
|
860
|
+
tags: ['Workers'],
|
|
861
|
+
openApi: { operationId: 'promoteWorkerToCuratedWorker' },
|
|
862
|
+
},
|
|
863
|
+
},
|
|
864
|
+
bulkLink: {
|
|
865
|
+
method: 'POST',
|
|
866
|
+
path: '/v2/workers/bulk-link',
|
|
867
|
+
responses: {
|
|
868
|
+
200: exports.BulkLinkWorkersResponseSchema,
|
|
869
|
+
404: error_schemas_1.ErrorResponseSchema,
|
|
870
|
+
},
|
|
871
|
+
body: exports.BulkLinkWorkersSchema,
|
|
872
|
+
summary: 'Bulk link workers to curated workers',
|
|
873
|
+
metadata: {
|
|
874
|
+
tags: ['Workers'],
|
|
875
|
+
openApi: { operationId: 'bulkLinkWorkers' },
|
|
876
|
+
},
|
|
628
877
|
},
|
|
629
878
|
}, {
|
|
630
879
|
commonResponses: {
|