@kombo-api/sdk 1.0.1 → 1.0.2
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 +18 -5
- package/esm/funcs/generalSendPassthroughRequest.d.ts.map +1 -1
- package/esm/funcs/generalSendPassthroughRequest.js +18 -5
- 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 +5 -2
- package/esm/models/assessmentorderreceivedwebhookpayload.d.ts.map +1 -1
- package/esm/models/assessmentorderreceivedwebhookpayload.js +5 -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 +4 -1
- package/esm/models/getassessmentordersopenpositiveresponse.d.ts.map +1 -1
- package/esm/models/getassessmentordersopenpositiveresponse.js +4 -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 +5 -2
- package/esm/models/inlineassessmentorderreceivedwebhookpayload.d.ts.map +1 -1
- package/esm/models/inlineassessmentorderreceivedwebhookpayload.js +5 -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 +18 -5
- package/esm/sdk/general.d.ts.map +1 -1
- package/esm/sdk/general.js +18 -5
- 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 +18 -6
- 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 +7 -4
- package/src/models/datachangedwebhookpayload.ts +8 -0
- package/src/models/getassessmentordersopenpositiveresponse.ts +5 -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 +7 -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 +18 -5
- package/src/sdk/hris.ts +32 -4
|
@@ -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(
|
|
@@ -390,7 +390,7 @@ export type Manager = {
|
|
|
390
390
|
/**
|
|
391
391
|
* Type of the group.
|
|
392
392
|
*/
|
|
393
|
-
export const
|
|
393
|
+
export const GetHrisEmployeesPositiveResponseGroupType = {
|
|
394
394
|
Department: "DEPARTMENT",
|
|
395
395
|
Team: "TEAM",
|
|
396
396
|
CostCenter: "COST_CENTER",
|
|
@@ -398,9 +398,11 @@ export const GroupType = {
|
|
|
398
398
|
/**
|
|
399
399
|
* Type of the group.
|
|
400
400
|
*/
|
|
401
|
-
export type
|
|
401
|
+
export type GetHrisEmployeesPositiveResponseGroupType = ClosedEnum<
|
|
402
|
+
typeof GetHrisEmployeesPositiveResponseGroupType
|
|
403
|
+
>;
|
|
402
404
|
|
|
403
|
-
export type
|
|
405
|
+
export type GetHrisEmployeesPositiveResponseGroup = {
|
|
404
406
|
/**
|
|
405
407
|
* The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing.
|
|
406
408
|
*/
|
|
@@ -416,7 +418,7 @@ export type Group = {
|
|
|
416
418
|
/**
|
|
417
419
|
* Type of the group.
|
|
418
420
|
*/
|
|
419
|
-
type:
|
|
421
|
+
type: GetHrisEmployeesPositiveResponseGroupType | null;
|
|
420
422
|
};
|
|
421
423
|
|
|
422
424
|
/**
|
|
@@ -441,7 +443,7 @@ export type LegalEntityAddress = {
|
|
|
441
443
|
zip_code?: string | null | undefined;
|
|
442
444
|
};
|
|
443
445
|
|
|
444
|
-
export type
|
|
446
|
+
export type GetHrisEmployeesPositiveResponseLegalEntity = {
|
|
445
447
|
/**
|
|
446
448
|
* The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing.
|
|
447
449
|
*/
|
|
@@ -670,8 +672,8 @@ export type GetHrisEmployeesPositiveResponseResult = {
|
|
|
670
672
|
employments: Array<Employment>;
|
|
671
673
|
time_off_balances: Array<TimeOffBalance>;
|
|
672
674
|
manager: Manager | null;
|
|
673
|
-
groups: Array<
|
|
674
|
-
legal_entity:
|
|
675
|
+
groups: Array<GetHrisEmployeesPositiveResponseGroup>;
|
|
676
|
+
legal_entity: GetHrisEmployeesPositiveResponseLegalEntity | null;
|
|
675
677
|
work_location: WorkLocation | null;
|
|
676
678
|
};
|
|
677
679
|
|
|
@@ -939,25 +941,30 @@ export function managerFromJSON(
|
|
|
939
941
|
}
|
|
940
942
|
|
|
941
943
|
/** @internal */
|
|
942
|
-
export const
|
|
943
|
-
.
|
|
944
|
+
export const GetHrisEmployeesPositiveResponseGroupType$inboundSchema:
|
|
945
|
+
z.ZodNativeEnum<typeof GetHrisEmployeesPositiveResponseGroupType> = z
|
|
946
|
+
.nativeEnum(GetHrisEmployeesPositiveResponseGroupType);
|
|
944
947
|
|
|
945
948
|
/** @internal */
|
|
946
|
-
export const
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
949
|
+
export const GetHrisEmployeesPositiveResponseGroup$inboundSchema: z.ZodType<
|
|
950
|
+
GetHrisEmployeesPositiveResponseGroup,
|
|
951
|
+
z.ZodTypeDef,
|
|
952
|
+
unknown
|
|
953
|
+
> = z.object({
|
|
954
|
+
id: z.string(),
|
|
955
|
+
remote_id: z.string(),
|
|
956
|
+
name: z.nullable(z.string()),
|
|
957
|
+
type: z.nullable(GetHrisEmployeesPositiveResponseGroupType$inboundSchema),
|
|
958
|
+
});
|
|
953
959
|
|
|
954
|
-
export function
|
|
960
|
+
export function getHrisEmployeesPositiveResponseGroupFromJSON(
|
|
955
961
|
jsonString: string,
|
|
956
|
-
): SafeParseResult<
|
|
962
|
+
): SafeParseResult<GetHrisEmployeesPositiveResponseGroup, SDKValidationError> {
|
|
957
963
|
return safeParse(
|
|
958
964
|
jsonString,
|
|
959
|
-
(x) =>
|
|
960
|
-
|
|
965
|
+
(x) =>
|
|
966
|
+
GetHrisEmployeesPositiveResponseGroup$inboundSchema.parse(JSON.parse(x)),
|
|
967
|
+
`Failed to parse 'GetHrisEmployeesPositiveResponseGroup' from JSON`,
|
|
961
968
|
);
|
|
962
969
|
}
|
|
963
970
|
|
|
@@ -987,25 +994,32 @@ export function legalEntityAddressFromJSON(
|
|
|
987
994
|
}
|
|
988
995
|
|
|
989
996
|
/** @internal */
|
|
990
|
-
export const
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
.
|
|
1000
|
-
|
|
997
|
+
export const GetHrisEmployeesPositiveResponseLegalEntity$inboundSchema:
|
|
998
|
+
z.ZodType<
|
|
999
|
+
GetHrisEmployeesPositiveResponseLegalEntity,
|
|
1000
|
+
z.ZodTypeDef,
|
|
1001
|
+
unknown
|
|
1002
|
+
> = z.object({
|
|
1003
|
+
id: z.string(),
|
|
1004
|
+
remote_id: z.nullable(z.string()),
|
|
1005
|
+
name: z.nullable(z.string()),
|
|
1006
|
+
address: z.nullable(z.lazy(() => LegalEntityAddress$inboundSchema))
|
|
1007
|
+
.optional(),
|
|
1008
|
+
});
|
|
1001
1009
|
|
|
1002
|
-
export function
|
|
1010
|
+
export function getHrisEmployeesPositiveResponseLegalEntityFromJSON(
|
|
1003
1011
|
jsonString: string,
|
|
1004
|
-
): SafeParseResult<
|
|
1012
|
+
): SafeParseResult<
|
|
1013
|
+
GetHrisEmployeesPositiveResponseLegalEntity,
|
|
1014
|
+
SDKValidationError
|
|
1015
|
+
> {
|
|
1005
1016
|
return safeParse(
|
|
1006
1017
|
jsonString,
|
|
1007
|
-
(x) =>
|
|
1008
|
-
|
|
1018
|
+
(x) =>
|
|
1019
|
+
GetHrisEmployeesPositiveResponseLegalEntity$inboundSchema.parse(
|
|
1020
|
+
JSON.parse(x),
|
|
1021
|
+
),
|
|
1022
|
+
`Failed to parse 'GetHrisEmployeesPositiveResponseLegalEntity' from JSON`,
|
|
1009
1023
|
);
|
|
1010
1024
|
}
|
|
1011
1025
|
|
|
@@ -1117,8 +1131,12 @@ export const GetHrisEmployeesPositiveResponseResult$inboundSchema: z.ZodType<
|
|
|
1117
1131
|
employments: z.array(z.lazy(() => Employment$inboundSchema)),
|
|
1118
1132
|
time_off_balances: z.array(z.lazy(() => TimeOffBalance$inboundSchema)),
|
|
1119
1133
|
manager: z.nullable(z.lazy(() => Manager$inboundSchema)),
|
|
1120
|
-
groups: z.array(
|
|
1121
|
-
|
|
1134
|
+
groups: z.array(
|
|
1135
|
+
z.lazy(() => GetHrisEmployeesPositiveResponseGroup$inboundSchema),
|
|
1136
|
+
),
|
|
1137
|
+
legal_entity: z.nullable(
|
|
1138
|
+
z.lazy(() => GetHrisEmployeesPositiveResponseLegalEntity$inboundSchema),
|
|
1139
|
+
),
|
|
1122
1140
|
work_location: z.nullable(z.lazy(() => WorkLocation$inboundSchema)),
|
|
1123
1141
|
});
|
|
1124
1142
|
|