@dakkitor/api-contracts 1.1.146 → 1.1.148
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 +39 -0
- package/dist/abilities/second-agent.abilities.json +36 -0
- package/dist/abilities/team-leads.json +30 -0
- package/dist/actives/actives.contract.d.ts +8207 -7871
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +973 -973
- package/dist/auth/auth.contract.d.ts +12 -12
- package/dist/bookings/bookings.contract.d.ts +12034 -11506
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.d.ts +620 -620
- package/dist/client-contacts/client-contacts.contract.d.ts +277 -277
- package/dist/clients/clients.contract.d.ts +173 -173
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1868 -1868
- package/dist/collaborations/collaborations.contract.d.ts +1548 -1548
- package/dist/common/common-schemas.d.ts +4 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +10 -8
- package/dist/companies/companies.contract.d.ts +26 -26
- package/dist/crews/crews.contract.d.ts +2549 -0
- package/dist/crews/crews.contract.d.ts.map +1 -0
- package/dist/crews/crews.contract.js +203 -0
- package/dist/cron-executions/cron-executions.contract.d.ts +26 -26
- package/dist/curated-workers/curated-workers.contract.d.ts +517 -517
- package/dist/dashboards/dashboard-widgets.contract.d.ts +122 -122
- package/dist/dashboards/dashboard.contract.d.ts +26 -26
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/jobs/jobs.contract.d.ts +4309 -4309
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +26 -26
- package/dist/lead-assignments/lead-assignments.contract.d.ts +498 -498
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +131 -131
- package/dist/leads/leads.contract.d.ts +184 -184
- package/dist/locations/locations.contract.d.ts +28 -28
- package/dist/own-research/own-research.contract.d.ts +728 -728
- package/dist/users/users.contract.d.ts +154 -154
- package/dist/workers/workers.contract.d.ts +6476 -4566
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +217 -65
- package/package.json +1 -1
|
@@ -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;AA4BxB,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;;;;;;;;;;;;;;;;;;;;;;;;EAsBM,CAAC;AAC1C,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0OjC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.WorkerImportJobSchema = exports.StartWorkerImportSchema = exports.WorkerImportJobStatusSchema = exports.PaginatedWorkerResponseSchema = exports.FilterWorkerSchema = exports.MergeDuplicatesResponseSchema = exports.MergeDuplicatesRequestSchema = exports.MergeDuplicateCuratedWorkerSchema = exports.FindDuplicatesResponseSchema = exports.DuplicateGroupSchema = exports.DuplicateGroupWorkerSchema = exports.FilterDuplicatesSchema = 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.CreateWorkerBodySchema = 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
|
+
exports.workersContractRouter = exports.WorkerImportResultSchema = void 0;
|
|
4
5
|
const zod_openapi_1 = require("@anatine/zod-openapi");
|
|
5
6
|
const core_1 = require("@ts-rest/core");
|
|
6
7
|
const zod_1 = require("zod");
|
|
@@ -9,6 +10,7 @@ const error_schemas_1 = require("../common/error-schemas");
|
|
|
9
10
|
const pagination_query_schema_1 = require("../common/pagination-query.schema");
|
|
10
11
|
const pagination_schema_1 = require("../common/pagination.schema");
|
|
11
12
|
const curated_workers_contract_1 = require("../curated-workers/curated-workers.contract");
|
|
13
|
+
const crews_contract_1 = require("../crews/crews.contract");
|
|
12
14
|
const users_contract_1 = require("../users/users.contract");
|
|
13
15
|
(0, zod_openapi_1.extendZodWithOpenApi)(zod_1.z);
|
|
14
16
|
// --- Enums ---
|
|
@@ -301,6 +303,7 @@ exports.WorkerSchema = zod_1.z
|
|
|
301
303
|
.describe('Created By User ID'),
|
|
302
304
|
createdBy: users_contract_1.UserSchema.nullable().optional().describe('Created By User'),
|
|
303
305
|
distanceKm: zod_1.z.number().nullable().optional().describe('Distance in KM'),
|
|
306
|
+
crew: crews_contract_1.CrewSummarySchema.nullable().optional().describe('Crew'),
|
|
304
307
|
createdAt: zod_1.z
|
|
305
308
|
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
306
309
|
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
@@ -331,11 +334,8 @@ exports.CreateWorkerSchema = zod_1.z
|
|
|
331
334
|
.describe('Email'),
|
|
332
335
|
phoneNumbers: zod_1.z
|
|
333
336
|
.array(exports.CreateWorkerPhoneNumberSchema)
|
|
334
|
-
.min(1, { message: 'At least one phone number is required' })
|
|
335
|
-
.refine((phoneNumbers) => phoneNumbers.some((phone) => phone.isPrimary), {
|
|
336
|
-
message: 'Must have at least one primary phone number',
|
|
337
|
-
})
|
|
338
337
|
.describe('Phone Numbers'),
|
|
338
|
+
crewId: zod_1.z.string().uuid().optional().describe('Crew ID'),
|
|
339
339
|
nino: zod_1.z
|
|
340
340
|
.string()
|
|
341
341
|
.regex(/^(?:[A-Z]{2}[0-9]{6}[A-D])?$/)
|
|
@@ -380,6 +380,40 @@ exports.CreateWorkerSchema = zod_1.z
|
|
|
380
380
|
.describe('Availability'),
|
|
381
381
|
})
|
|
382
382
|
.openapi({ title: 'CreateWorker' });
|
|
383
|
+
/**
|
|
384
|
+
* CreateWorkerSchema with phone number validation that's crew-aware.
|
|
385
|
+
* Used as the contract endpoint body. The base CreateWorkerSchema remains
|
|
386
|
+
* a plain ZodObject so it can be .extend()-ed in the frontend.
|
|
387
|
+
*/
|
|
388
|
+
exports.CreateWorkerBodySchema = exports.CreateWorkerSchema.superRefine((data, ctx) => {
|
|
389
|
+
if (!data.crewId) {
|
|
390
|
+
if (data.phoneNumbers.length < 1) {
|
|
391
|
+
ctx.addIssue({
|
|
392
|
+
code: zod_1.z.ZodIssueCode.too_small,
|
|
393
|
+
minimum: 1,
|
|
394
|
+
type: 'array',
|
|
395
|
+
inclusive: true,
|
|
396
|
+
message: 'At least one phone number is required',
|
|
397
|
+
path: ['phoneNumbers'],
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
else if (!data.phoneNumbers.some((phone) => phone.isPrimary)) {
|
|
401
|
+
ctx.addIssue({
|
|
402
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
403
|
+
message: 'Must have at least one primary phone number',
|
|
404
|
+
path: ['phoneNumbers'],
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
else if (data.phoneNumbers.length > 0 &&
|
|
409
|
+
!data.phoneNumbers.some((phone) => phone.isPrimary)) {
|
|
410
|
+
ctx.addIssue({
|
|
411
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
412
|
+
message: 'Must have at least one primary phone number',
|
|
413
|
+
path: ['phoneNumbers'],
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
});
|
|
383
417
|
exports.UpdateWorkerSchema = zod_1.z
|
|
384
418
|
.object({
|
|
385
419
|
firstName: zod_1.z.string().min(3).max(100).optional().describe('First Name'),
|
|
@@ -594,6 +628,97 @@ exports.FilterSuggestedMatchesSchema = pagination_query_schema_1.PaginationQuery
|
|
|
594
628
|
.describe('Sort column'),
|
|
595
629
|
sortOrder: zod_1.z.enum(['ASC', 'DESC']).optional().describe('Sort direction'),
|
|
596
630
|
});
|
|
631
|
+
// --- Duplicate Worker Schemas ---
|
|
632
|
+
exports.FilterDuplicatesSchema = pagination_query_schema_1.PaginationQuerySchema.extend({
|
|
633
|
+
sortBy: zod_1.z
|
|
634
|
+
.enum(['phoneNumber', 'workerCount'])
|
|
635
|
+
.optional()
|
|
636
|
+
.describe('Sort column'),
|
|
637
|
+
sortOrder: zod_1.z.enum(['ASC', 'DESC']).optional().describe('Sort direction'),
|
|
638
|
+
}).openapi({ title: 'FilterDuplicates' });
|
|
639
|
+
exports.DuplicateGroupWorkerSchema = zod_1.z
|
|
640
|
+
.object({
|
|
641
|
+
id: zod_1.z.string().uuid(),
|
|
642
|
+
firstName: zod_1.z.string(),
|
|
643
|
+
lastName: zod_1.z.string().nullable().optional(),
|
|
644
|
+
email: zod_1.z.string().nullable().optional(),
|
|
645
|
+
nino: zod_1.z.string().nullable().optional(),
|
|
646
|
+
dateOfBirth: zod_1.z.coerce.date().nullable().optional(),
|
|
647
|
+
hasTools: zod_1.z.boolean().optional().default(false),
|
|
648
|
+
hasPpe: zod_1.z.boolean().optional().default(false),
|
|
649
|
+
phoneNumbers: zod_1.z.array(exports.WorkerPhoneNumberSchema).optional().default([]),
|
|
650
|
+
createdByUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
651
|
+
createdAt: zod_1.z.coerce.date(),
|
|
652
|
+
})
|
|
653
|
+
.openapi({ title: 'DuplicateGroupWorker' });
|
|
654
|
+
exports.DuplicateGroupSchema = zod_1.z
|
|
655
|
+
.object({
|
|
656
|
+
phoneNumber: zod_1.z.string(),
|
|
657
|
+
workers: zod_1.z.array(exports.DuplicateGroupWorkerSchema),
|
|
658
|
+
})
|
|
659
|
+
.openapi({ title: 'DuplicateGroup' });
|
|
660
|
+
exports.FindDuplicatesResponseSchema = zod_1.z
|
|
661
|
+
.object({
|
|
662
|
+
groups: zod_1.z.array(exports.DuplicateGroupSchema),
|
|
663
|
+
totalGroups: zod_1.z.number(),
|
|
664
|
+
totalPages: zod_1.z.number(),
|
|
665
|
+
page: zod_1.z.number(),
|
|
666
|
+
limit: zod_1.z.number(),
|
|
667
|
+
})
|
|
668
|
+
.openapi({ title: 'FindDuplicatesResponse' });
|
|
669
|
+
exports.MergeDuplicateCuratedWorkerSchema = zod_1.z
|
|
670
|
+
.object({
|
|
671
|
+
firstName: zod_1.z.string(),
|
|
672
|
+
lastName: zod_1.z.string(),
|
|
673
|
+
email: zod_1.z.string().nullable().optional(),
|
|
674
|
+
nino: zod_1.z.string().nullable().optional(),
|
|
675
|
+
dateOfBirth: zod_1.z.coerce.date().nullable().optional(),
|
|
676
|
+
bio: zod_1.z.string().nullable().optional(),
|
|
677
|
+
hasTools: zod_1.z.boolean(),
|
|
678
|
+
hasPpe: zod_1.z.boolean(),
|
|
679
|
+
englishLevel: common_schemas_1.EnglishLevelSchema.nullable().optional(),
|
|
680
|
+
nationality: common_schemas_1.NationalitySchema.nullable().optional(),
|
|
681
|
+
locationId: zod_1.z.string().uuid().nullable().optional(),
|
|
682
|
+
phoneNumbers: zod_1.z
|
|
683
|
+
.array(zod_1.z.object({
|
|
684
|
+
phoneNumber: zod_1.z.string(),
|
|
685
|
+
isPrimary: zod_1.z.boolean(),
|
|
686
|
+
description: zod_1.z.string().nullable().optional(),
|
|
687
|
+
}))
|
|
688
|
+
.optional()
|
|
689
|
+
.default([]),
|
|
690
|
+
trades: zod_1.z
|
|
691
|
+
.array(zod_1.z.object({
|
|
692
|
+
tradeId: zod_1.z.string().uuid(),
|
|
693
|
+
mainTrade: zod_1.z.boolean(),
|
|
694
|
+
}))
|
|
695
|
+
.optional()
|
|
696
|
+
.default([]),
|
|
697
|
+
qualifications: zod_1.z
|
|
698
|
+
.array(zod_1.z.object({
|
|
699
|
+
qualificationId: zod_1.z.string().uuid(),
|
|
700
|
+
qualificationTypeId: zod_1.z.string().uuid().nullable().optional(),
|
|
701
|
+
issueDate: zod_1.z.coerce.date().nullable().optional(),
|
|
702
|
+
expiryDate: zod_1.z.coerce.date().nullable().optional(),
|
|
703
|
+
referenceNumber: zod_1.z.string().nullable().optional(),
|
|
704
|
+
proofDocumentFileId: zod_1.z.string().uuid().nullable().optional(),
|
|
705
|
+
}))
|
|
706
|
+
.optional()
|
|
707
|
+
.default([]),
|
|
708
|
+
})
|
|
709
|
+
.openapi({ title: 'MergeDuplicateCuratedWorker' });
|
|
710
|
+
exports.MergeDuplicatesRequestSchema = zod_1.z
|
|
711
|
+
.object({
|
|
712
|
+
workerIds: zod_1.z.array(zod_1.z.string().uuid()).min(2),
|
|
713
|
+
curatedWorker: exports.MergeDuplicateCuratedWorkerSchema,
|
|
714
|
+
})
|
|
715
|
+
.openapi({ title: 'MergeDuplicatesRequest' });
|
|
716
|
+
exports.MergeDuplicatesResponseSchema = zod_1.z
|
|
717
|
+
.object({
|
|
718
|
+
curatedWorkerId: zod_1.z.string().uuid(),
|
|
719
|
+
linkedWorkerIds: zod_1.z.array(zod_1.z.string().uuid()),
|
|
720
|
+
})
|
|
721
|
+
.openapi({ title: 'MergeDuplicatesResponse' });
|
|
597
722
|
exports.FilterWorkerSchema = pagination_query_schema_1.PaginationQuerySchema.extend({
|
|
598
723
|
name: zod_1.z.string().optional().describe('Search by name'),
|
|
599
724
|
email: zod_1.z.string().optional().describe('Filter by email'),
|
|
@@ -630,6 +755,7 @@ exports.FilterWorkerSchema = pagination_query_schema_1.PaginationQuerySchema.ext
|
|
|
630
755
|
.enum(['linked', 'unlinked'])
|
|
631
756
|
.optional()
|
|
632
757
|
.describe('Filter by curated worker link status'),
|
|
758
|
+
crewId: zod_1.z.string().uuid().optional().describe('Filter by crew ID'),
|
|
633
759
|
});
|
|
634
760
|
exports.PaginatedWorkerResponseSchema = (0, pagination_schema_1.createPaginatedResponseSchema)(exports.WorkerSchema)
|
|
635
761
|
.describe('Workers retrieved successfully.')
|
|
@@ -692,7 +818,7 @@ exports.workersContractRouter = c.router({
|
|
|
692
818
|
201: exports.WorkerSchema,
|
|
693
819
|
409: error_schemas_1.ErrorResponseSchema,
|
|
694
820
|
},
|
|
695
|
-
body: exports.
|
|
821
|
+
body: exports.CreateWorkerBodySchema,
|
|
696
822
|
summary: 'Create a new worker',
|
|
697
823
|
metadata: { tags: ['Workers'], openApi: { operationId: 'createWorker' } },
|
|
698
824
|
},
|
|
@@ -709,51 +835,6 @@ exports.workersContractRouter = c.router({
|
|
|
709
835
|
openApi: { operationId: 'findAllWorkers' },
|
|
710
836
|
},
|
|
711
837
|
},
|
|
712
|
-
findOne: {
|
|
713
|
-
method: 'GET',
|
|
714
|
-
path: '/v2/workers/:id',
|
|
715
|
-
responses: {
|
|
716
|
-
200: exports.WorkerSchema,
|
|
717
|
-
404: error_schemas_1.ErrorResponseSchema,
|
|
718
|
-
},
|
|
719
|
-
pathParams: zod_1.z.object({
|
|
720
|
-
id: zod_1.z.string().uuid().describe('Worker ID'),
|
|
721
|
-
}),
|
|
722
|
-
summary: 'Get a worker by ID',
|
|
723
|
-
metadata: {
|
|
724
|
-
tags: ['Workers'],
|
|
725
|
-
openApi: { operationId: 'findWorkerById' },
|
|
726
|
-
},
|
|
727
|
-
},
|
|
728
|
-
update: {
|
|
729
|
-
method: 'PATCH',
|
|
730
|
-
path: '/v2/workers/:id',
|
|
731
|
-
responses: {
|
|
732
|
-
200: exports.WorkerSchema,
|
|
733
|
-
404: error_schemas_1.ErrorResponseSchema,
|
|
734
|
-
409: error_schemas_1.ErrorResponseSchema,
|
|
735
|
-
},
|
|
736
|
-
pathParams: zod_1.z.object({
|
|
737
|
-
id: zod_1.z.string().uuid().describe('Worker ID'),
|
|
738
|
-
}),
|
|
739
|
-
body: exports.UpdateWorkerSchema,
|
|
740
|
-
summary: 'Update a worker',
|
|
741
|
-
metadata: { tags: ['Workers'], openApi: { operationId: 'updateWorker' } },
|
|
742
|
-
},
|
|
743
|
-
remove: {
|
|
744
|
-
method: 'DELETE',
|
|
745
|
-
path: '/v2/workers/:id',
|
|
746
|
-
responses: {
|
|
747
|
-
204: zod_1.z.undefined(),
|
|
748
|
-
404: error_schemas_1.ErrorResponseSchema,
|
|
749
|
-
},
|
|
750
|
-
pathParams: zod_1.z.object({
|
|
751
|
-
id: zod_1.z.string().uuid().describe('Worker ID'),
|
|
752
|
-
}),
|
|
753
|
-
body: c.noBody(),
|
|
754
|
-
summary: 'Delete a worker',
|
|
755
|
-
metadata: { tags: ['Workers'], openApi: { operationId: 'deleteWorker' } },
|
|
756
|
-
},
|
|
757
838
|
startImport: {
|
|
758
839
|
method: 'POST',
|
|
759
840
|
path: '/v2/workers/import',
|
|
@@ -813,6 +894,91 @@ exports.workersContractRouter = c.router({
|
|
|
813
894
|
openApi: { operationId: 'suggestCuratedMatches' },
|
|
814
895
|
},
|
|
815
896
|
},
|
|
897
|
+
findDuplicates: {
|
|
898
|
+
method: 'GET',
|
|
899
|
+
path: '/v2/workers/find-duplicates',
|
|
900
|
+
query: exports.FilterDuplicatesSchema,
|
|
901
|
+
responses: { 200: exports.FindDuplicatesResponseSchema },
|
|
902
|
+
summary: 'Find groups of workers with duplicate phone numbers (paginated)',
|
|
903
|
+
metadata: {
|
|
904
|
+
tags: ['Workers'],
|
|
905
|
+
openApi: { operationId: 'findDuplicateWorkers' },
|
|
906
|
+
},
|
|
907
|
+
},
|
|
908
|
+
mergeDuplicates: {
|
|
909
|
+
method: 'POST',
|
|
910
|
+
path: '/v2/workers/merge-duplicates',
|
|
911
|
+
body: exports.MergeDuplicatesRequestSchema,
|
|
912
|
+
responses: {
|
|
913
|
+
201: exports.MergeDuplicatesResponseSchema,
|
|
914
|
+
404: error_schemas_1.ErrorResponseSchema,
|
|
915
|
+
409: error_schemas_1.ErrorResponseSchema,
|
|
916
|
+
},
|
|
917
|
+
summary: 'Merge duplicate workers into a new curated worker',
|
|
918
|
+
metadata: {
|
|
919
|
+
tags: ['Workers'],
|
|
920
|
+
openApi: { operationId: 'mergeDuplicateWorkers' },
|
|
921
|
+
},
|
|
922
|
+
},
|
|
923
|
+
bulkLink: {
|
|
924
|
+
method: 'POST',
|
|
925
|
+
path: '/v2/workers/bulk-link',
|
|
926
|
+
responses: {
|
|
927
|
+
200: exports.BulkLinkWorkersResponseSchema,
|
|
928
|
+
404: error_schemas_1.ErrorResponseSchema,
|
|
929
|
+
},
|
|
930
|
+
body: exports.BulkLinkWorkersSchema,
|
|
931
|
+
summary: 'Bulk link workers to curated workers',
|
|
932
|
+
metadata: {
|
|
933
|
+
tags: ['Workers'],
|
|
934
|
+
openApi: { operationId: 'bulkLinkWorkers' },
|
|
935
|
+
},
|
|
936
|
+
},
|
|
937
|
+
findOne: {
|
|
938
|
+
method: 'GET',
|
|
939
|
+
path: '/v2/workers/:id',
|
|
940
|
+
responses: {
|
|
941
|
+
200: exports.WorkerSchema,
|
|
942
|
+
404: error_schemas_1.ErrorResponseSchema,
|
|
943
|
+
},
|
|
944
|
+
pathParams: zod_1.z.object({
|
|
945
|
+
id: zod_1.z.string().uuid().describe('Worker ID'),
|
|
946
|
+
}),
|
|
947
|
+
summary: 'Get a worker by ID',
|
|
948
|
+
metadata: {
|
|
949
|
+
tags: ['Workers'],
|
|
950
|
+
openApi: { operationId: 'findWorkerById' },
|
|
951
|
+
},
|
|
952
|
+
},
|
|
953
|
+
update: {
|
|
954
|
+
method: 'PATCH',
|
|
955
|
+
path: '/v2/workers/:id',
|
|
956
|
+
responses: {
|
|
957
|
+
200: exports.WorkerSchema,
|
|
958
|
+
404: error_schemas_1.ErrorResponseSchema,
|
|
959
|
+
409: error_schemas_1.ErrorResponseSchema,
|
|
960
|
+
},
|
|
961
|
+
pathParams: zod_1.z.object({
|
|
962
|
+
id: zod_1.z.string().uuid().describe('Worker ID'),
|
|
963
|
+
}),
|
|
964
|
+
body: exports.UpdateWorkerSchema,
|
|
965
|
+
summary: 'Update a worker',
|
|
966
|
+
metadata: { tags: ['Workers'], openApi: { operationId: 'updateWorker' } },
|
|
967
|
+
},
|
|
968
|
+
remove: {
|
|
969
|
+
method: 'DELETE',
|
|
970
|
+
path: '/v2/workers/:id',
|
|
971
|
+
responses: {
|
|
972
|
+
204: zod_1.z.undefined(),
|
|
973
|
+
404: error_schemas_1.ErrorResponseSchema,
|
|
974
|
+
},
|
|
975
|
+
pathParams: zod_1.z.object({
|
|
976
|
+
id: zod_1.z.string().uuid().describe('Worker ID'),
|
|
977
|
+
}),
|
|
978
|
+
body: c.noBody(),
|
|
979
|
+
summary: 'Delete a worker',
|
|
980
|
+
metadata: { tags: ['Workers'], openApi: { operationId: 'deleteWorker' } },
|
|
981
|
+
},
|
|
816
982
|
linkToCuratedWorker: {
|
|
817
983
|
method: 'POST',
|
|
818
984
|
path: '/v2/workers/:id/link',
|
|
@@ -867,20 +1033,6 @@ exports.workersContractRouter = c.router({
|
|
|
867
1033
|
openApi: { operationId: 'promoteWorkerToCuratedWorker' },
|
|
868
1034
|
},
|
|
869
1035
|
},
|
|
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
|
-
},
|
|
883
|
-
},
|
|
884
1036
|
}, {
|
|
885
1037
|
commonResponses: {
|
|
886
1038
|
400: error_schemas_1.ErrorResponseSchema,
|