@kombo-api/sdk 1.0.1 → 1.0.3
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/README.md +7 -3
- package/esm/funcs/assessmentUpdateOrderResult.js.map +1 -1
- package/esm/funcs/atsAddApplicationAttachment.js.map +1 -1
- package/esm/funcs/atsAddApplicationNote.js.map +1 -1
- package/esm/funcs/atsAddApplicationResultLink.js.map +1 -1
- package/esm/funcs/atsAddCandidateAttachment.js.map +1 -1
- package/esm/funcs/atsAddCandidateResultLink.js.map +1 -1
- package/esm/funcs/atsAddCandidateTag.js.map +1 -1
- package/esm/funcs/atsCreateApplication.js.map +1 -1
- package/esm/funcs/atsGetApplicationAttachments.js.map +1 -1
- package/esm/funcs/atsGetCandidateAttachments.js.map +1 -1
- package/esm/funcs/atsGetRoles.d.ts +25 -0
- package/esm/funcs/atsGetRoles.d.ts.map +1 -0
- package/esm/funcs/atsGetRoles.js +125 -0
- package/esm/funcs/atsGetRoles.js.map +1 -0
- package/esm/funcs/atsMoveApplicationToStage.d.ts +2 -1
- package/esm/funcs/atsMoveApplicationToStage.d.ts.map +1 -1
- package/esm/funcs/atsMoveApplicationToStage.js +2 -1
- package/esm/funcs/atsMoveApplicationToStage.js.map +1 -1
- package/esm/funcs/atsRejectApplication.js.map +1 -1
- package/esm/funcs/atsRemoveCandidateTag.js.map +1 -1
- package/esm/funcs/connectGetIntegrationByToken.js.map +1 -1
- package/esm/funcs/generalCreateReconnectionLink.js.map +1 -1
- package/esm/funcs/generalDeleteIntegration.js.map +1 -1
- package/esm/funcs/generalGetCustomFields.js.map +1 -1
- package/esm/funcs/generalGetIntegrationDetails.js.map +1 -1
- package/esm/funcs/generalGetIntegrationFields.js.map +1 -1
- package/esm/funcs/generalGetTools.js.map +1 -1
- package/esm/funcs/generalSendPassthroughRequest.d.ts +19 -6
- package/esm/funcs/generalSendPassthroughRequest.d.ts.map +1 -1
- package/esm/funcs/generalSendPassthroughRequest.js +19 -6
- package/esm/funcs/generalSendPassthroughRequest.js.map +1 -1
- package/esm/funcs/generalSetIntegrationEnabled.js.map +1 -1
- package/esm/funcs/generalUpdateCustomFieldMapping.js.map +1 -1
- package/esm/funcs/generalUpdateIntegrationField.js.map +1 -1
- package/esm/funcs/hrisAddEmployeeDocument.js.map +1 -1
- package/esm/funcs/hrisDeleteAbsence.js.map +1 -1
- package/esm/funcs/hrisGetPerformanceReviewCycles.d.ts +0 -2
- package/esm/funcs/hrisGetPerformanceReviewCycles.d.ts.map +1 -1
- package/esm/funcs/hrisGetPerformanceReviewCycles.js +0 -2
- package/esm/funcs/hrisGetPerformanceReviewCycles.js.map +1 -1
- package/esm/funcs/hrisGetPerformanceReviews.d.ts +0 -2
- package/esm/funcs/hrisGetPerformanceReviews.d.ts.map +1 -1
- package/esm/funcs/hrisGetPerformanceReviews.js +0 -2
- package/esm/funcs/hrisGetPerformanceReviews.js.map +1 -1
- package/esm/funcs/hrisGetStaffingEntities.d.ts +33 -0
- package/esm/funcs/hrisGetStaffingEntities.d.ts.map +1 -0
- package/esm/funcs/hrisGetStaffingEntities.js +134 -0
- package/esm/funcs/hrisGetStaffingEntities.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/encodings.d.ts.map +1 -1
- package/esm/lib/encodings.js +20 -5
- package/esm/lib/encodings.js.map +1 -1
- package/esm/lib/files.d.ts +13 -0
- package/esm/lib/files.d.ts.map +1 -1
- package/esm/lib/files.js +18 -0
- package/esm/lib/files.js.map +1 -1
- package/esm/lib/matchers.d.ts.map +1 -1
- package/esm/lib/matchers.js +0 -1
- package/esm/lib/matchers.js.map +1 -1
- package/esm/lib/sdks.d.ts.map +1 -1
- package/esm/lib/sdks.js +8 -4
- package/esm/lib/sdks.js.map +1 -1
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js +1 -2
- package/esm/lib/security.js.map +1 -1
- package/esm/lib/url.d.ts.map +1 -1
- package/esm/lib/url.js +4 -2
- package/esm/lib/url.js.map +1 -1
- package/esm/models/assessmentorderreceivedwebhookpayload.d.ts +15 -2
- package/esm/models/assessmentorderreceivedwebhookpayload.d.ts.map +1 -1
- package/esm/models/assessmentorderreceivedwebhookpayload.js +9 -2
- package/esm/models/assessmentorderreceivedwebhookpayload.js.map +1 -1
- package/esm/models/datachangedwebhookpayload.d.ts +7 -0
- package/esm/models/datachangedwebhookpayload.d.ts.map +1 -1
- package/esm/models/datachangedwebhookpayload.js +7 -0
- package/esm/models/datachangedwebhookpayload.js.map +1 -1
- package/esm/models/getassessmentordersopenpositiveresponse.d.ts +12 -1
- package/esm/models/getassessmentordersopenpositiveresponse.d.ts.map +1 -1
- package/esm/models/getassessmentordersopenpositiveresponse.js +6 -1
- package/esm/models/getassessmentordersopenpositiveresponse.js.map +1 -1
- package/esm/models/getatsjobspositiveresponse.d.ts +67 -1
- package/esm/models/getatsjobspositiveresponse.d.ts.map +1 -1
- package/esm/models/getatsjobspositiveresponse.js +36 -0
- package/esm/models/getatsjobspositiveresponse.js.map +1 -1
- package/esm/models/getatsrolespositiveresponse.d.ts +85 -0
- package/esm/models/getatsrolespositiveresponse.d.ts.map +1 -0
- package/esm/models/getatsrolespositiveresponse.js +57 -0
- package/esm/models/getatsrolespositiveresponse.js.map +1 -0
- package/esm/models/getatsuserspositiveresponse.d.ts +61 -0
- package/esm/models/getatsuserspositiveresponse.d.ts.map +1 -1
- package/esm/models/getatsuserspositiveresponse.js +33 -0
- package/esm/models/getatsuserspositiveresponse.js.map +1 -1
- package/esm/models/gethrisemployeespositiveresponse.d.ts +12 -12
- package/esm/models/gethrisemployeespositiveresponse.d.ts.map +1 -1
- package/esm/models/gethrisemployeespositiveresponse.js +12 -13
- package/esm/models/gethrisemployeespositiveresponse.js.map +1 -1
- package/esm/models/gethrisstaffingentitiespositiveresponse.d.ts +261 -0
- package/esm/models/gethrisstaffingentitiespositiveresponse.d.ts.map +1 -0
- package/esm/models/gethrisstaffingentitiespositiveresponse.js +143 -0
- package/esm/models/gethrisstaffingentitiespositiveresponse.js.map +1 -0
- package/esm/models/index.d.ts +2 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +2 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/inlineassessmentorderreceivedwebhookpayload.d.ts +15 -2
- package/esm/models/inlineassessmentorderreceivedwebhookpayload.d.ts.map +1 -1
- package/esm/models/inlineassessmentorderreceivedwebhookpayload.js +9 -2
- package/esm/models/inlineassessmentorderreceivedwebhookpayload.js.map +1 -1
- package/esm/models/komboatserror.d.ts +1 -0
- package/esm/models/komboatserror.d.ts.map +1 -1
- package/esm/models/komboatserror.js +1 -0
- package/esm/models/komboatserror.js.map +1 -1
- package/esm/models/kombogeneralerror.d.ts +1 -0
- package/esm/models/kombogeneralerror.d.ts.map +1 -1
- package/esm/models/kombogeneralerror.js +1 -0
- package/esm/models/kombogeneralerror.js.map +1 -1
- package/esm/models/kombohriserror.d.ts +1 -0
- package/esm/models/kombohriserror.d.ts.map +1 -1
- package/esm/models/kombohriserror.js +1 -0
- package/esm/models/kombohriserror.js.map +1 -1
- package/esm/models/operations/getatsapplications.d.ts +9 -0
- package/esm/models/operations/getatsapplications.d.ts.map +1 -1
- package/esm/models/operations/getatsapplications.js.map +1 -1
- package/esm/models/operations/getatsapplicationstages.d.ts +2 -0
- package/esm/models/operations/getatsapplicationstages.d.ts.map +1 -1
- package/esm/models/operations/getatsapplicationstages.js.map +1 -1
- package/esm/models/operations/getatscandidates.d.ts +8 -0
- package/esm/models/operations/getatscandidates.d.ts.map +1 -1
- package/esm/models/operations/getatscandidates.js.map +1 -1
- package/esm/models/operations/getatsinterviews.d.ts +8 -0
- package/esm/models/operations/getatsinterviews.d.ts.map +1 -1
- package/esm/models/operations/getatsinterviews.js.map +1 -1
- package/esm/models/operations/getatsjobs.d.ts +11 -0
- package/esm/models/operations/getatsjobs.d.ts.map +1 -1
- package/esm/models/operations/getatsjobs.js.map +1 -1
- package/esm/models/operations/getatsoffers.d.ts +6 -0
- package/esm/models/operations/getatsoffers.d.ts.map +1 -1
- package/esm/models/operations/getatsoffers.js.map +1 -1
- package/esm/models/operations/getatsrejectionreasons.d.ts +2 -0
- package/esm/models/operations/getatsrejectionreasons.d.ts.map +1 -1
- package/esm/models/operations/getatsrejectionreasons.js.map +1 -1
- package/esm/models/operations/getatsroles.d.ts +79 -0
- package/esm/models/operations/getatsroles.d.ts.map +1 -0
- package/esm/models/operations/getatsroles.js +33 -0
- package/esm/models/operations/getatsroles.js.map +1 -0
- package/esm/models/operations/getatstags.d.ts +2 -0
- package/esm/models/operations/getatstags.d.ts.map +1 -1
- package/esm/models/operations/getatstags.js.map +1 -1
- package/esm/models/operations/getatsusers.d.ts +5 -0
- package/esm/models/operations/getatsusers.d.ts.map +1 -1
- package/esm/models/operations/getatsusers.js.map +1 -1
- package/esm/models/operations/gethrisabsences.d.ts +4 -0
- package/esm/models/operations/gethrisabsences.d.ts.map +1 -1
- package/esm/models/operations/gethrisabsences.js.map +1 -1
- package/esm/models/operations/gethrisabsencetypes.d.ts +2 -0
- package/esm/models/operations/gethrisabsencetypes.d.ts.map +1 -1
- package/esm/models/operations/gethrisabsencetypes.js.map +1 -1
- package/esm/models/operations/gethrisemployeedocumentcategories.d.ts +2 -0
- package/esm/models/operations/gethrisemployeedocumentcategories.d.ts.map +1 -1
- package/esm/models/operations/gethrisemployeedocumentcategories.js.map +1 -1
- package/esm/models/operations/gethrisemployees.d.ts +10 -0
- package/esm/models/operations/gethrisemployees.d.ts.map +1 -1
- package/esm/models/operations/gethrisemployees.js.map +1 -1
- package/esm/models/operations/gethrisemployments.d.ts +2 -0
- package/esm/models/operations/gethrisemployments.d.ts.map +1 -1
- package/esm/models/operations/gethrisemployments.js.map +1 -1
- package/esm/models/operations/gethrisgroups.d.ts +2 -0
- package/esm/models/operations/gethrisgroups.d.ts.map +1 -1
- package/esm/models/operations/gethrisgroups.js.map +1 -1
- package/esm/models/operations/gethrislegalentities.d.ts +2 -0
- package/esm/models/operations/gethrislegalentities.d.ts.map +1 -1
- package/esm/models/operations/gethrislegalentities.js.map +1 -1
- package/esm/models/operations/gethrislocations.d.ts +2 -0
- package/esm/models/operations/gethrislocations.d.ts.map +1 -1
- package/esm/models/operations/gethrislocations.js.map +1 -1
- package/esm/models/operations/gethrisperformancereviewcycles.d.ts +2 -0
- package/esm/models/operations/gethrisperformancereviewcycles.d.ts.map +1 -1
- package/esm/models/operations/gethrisperformancereviewcycles.js.map +1 -1
- package/esm/models/operations/gethrisperformancereviews.d.ts +6 -0
- package/esm/models/operations/gethrisperformancereviews.d.ts.map +1 -1
- package/esm/models/operations/gethrisperformancereviews.js.map +1 -1
- package/esm/models/operations/gethrisstaffingentities.d.ts +93 -0
- package/esm/models/operations/gethrisstaffingentities.d.ts.map +1 -0
- package/esm/models/operations/gethrisstaffingentities.js +34 -0
- package/esm/models/operations/gethrisstaffingentities.js.map +1 -0
- package/esm/models/operations/gethristimeoffbalances.d.ts +4 -0
- package/esm/models/operations/gethristimeoffbalances.d.ts.map +1 -1
- package/esm/models/operations/gethristimeoffbalances.js.map +1 -1
- package/esm/models/operations/gethristimesheets.d.ts +2 -0
- package/esm/models/operations/gethristimesheets.d.ts.map +1 -1
- package/esm/models/operations/gethristimesheets.js.map +1 -1
- package/esm/models/operations/index.d.ts +2 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +2 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/postatsapplicationsapplicationidnotesrequestbody.d.ts +21 -0
- package/esm/models/postatsapplicationsapplicationidnotesrequestbody.d.ts.map +1 -1
- package/esm/models/postatsapplicationsapplicationidnotesrequestbody.js +8 -0
- package/esm/models/postatsapplicationsapplicationidnotesrequestbody.js.map +1 -1
- package/esm/models/postatscandidatesrequestbody.d.ts +60 -0
- package/esm/models/postatscandidatesrequestbody.d.ts.map +1 -1
- package/esm/models/postatscandidatesrequestbody.js +30 -0
- package/esm/models/postatscandidatesrequestbody.js.map +1 -1
- package/esm/models/postatsjobsjobidapplicationsrequestbody.d.ts +60 -0
- package/esm/models/postatsjobsjobidapplicationsrequestbody.d.ts.map +1 -1
- package/esm/models/postatsjobsjobidapplicationsrequestbody.js +30 -0
- package/esm/models/postatsjobsjobidapplicationsrequestbody.js.map +1 -1
- package/esm/models/postconnectcreatelinkrequestbody.d.ts +4 -0
- package/esm/models/postconnectcreatelinkrequestbody.d.ts.map +1 -1
- package/esm/models/postconnectcreatelinkrequestbody.js +4 -0
- package/esm/models/postconnectcreatelinkrequestbody.js.map +1 -1
- package/esm/models/putassessmentordersassessmentorderidresultrequestbody.d.ts +15 -0
- package/esm/models/putassessmentordersassessmentorderidresultrequestbody.d.ts.map +1 -1
- package/esm/models/putassessmentordersassessmentorderidresultrequestbody.js +9 -0
- package/esm/models/putassessmentordersassessmentorderidresultrequestbody.js.map +1 -1
- package/esm/models/putatsapplicationsapplicationidstagerequestbody.d.ts +40 -0
- package/esm/models/putatsapplicationsapplicationidstagerequestbody.d.ts.map +1 -1
- package/esm/models/putatsapplicationsapplicationidstagerequestbody.js +24 -0
- package/esm/models/putatsapplicationsapplicationidstagerequestbody.js.map +1 -1
- package/esm/sdk/ats.d.ts +15 -1
- package/esm/sdk/ats.d.ts.map +1 -1
- package/esm/sdk/ats.js +16 -1
- package/esm/sdk/ats.js.map +1 -1
- package/esm/sdk/general.d.ts +19 -6
- package/esm/sdk/general.d.ts.map +1 -1
- package/esm/sdk/general.js +19 -6
- package/esm/sdk/general.js.map +1 -1
- package/esm/sdk/hris.d.ts +21 -4
- package/esm/sdk/hris.d.ts.map +1 -1
- package/esm/sdk/hris.js +22 -4
- package/esm/sdk/hris.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/assessmentUpdateOrderResult.ts +0 -1
- package/src/funcs/atsAddApplicationAttachment.ts +0 -1
- package/src/funcs/atsAddApplicationNote.ts +0 -1
- package/src/funcs/atsAddApplicationResultLink.ts +0 -1
- package/src/funcs/atsAddCandidateAttachment.ts +0 -1
- package/src/funcs/atsAddCandidateResultLink.ts +0 -1
- package/src/funcs/atsAddCandidateTag.ts +0 -1
- package/src/funcs/atsCreateApplication.ts +0 -1
- package/src/funcs/atsGetApplicationAttachments.ts +0 -1
- package/src/funcs/atsGetCandidateAttachments.ts +0 -1
- package/src/funcs/atsGetRoles.ts +256 -0
- package/src/funcs/atsMoveApplicationToStage.ts +2 -2
- package/src/funcs/atsRejectApplication.ts +0 -1
- package/src/funcs/atsRemoveCandidateTag.ts +0 -1
- package/src/funcs/connectGetIntegrationByToken.ts +0 -1
- package/src/funcs/generalCreateReconnectionLink.ts +0 -1
- package/src/funcs/generalDeleteIntegration.ts +0 -1
- package/src/funcs/generalGetCustomFields.ts +0 -1
- package/src/funcs/generalGetIntegrationDetails.ts +0 -1
- package/src/funcs/generalGetIntegrationFields.ts +0 -1
- package/src/funcs/generalGetTools.ts +0 -1
- package/src/funcs/generalSendPassthroughRequest.ts +19 -7
- package/src/funcs/generalSetIntegrationEnabled.ts +0 -1
- package/src/funcs/generalUpdateCustomFieldMapping.ts +0 -1
- package/src/funcs/generalUpdateIntegrationField.ts +0 -1
- package/src/funcs/hrisAddEmployeeDocument.ts +0 -1
- package/src/funcs/hrisDeleteAbsence.ts +0 -1
- package/src/funcs/hrisGetPerformanceReviewCycles.ts +0 -2
- package/src/funcs/hrisGetPerformanceReviews.ts +0 -2
- package/src/funcs/hrisGetStaffingEntities.ts +267 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +23 -4
- package/src/lib/files.ts +22 -0
- package/src/lib/matchers.ts +3 -2
- package/src/lib/sdks.ts +7 -5
- package/src/lib/security.ts +1 -2
- package/src/lib/url.ts +16 -14
- package/src/models/assessmentorderreceivedwebhookpayload.ts +21 -4
- package/src/models/datachangedwebhookpayload.ts +8 -0
- package/src/models/getassessmentordersopenpositiveresponse.ts +15 -2
- package/src/models/getatsjobspositiveresponse.ts +100 -1
- package/src/models/getatsrolespositiveresponse.ts +167 -0
- package/src/models/getatsuserspositiveresponse.ts +97 -0
- package/src/models/gethrisemployeespositiveresponse.ts +55 -37
- package/src/models/gethrisstaffingentitiespositiveresponse.ts +509 -0
- package/src/models/index.ts +2 -0
- package/src/models/inlineassessmentorderreceivedwebhookpayload.ts +21 -4
- package/src/models/komboatserror.ts +1 -0
- package/src/models/kombogeneralerror.ts +1 -0
- package/src/models/kombohriserror.ts +1 -0
- package/src/models/operations/getatsapplications.ts +9 -0
- package/src/models/operations/getatsapplicationstages.ts +2 -0
- package/src/models/operations/getatscandidates.ts +8 -0
- package/src/models/operations/getatsinterviews.ts +8 -0
- package/src/models/operations/getatsjobs.ts +11 -0
- package/src/models/operations/getatsoffers.ts +6 -0
- package/src/models/operations/getatsrejectionreasons.ts +2 -0
- package/src/models/operations/getatsroles.ts +129 -0
- package/src/models/operations/getatstags.ts +2 -0
- package/src/models/operations/getatsusers.ts +5 -0
- package/src/models/operations/gethrisabsences.ts +4 -0
- package/src/models/operations/gethrisabsencetypes.ts +2 -0
- package/src/models/operations/gethrisemployeedocumentcategories.ts +2 -0
- package/src/models/operations/gethrisemployees.ts +10 -0
- package/src/models/operations/gethrisemployments.ts +2 -0
- package/src/models/operations/gethrisgroups.ts +2 -0
- package/src/models/operations/gethrislegalentities.ts +2 -0
- package/src/models/operations/gethrislocations.ts +2 -0
- package/src/models/operations/gethrisperformancereviewcycles.ts +2 -0
- package/src/models/operations/gethrisperformancereviews.ts +6 -0
- package/src/models/operations/gethrisstaffingentities.ts +146 -0
- package/src/models/operations/gethristimeoffbalances.ts +4 -0
- package/src/models/operations/gethristimesheets.ts +2 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/postatsapplicationsapplicationidnotesrequestbody.ts +46 -0
- package/src/models/postatscandidatesrequestbody.ts +110 -0
- package/src/models/postatsjobsjobidapplicationsrequestbody.ts +114 -0
- package/src/models/postconnectcreatelinkrequestbody.ts +4 -0
- package/src/models/putassessmentordersassessmentorderidresultrequestbody.ts +42 -0
- package/src/models/putatsapplicationsapplicationidstagerequestbody.ts +74 -0
- package/src/sdk/ats.ts +24 -1
- package/src/sdk/general.ts +19 -6
- package/src/sdk/hris.ts +32 -4
|
@@ -98,6 +98,9 @@ export type AssessmentOrderReceivedWebhookPayloadLocation = {
|
|
|
98
98
|
export const AssessmentOrderReceivedWebhookPayloadHiringTeamRole = {
|
|
99
99
|
Recruiter: "RECRUITER",
|
|
100
100
|
HiringManager: "HIRING_MANAGER",
|
|
101
|
+
Coordinator: "COORDINATOR",
|
|
102
|
+
Sourcer: "SOURCER",
|
|
103
|
+
Interviewer: "INTERVIEWER",
|
|
101
104
|
} as const;
|
|
102
105
|
export type AssessmentOrderReceivedWebhookPayloadHiringTeamRole = ClosedEnum<
|
|
103
106
|
typeof AssessmentOrderReceivedWebhookPayloadHiringTeamRole
|
|
@@ -110,7 +113,7 @@ export type AssessmentOrderReceivedWebhookPayloadHiringTeam = {
|
|
|
110
113
|
/**
|
|
111
114
|
* The team member's identifier in the integrated system.
|
|
112
115
|
*/
|
|
113
|
-
remote_id: string;
|
|
116
|
+
remote_id: string | null;
|
|
114
117
|
/**
|
|
115
118
|
* The team member's email address.
|
|
116
119
|
*/
|
|
@@ -141,6 +144,14 @@ export type AssessmentOrderReceivedWebhookPayloadJob = {
|
|
|
141
144
|
* The job title.
|
|
142
145
|
*/
|
|
143
146
|
name?: string | null | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* The human readable job code. Some systems expose this as the Requisition Code/ID.
|
|
149
|
+
*/
|
|
150
|
+
job_code?: string | null | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* Description of the job. This field is usually returned as HTML.
|
|
153
|
+
*/
|
|
154
|
+
description?: string | null | undefined;
|
|
144
155
|
/**
|
|
145
156
|
* The job location information.
|
|
146
157
|
*/
|
|
@@ -408,7 +419,7 @@ export const AssessmentOrderReceivedWebhookPayloadHiringTeam$inboundSchema:
|
|
|
408
419
|
z.ZodTypeDef,
|
|
409
420
|
unknown
|
|
410
421
|
> = z.object({
|
|
411
|
-
remote_id: z.string(),
|
|
422
|
+
remote_id: z.nullable(z.string()),
|
|
412
423
|
email: z.nullable(z.string()),
|
|
413
424
|
first_name: z.nullable(z.string()),
|
|
414
425
|
last_name: z.nullable(z.string()),
|
|
@@ -418,7 +429,7 @@ export const AssessmentOrderReceivedWebhookPayloadHiringTeam$inboundSchema:
|
|
|
418
429
|
});
|
|
419
430
|
/** @internal */
|
|
420
431
|
export type AssessmentOrderReceivedWebhookPayloadHiringTeam$Outbound = {
|
|
421
|
-
remote_id: string;
|
|
432
|
+
remote_id: string | null;
|
|
422
433
|
email: string | null;
|
|
423
434
|
first_name: string | null;
|
|
424
435
|
last_name: string | null;
|
|
@@ -432,7 +443,7 @@ export const AssessmentOrderReceivedWebhookPayloadHiringTeam$outboundSchema:
|
|
|
432
443
|
z.ZodTypeDef,
|
|
433
444
|
AssessmentOrderReceivedWebhookPayloadHiringTeam
|
|
434
445
|
> = z.object({
|
|
435
|
-
remote_id: z.string(),
|
|
446
|
+
remote_id: z.nullable(z.string()),
|
|
436
447
|
email: z.nullable(z.string()),
|
|
437
448
|
first_name: z.nullable(z.string()),
|
|
438
449
|
last_name: z.nullable(z.string()),
|
|
@@ -475,6 +486,8 @@ export const AssessmentOrderReceivedWebhookPayloadJob$inboundSchema: z.ZodType<
|
|
|
475
486
|
> = z.object({
|
|
476
487
|
remote_id: z.nullable(z.string()).optional(),
|
|
477
488
|
name: z.nullable(z.string()).optional(),
|
|
489
|
+
job_code: z.nullable(z.string()).optional(),
|
|
490
|
+
description: z.nullable(z.string()).optional(),
|
|
478
491
|
location: z.nullable(
|
|
479
492
|
z.lazy(() => AssessmentOrderReceivedWebhookPayloadLocation$inboundSchema),
|
|
480
493
|
).optional(),
|
|
@@ -486,6 +499,8 @@ export const AssessmentOrderReceivedWebhookPayloadJob$inboundSchema: z.ZodType<
|
|
|
486
499
|
export type AssessmentOrderReceivedWebhookPayloadJob$Outbound = {
|
|
487
500
|
remote_id?: string | null | undefined;
|
|
488
501
|
name?: string | null | undefined;
|
|
502
|
+
job_code?: string | null | undefined;
|
|
503
|
+
description?: string | null | undefined;
|
|
489
504
|
location?:
|
|
490
505
|
| AssessmentOrderReceivedWebhookPayloadLocation$Outbound
|
|
491
506
|
| null
|
|
@@ -501,6 +516,8 @@ export const AssessmentOrderReceivedWebhookPayloadJob$outboundSchema: z.ZodType<
|
|
|
501
516
|
> = z.object({
|
|
502
517
|
remote_id: z.nullable(z.string()).optional(),
|
|
503
518
|
name: z.nullable(z.string()).optional(),
|
|
519
|
+
job_code: z.nullable(z.string()).optional(),
|
|
520
|
+
description: z.nullable(z.string()).optional(),
|
|
504
521
|
location: z.nullable(
|
|
505
522
|
z.lazy(() => AssessmentOrderReceivedWebhookPayloadLocation$outboundSchema),
|
|
506
523
|
).optional(),
|
|
@@ -53,6 +53,7 @@ export const Name = {
|
|
|
53
53
|
HrisEmployeeDocumentCategories: "hris_employee_document_categories",
|
|
54
54
|
HrisPerformanceReviews: "hris_performance_reviews",
|
|
55
55
|
HrisPerformanceReviewCycles: "hris_performance_review_cycles",
|
|
56
|
+
HrisStaffingEntities: "hris_staffing_entities",
|
|
56
57
|
AtsUsers: "ats_users",
|
|
57
58
|
AtsJobs: "ats_jobs",
|
|
58
59
|
AtsJobPostings: "ats_job_postings",
|
|
@@ -64,6 +65,7 @@ export const Name = {
|
|
|
64
65
|
AtsInterviews: "ats_interviews",
|
|
65
66
|
AtsOffers: "ats_offers",
|
|
66
67
|
AtsRejectionReasons: "ats_rejection_reasons",
|
|
68
|
+
AtsRoles: "ats_roles",
|
|
67
69
|
LmsUsers: "lms_users",
|
|
68
70
|
LmsCourseProviders: "lms_course_providers",
|
|
69
71
|
LmsSkills: "lms_skills",
|
|
@@ -71,10 +73,16 @@ export const Name = {
|
|
|
71
73
|
LmsCourseRevisions: "lms_course_revisions",
|
|
72
74
|
LmsCourseProgressions: "lms_course_progressions",
|
|
73
75
|
HrisJoinEmployeesTeams: "hris_join_employees_teams",
|
|
76
|
+
HrisJoinStaffingEntitiesLocations: "hris_join_staffing_entities_locations",
|
|
77
|
+
HrisJoinStaffingEntitiesLegalEntities:
|
|
78
|
+
"hris_join_staffing_entities_legal_entities",
|
|
79
|
+
HrisJoinStaffingEntitiesGroups: "hris_join_staffing_entities_groups",
|
|
74
80
|
AtsJoinCandidatesTags: "ats_join_candidates_tags",
|
|
75
81
|
AtsJoinJobsApplicationStages: "ats_join_jobs_application_stages",
|
|
76
82
|
AtsJoinJobsScreeningQuestions: "ats_join_jobs_screening_questions",
|
|
83
|
+
AtsJoinUserJobRoleAssignments: "ats_join_user_job_role_assignments",
|
|
77
84
|
AtsJoinJobsUsers: "ats_join_jobs_users",
|
|
85
|
+
AtsJoinUsersRoles: "ats_join_users_roles",
|
|
78
86
|
AtsJoinInterviewsUsers: "ats_join_interviews_users",
|
|
79
87
|
LmsJoinRevisionsSkills: "lms_join_revisions_skills",
|
|
80
88
|
} as const;
|
|
@@ -69,6 +69,9 @@ export type GetAssessmentOrdersOpenPositiveResponseLocation = {
|
|
|
69
69
|
export const GetAssessmentOrdersOpenPositiveResponseHiringTeamRole = {
|
|
70
70
|
Recruiter: "RECRUITER",
|
|
71
71
|
HiringManager: "HIRING_MANAGER",
|
|
72
|
+
Coordinator: "COORDINATOR",
|
|
73
|
+
Sourcer: "SOURCER",
|
|
74
|
+
Interviewer: "INTERVIEWER",
|
|
72
75
|
} as const;
|
|
73
76
|
export type GetAssessmentOrdersOpenPositiveResponseHiringTeamRole = ClosedEnum<
|
|
74
77
|
typeof GetAssessmentOrdersOpenPositiveResponseHiringTeamRole
|
|
@@ -81,7 +84,7 @@ export type GetAssessmentOrdersOpenPositiveResponseHiringTeam = {
|
|
|
81
84
|
/**
|
|
82
85
|
* The team member's identifier in the integrated system.
|
|
83
86
|
*/
|
|
84
|
-
remote_id: string;
|
|
87
|
+
remote_id: string | null;
|
|
85
88
|
/**
|
|
86
89
|
* The team member's email address.
|
|
87
90
|
*/
|
|
@@ -114,6 +117,14 @@ export type GetAssessmentOrdersOpenPositiveResponseJob = {
|
|
|
114
117
|
* The job title.
|
|
115
118
|
*/
|
|
116
119
|
name?: string | null | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* The human readable job code. Some systems expose this as the Requisition Code/ID.
|
|
122
|
+
*/
|
|
123
|
+
job_code?: string | null | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* Description of the job. This field is usually returned as HTML.
|
|
126
|
+
*/
|
|
127
|
+
description?: string | null | undefined;
|
|
117
128
|
/**
|
|
118
129
|
* The job location information.
|
|
119
130
|
*/
|
|
@@ -258,7 +269,7 @@ export const GetAssessmentOrdersOpenPositiveResponseHiringTeam$inboundSchema:
|
|
|
258
269
|
z.ZodTypeDef,
|
|
259
270
|
unknown
|
|
260
271
|
> = z.object({
|
|
261
|
-
remote_id: z.string(),
|
|
272
|
+
remote_id: z.nullable(z.string()),
|
|
262
273
|
email: z.nullable(z.string()),
|
|
263
274
|
first_name: z.nullable(z.string()),
|
|
264
275
|
last_name: z.nullable(z.string()),
|
|
@@ -289,6 +300,8 @@ export const GetAssessmentOrdersOpenPositiveResponseJob$inboundSchema:
|
|
|
289
300
|
z.object({
|
|
290
301
|
remote_id: z.nullable(z.string()).optional(),
|
|
291
302
|
name: z.nullable(z.string()).optional(),
|
|
303
|
+
job_code: z.nullable(z.string()).optional(),
|
|
304
|
+
description: z.nullable(z.string()).optional(),
|
|
292
305
|
location: z.nullable(
|
|
293
306
|
z.lazy(() =>
|
|
294
307
|
GetAssessmentOrdersOpenPositiveResponseLocation$inboundSchema
|
|
@@ -335,11 +335,65 @@ export type JobPosting = {
|
|
|
335
335
|
export const GetAtsJobsPositiveResponseHiringTeamRole = {
|
|
336
336
|
Recruiter: "RECRUITER",
|
|
337
337
|
HiringManager: "HIRING_MANAGER",
|
|
338
|
+
Coordinator: "COORDINATOR",
|
|
339
|
+
Sourcer: "SOURCER",
|
|
340
|
+
Interviewer: "INTERVIEWER",
|
|
338
341
|
} as const;
|
|
339
342
|
export type GetAtsJobsPositiveResponseHiringTeamRole = ClosedEnum<
|
|
340
343
|
typeof GetAtsJobsPositiveResponseHiringTeamRole
|
|
341
344
|
>;
|
|
342
345
|
|
|
346
|
+
/**
|
|
347
|
+
* Whether the role applies globally or is scoped to a specific job.
|
|
348
|
+
*/
|
|
349
|
+
export const GetAtsJobsPositiveResponseScope = {
|
|
350
|
+
System: "SYSTEM",
|
|
351
|
+
Job: "JOB",
|
|
352
|
+
} as const;
|
|
353
|
+
/**
|
|
354
|
+
* Whether the role applies globally or is scoped to a specific job.
|
|
355
|
+
*/
|
|
356
|
+
export type GetAtsJobsPositiveResponseScope = ClosedEnum<
|
|
357
|
+
typeof GetAtsJobsPositiveResponseScope
|
|
358
|
+
>;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Unified role type if Kombo can map it.
|
|
362
|
+
*/
|
|
363
|
+
export const GetAtsJobsPositiveResponseUnifiedType = {
|
|
364
|
+
HiringManager: "HIRING_MANAGER",
|
|
365
|
+
Recruiter: "RECRUITER",
|
|
366
|
+
Coordinator: "COORDINATOR",
|
|
367
|
+
Sourcer: "SOURCER",
|
|
368
|
+
Interviewer: "INTERVIEWER",
|
|
369
|
+
Admin: "ADMIN",
|
|
370
|
+
} as const;
|
|
371
|
+
/**
|
|
372
|
+
* Unified role type if Kombo can map it.
|
|
373
|
+
*/
|
|
374
|
+
export type GetAtsJobsPositiveResponseUnifiedType = ClosedEnum<
|
|
375
|
+
typeof GetAtsJobsPositiveResponseUnifiedType
|
|
376
|
+
>;
|
|
377
|
+
|
|
378
|
+
export type JobRole = {
|
|
379
|
+
/**
|
|
380
|
+
* The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.
|
|
381
|
+
*/
|
|
382
|
+
remote_id: string | null;
|
|
383
|
+
/**
|
|
384
|
+
* The label of the role.
|
|
385
|
+
*/
|
|
386
|
+
remote_label: string | null;
|
|
387
|
+
/**
|
|
388
|
+
* Whether the role applies globally or is scoped to a specific job.
|
|
389
|
+
*/
|
|
390
|
+
scope: GetAtsJobsPositiveResponseScope | null;
|
|
391
|
+
/**
|
|
392
|
+
* Unified role type if Kombo can map it.
|
|
393
|
+
*/
|
|
394
|
+
unified_type: GetAtsJobsPositiveResponseUnifiedType | null;
|
|
395
|
+
};
|
|
396
|
+
|
|
343
397
|
export type GetAtsJobsPositiveResponseHiringTeam = {
|
|
344
398
|
/**
|
|
345
399
|
* The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing.
|
|
@@ -362,9 +416,21 @@ export type GetAtsJobsPositiveResponseHiringTeam = {
|
|
|
362
416
|
*/
|
|
363
417
|
email?: string | null | undefined;
|
|
364
418
|
/**
|
|
365
|
-
* Array of the roles of the user for this specific job. Currently only `RECRUITER` and `HIRING_MANAGER` are mapped into our unified schema.
|
|
419
|
+
* **(⚠️ Deprecated - Use `job_roles` to access the full list of job roles.)** Array of the roles of the user for this specific job. Currently only `RECRUITER` and `HIRING_MANAGER` are mapped into our unified schema.
|
|
420
|
+
*
|
|
421
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
366
422
|
*/
|
|
367
423
|
hiring_team_roles: Array<GetAtsJobsPositiveResponseHiringTeamRole>;
|
|
424
|
+
/**
|
|
425
|
+
* Roles assigned to this user for this job.
|
|
426
|
+
*
|
|
427
|
+
* @remarks
|
|
428
|
+
*
|
|
429
|
+
* Visit our in-depth guide about [roles](/ats/features/roles) to learn more.
|
|
430
|
+
*
|
|
431
|
+
* Use `system_roles` on the `/v1/ats/users` endpoint for system-wide roles.
|
|
432
|
+
*/
|
|
433
|
+
job_roles: Array<JobRole>;
|
|
368
434
|
};
|
|
369
435
|
|
|
370
436
|
export type GetAtsJobsPositiveResponseResult = {
|
|
@@ -976,6 +1042,38 @@ export const GetAtsJobsPositiveResponseHiringTeamRole$inboundSchema:
|
|
|
976
1042
|
z.ZodNativeEnum<typeof GetAtsJobsPositiveResponseHiringTeamRole> = z
|
|
977
1043
|
.nativeEnum(GetAtsJobsPositiveResponseHiringTeamRole);
|
|
978
1044
|
|
|
1045
|
+
/** @internal */
|
|
1046
|
+
export const GetAtsJobsPositiveResponseScope$inboundSchema: z.ZodNativeEnum<
|
|
1047
|
+
typeof GetAtsJobsPositiveResponseScope
|
|
1048
|
+
> = z.nativeEnum(GetAtsJobsPositiveResponseScope);
|
|
1049
|
+
|
|
1050
|
+
/** @internal */
|
|
1051
|
+
export const GetAtsJobsPositiveResponseUnifiedType$inboundSchema:
|
|
1052
|
+
z.ZodNativeEnum<typeof GetAtsJobsPositiveResponseUnifiedType> = z.nativeEnum(
|
|
1053
|
+
GetAtsJobsPositiveResponseUnifiedType,
|
|
1054
|
+
);
|
|
1055
|
+
|
|
1056
|
+
/** @internal */
|
|
1057
|
+
export const JobRole$inboundSchema: z.ZodType<JobRole, z.ZodTypeDef, unknown> =
|
|
1058
|
+
z.object({
|
|
1059
|
+
remote_id: z.nullable(z.string()),
|
|
1060
|
+
remote_label: z.nullable(z.string()),
|
|
1061
|
+
scope: z.nullable(GetAtsJobsPositiveResponseScope$inboundSchema),
|
|
1062
|
+
unified_type: z.nullable(
|
|
1063
|
+
GetAtsJobsPositiveResponseUnifiedType$inboundSchema,
|
|
1064
|
+
),
|
|
1065
|
+
});
|
|
1066
|
+
|
|
1067
|
+
export function jobRoleFromJSON(
|
|
1068
|
+
jsonString: string,
|
|
1069
|
+
): SafeParseResult<JobRole, SDKValidationError> {
|
|
1070
|
+
return safeParse(
|
|
1071
|
+
jsonString,
|
|
1072
|
+
(x) => JobRole$inboundSchema.parse(JSON.parse(x)),
|
|
1073
|
+
`Failed to parse 'JobRole' from JSON`,
|
|
1074
|
+
);
|
|
1075
|
+
}
|
|
1076
|
+
|
|
979
1077
|
/** @internal */
|
|
980
1078
|
export const GetAtsJobsPositiveResponseHiringTeam$inboundSchema: z.ZodType<
|
|
981
1079
|
GetAtsJobsPositiveResponseHiringTeam,
|
|
@@ -990,6 +1088,7 @@ export const GetAtsJobsPositiveResponseHiringTeam$inboundSchema: z.ZodType<
|
|
|
990
1088
|
hiring_team_roles: z.array(
|
|
991
1089
|
GetAtsJobsPositiveResponseHiringTeamRole$inboundSchema,
|
|
992
1090
|
),
|
|
1091
|
+
job_roles: z.array(z.lazy(() => JobRole$inboundSchema)),
|
|
993
1092
|
});
|
|
994
1093
|
|
|
995
1094
|
export function getAtsJobsPositiveResponseHiringTeamFromJSON(
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Whether the role applies globally or is scoped to a specific job.
|
|
13
|
+
*/
|
|
14
|
+
export const GetAtsRolesPositiveResponseScope = {
|
|
15
|
+
System: "SYSTEM",
|
|
16
|
+
Job: "JOB",
|
|
17
|
+
} as const;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the role applies globally or is scoped to a specific job.
|
|
20
|
+
*/
|
|
21
|
+
export type GetAtsRolesPositiveResponseScope = ClosedEnum<
|
|
22
|
+
typeof GetAtsRolesPositiveResponseScope
|
|
23
|
+
>;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Unified role type if Kombo can map it.
|
|
27
|
+
*/
|
|
28
|
+
export const GetAtsRolesPositiveResponseUnifiedType = {
|
|
29
|
+
HiringManager: "HIRING_MANAGER",
|
|
30
|
+
Recruiter: "RECRUITER",
|
|
31
|
+
Coordinator: "COORDINATOR",
|
|
32
|
+
Sourcer: "SOURCER",
|
|
33
|
+
Interviewer: "INTERVIEWER",
|
|
34
|
+
Admin: "ADMIN",
|
|
35
|
+
} as const;
|
|
36
|
+
/**
|
|
37
|
+
* Unified role type if Kombo can map it.
|
|
38
|
+
*/
|
|
39
|
+
export type GetAtsRolesPositiveResponseUnifiedType = ClosedEnum<
|
|
40
|
+
typeof GetAtsRolesPositiveResponseUnifiedType
|
|
41
|
+
>;
|
|
42
|
+
|
|
43
|
+
export type GetAtsRolesPositiveResponseResult = {
|
|
44
|
+
/**
|
|
45
|
+
* The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing.
|
|
46
|
+
*/
|
|
47
|
+
id: string;
|
|
48
|
+
/**
|
|
49
|
+
* The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.
|
|
50
|
+
*/
|
|
51
|
+
remote_id: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* The label of the role.
|
|
54
|
+
*/
|
|
55
|
+
remote_label: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the role applies globally or is scoped to a specific job.
|
|
58
|
+
*/
|
|
59
|
+
scope: GetAtsRolesPositiveResponseScope | null;
|
|
60
|
+
/**
|
|
61
|
+
* Unified role type if Kombo can map it.
|
|
62
|
+
*/
|
|
63
|
+
unified_type: GetAtsRolesPositiveResponseUnifiedType | null;
|
|
64
|
+
/**
|
|
65
|
+
* The timestamp when this specific record was last modified. This field only updates when properties directly on this record change, NOT when related or nested models change. For filtering that considers nested data changes, use the `updated_after` parameter which will return records when either the record itself OR its related models have been updated.
|
|
66
|
+
*/
|
|
67
|
+
changed_at: Date;
|
|
68
|
+
/**
|
|
69
|
+
* The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear.
|
|
70
|
+
*/
|
|
71
|
+
remote_deleted_at: Date | null;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export type GetAtsRolesPositiveResponseData = {
|
|
75
|
+
/**
|
|
76
|
+
* Cursor string that can be passed to the `cursor` query parameter to get the next page. If this is `null`, then there are no more pages.
|
|
77
|
+
*/
|
|
78
|
+
next: string | null;
|
|
79
|
+
results: Array<GetAtsRolesPositiveResponseResult>;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export type GetAtsRolesPositiveResponse = {
|
|
83
|
+
status: "success";
|
|
84
|
+
data: GetAtsRolesPositiveResponseData;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/** @internal */
|
|
88
|
+
export const GetAtsRolesPositiveResponseScope$inboundSchema: z.ZodNativeEnum<
|
|
89
|
+
typeof GetAtsRolesPositiveResponseScope
|
|
90
|
+
> = z.nativeEnum(GetAtsRolesPositiveResponseScope);
|
|
91
|
+
|
|
92
|
+
/** @internal */
|
|
93
|
+
export const GetAtsRolesPositiveResponseUnifiedType$inboundSchema:
|
|
94
|
+
z.ZodNativeEnum<typeof GetAtsRolesPositiveResponseUnifiedType> = z.nativeEnum(
|
|
95
|
+
GetAtsRolesPositiveResponseUnifiedType,
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
/** @internal */
|
|
99
|
+
export const GetAtsRolesPositiveResponseResult$inboundSchema: z.ZodType<
|
|
100
|
+
GetAtsRolesPositiveResponseResult,
|
|
101
|
+
z.ZodTypeDef,
|
|
102
|
+
unknown
|
|
103
|
+
> = z.object({
|
|
104
|
+
id: z.string(),
|
|
105
|
+
remote_id: z.nullable(z.string()),
|
|
106
|
+
remote_label: z.nullable(z.string()),
|
|
107
|
+
scope: z.nullable(GetAtsRolesPositiveResponseScope$inboundSchema),
|
|
108
|
+
unified_type: z.nullable(
|
|
109
|
+
GetAtsRolesPositiveResponseUnifiedType$inboundSchema,
|
|
110
|
+
),
|
|
111
|
+
changed_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
112
|
+
remote_deleted_at: z.nullable(
|
|
113
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
114
|
+
),
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
export function getAtsRolesPositiveResponseResultFromJSON(
|
|
118
|
+
jsonString: string,
|
|
119
|
+
): SafeParseResult<GetAtsRolesPositiveResponseResult, SDKValidationError> {
|
|
120
|
+
return safeParse(
|
|
121
|
+
jsonString,
|
|
122
|
+
(x) => GetAtsRolesPositiveResponseResult$inboundSchema.parse(JSON.parse(x)),
|
|
123
|
+
`Failed to parse 'GetAtsRolesPositiveResponseResult' from JSON`,
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/** @internal */
|
|
128
|
+
export const GetAtsRolesPositiveResponseData$inboundSchema: z.ZodType<
|
|
129
|
+
GetAtsRolesPositiveResponseData,
|
|
130
|
+
z.ZodTypeDef,
|
|
131
|
+
unknown
|
|
132
|
+
> = z.object({
|
|
133
|
+
next: z.nullable(z.string()),
|
|
134
|
+
results: z.array(
|
|
135
|
+
z.lazy(() => GetAtsRolesPositiveResponseResult$inboundSchema),
|
|
136
|
+
),
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
export function getAtsRolesPositiveResponseDataFromJSON(
|
|
140
|
+
jsonString: string,
|
|
141
|
+
): SafeParseResult<GetAtsRolesPositiveResponseData, SDKValidationError> {
|
|
142
|
+
return safeParse(
|
|
143
|
+
jsonString,
|
|
144
|
+
(x) => GetAtsRolesPositiveResponseData$inboundSchema.parse(JSON.parse(x)),
|
|
145
|
+
`Failed to parse 'GetAtsRolesPositiveResponseData' from JSON`,
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** @internal */
|
|
150
|
+
export const GetAtsRolesPositiveResponse$inboundSchema: z.ZodType<
|
|
151
|
+
GetAtsRolesPositiveResponse,
|
|
152
|
+
z.ZodTypeDef,
|
|
153
|
+
unknown
|
|
154
|
+
> = z.object({
|
|
155
|
+
status: z.literal("success"),
|
|
156
|
+
data: z.lazy(() => GetAtsRolesPositiveResponseData$inboundSchema),
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
export function getAtsRolesPositiveResponseFromJSON(
|
|
160
|
+
jsonString: string,
|
|
161
|
+
): SafeParseResult<GetAtsRolesPositiveResponse, SDKValidationError> {
|
|
162
|
+
return safeParse(
|
|
163
|
+
jsonString,
|
|
164
|
+
(x) => GetAtsRolesPositiveResponse$inboundSchema.parse(JSON.parse(x)),
|
|
165
|
+
`Failed to parse 'GetAtsRolesPositiveResponse' from JSON`,
|
|
166
|
+
);
|
|
167
|
+
}
|
|
@@ -22,6 +22,57 @@ export type GetAtsUsersPositiveResponseStatus = ClosedEnum<
|
|
|
22
22
|
typeof GetAtsUsersPositiveResponseStatus
|
|
23
23
|
>;
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Whether the role applies globally or is scoped to a specific job.
|
|
27
|
+
*/
|
|
28
|
+
export const GetAtsUsersPositiveResponseScope = {
|
|
29
|
+
System: "SYSTEM",
|
|
30
|
+
Job: "JOB",
|
|
31
|
+
} as const;
|
|
32
|
+
/**
|
|
33
|
+
* Whether the role applies globally or is scoped to a specific job.
|
|
34
|
+
*/
|
|
35
|
+
export type GetAtsUsersPositiveResponseScope = ClosedEnum<
|
|
36
|
+
typeof GetAtsUsersPositiveResponseScope
|
|
37
|
+
>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Unified role type if Kombo can map it.
|
|
41
|
+
*/
|
|
42
|
+
export const GetAtsUsersPositiveResponseUnifiedType = {
|
|
43
|
+
HiringManager: "HIRING_MANAGER",
|
|
44
|
+
Recruiter: "RECRUITER",
|
|
45
|
+
Coordinator: "COORDINATOR",
|
|
46
|
+
Sourcer: "SOURCER",
|
|
47
|
+
Interviewer: "INTERVIEWER",
|
|
48
|
+
Admin: "ADMIN",
|
|
49
|
+
} as const;
|
|
50
|
+
/**
|
|
51
|
+
* Unified role type if Kombo can map it.
|
|
52
|
+
*/
|
|
53
|
+
export type GetAtsUsersPositiveResponseUnifiedType = ClosedEnum<
|
|
54
|
+
typeof GetAtsUsersPositiveResponseUnifiedType
|
|
55
|
+
>;
|
|
56
|
+
|
|
57
|
+
export type SystemRole = {
|
|
58
|
+
/**
|
|
59
|
+
* The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.
|
|
60
|
+
*/
|
|
61
|
+
remote_id: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* The label of the role.
|
|
64
|
+
*/
|
|
65
|
+
remote_label: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* Whether the role applies globally or is scoped to a specific job.
|
|
68
|
+
*/
|
|
69
|
+
scope: GetAtsUsersPositiveResponseScope | null;
|
|
70
|
+
/**
|
|
71
|
+
* Unified role type if Kombo can map it.
|
|
72
|
+
*/
|
|
73
|
+
unified_type: GetAtsUsersPositiveResponseUnifiedType | null;
|
|
74
|
+
};
|
|
75
|
+
|
|
25
76
|
export type GetAtsUsersPositiveResponseResult = {
|
|
26
77
|
/**
|
|
27
78
|
* The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing.
|
|
@@ -55,6 +106,16 @@ export type GetAtsUsersPositiveResponseResult = {
|
|
|
55
106
|
* The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear.
|
|
56
107
|
*/
|
|
57
108
|
remote_deleted_at: Date | null;
|
|
109
|
+
/**
|
|
110
|
+
* System-wide roles assigned to this user in the ATS.
|
|
111
|
+
*
|
|
112
|
+
* @remarks
|
|
113
|
+
*
|
|
114
|
+
* Visit our in-depth guide about [roles](/ats/features/roles) to learn more.
|
|
115
|
+
*
|
|
116
|
+
* Note: Use `job_roles` on the `/v1/ats/jobs` endpoint for job-specific roles.
|
|
117
|
+
*/
|
|
118
|
+
system_roles: Array<SystemRole>;
|
|
58
119
|
};
|
|
59
120
|
|
|
60
121
|
export type GetAtsUsersPositiveResponseData = {
|
|
@@ -75,6 +136,41 @@ export const GetAtsUsersPositiveResponseStatus$inboundSchema: z.ZodNativeEnum<
|
|
|
75
136
|
typeof GetAtsUsersPositiveResponseStatus
|
|
76
137
|
> = z.nativeEnum(GetAtsUsersPositiveResponseStatus);
|
|
77
138
|
|
|
139
|
+
/** @internal */
|
|
140
|
+
export const GetAtsUsersPositiveResponseScope$inboundSchema: z.ZodNativeEnum<
|
|
141
|
+
typeof GetAtsUsersPositiveResponseScope
|
|
142
|
+
> = z.nativeEnum(GetAtsUsersPositiveResponseScope);
|
|
143
|
+
|
|
144
|
+
/** @internal */
|
|
145
|
+
export const GetAtsUsersPositiveResponseUnifiedType$inboundSchema:
|
|
146
|
+
z.ZodNativeEnum<typeof GetAtsUsersPositiveResponseUnifiedType> = z.nativeEnum(
|
|
147
|
+
GetAtsUsersPositiveResponseUnifiedType,
|
|
148
|
+
);
|
|
149
|
+
|
|
150
|
+
/** @internal */
|
|
151
|
+
export const SystemRole$inboundSchema: z.ZodType<
|
|
152
|
+
SystemRole,
|
|
153
|
+
z.ZodTypeDef,
|
|
154
|
+
unknown
|
|
155
|
+
> = z.object({
|
|
156
|
+
remote_id: z.nullable(z.string()),
|
|
157
|
+
remote_label: z.nullable(z.string()),
|
|
158
|
+
scope: z.nullable(GetAtsUsersPositiveResponseScope$inboundSchema),
|
|
159
|
+
unified_type: z.nullable(
|
|
160
|
+
GetAtsUsersPositiveResponseUnifiedType$inboundSchema,
|
|
161
|
+
),
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
export function systemRoleFromJSON(
|
|
165
|
+
jsonString: string,
|
|
166
|
+
): SafeParseResult<SystemRole, SDKValidationError> {
|
|
167
|
+
return safeParse(
|
|
168
|
+
jsonString,
|
|
169
|
+
(x) => SystemRole$inboundSchema.parse(JSON.parse(x)),
|
|
170
|
+
`Failed to parse 'SystemRole' from JSON`,
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
|
|
78
174
|
/** @internal */
|
|
79
175
|
export const GetAtsUsersPositiveResponseResult$inboundSchema: z.ZodType<
|
|
80
176
|
GetAtsUsersPositiveResponseResult,
|
|
@@ -91,6 +187,7 @@ export const GetAtsUsersPositiveResponseResult$inboundSchema: z.ZodType<
|
|
|
91
187
|
remote_deleted_at: z.nullable(
|
|
92
188
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
93
189
|
),
|
|
190
|
+
system_roles: z.array(z.lazy(() => SystemRole$inboundSchema)),
|
|
94
191
|
});
|
|
95
192
|
|
|
96
193
|
export function getAtsUsersPositiveResponseResultFromJSON(
|