@kombo-api/sdk 0.2.3 → 0.3.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 -7
- package/_speakeasy/.github/action-inputs-config.json +53 -0
- package/_speakeasy/.github/action-security-config.json +88 -0
- package/esm/funcs/assessmentGetOpenOrders.js +1 -1
- package/esm/funcs/assessmentGetOpenOrders.js.map +1 -1
- package/esm/funcs/atsGetApplicationStages.js +1 -1
- package/esm/funcs/atsGetApplicationStages.js.map +1 -1
- package/esm/funcs/atsGetApplications.js +1 -1
- package/esm/funcs/atsGetApplications.js.map +1 -1
- package/esm/funcs/atsGetCandidates.js +1 -1
- package/esm/funcs/atsGetCandidates.js.map +1 -1
- package/esm/funcs/atsGetInterviews.js +1 -1
- package/esm/funcs/atsGetInterviews.js.map +1 -1
- package/esm/funcs/atsGetJobs.js +1 -1
- package/esm/funcs/atsGetJobs.js.map +1 -1
- package/esm/funcs/atsGetOffers.js +1 -1
- package/esm/funcs/atsGetOffers.js.map +1 -1
- package/esm/funcs/atsGetRejectionReasons.js +1 -1
- package/esm/funcs/atsGetRejectionReasons.js.map +1 -1
- package/esm/funcs/atsGetTags.js +1 -1
- package/esm/funcs/atsGetTags.js.map +1 -1
- package/esm/funcs/atsGetUsers.js +1 -1
- package/esm/funcs/atsGetUsers.js.map +1 -1
- package/esm/funcs/generalGetCustomFields.js +1 -1
- package/esm/funcs/generalGetCustomFields.js.map +1 -1
- package/esm/funcs/generalGetIntegrationFields.js +1 -1
- package/esm/funcs/generalGetIntegrationFields.js.map +1 -1
- package/esm/funcs/generalSendPassthroughRequest.d.ts +9 -1
- package/esm/funcs/generalSendPassthroughRequest.d.ts.map +1 -1
- package/esm/funcs/generalSendPassthroughRequest.js +9 -1
- package/esm/funcs/generalSendPassthroughRequest.js.map +1 -1
- package/esm/funcs/hrisGetAbsenceTypes.js +1 -1
- package/esm/funcs/hrisGetAbsenceTypes.js.map +1 -1
- package/esm/funcs/hrisGetAbsences.js +1 -1
- package/esm/funcs/hrisGetAbsences.js.map +1 -1
- package/esm/funcs/hrisGetEmployeeDocumentCategories.js +1 -1
- package/esm/funcs/hrisGetEmployeeDocumentCategories.js.map +1 -1
- package/esm/funcs/hrisGetEmployees.js +1 -1
- package/esm/funcs/hrisGetEmployees.js.map +1 -1
- package/esm/funcs/hrisGetEmployments.js +1 -1
- package/esm/funcs/hrisGetEmployments.js.map +1 -1
- package/esm/funcs/hrisGetGroups.js +1 -1
- package/esm/funcs/hrisGetGroups.js.map +1 -1
- package/esm/funcs/hrisGetLegalEntities.js +1 -1
- package/esm/funcs/hrisGetLegalEntities.js.map +1 -1
- package/esm/funcs/hrisGetLocations.js +1 -1
- package/esm/funcs/hrisGetLocations.js.map +1 -1
- package/esm/funcs/hrisGetPerformanceReviewCycles.js +1 -1
- package/esm/funcs/hrisGetPerformanceReviewCycles.js.map +1 -1
- package/esm/funcs/hrisGetPerformanceReviews.js +1 -1
- package/esm/funcs/hrisGetPerformanceReviews.js.map +1 -1
- package/esm/funcs/hrisGetTimeOffBalances.js +1 -1
- package/esm/funcs/hrisGetTimeOffBalances.js.map +1 -1
- package/esm/funcs/hrisGetTimesheets.js +1 -1
- package/esm/funcs/hrisGetTimesheets.js.map +1 -1
- package/esm/funcs/validateWebhook.d.ts +13 -0
- package/esm/funcs/validateWebhook.d.ts.map +1 -0
- package/esm/funcs/validateWebhook.js +34 -0
- package/esm/funcs/validateWebhook.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/encodings.d.ts +1 -0
- package/esm/lib/encodings.d.ts.map +1 -1
- package/esm/lib/encodings.js +12 -1
- package/esm/lib/encodings.js.map +1 -1
- package/esm/models/assessmentorderreceivedwebhookpayload.d.ts +5 -5
- package/esm/models/assessmentorderreceivedwebhookpayload.d.ts.map +1 -1
- package/esm/models/assessmentorderreceivedwebhookpayload.js +2 -2
- package/esm/models/assessmentorderreceivedwebhookpayload.js.map +1 -1
- package/esm/models/connectionflowfailedwebhookpayload.d.ts +4 -3
- package/esm/models/connectionflowfailedwebhookpayload.d.ts.map +1 -1
- package/esm/models/connectionflowfailedwebhookpayload.js +2 -1
- package/esm/models/connectionflowfailedwebhookpayload.js.map +1 -1
- package/esm/models/datachangedwebhookpayload.d.ts +11 -3
- package/esm/models/datachangedwebhookpayload.d.ts.map +1 -1
- package/esm/models/datachangedwebhookpayload.js +9 -1
- package/esm/models/datachangedwebhookpayload.js.map +1 -1
- package/esm/models/getassessmentordersopenpositiveresponse.d.ts +4 -4
- package/esm/models/getassessmentordersopenpositiveresponse.d.ts.map +1 -1
- package/esm/models/getassessmentordersopenpositiveresponse.js +1 -1
- package/esm/models/getassessmentordersopenpositiveresponse.js.map +1 -1
- package/esm/models/getatsjobspositiveresponse.d.ts +3 -3
- package/esm/models/getatsjobspositiveresponse.d.ts.map +1 -1
- package/esm/models/getatsjobspositiveresponse.js +4 -4
- package/esm/models/getatsjobspositiveresponse.js.map +1 -1
- package/esm/models/gethrisemployeesformpositiveresponse.d.ts +2 -2
- package/esm/models/gethrisemployeesformpositiveresponse.d.ts.map +1 -1
- package/esm/models/gethrisemployeesformpositiveresponse.js +8 -8
- package/esm/models/gethrisemployeesformpositiveresponse.js.map +1 -1
- package/esm/models/getintegrationsintegrationidpositiveresponse.d.ts +158 -16
- package/esm/models/getintegrationsintegrationidpositiveresponse.d.ts.map +1 -1
- package/esm/models/getintegrationsintegrationidpositiveresponse.js +87 -13
- package/esm/models/getintegrationsintegrationidpositiveresponse.js.map +1 -1
- package/esm/models/gettoolscategoryparametercategory.d.ts +1 -0
- package/esm/models/gettoolscategoryparametercategory.d.ts.map +1 -1
- package/esm/models/gettoolscategoryparametercategory.js +1 -0
- package/esm/models/gettoolscategoryparametercategory.js.map +1 -1
- package/esm/models/gettoolscategorypositiveresponse.d.ts +66 -16
- package/esm/models/gettoolscategorypositiveresponse.d.ts.map +1 -1
- package/esm/models/gettoolscategorypositiveresponse.js +41 -14
- package/esm/models/gettoolscategorypositiveresponse.js.map +1 -1
- package/esm/models/inlineassessmentorderreceivedwebhookpayload.d.ts +5 -5
- package/esm/models/inlineassessmentorderreceivedwebhookpayload.d.ts.map +1 -1
- package/esm/models/inlineassessmentorderreceivedwebhookpayload.js +2 -2
- package/esm/models/inlineassessmentorderreceivedwebhookpayload.js.map +1 -1
- package/esm/models/integrationcreatedwebhookpayload.d.ts +1 -0
- package/esm/models/integrationcreatedwebhookpayload.d.ts.map +1 -1
- package/esm/models/integrationcreatedwebhookpayload.js +1 -0
- package/esm/models/integrationcreatedwebhookpayload.js.map +1 -1
- package/esm/models/integrationdeletedwebhookpayload.d.ts +1 -0
- package/esm/models/integrationdeletedwebhookpayload.d.ts.map +1 -1
- package/esm/models/integrationdeletedwebhookpayload.js +1 -0
- package/esm/models/integrationdeletedwebhookpayload.js.map +1 -1
- package/esm/models/integrationstatechangedwebhookpayload.d.ts +4 -3
- package/esm/models/integrationstatechangedwebhookpayload.d.ts.map +1 -1
- package/esm/models/integrationstatechangedwebhookpayload.js +2 -1
- package/esm/models/integrationstatechangedwebhookpayload.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/postatscandidatesrequestbody.d.ts +27 -0
- package/esm/models/postatscandidatesrequestbody.d.ts.map +1 -1
- package/esm/models/postatscandidatesrequestbody.js +10 -0
- package/esm/models/postatscandidatesrequestbody.js.map +1 -1
- package/esm/models/postatsjobsjobidapplicationsrequestbody.d.ts +27 -0
- package/esm/models/postatsjobsjobidapplicationsrequestbody.d.ts.map +1 -1
- package/esm/models/postatsjobsjobidapplicationsrequestbody.js +9 -0
- package/esm/models/postatsjobsjobidapplicationsrequestbody.js.map +1 -1
- package/esm/models/postconnectcreatelinkrequestbody.d.ts +5 -0
- package/esm/models/postconnectcreatelinkrequestbody.d.ts.map +1 -1
- package/esm/models/postconnectcreatelinkrequestbody.js +5 -0
- package/esm/models/postconnectcreatelinkrequestbody.js.map +1 -1
- package/esm/models/posthrisemployeesformpositiveresponse.d.ts +15 -3
- package/esm/models/posthrisemployeesformpositiveresponse.d.ts.map +1 -1
- package/esm/models/posthrisemployeesformpositiveresponse.js +8 -1
- package/esm/models/posthrisemployeesformpositiveresponse.js.map +1 -1
- package/esm/models/putassessmentordersassessmentorderidresultrequestbody.d.ts +4 -4
- package/esm/models/putassessmentordersassessmentorderidresultrequestbody.d.ts.map +1 -1
- package/esm/models/putassessmentordersassessmentorderidresultrequestbody.js +2 -2
- package/esm/models/putassessmentordersassessmentorderidresultrequestbody.js.map +1 -1
- package/esm/models/schema1union1.d.ts +1 -1
- package/esm/models/schema1union1.d.ts.map +1 -1
- package/esm/models/schema1union1.js +4 -4
- package/esm/models/schema1union1.js.map +1 -1
- package/esm/models/schema1union2.d.ts +1 -1
- package/esm/models/schema1union2.d.ts.map +1 -1
- package/esm/models/schema1union2.js +4 -4
- package/esm/models/schema1union2.js.map +1 -1
- package/esm/models/schema2union1.d.ts +2 -2
- package/esm/models/schema2union1.d.ts.map +1 -1
- package/esm/models/schema2union1.js +8 -8
- package/esm/models/schema2union1.js.map +1 -1
- package/esm/models/schema2union2.d.ts +2 -2
- package/esm/models/schema2union2.d.ts.map +1 -1
- package/esm/models/schema2union2.js +8 -8
- package/esm/models/schema2union2.js.map +1 -1
- package/esm/models/syncfinishedwebhookpayload.d.ts +4 -3
- package/esm/models/syncfinishedwebhookpayload.d.ts.map +1 -1
- package/esm/models/syncfinishedwebhookpayload.js +2 -1
- package/esm/models/syncfinishedwebhookpayload.js.map +1 -1
- package/esm/sdk/general.d.ts +9 -1
- package/esm/sdk/general.d.ts.map +1 -1
- package/esm/sdk/general.js +9 -1
- package/esm/sdk/general.js.map +1 -1
- package/esm/sdk/sdk.d.ts +9 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +5 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/types/enums.d.ts +1 -8
- package/esm/types/enums.d.ts.map +1 -1
- package/esm/types/enums.js +1 -18
- package/esm/types/enums.js.map +1 -1
- package/esm/types/index.d.ts +2 -1
- package/esm/types/index.d.ts.map +1 -1
- package/esm/types/index.js +1 -0
- package/esm/types/index.js.map +1 -1
- package/esm/types/unrecognized.d.ts +16 -0
- package/esm/types/unrecognized.d.ts.map +1 -0
- package/esm/types/unrecognized.js +31 -0
- package/esm/types/unrecognized.js.map +1 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/assessmentGetOpenOrders.ts +1 -1
- package/src/funcs/atsGetApplicationStages.ts +1 -1
- package/src/funcs/atsGetApplications.ts +1 -1
- package/src/funcs/atsGetCandidates.ts +1 -1
- package/src/funcs/atsGetInterviews.ts +1 -1
- package/src/funcs/atsGetJobs.ts +1 -1
- package/src/funcs/atsGetOffers.ts +1 -1
- package/src/funcs/atsGetRejectionReasons.ts +1 -1
- package/src/funcs/atsGetTags.ts +1 -1
- package/src/funcs/atsGetUsers.ts +1 -1
- package/src/funcs/generalGetCustomFields.ts +1 -1
- package/src/funcs/generalGetIntegrationFields.ts +1 -1
- package/src/funcs/generalSendPassthroughRequest.ts +9 -1
- package/src/funcs/hrisGetAbsenceTypes.ts +1 -1
- package/src/funcs/hrisGetAbsences.ts +1 -1
- package/src/funcs/hrisGetEmployeeDocumentCategories.ts +1 -1
- package/src/funcs/hrisGetEmployees.ts +1 -1
- package/src/funcs/hrisGetEmployments.ts +1 -1
- package/src/funcs/hrisGetGroups.ts +1 -1
- package/src/funcs/hrisGetLegalEntities.ts +1 -1
- package/src/funcs/hrisGetLocations.ts +1 -1
- package/src/funcs/hrisGetPerformanceReviewCycles.ts +1 -1
- package/src/funcs/hrisGetPerformanceReviews.ts +1 -1
- package/src/funcs/hrisGetTimeOffBalances.ts +1 -1
- package/src/funcs/hrisGetTimesheets.ts +1 -1
- package/src/funcs/validateWebhook.ts +74 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +17 -3
- package/src/models/assessmentorderreceivedwebhookpayload.ts +7 -7
- package/src/models/connectionflowfailedwebhookpayload.ts +4 -3
- package/src/models/datachangedwebhookpayload.ts +11 -3
- package/src/models/getassessmentordersopenpositiveresponse.ts +5 -5
- package/src/models/getatsjobspositiveresponse.ts +9 -9
- package/src/models/gethrisemployeesformpositiveresponse.ts +18 -18
- package/src/models/getintegrationsintegrationidpositiveresponse.ts +292 -44
- package/src/models/gettoolscategoryparametercategory.ts +1 -0
- package/src/models/gettoolscategorypositiveresponse.ts +160 -48
- package/src/models/inlineassessmentorderreceivedwebhookpayload.ts +7 -7
- package/src/models/integrationcreatedwebhookpayload.ts +1 -0
- package/src/models/integrationdeletedwebhookpayload.ts +1 -0
- package/src/models/integrationstatechangedwebhookpayload.ts +4 -3
- package/src/models/kombohriserror.ts +1 -0
- package/src/models/postatscandidatesrequestbody.ts +44 -0
- package/src/models/postatsjobsjobidapplicationsrequestbody.ts +49 -0
- package/src/models/postconnectcreatelinkrequestbody.ts +5 -0
- package/src/models/posthrisemployeesformpositiveresponse.ts +30 -4
- package/src/models/putassessmentordersassessmentorderidresultrequestbody.ts +7 -7
- package/src/models/schema1union1.ts +9 -9
- package/src/models/schema1union2.ts +9 -9
- package/src/models/schema2union1.ts +18 -18
- package/src/models/schema2union2.ts +18 -18
- package/src/models/syncfinishedwebhookpayload.ts +4 -3
- package/src/sdk/general.ts +9 -1
- package/src/sdk/sdk.ts +28 -0
- package/src/types/enums.ts +1 -21
- package/src/types/index.ts +2 -1
- package/src/types/unrecognized.ts +35 -0
- package/tests/basic-behavior.spec.ts +355 -2
- package/tests/helpers/test-context.ts +5 -2
- package/tsconfig.json +1 -2
|
@@ -87,6 +87,7 @@ import { Result } from "../types/fp.js";
|
|
|
87
87
|
* |HeavenHR|`heavenhr/v2`|[HeavenHR API](https://api.heavenhr.com/). We automatically authenticate all requests using the provided credentials and use `https://api.heavenhr.com/api/v2` as the base URL.|
|
|
88
88
|
* |HiBob|`hibob/v1`|[HibBob's v1 API](https://apidocs.hibob.com/reference/get_people). We automatically authenticate all requests using the service user credentials (or, for old integrations, the API key) and use `https://api.hibob.com/v1` as the base URL.|
|
|
89
89
|
* |HiBob|`hibob/hire`|[HiBob's Hire API](https://apidocs.hibob.com/docs/how-to-integrate-with-ats-hire-api). We automatically authenticate all requests using the hire service user credentials. The base URL is configured during the integration setup.|
|
|
90
|
+
* |HiBob|`hibob/docs`|This passthrough is only used for fetching employee documents in Hibob. It is present as a workaround while we are working on a new endpoint for fetching documents in HRIS. It should not be used for any other purpose. We automatically authenticate all requests using the service user credentials and use `https://app.hibob.com/api/docs/employees/` as the base URL.|
|
|
90
91
|
* |Softgarden|`softgarden/frontend-v3`|[Softgarden's Frontend API v3](https://dev.softgarden.de/frontend-v3/. We automatically authenticate all requests and use 'https://api.softgarden.io/api/rest' as base URL.|
|
|
91
92
|
* |Softgarden|`softgarden/apply-api`|[Softgarden's Apply API](https://dev.softgarden.de/apply-api/). We automatically authenticate all requests and use 'https://jobdb.softgarden.de/jobdb/public' as base URL.|
|
|
92
93
|
* |Cezanne HR|`cezannehr/dataservice`|[CezanneHR's v7 dataservice API](https://api.cezannehr.com/).We automatically authenticate all requests and use the base URL `https://subdomain.cezanneondemand.com/cezanneondemand/v7/dataservice.svc`|
|
|
@@ -126,10 +127,12 @@ import { Result } from "../types/fp.js";
|
|
|
126
127
|
* |JobDiva|`jobdiva/api`|We automatically authenticate all requests and use `https://api.jobdiva.com` as the base URL.|
|
|
127
128
|
* |Visma Peple|`peple/hrm`|[Visma Payroll Reporting API](https://api.analytics1.hrm.visma.net/docs/openapi.html). We automatically authenticate all requests using the client credentials and use 'https://api.analytics1.hrm.visma.net' as the base URL.|
|
|
128
129
|
* |Visma YouServe|`youserve/learning`|Visma YouServe [Learning API](https://youserve-domain-api.github.io/SwaggerUI/learning.html). We automatically authenticate all requests using OAuth 2.0 with the provided credentials and use `https://api.youserve.nl/learning/v1.0` as the base URL.|
|
|
130
|
+
* |Eightfold|`eightfold/api`|Eightfold's [API](https://apidocs.eightfold.ai/). We automatically authenticate all requests and use `https://apiv2.\{region\}/api/v2/core/` as the base URL.|
|
|
129
131
|
* |Dayforce|`dayforce/V1`|[Dayforce's API](https://developers.dayforce.com/Build/Home.aspx). We automatically authenticate all requests and use `\{\{baseUrl\}\}/Api/\{\{clientNamespace\}\}/V1` as the base URL|
|
|
130
132
|
* |Hansalog|`hansalog/vision`|Hansalog's [Vision API](https://hansalog-vision.document360.io/docs/). We automatically authenticate all requests and use `https://\{subdomain\}.hansalog-cloud.de/vision` as the base URL.|
|
|
131
133
|
* |Lattice|`lattice/passthrough`|Lattice's [API](https://developers.lattice.com/v2/docs/base-url-1). We automatically authenticate all requests using OAuth credentials with `https://api.latticehq.com` as the base URL.|
|
|
132
134
|
* |Lattice|`lattice/talent`|Lattice's [Talent API](https://developers.lattice.com/docs/introduction-1). We automatically authenticate all requests using OAuth credentials with `https://api.latticehq.com` as the base URL.|
|
|
135
|
+
* |HoorayHR|`hoorayhr/api`|[HoorayHR API](https://api.hoorayhr.io/documentation/). We automatically authenticate all requests and use `https://api.hoorayhr.io` as the base URL.|
|
|
133
136
|
* |Paylocity|`paylocity/default`|[Paylocity's Weblink API](https://developer.paylocity.com/integrations/reference/authentication-weblink). We automatically authenticate all requests and use 'https://\{api|dc1demogw\}.paylocity.com/' as the base URL.|
|
|
134
137
|
* |Paylocity|`paylocity/next-gen`|[Paylocity's NextGen API](https://developer.paylocity.com/integrations/reference/authentication). We automatically authenticate all requests and use 'https://dc1prodgwext.paylocity.com/' as the base URL.|
|
|
135
138
|
* |Paycor|`paycor/v1`|[Paycors's v1 API](https://developers.paycor.com/explore#section/Getting-Started). We automatically authenticate all requests and use 'https://apis.paycor.com'.|
|
|
@@ -139,6 +142,8 @@ import { Result } from "../types/fp.js";
|
|
|
139
142
|
* |Avature|`avature/custom-api`|Avatures's Custom API. Call `Get /openapi` to retrieve the specific custom API schema. We automatically authenticate all requests and use the instance specific custom API URL as the base URL.|
|
|
140
143
|
* |Apploi|`apploi/rest-api`|The [Apploi API](https://integrate.apploi.com/). We automatically authenticate all requests and use `https://partners.apploi.com/` as the base URL.|
|
|
141
144
|
* |Phenom|`phenom/rest-api`|The [Phenom API](https://developer.phenom.com/). We automatically authenticate all requests and use `https://api-stg.phenompro.com` as the base URL.|
|
|
145
|
+
* |Paradox|`paradox/v1public`|We use `\{api_url\}/api/v1/public` as the base URL. Find the official docs [here](https://paradox.readme.io/).|
|
|
146
|
+
* |Paradox|`paradox/v1`|We use `\{api_url\}/api/v1` as the base URL. Find the official docs [here](https://paradox.readme.io/).|
|
|
142
147
|
* |Rippling|`rippling/api`|Rippling's [API](https://developer.rippling.com/documentation). We automatically authenticate all requests and use `https://api.rippling.com/platform/api` or`https://rest.ripplingapis.com` as the base URL.|
|
|
143
148
|
* |Heyrecruit|`heyrecruit/v2`|[Heyrecruit's v2 API](https://documenter.getpostman.com/view/23241256/2s9YysBLcf#47e271ac-47c8-4c75-9cc6-b8c506e9dad6). We automatically authenticate all requests using the client ID and secret and use `https://app.heyrecruit.de/api/v2` as the base URL.|
|
|
144
149
|
* |PeopleHR|`peoplehr/default`|[PeopleHR's API](https://apidocs.peoplehr.com/#). We automatically authenticate all request ans use 'https://api.peoplehr.net' as the base URL.|
|
|
@@ -147,13 +152,15 @@ import { Result } from "../types/fp.js";
|
|
|
147
152
|
* |BITE|`bite/v1`|[Bite's v1 API](https://api.b-ite.io/docs/#/). We automatically authenticate all requests and use 'https://api.b-ite.io/v1' as base URL.|
|
|
148
153
|
* |Zelt|`zelt/partner`|Zelt's [Partner API](https://go.zelt.app/apiv2/swagger). We automatically authenticate all requests using the connected OAuth credentials and use `https://go.zelt.app/apiv2/partner` as the base URL.|
|
|
149
154
|
* |Planday|`planday/api`|Planday's [HR API v1.0](https://openapi.planday.com/api/hr?version=v1.0). We automatically authenticate all requests and use `https://openapi.planday.com` as the base URL.|
|
|
155
|
+
* |BoondManager|`boondmanager/api`|BoondManager [REST API](https://ui.boondmanager.com/administrator/developer/apisandbox). We automatically authenticate all requests and use `https://ui.boondmanager.com/api` as the base URL.|
|
|
150
156
|
* |Hailey HR|`haileyhr/api`|Hailey HR's [API](https://api.haileyhr.app/docs/index.html). We automatically authenticate all requests using the provided credentials and use `https://api.haileyhr.app` as the base URL.|
|
|
151
157
|
* |Silae|`silae/rest`|[Silae's REST API](https://silae-api.document360.io/docs). We automatically authenticate all requests and use 'https://payroll-api.silae.fr/payroll' as the base URL.|
|
|
152
158
|
* |Mysolution|`mysolution/default`|[Mysolution's API](https://swagger.mysolution.nl/). We automatically authenticate all requests and use the customer's domain as base URL.|
|
|
153
159
|
* |InRecruiting by Zucchetti|`inrecruiting/default`|[inRecruiting's v3 API](https://inrecruiting.intervieweb.it/api-docs/). We automatically authenticate all requests and use the customers domain as base URL|
|
|
154
160
|
* |Connexys By Bullhorn|`connexys/api`|[Connexy's API](https://api.conexsys.com/client/v2/docs/#section/Overview). We automatically authenticate all requests and use `https://\{connexys_domain\}/` as the base URL.|
|
|
155
161
|
* |HR4YOU|`hr4you/v2`|[HR4YOU's v2 API](https://apiprodemo.hr4you.org/api2/docs). We automatically authenticate all requests and use the customers provided base URL (e.g., https://`\{base_url\}`/ or https://`\{subdomain\}.hr4you.org`/).|
|
|
156
|
-
* |Cornerstone OnDemand|`cornerstoneondemand/recruiting`|Cornerstone's [Recruiting API](https://csod.dev/reference/recruiting/). We automatically authenticate all requests using the client ID and secret and use `https
|
|
162
|
+
* |Cornerstone OnDemand|`cornerstoneondemand/recruiting`|Cornerstone's [Recruiting API](https://csod.dev/reference/recruiting/). We automatically authenticate all requests using the client ID and secret and use `https://\{your_domain\}.csod.com/services/api` as the base URL.|
|
|
163
|
+
* |Cornerstone OnDemand|`cornerstoneondemand/learning`|Cornerstone's [Learning API](https://csod.dev/reference/learning/). We automatically authenticate all requests using the client ID and secret and use `https://\{your_domain\}.csod.com/services/api` as the base URL.|
|
|
157
164
|
* |Zvoove Recruit|`zvooverecruit/jobs`|[Zvoove Recruit's Jobs API](https://api.zvoove.com/docs/). We automatically authenticate all requests using the jobs API key and use 'https://\{domain\}/api/public' as base URL.|
|
|
158
165
|
* |Zvoove Recruit|`zvooverecruit/applicants`|[Zvoove Recruit's Applicants API](https://api.zvoove.com/docs/). We automatically authenticate all requests using the applicants API key and use 'https://\{domain\}/api/public' as base URL.|
|
|
159
166
|
* |Spark Hire Recruit|`comeet/api`|[Spark Hire Recruit's API.](https://developers.comeet.com/reference/recruiting-api-overview)We automatically authenticate all requests and use `https://api.comeet.com` as the base URL.|
|
|
@@ -173,6 +180,7 @@ import { Result } from "../types/fp.js";
|
|
|
173
180
|
* |Manatal|`manatal/career-page`|Manatal's Career Page API. We use `https://api.manatal.com/open/v3/career-page/\{client_slug\}` as the base URL.|
|
|
174
181
|
* |Avionté|`avionte/front-office-v1`|Avionte's API. We automatically authenticate all requests and use `https://api.avionte.com/front-office/v1` as the base URL. Documentation for the BOLD Front Office API: https://developer.avionte.com/reference/get-all-talent-tags|
|
|
175
182
|
* |a3innuva Nómina|`a3innuvanomina/laboral`|a3innuva Nómina API [docs](https://a3developers.wolterskluwer.es/). Requests are automatically authenticated using OAuth access tokens (refreshed when needed). Base URL: `https://a3api.wolterskluwer.es/Laboral/api`.|
|
|
183
|
+
* |Asymbl|`asymbl/v63`|We use `https://\{customerDomainName\}` as the base URL. Find the official docs [here](https://asymblinc.github.io/ats/ats.html).|
|
|
176
184
|
* |DATEV|`datevhr/hr-exports`|DATEV's [hr-exports](https://developer.datev.de/en/product-detail/hr-exports/1.0.0/overview). We automatically authenticate all requests and use `https://hr-exports.api.datev.de/\{platform|platform-sandbox\}/v1/clients/\{client-id\}` as the base URL.|
|
|
177
185
|
* |DATEV|`datevhr/hr:payrollreports`|DATEV's [hr:payrollreports](https://developer.datev.de/en/product-detail/hr-payrollreports/2.0.0/overview) API. We automatically authenticate all requests and use `https://hr-payrollreports.api.datev.de/\{platform|platform-sandbox\}/v1/clients/\{client-id\}/` as the base URL.|
|
|
178
186
|
* |DATEV|`datevhr/eau`|DATEV's [eau](https://developer.datev.de/en/product-detail/eau-api/1.0.0/overview) API. We automatically authenticate all requests and use `https://eau.api.datev.de/\{platform|platform-sandbox\}/v1/clients/\{client-id\}/` as the base URL.|
|
|
@@ -224,7 +224,7 @@ async function $do(
|
|
|
224
224
|
>;
|
|
225
225
|
"~next"?: { cursor: string };
|
|
226
226
|
} => {
|
|
227
|
-
const nextCursor = dlv(responseData, "next");
|
|
227
|
+
const nextCursor = dlv(responseData, "data.next");
|
|
228
228
|
if (typeof nextCursor !== "string") {
|
|
229
229
|
return { next: () => null };
|
|
230
230
|
}
|
|
@@ -226,7 +226,7 @@ async function $do(
|
|
|
226
226
|
>;
|
|
227
227
|
"~next"?: { cursor: string };
|
|
228
228
|
} => {
|
|
229
|
-
const nextCursor = dlv(responseData, "next");
|
|
229
|
+
const nextCursor = dlv(responseData, "data.next");
|
|
230
230
|
if (typeof nextCursor !== "string") {
|
|
231
231
|
return { next: () => null };
|
|
232
232
|
}
|
|
@@ -225,7 +225,7 @@ async function $do(
|
|
|
225
225
|
>;
|
|
226
226
|
"~next"?: { cursor: string };
|
|
227
227
|
} => {
|
|
228
|
-
const nextCursor = dlv(responseData, "next");
|
|
228
|
+
const nextCursor = dlv(responseData, "data.next");
|
|
229
229
|
if (typeof nextCursor !== "string") {
|
|
230
230
|
return { next: () => null };
|
|
231
231
|
}
|
|
@@ -231,7 +231,7 @@ async function $do(
|
|
|
231
231
|
>;
|
|
232
232
|
"~next"?: { cursor: string };
|
|
233
233
|
} => {
|
|
234
|
-
const nextCursor = dlv(responseData, "next");
|
|
234
|
+
const nextCursor = dlv(responseData, "data.next");
|
|
235
235
|
if (typeof nextCursor !== "string") {
|
|
236
236
|
return { next: () => null };
|
|
237
237
|
}
|
|
@@ -224,7 +224,7 @@ async function $do(
|
|
|
224
224
|
>;
|
|
225
225
|
"~next"?: { cursor: string };
|
|
226
226
|
} => {
|
|
227
|
-
const nextCursor = dlv(responseData, "next");
|
|
227
|
+
const nextCursor = dlv(responseData, "data.next");
|
|
228
228
|
if (typeof nextCursor !== "string") {
|
|
229
229
|
return { next: () => null };
|
|
230
230
|
}
|
|
@@ -224,7 +224,7 @@ async function $do(
|
|
|
224
224
|
>;
|
|
225
225
|
"~next"?: { cursor: string };
|
|
226
226
|
} => {
|
|
227
|
-
const nextCursor = dlv(responseData, "next");
|
|
227
|
+
const nextCursor = dlv(responseData, "data.next");
|
|
228
228
|
if (typeof nextCursor !== "string") {
|
|
229
229
|
return { next: () => null };
|
|
230
230
|
}
|
|
@@ -225,7 +225,7 @@ async function $do(
|
|
|
225
225
|
>;
|
|
226
226
|
"~next"?: { cursor: string };
|
|
227
227
|
} => {
|
|
228
|
-
const nextCursor = dlv(responseData, "next");
|
|
228
|
+
const nextCursor = dlv(responseData, "data.next");
|
|
229
229
|
if (typeof nextCursor !== "string") {
|
|
230
230
|
return { next: () => null };
|
|
231
231
|
}
|
|
@@ -223,7 +223,7 @@ async function $do(
|
|
|
223
223
|
>;
|
|
224
224
|
"~next"?: { cursor: string };
|
|
225
225
|
} => {
|
|
226
|
-
const nextCursor = dlv(responseData, "next");
|
|
226
|
+
const nextCursor = dlv(responseData, "data.next");
|
|
227
227
|
if (typeof nextCursor !== "string") {
|
|
228
228
|
return { next: () => null };
|
|
229
229
|
}
|
|
@@ -229,7 +229,7 @@ async function $do(
|
|
|
229
229
|
>;
|
|
230
230
|
"~next"?: { cursor: string };
|
|
231
231
|
} => {
|
|
232
|
-
const nextCursor = dlv(responseData, "next");
|
|
232
|
+
const nextCursor = dlv(responseData, "data.next");
|
|
233
233
|
if (typeof nextCursor !== "string") {
|
|
234
234
|
return { next: () => null };
|
|
235
235
|
}
|
|
@@ -230,7 +230,7 @@ async function $do(
|
|
|
230
230
|
>;
|
|
231
231
|
"~next"?: { cursor: string };
|
|
232
232
|
} => {
|
|
233
|
-
const nextCursor = dlv(responseData, "next");
|
|
233
|
+
const nextCursor = dlv(responseData, "data.next");
|
|
234
234
|
if (typeof nextCursor !== "string") {
|
|
235
235
|
return { next: () => null };
|
|
236
236
|
}
|
|
@@ -225,7 +225,7 @@ async function $do(
|
|
|
225
225
|
>;
|
|
226
226
|
"~next"?: { cursor: string };
|
|
227
227
|
} => {
|
|
228
|
-
const nextCursor = dlv(responseData, "next");
|
|
228
|
+
const nextCursor = dlv(responseData, "data.next");
|
|
229
229
|
if (typeof nextCursor !== "string") {
|
|
230
230
|
return { next: () => null };
|
|
231
231
|
}
|
|
@@ -235,7 +235,7 @@ async function $do(
|
|
|
235
235
|
>;
|
|
236
236
|
"~next"?: { cursor: string };
|
|
237
237
|
} => {
|
|
238
|
-
const nextCursor = dlv(responseData, "next");
|
|
238
|
+
const nextCursor = dlv(responseData, "data.next");
|
|
239
239
|
if (typeof nextCursor !== "string") {
|
|
240
240
|
return { next: () => null };
|
|
241
241
|
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { KomboCore } from "../core.js";
|
|
6
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
+
import * as webhooks from "../models/webhooks/index.js";
|
|
8
|
+
import { ERR, Result } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export async function validateWebhook(_client: KomboCore, {
|
|
11
|
+
request: rawRequest,
|
|
12
|
+
}: {
|
|
13
|
+
request: {
|
|
14
|
+
body: BodyInit;
|
|
15
|
+
method: string;
|
|
16
|
+
url: string;
|
|
17
|
+
headers: Record<string, string> | Headers;
|
|
18
|
+
} | Request;
|
|
19
|
+
}): Promise<
|
|
20
|
+
Result<
|
|
21
|
+
| webhooks.WebhookDataChangedWebhookPayloadRequest
|
|
22
|
+
| webhooks.WebhookConnectionFlowFailedWebhookPayloadRequest
|
|
23
|
+
| webhooks.WebhookIntegrationCreatedWebhookPayloadRequest
|
|
24
|
+
| webhooks.WebhookIntegrationDeletedWebhookPayloadRequest
|
|
25
|
+
| webhooks.WebhookAssessmentOrderReceivedWebhookPayloadRequest
|
|
26
|
+
| webhooks.WebhookInlineAssessmentOrderReceivedWebhookPayloadRequest
|
|
27
|
+
| webhooks.WebhookIntegrationStateChangedWebhookPayloadRequest
|
|
28
|
+
| webhooks.WebhookSyncFinishedWebhookPayloadRequest,
|
|
29
|
+
SDKValidationError
|
|
30
|
+
>
|
|
31
|
+
> {
|
|
32
|
+
const request = normalizeRequest(rawRequest);
|
|
33
|
+
const knownSchemas = [
|
|
34
|
+
webhooks.webhookDataChangedWebhookPayloadRequestFromJSON,
|
|
35
|
+
webhooks.webhookConnectionFlowFailedWebhookPayloadRequestFromJSON,
|
|
36
|
+
webhooks.webhookIntegrationCreatedWebhookPayloadRequestFromJSON,
|
|
37
|
+
webhooks.webhookIntegrationDeletedWebhookPayloadRequestFromJSON,
|
|
38
|
+
webhooks.webhookAssessmentOrderReceivedWebhookPayloadRequestFromJSON,
|
|
39
|
+
webhooks.webhookInlineAssessmentOrderReceivedWebhookPayloadRequestFromJSON,
|
|
40
|
+
webhooks.webhookIntegrationStateChangedWebhookPayloadRequestFromJSON,
|
|
41
|
+
webhooks.webhookSyncFinishedWebhookPayloadRequestFromJSON,
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
const jsonString = await request.text();
|
|
45
|
+
|
|
46
|
+
for (const schema of knownSchemas) {
|
|
47
|
+
const ret = schema(jsonString);
|
|
48
|
+
if (ret.ok) {
|
|
49
|
+
return ret;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return ERR(
|
|
54
|
+
new SDKValidationError(
|
|
55
|
+
"No matching schema found for the given webhook payload",
|
|
56
|
+
jsonString,
|
|
57
|
+
jsonString,
|
|
58
|
+
),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function normalizeRequest(
|
|
63
|
+
request: {
|
|
64
|
+
body: BodyInit;
|
|
65
|
+
method: string;
|
|
66
|
+
url: string;
|
|
67
|
+
headers: Record<string, string> | Headers;
|
|
68
|
+
} | Request,
|
|
69
|
+
): Request {
|
|
70
|
+
if (request instanceof Request) {
|
|
71
|
+
return request;
|
|
72
|
+
}
|
|
73
|
+
return new Request(request.url, request);
|
|
74
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -69,7 +69,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
69
69
|
export const SDK_METADATA = {
|
|
70
70
|
language: "typescript",
|
|
71
71
|
openapiDocVersion: "1.0.0",
|
|
72
|
-
sdkVersion: "0.2
|
|
73
|
-
genVersion: "2.
|
|
74
|
-
userAgent: "speakeasy-sdk/typescript 0.2
|
|
72
|
+
sdkVersion: "0.3.2",
|
|
73
|
+
genVersion: "2.788.5",
|
|
74
|
+
userAgent: "speakeasy-sdk/typescript 0.3.2 2.788.5 1.0.0 @kombo-api/sdk",
|
|
75
75
|
} as const;
|
package/src/lib/encodings.ts
CHANGED
|
@@ -102,8 +102,9 @@ export function encodeLabel(
|
|
|
102
102
|
});
|
|
103
103
|
encValue = mapped?.join("").slice(1);
|
|
104
104
|
} else {
|
|
105
|
-
const k =
|
|
106
|
-
|
|
105
|
+
const k = options?.explode && isPlainObject(value)
|
|
106
|
+
? `${encodeString(pk)}=`
|
|
107
|
+
: "";
|
|
107
108
|
encValue = `${k}${encodeValue(pv)}`;
|
|
108
109
|
}
|
|
109
110
|
|
|
@@ -426,6 +427,7 @@ export function queryJoin(...args: (string | undefined)[]): string {
|
|
|
426
427
|
type QueryEncoderOptions = {
|
|
427
428
|
explode?: boolean;
|
|
428
429
|
charEncoding?: "percent" | "none";
|
|
430
|
+
allowEmptyValue?: string[];
|
|
429
431
|
};
|
|
430
432
|
|
|
431
433
|
type QueryEncoder = (
|
|
@@ -440,7 +442,7 @@ type BulkQueryEncoder = (
|
|
|
440
442
|
) => string;
|
|
441
443
|
|
|
442
444
|
export function queryEncoder(f: QueryEncoder): BulkQueryEncoder {
|
|
443
|
-
const bulkEncode = function
|
|
445
|
+
const bulkEncode = function(
|
|
444
446
|
values: Record<string, unknown>,
|
|
445
447
|
options?: QueryEncoderOptions,
|
|
446
448
|
): string {
|
|
@@ -450,7 +452,19 @@ export function queryEncoder(f: QueryEncoder): BulkQueryEncoder {
|
|
|
450
452
|
charEncoding: options?.charEncoding ?? "percent",
|
|
451
453
|
};
|
|
452
454
|
|
|
455
|
+
const allowEmptySet = new Set(options?.allowEmptyValue ?? []);
|
|
456
|
+
|
|
453
457
|
const encoded = Object.entries(values).map(([key, value]) => {
|
|
458
|
+
if (allowEmptySet.has(key)) {
|
|
459
|
+
if (
|
|
460
|
+
value === undefined
|
|
461
|
+
|| value === null
|
|
462
|
+
|| value === ""
|
|
463
|
+
|| (Array.isArray(value) && value.length === 0)
|
|
464
|
+
) {
|
|
465
|
+
return `${encodeURIComponent(key)}=`;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
454
468
|
return f(key, value, opts);
|
|
455
469
|
});
|
|
456
470
|
return queryJoin(...encoded);
|
|
@@ -41,6 +41,10 @@ export type AssessmentOrderReceivedWebhookPayloadStatus = ClosedEnum<
|
|
|
41
41
|
* Information about the candidate taking the assessment.
|
|
42
42
|
*/
|
|
43
43
|
export type AssessmentOrderReceivedWebhookPayloadCandidate = {
|
|
44
|
+
/**
|
|
45
|
+
* The candidate's identifier in the integrated system.
|
|
46
|
+
*/
|
|
47
|
+
remote_id?: string | null | undefined;
|
|
44
48
|
/**
|
|
45
49
|
* The candidate's email address.
|
|
46
50
|
*/
|
|
@@ -57,10 +61,6 @@ export type AssessmentOrderReceivedWebhookPayloadCandidate = {
|
|
|
57
61
|
* The candidate's phone number.
|
|
58
62
|
*/
|
|
59
63
|
phone?: string | null | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* The candidate's identifier in the integrated system.
|
|
62
|
-
*/
|
|
63
|
-
remote_id?: string | null | undefined;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
/**
|
|
@@ -219,19 +219,19 @@ export const AssessmentOrderReceivedWebhookPayloadCandidate$inboundSchema:
|
|
|
219
219
|
z.ZodTypeDef,
|
|
220
220
|
unknown
|
|
221
221
|
> = z.object({
|
|
222
|
+
remote_id: z.nullable(z.string()).optional(),
|
|
222
223
|
email: z.string(),
|
|
223
224
|
first_name: z.nullable(z.string()).optional(),
|
|
224
225
|
last_name: z.nullable(z.string()).optional(),
|
|
225
226
|
phone: z.nullable(z.string()).optional(),
|
|
226
|
-
remote_id: z.nullable(z.string()).optional(),
|
|
227
227
|
});
|
|
228
228
|
/** @internal */
|
|
229
229
|
export type AssessmentOrderReceivedWebhookPayloadCandidate$Outbound = {
|
|
230
|
+
remote_id?: string | null | undefined;
|
|
230
231
|
email: string;
|
|
231
232
|
first_name?: string | null | undefined;
|
|
232
233
|
last_name?: string | null | undefined;
|
|
233
234
|
phone?: string | null | undefined;
|
|
234
|
-
remote_id?: string | null | undefined;
|
|
235
235
|
};
|
|
236
236
|
|
|
237
237
|
/** @internal */
|
|
@@ -241,11 +241,11 @@ export const AssessmentOrderReceivedWebhookPayloadCandidate$outboundSchema:
|
|
|
241
241
|
z.ZodTypeDef,
|
|
242
242
|
AssessmentOrderReceivedWebhookPayloadCandidate
|
|
243
243
|
> = z.object({
|
|
244
|
+
remote_id: z.nullable(z.string()).optional(),
|
|
244
245
|
email: z.string(),
|
|
245
246
|
first_name: z.nullable(z.string()).optional(),
|
|
246
247
|
last_name: z.nullable(z.string()).optional(),
|
|
247
248
|
phone: z.nullable(z.string()).optional(),
|
|
248
|
-
remote_id: z.nullable(z.string()).optional(),
|
|
249
249
|
});
|
|
250
250
|
|
|
251
251
|
export function assessmentOrderReceivedWebhookPayloadCandidateToJSON(
|
|
@@ -22,15 +22,16 @@ export type ConnectionFlowFailedWebhookPayloadType = ClosedEnum<
|
|
|
22
22
|
>;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* The category of the integration (HRIS, ATS, or
|
|
25
|
+
* The category of the integration (HRIS, ATS, ASSESSMENT, or LMS).
|
|
26
26
|
*/
|
|
27
27
|
export const ConnectionFlowFailedWebhookPayloadIntegrationCategory = {
|
|
28
28
|
Hris: "HRIS",
|
|
29
29
|
Ats: "ATS",
|
|
30
30
|
Assessment: "ASSESSMENT",
|
|
31
|
+
Lms: "LMS",
|
|
31
32
|
} as const;
|
|
32
33
|
/**
|
|
33
|
-
* The category of the integration (HRIS, ATS, or
|
|
34
|
+
* The category of the integration (HRIS, ATS, ASSESSMENT, or LMS).
|
|
34
35
|
*/
|
|
35
36
|
export type ConnectionFlowFailedWebhookPayloadIntegrationCategory = ClosedEnum<
|
|
36
37
|
typeof ConnectionFlowFailedWebhookPayloadIntegrationCategory
|
|
@@ -60,7 +61,7 @@ export type ConnectionFlowFailedWebhookPayloadData = {
|
|
|
60
61
|
*/
|
|
61
62
|
integration_tool: string;
|
|
62
63
|
/**
|
|
63
|
-
* The category of the integration (HRIS, ATS, or
|
|
64
|
+
* The category of the integration (HRIS, ATS, ASSESSMENT, or LMS).
|
|
64
65
|
*/
|
|
65
66
|
integration_category: ConnectionFlowFailedWebhookPayloadIntegrationCategory;
|
|
66
67
|
/**
|
|
@@ -22,15 +22,16 @@ export type DataChangedWebhookPayloadType = ClosedEnum<
|
|
|
22
22
|
>;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* The category of the integration (HRIS, ATS, or
|
|
25
|
+
* The category of the integration (HRIS, ATS, ASSESSMENT, or LMS).
|
|
26
26
|
*/
|
|
27
27
|
export const DataChangedWebhookPayloadIntegrationCategory = {
|
|
28
28
|
Hris: "HRIS",
|
|
29
29
|
Ats: "ATS",
|
|
30
30
|
Assessment: "ASSESSMENT",
|
|
31
|
+
Lms: "LMS",
|
|
31
32
|
} as const;
|
|
32
33
|
/**
|
|
33
|
-
* The category of the integration (HRIS, ATS, or
|
|
34
|
+
* The category of the integration (HRIS, ATS, ASSESSMENT, or LMS).
|
|
34
35
|
*/
|
|
35
36
|
export type DataChangedWebhookPayloadIntegrationCategory = ClosedEnum<
|
|
36
37
|
typeof DataChangedWebhookPayloadIntegrationCategory
|
|
@@ -63,12 +64,19 @@ export const Name = {
|
|
|
63
64
|
AtsInterviews: "ats_interviews",
|
|
64
65
|
AtsOffers: "ats_offers",
|
|
65
66
|
AtsRejectionReasons: "ats_rejection_reasons",
|
|
67
|
+
LmsUsers: "lms_users",
|
|
68
|
+
LmsCourseProviders: "lms_course_providers",
|
|
69
|
+
LmsCourses: "lms_courses",
|
|
70
|
+
LmsCourseProgressions: "lms_course_progressions",
|
|
71
|
+
LmsCourseRevisions: "lms_course_revisions",
|
|
72
|
+
LmsSkills: "lms_skills",
|
|
66
73
|
HrisJoinEmployeesTeams: "hris_join_employees_teams",
|
|
67
74
|
AtsJoinCandidatesTags: "ats_join_candidates_tags",
|
|
68
75
|
AtsJoinJobsApplicationStages: "ats_join_jobs_application_stages",
|
|
69
76
|
AtsJoinJobsScreeningQuestions: "ats_join_jobs_screening_questions",
|
|
70
77
|
AtsJoinJobsUsers: "ats_join_jobs_users",
|
|
71
78
|
AtsJoinInterviewsUsers: "ats_join_interviews_users",
|
|
79
|
+
LmsJoinRevisionsSkills: "lms_join_revisions_skills",
|
|
72
80
|
} as const;
|
|
73
81
|
/**
|
|
74
82
|
* The name of the Kombo model or connection that changed.
|
|
@@ -95,7 +103,7 @@ export type DataChangedWebhookPayloadData = {
|
|
|
95
103
|
*/
|
|
96
104
|
integration_tool: string;
|
|
97
105
|
/**
|
|
98
|
-
* The category of the integration (HRIS, ATS, or
|
|
106
|
+
* The category of the integration (HRIS, ATS, ASSESSMENT, or LMS).
|
|
99
107
|
*/
|
|
100
108
|
integration_category: DataChangedWebhookPayloadIntegrationCategory;
|
|
101
109
|
/**
|
|
@@ -12,6 +12,10 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
|
12
12
|
* Information about the candidate taking the assessment.
|
|
13
13
|
*/
|
|
14
14
|
export type GetAssessmentOrdersOpenPositiveResponseCandidate = {
|
|
15
|
+
/**
|
|
16
|
+
* The candidate's identifier in the integrated system.
|
|
17
|
+
*/
|
|
18
|
+
remote_id?: string | null | undefined;
|
|
15
19
|
/**
|
|
16
20
|
* The candidate's email address.
|
|
17
21
|
*/
|
|
@@ -28,10 +32,6 @@ export type GetAssessmentOrdersOpenPositiveResponseCandidate = {
|
|
|
28
32
|
* The candidate's phone number.
|
|
29
33
|
*/
|
|
30
34
|
phone?: string | null | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* The candidate's identifier in the integrated system.
|
|
33
|
-
*/
|
|
34
|
-
remote_id?: string | null | undefined;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
/**
|
|
@@ -164,11 +164,11 @@ export const GetAssessmentOrdersOpenPositiveResponseCandidate$inboundSchema:
|
|
|
164
164
|
z.ZodTypeDef,
|
|
165
165
|
unknown
|
|
166
166
|
> = z.object({
|
|
167
|
+
remote_id: z.nullable(z.string()).optional(),
|
|
167
168
|
email: z.string(),
|
|
168
169
|
first_name: z.nullable(z.string()).optional(),
|
|
169
170
|
last_name: z.nullable(z.string()).optional(),
|
|
170
171
|
phone: z.nullable(z.string()).optional(),
|
|
171
|
-
remote_id: z.nullable(z.string()).optional(),
|
|
172
172
|
});
|
|
173
173
|
|
|
174
174
|
export function getAssessmentOrdersOpenPositiveResponseCandidateFromJSON(
|
|
@@ -183,7 +183,7 @@ export const DisplayType2 = {
|
|
|
183
183
|
export type DisplayType2 = ClosedEnum<typeof DisplayType2>;
|
|
184
184
|
|
|
185
185
|
export type FormatNumber = {
|
|
186
|
-
display_type
|
|
186
|
+
display_type: DisplayType2 | null;
|
|
187
187
|
max?: number | null | undefined;
|
|
188
188
|
min?: number | null | undefined;
|
|
189
189
|
type: "NUMBER";
|
|
@@ -213,13 +213,13 @@ export type FormatText = {
|
|
|
213
213
|
};
|
|
214
214
|
|
|
215
215
|
export type Format =
|
|
216
|
-
| FormatSingleSelect
|
|
217
|
-
| FormatMultiSelect
|
|
218
216
|
| FormatText
|
|
219
217
|
| FormatNumber
|
|
220
218
|
| FormatFile
|
|
219
|
+
| FormatSingleSelect
|
|
221
220
|
| FormatBoolean
|
|
222
221
|
| FormatDate
|
|
222
|
+
| FormatMultiSelect
|
|
223
223
|
| FormatInformation
|
|
224
224
|
| FormatUnknown;
|
|
225
225
|
|
|
@@ -257,13 +257,13 @@ export type ScreeningQuestion = {
|
|
|
257
257
|
*/
|
|
258
258
|
description: string | null;
|
|
259
259
|
format?:
|
|
260
|
-
| FormatSingleSelect
|
|
261
|
-
| FormatMultiSelect
|
|
262
260
|
| FormatText
|
|
263
261
|
| FormatNumber
|
|
264
262
|
| FormatFile
|
|
263
|
+
| FormatSingleSelect
|
|
265
264
|
| FormatBoolean
|
|
266
265
|
| FormatDate
|
|
266
|
+
| FormatMultiSelect
|
|
267
267
|
| FormatInformation
|
|
268
268
|
| FormatUnknown
|
|
269
269
|
| null
|
|
@@ -851,13 +851,13 @@ export function formatTextFromJSON(
|
|
|
851
851
|
/** @internal */
|
|
852
852
|
export const Format$inboundSchema: z.ZodType<Format, z.ZodTypeDef, unknown> = z
|
|
853
853
|
.union([
|
|
854
|
-
z.lazy(() => FormatSingleSelect$inboundSchema),
|
|
855
|
-
z.lazy(() => FormatMultiSelect$inboundSchema),
|
|
856
854
|
z.lazy(() => FormatText$inboundSchema),
|
|
857
855
|
z.lazy(() => FormatNumber$inboundSchema),
|
|
858
856
|
z.lazy(() => FormatFile$inboundSchema),
|
|
857
|
+
z.lazy(() => FormatSingleSelect$inboundSchema),
|
|
859
858
|
z.lazy(() => FormatBoolean$inboundSchema),
|
|
860
859
|
z.lazy(() => FormatDate$inboundSchema),
|
|
860
|
+
z.lazy(() => FormatMultiSelect$inboundSchema),
|
|
861
861
|
z.lazy(() => FormatInformation$inboundSchema),
|
|
862
862
|
z.lazy(() => FormatUnknown$inboundSchema),
|
|
863
863
|
]);
|
|
@@ -906,13 +906,13 @@ export const ScreeningQuestion$inboundSchema: z.ZodType<
|
|
|
906
906
|
description: z.nullable(z.string()),
|
|
907
907
|
format: z.nullable(
|
|
908
908
|
z.union([
|
|
909
|
-
z.lazy(() => FormatSingleSelect$inboundSchema),
|
|
910
|
-
z.lazy(() => FormatMultiSelect$inboundSchema),
|
|
911
909
|
z.lazy(() => FormatText$inboundSchema),
|
|
912
910
|
z.lazy(() => FormatNumber$inboundSchema),
|
|
913
911
|
z.lazy(() => FormatFile$inboundSchema),
|
|
912
|
+
z.lazy(() => FormatSingleSelect$inboundSchema),
|
|
914
913
|
z.lazy(() => FormatBoolean$inboundSchema),
|
|
915
914
|
z.lazy(() => FormatDate$inboundSchema),
|
|
915
|
+
z.lazy(() => FormatMultiSelect$inboundSchema),
|
|
916
916
|
z.lazy(() => FormatInformation$inboundSchema),
|
|
917
917
|
z.lazy(() => FormatUnknown$inboundSchema),
|
|
918
918
|
]),
|
|
@@ -384,28 +384,28 @@ export type PropertiesText = {
|
|
|
384
384
|
};
|
|
385
385
|
|
|
386
386
|
export type Properties =
|
|
387
|
+
| PropertiesText
|
|
388
|
+
| PropertiesNumber
|
|
389
|
+
| PropertiesDate
|
|
387
390
|
| PropertiesSingleSelect
|
|
388
391
|
| PropertiesMultiSelect
|
|
392
|
+
| PropertiesCheckbox
|
|
389
393
|
| PropertiesObject
|
|
390
394
|
| PropertiesArray
|
|
391
|
-
| PropertiesFile
|
|
392
|
-
| PropertiesText
|
|
393
|
-
| PropertiesNumber
|
|
394
|
-
| PropertiesDate
|
|
395
|
-
| PropertiesCheckbox;
|
|
395
|
+
| PropertiesFile;
|
|
396
396
|
|
|
397
397
|
export type GetHrisEmployeesFormPositiveResponseData = {
|
|
398
398
|
properties: {
|
|
399
399
|
[k: string]:
|
|
400
|
+
| PropertiesText
|
|
401
|
+
| PropertiesNumber
|
|
402
|
+
| PropertiesDate
|
|
400
403
|
| PropertiesSingleSelect
|
|
401
404
|
| PropertiesMultiSelect
|
|
405
|
+
| PropertiesCheckbox
|
|
402
406
|
| PropertiesObject
|
|
403
407
|
| PropertiesArray
|
|
404
|
-
| PropertiesFile
|
|
405
|
-
| PropertiesText
|
|
406
|
-
| PropertiesNumber
|
|
407
|
-
| PropertiesDate
|
|
408
|
-
| PropertiesCheckbox;
|
|
408
|
+
| PropertiesFile;
|
|
409
409
|
};
|
|
410
410
|
};
|
|
411
411
|
|
|
@@ -1020,15 +1020,15 @@ export const Properties$inboundSchema: z.ZodType<
|
|
|
1020
1020
|
z.ZodTypeDef,
|
|
1021
1021
|
unknown
|
|
1022
1022
|
> = z.union([
|
|
1023
|
+
z.lazy(() => PropertiesText$inboundSchema),
|
|
1024
|
+
z.lazy(() => PropertiesNumber$inboundSchema),
|
|
1025
|
+
z.lazy(() => PropertiesDate$inboundSchema),
|
|
1023
1026
|
z.lazy(() => PropertiesSingleSelect$inboundSchema),
|
|
1024
1027
|
z.lazy(() => PropertiesMultiSelect$inboundSchema),
|
|
1028
|
+
z.lazy(() => PropertiesCheckbox$inboundSchema),
|
|
1025
1029
|
z.lazy(() => PropertiesObject$inboundSchema),
|
|
1026
1030
|
z.lazy(() => PropertiesArray$inboundSchema),
|
|
1027
1031
|
z.lazy(() => PropertiesFile$inboundSchema),
|
|
1028
|
-
z.lazy(() => PropertiesText$inboundSchema),
|
|
1029
|
-
z.lazy(() => PropertiesNumber$inboundSchema),
|
|
1030
|
-
z.lazy(() => PropertiesDate$inboundSchema),
|
|
1031
|
-
z.lazy(() => PropertiesCheckbox$inboundSchema),
|
|
1032
1032
|
]);
|
|
1033
1033
|
|
|
1034
1034
|
export function propertiesFromJSON(
|
|
@@ -1049,15 +1049,15 @@ export const GetHrisEmployeesFormPositiveResponseData$inboundSchema: z.ZodType<
|
|
|
1049
1049
|
> = z.object({
|
|
1050
1050
|
properties: z.record(
|
|
1051
1051
|
z.union([
|
|
1052
|
+
z.lazy(() => PropertiesText$inboundSchema),
|
|
1053
|
+
z.lazy(() => PropertiesNumber$inboundSchema),
|
|
1054
|
+
z.lazy(() => PropertiesDate$inboundSchema),
|
|
1052
1055
|
z.lazy(() => PropertiesSingleSelect$inboundSchema),
|
|
1053
1056
|
z.lazy(() => PropertiesMultiSelect$inboundSchema),
|
|
1057
|
+
z.lazy(() => PropertiesCheckbox$inboundSchema),
|
|
1054
1058
|
z.lazy(() => PropertiesObject$inboundSchema),
|
|
1055
1059
|
z.lazy(() => PropertiesArray$inboundSchema),
|
|
1056
1060
|
z.lazy(() => PropertiesFile$inboundSchema),
|
|
1057
|
-
z.lazy(() => PropertiesText$inboundSchema),
|
|
1058
|
-
z.lazy(() => PropertiesNumber$inboundSchema),
|
|
1059
|
-
z.lazy(() => PropertiesDate$inboundSchema),
|
|
1060
|
-
z.lazy(() => PropertiesCheckbox$inboundSchema),
|
|
1061
1061
|
]),
|
|
1062
1062
|
),
|
|
1063
1063
|
});
|