@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
|
@@ -32,6 +32,7 @@ export const GetIntegrationsIntegrationIdPositiveResponseCategory = {
|
|
|
32
32
|
Hris: "HRIS",
|
|
33
33
|
Ats: "ATS",
|
|
34
34
|
Assessment: "ASSESSMENT",
|
|
35
|
+
Lms: "LMS",
|
|
35
36
|
} as const;
|
|
36
37
|
export type GetIntegrationsIntegrationIdPositiveResponseCategory = ClosedEnum<
|
|
37
38
|
typeof GetIntegrationsIntegrationIdPositiveResponseCategory
|
|
@@ -114,12 +115,13 @@ export type ScopeConfig = {
|
|
|
114
115
|
* - `NOT_IMPLEMENTED`: tool supports the datapoint but it was not integrated by Kombo for a given reason (see coverage grid).
|
|
115
116
|
* - `UNKNOWN`: the datapoint is not integrated yet and Kombo has no information about it's availability in the tool.
|
|
116
117
|
*/
|
|
117
|
-
export const
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
export const GetIntegrationsIntegrationIdPositiveResponseReadModelCoverageStatus =
|
|
119
|
+
{
|
|
120
|
+
Supported: "SUPPORTED",
|
|
121
|
+
Unsupported: "UNSUPPORTED",
|
|
122
|
+
NotImplemented: "NOT_IMPLEMENTED",
|
|
123
|
+
Unknown: "UNKNOWN",
|
|
124
|
+
} as const;
|
|
123
125
|
/**
|
|
124
126
|
* The status of a datapoint of an integrated tool:
|
|
125
127
|
*
|
|
@@ -130,13 +132,15 @@ export const GetIntegrationsIntegrationIdPositiveResponseCoverageStatus = {
|
|
|
130
132
|
* - `NOT_IMPLEMENTED`: tool supports the datapoint but it was not integrated by Kombo for a given reason (see coverage grid).
|
|
131
133
|
* - `UNKNOWN`: the datapoint is not integrated yet and Kombo has no information about it's availability in the tool.
|
|
132
134
|
*/
|
|
133
|
-
export type
|
|
134
|
-
ClosedEnum<
|
|
135
|
+
export type GetIntegrationsIntegrationIdPositiveResponseReadModelCoverageStatus =
|
|
136
|
+
ClosedEnum<
|
|
137
|
+
typeof GetIntegrationsIntegrationIdPositiveResponseReadModelCoverageStatus
|
|
138
|
+
>;
|
|
135
139
|
|
|
136
140
|
/**
|
|
137
141
|
* The setting of the datapoint in the scope config that you configured in the Kombo dashboard.
|
|
138
142
|
*/
|
|
139
|
-
export const
|
|
143
|
+
export const ReadModelScopeConfigSetting = {
|
|
140
144
|
Enabled: "ENABLED",
|
|
141
145
|
Disabled: "DISABLED",
|
|
142
146
|
Optional: "OPTIONAL",
|
|
@@ -144,7 +148,9 @@ export const ScopeConfigSetting = {
|
|
|
144
148
|
/**
|
|
145
149
|
* The setting of the datapoint in the scope config that you configured in the Kombo dashboard.
|
|
146
150
|
*/
|
|
147
|
-
export type
|
|
151
|
+
export type ReadModelScopeConfigSetting = ClosedEnum<
|
|
152
|
+
typeof ReadModelScopeConfigSetting
|
|
153
|
+
>;
|
|
148
154
|
|
|
149
155
|
/**
|
|
150
156
|
* The status of a datapoint of an integrated tool:
|
|
@@ -156,12 +162,13 @@ export type ScopeConfigSetting = ClosedEnum<typeof ScopeConfigSetting>;
|
|
|
156
162
|
* - `NOT_IMPLEMENTED`: tool supports the datapoint but it was not integrated by Kombo for a given reason (see coverage grid).
|
|
157
163
|
* - `UNKNOWN`: the datapoint is not integrated yet and Kombo has no information about it's availability in the tool.
|
|
158
164
|
*/
|
|
159
|
-
export const
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
+
export const GetIntegrationsIntegrationIdPositiveResponseReadModelFieldCoverageStatus =
|
|
166
|
+
{
|
|
167
|
+
Supported: "SUPPORTED",
|
|
168
|
+
Unsupported: "UNSUPPORTED",
|
|
169
|
+
NotImplemented: "NOT_IMPLEMENTED",
|
|
170
|
+
Unknown: "UNKNOWN",
|
|
171
|
+
} as const;
|
|
165
172
|
/**
|
|
166
173
|
* The status of a datapoint of an integrated tool:
|
|
167
174
|
*
|
|
@@ -172,9 +179,9 @@ export const GetIntegrationsIntegrationIdPositiveResponseFieldCoverageStatus = {
|
|
|
172
179
|
* - `NOT_IMPLEMENTED`: tool supports the datapoint but it was not integrated by Kombo for a given reason (see coverage grid).
|
|
173
180
|
* - `UNKNOWN`: the datapoint is not integrated yet and Kombo has no information about it's availability in the tool.
|
|
174
181
|
*/
|
|
175
|
-
export type
|
|
182
|
+
export type GetIntegrationsIntegrationIdPositiveResponseReadModelFieldCoverageStatus =
|
|
176
183
|
ClosedEnum<
|
|
177
|
-
typeof
|
|
184
|
+
typeof GetIntegrationsIntegrationIdPositiveResponseReadModelFieldCoverageStatus
|
|
178
185
|
>;
|
|
179
186
|
|
|
180
187
|
/**
|
|
@@ -192,7 +199,7 @@ export type FieldScopeConfigSetting = ClosedEnum<
|
|
|
192
199
|
typeof FieldScopeConfigSetting
|
|
193
200
|
>;
|
|
194
201
|
|
|
195
|
-
export type
|
|
202
|
+
export type GetIntegrationsIntegrationIdPositiveResponseReadModelField = {
|
|
196
203
|
/**
|
|
197
204
|
* Key of the field in the API (e.g. first_name).
|
|
198
205
|
*/
|
|
@@ -212,7 +219,7 @@ export type GetIntegrationsIntegrationIdPositiveResponseField = {
|
|
|
212
219
|
* - `UNKNOWN`: the datapoint is not integrated yet and Kombo has no information about it's availability in the tool.
|
|
213
220
|
*/
|
|
214
221
|
coverage_status:
|
|
215
|
-
|
|
222
|
+
GetIntegrationsIntegrationIdPositiveResponseReadModelFieldCoverageStatus;
|
|
216
223
|
/**
|
|
217
224
|
* The setting of the datapoint in the scope config that you configured in the Kombo dashboard.
|
|
218
225
|
*/
|
|
@@ -246,16 +253,158 @@ export type GetIntegrationsIntegrationIdPositiveResponseReadModel = {
|
|
|
246
253
|
* - `NOT_IMPLEMENTED`: tool supports the datapoint but it was not integrated by Kombo for a given reason (see coverage grid).
|
|
247
254
|
* - `UNKNOWN`: the datapoint is not integrated yet and Kombo has no information about it's availability in the tool.
|
|
248
255
|
*/
|
|
249
|
-
coverage_status:
|
|
256
|
+
coverage_status:
|
|
257
|
+
GetIntegrationsIntegrationIdPositiveResponseReadModelCoverageStatus;
|
|
258
|
+
/**
|
|
259
|
+
* The setting of the datapoint in the scope config that you configured in the Kombo dashboard.
|
|
260
|
+
*/
|
|
261
|
+
scope_config_setting: ReadModelScopeConfigSetting;
|
|
262
|
+
/**
|
|
263
|
+
* Whether the datapoint is opted out by your customer in the connection flow.
|
|
264
|
+
*/
|
|
265
|
+
opted_out_by_customer: boolean;
|
|
266
|
+
fields: Array<GetIntegrationsIntegrationIdPositiveResponseReadModelField>;
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* The status of a datapoint of an integrated tool:
|
|
271
|
+
*
|
|
272
|
+
* @remarks
|
|
273
|
+
*
|
|
274
|
+
* - `SUPPORTED`: the tool supports the datapoint and it can be used through Kombo.
|
|
275
|
+
* - `UNSUPPORTED`: the tool does not support the datapoint.
|
|
276
|
+
* - `NOT_IMPLEMENTED`: tool supports the datapoint but it was not integrated by Kombo for a given reason (see coverage grid).
|
|
277
|
+
* - `UNKNOWN`: the datapoint is not integrated yet and Kombo has no information about it's availability in the tool.
|
|
278
|
+
*/
|
|
279
|
+
export const GetIntegrationsIntegrationIdPositiveResponseWriteActionCoverageStatus =
|
|
280
|
+
{
|
|
281
|
+
Supported: "SUPPORTED",
|
|
282
|
+
Unsupported: "UNSUPPORTED",
|
|
283
|
+
NotImplemented: "NOT_IMPLEMENTED",
|
|
284
|
+
Unknown: "UNKNOWN",
|
|
285
|
+
} as const;
|
|
286
|
+
/**
|
|
287
|
+
* The status of a datapoint of an integrated tool:
|
|
288
|
+
*
|
|
289
|
+
* @remarks
|
|
290
|
+
*
|
|
291
|
+
* - `SUPPORTED`: the tool supports the datapoint and it can be used through Kombo.
|
|
292
|
+
* - `UNSUPPORTED`: the tool does not support the datapoint.
|
|
293
|
+
* - `NOT_IMPLEMENTED`: tool supports the datapoint but it was not integrated by Kombo for a given reason (see coverage grid).
|
|
294
|
+
* - `UNKNOWN`: the datapoint is not integrated yet and Kombo has no information about it's availability in the tool.
|
|
295
|
+
*/
|
|
296
|
+
export type GetIntegrationsIntegrationIdPositiveResponseWriteActionCoverageStatus =
|
|
297
|
+
ClosedEnum<
|
|
298
|
+
typeof GetIntegrationsIntegrationIdPositiveResponseWriteActionCoverageStatus
|
|
299
|
+
>;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* The setting of the datapoint in the scope config that you configured in the Kombo dashboard.
|
|
303
|
+
*/
|
|
304
|
+
export const WriteActionScopeConfigSetting = {
|
|
305
|
+
Enabled: "ENABLED",
|
|
306
|
+
Disabled: "DISABLED",
|
|
307
|
+
Optional: "OPTIONAL",
|
|
308
|
+
} as const;
|
|
309
|
+
/**
|
|
310
|
+
* The setting of the datapoint in the scope config that you configured in the Kombo dashboard.
|
|
311
|
+
*/
|
|
312
|
+
export type WriteActionScopeConfigSetting = ClosedEnum<
|
|
313
|
+
typeof WriteActionScopeConfigSetting
|
|
314
|
+
>;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* The status of a datapoint of an integrated tool:
|
|
318
|
+
*
|
|
319
|
+
* @remarks
|
|
320
|
+
*
|
|
321
|
+
* - `SUPPORTED`: the tool supports the datapoint and it can be used through Kombo.
|
|
322
|
+
* - `UNSUPPORTED`: the tool does not support the datapoint.
|
|
323
|
+
* - `NOT_IMPLEMENTED`: tool supports the datapoint but it was not integrated by Kombo for a given reason (see coverage grid).
|
|
324
|
+
* - `UNKNOWN`: the datapoint is not integrated yet and Kombo has no information about it's availability in the tool.
|
|
325
|
+
*/
|
|
326
|
+
export const GetIntegrationsIntegrationIdPositiveResponseWriteActionFieldCoverageStatus =
|
|
327
|
+
{
|
|
328
|
+
Supported: "SUPPORTED",
|
|
329
|
+
Unsupported: "UNSUPPORTED",
|
|
330
|
+
NotImplemented: "NOT_IMPLEMENTED",
|
|
331
|
+
Unknown: "UNKNOWN",
|
|
332
|
+
} as const;
|
|
333
|
+
/**
|
|
334
|
+
* The status of a datapoint of an integrated tool:
|
|
335
|
+
*
|
|
336
|
+
* @remarks
|
|
337
|
+
*
|
|
338
|
+
* - `SUPPORTED`: the tool supports the datapoint and it can be used through Kombo.
|
|
339
|
+
* - `UNSUPPORTED`: the tool does not support the datapoint.
|
|
340
|
+
* - `NOT_IMPLEMENTED`: tool supports the datapoint but it was not integrated by Kombo for a given reason (see coverage grid).
|
|
341
|
+
* - `UNKNOWN`: the datapoint is not integrated yet and Kombo has no information about it's availability in the tool.
|
|
342
|
+
*/
|
|
343
|
+
export type GetIntegrationsIntegrationIdPositiveResponseWriteActionFieldCoverageStatus =
|
|
344
|
+
ClosedEnum<
|
|
345
|
+
typeof GetIntegrationsIntegrationIdPositiveResponseWriteActionFieldCoverageStatus
|
|
346
|
+
>;
|
|
347
|
+
|
|
348
|
+
export type GetIntegrationsIntegrationIdPositiveResponseWriteActionField = {
|
|
349
|
+
/**
|
|
350
|
+
* Key of the input field (e.g. candidate.first_name).
|
|
351
|
+
*/
|
|
352
|
+
id: string;
|
|
353
|
+
/**
|
|
354
|
+
* Whether the datapoint is available and enabled and not opted out of.
|
|
355
|
+
*/
|
|
356
|
+
is_available: boolean;
|
|
357
|
+
/**
|
|
358
|
+
* The status of a datapoint of an integrated tool:
|
|
359
|
+
*
|
|
360
|
+
* @remarks
|
|
361
|
+
*
|
|
362
|
+
* - `SUPPORTED`: the tool supports the datapoint and it can be used through Kombo.
|
|
363
|
+
* - `UNSUPPORTED`: the tool does not support the datapoint.
|
|
364
|
+
* - `NOT_IMPLEMENTED`: tool supports the datapoint but it was not integrated by Kombo for a given reason (see coverage grid).
|
|
365
|
+
* - `UNKNOWN`: the datapoint is not integrated yet and Kombo has no information about it's availability in the tool.
|
|
366
|
+
*/
|
|
367
|
+
coverage_status:
|
|
368
|
+
GetIntegrationsIntegrationIdPositiveResponseWriteActionFieldCoverageStatus;
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
export type GetIntegrationsIntegrationIdPositiveResponseWriteAction = {
|
|
372
|
+
/**
|
|
373
|
+
* ID of the action (e.g. ats_create_candidate).
|
|
374
|
+
*/
|
|
375
|
+
id: string;
|
|
376
|
+
/**
|
|
377
|
+
* Label of the action (e.g. Create candidate).
|
|
378
|
+
*/
|
|
379
|
+
label: string;
|
|
380
|
+
/**
|
|
381
|
+
* Whether the datapoint is available and enabled and not opted out of.
|
|
382
|
+
*/
|
|
383
|
+
is_available: boolean;
|
|
384
|
+
/**
|
|
385
|
+
* The status of a datapoint of an integrated tool:
|
|
386
|
+
*
|
|
387
|
+
* @remarks
|
|
388
|
+
*
|
|
389
|
+
* - `SUPPORTED`: the tool supports the datapoint and it can be used through Kombo.
|
|
390
|
+
* - `UNSUPPORTED`: the tool does not support the datapoint.
|
|
391
|
+
* - `NOT_IMPLEMENTED`: tool supports the datapoint but it was not integrated by Kombo for a given reason (see coverage grid).
|
|
392
|
+
* - `UNKNOWN`: the datapoint is not integrated yet and Kombo has no information about it's availability in the tool.
|
|
393
|
+
*/
|
|
394
|
+
coverage_status:
|
|
395
|
+
GetIntegrationsIntegrationIdPositiveResponseWriteActionCoverageStatus;
|
|
250
396
|
/**
|
|
251
397
|
* The setting of the datapoint in the scope config that you configured in the Kombo dashboard.
|
|
252
398
|
*/
|
|
253
|
-
scope_config_setting:
|
|
399
|
+
scope_config_setting: WriteActionScopeConfigSetting;
|
|
254
400
|
/**
|
|
255
401
|
* Whether the datapoint is opted out by your customer in the connection flow.
|
|
256
402
|
*/
|
|
257
403
|
opted_out_by_customer: boolean;
|
|
258
|
-
|
|
404
|
+
/**
|
|
405
|
+
* Field support status for the action. Please note that action fields can't be configured in the scope config or opted out by your customer.
|
|
406
|
+
*/
|
|
407
|
+
fields: Array<GetIntegrationsIntegrationIdPositiveResponseWriteActionField>;
|
|
259
408
|
};
|
|
260
409
|
|
|
261
410
|
export type GetIntegrationsIntegrationIdPositiveResponseData = {
|
|
@@ -284,12 +433,17 @@ export type GetIntegrationsIntegrationIdPositiveResponseData = {
|
|
|
284
433
|
setup_status: GetIntegrationsIntegrationIdPositiveResponseSetupStatus;
|
|
285
434
|
end_user: GetIntegrationsIntegrationIdPositiveResponseEndUser;
|
|
286
435
|
scope_config: ScopeConfig;
|
|
436
|
+
/**
|
|
437
|
+
* The date when the integration configuration (e.g. filters, scope config) was changed, invalidating the synced data. It is cleared after a successful sync. If this field is `null` the data you fetch is valid to the state of the last sync or webhook event received. Otherwise it will be set to `null` with the next successful sync.
|
|
438
|
+
*/
|
|
439
|
+
data_expired_at: Date | null;
|
|
287
440
|
/**
|
|
288
441
|
* YYYY-MM-DDTHH:mm:ss.sssZ
|
|
289
442
|
*/
|
|
290
443
|
created_at: Date;
|
|
291
444
|
beta: boolean;
|
|
292
445
|
read_models: Array<GetIntegrationsIntegrationIdPositiveResponseReadModel>;
|
|
446
|
+
write_actions: Array<GetIntegrationsIntegrationIdPositiveResponseWriteAction>;
|
|
293
447
|
};
|
|
294
448
|
|
|
295
449
|
export type GetIntegrationsIntegrationIdPositiveResponse = {
|
|
@@ -392,22 +546,24 @@ export function scopeConfigFromJSON(
|
|
|
392
546
|
}
|
|
393
547
|
|
|
394
548
|
/** @internal */
|
|
395
|
-
export const
|
|
549
|
+
export const GetIntegrationsIntegrationIdPositiveResponseReadModelCoverageStatus$inboundSchema:
|
|
396
550
|
z.ZodNativeEnum<
|
|
397
|
-
typeof
|
|
398
|
-
> = z.nativeEnum(
|
|
551
|
+
typeof GetIntegrationsIntegrationIdPositiveResponseReadModelCoverageStatus
|
|
552
|
+
> = z.nativeEnum(
|
|
553
|
+
GetIntegrationsIntegrationIdPositiveResponseReadModelCoverageStatus,
|
|
554
|
+
);
|
|
399
555
|
|
|
400
556
|
/** @internal */
|
|
401
|
-
export const
|
|
402
|
-
typeof
|
|
403
|
-
> = z.nativeEnum(
|
|
557
|
+
export const ReadModelScopeConfigSetting$inboundSchema: z.ZodNativeEnum<
|
|
558
|
+
typeof ReadModelScopeConfigSetting
|
|
559
|
+
> = z.nativeEnum(ReadModelScopeConfigSetting);
|
|
404
560
|
|
|
405
561
|
/** @internal */
|
|
406
|
-
export const
|
|
562
|
+
export const GetIntegrationsIntegrationIdPositiveResponseReadModelFieldCoverageStatus$inboundSchema:
|
|
407
563
|
z.ZodNativeEnum<
|
|
408
|
-
typeof
|
|
564
|
+
typeof GetIntegrationsIntegrationIdPositiveResponseReadModelFieldCoverageStatus
|
|
409
565
|
> = z.nativeEnum(
|
|
410
|
-
|
|
566
|
+
GetIntegrationsIntegrationIdPositiveResponseReadModelFieldCoverageStatus,
|
|
411
567
|
);
|
|
412
568
|
|
|
413
569
|
/** @internal */
|
|
@@ -416,33 +572,32 @@ export const FieldScopeConfigSetting$inboundSchema: z.ZodNativeEnum<
|
|
|
416
572
|
> = z.nativeEnum(FieldScopeConfigSetting);
|
|
417
573
|
|
|
418
574
|
/** @internal */
|
|
419
|
-
export const
|
|
575
|
+
export const GetIntegrationsIntegrationIdPositiveResponseReadModelField$inboundSchema:
|
|
420
576
|
z.ZodType<
|
|
421
|
-
|
|
577
|
+
GetIntegrationsIntegrationIdPositiveResponseReadModelField,
|
|
422
578
|
z.ZodTypeDef,
|
|
423
579
|
unknown
|
|
424
580
|
> = z.object({
|
|
425
581
|
id: z.string(),
|
|
426
582
|
is_available: z.boolean(),
|
|
427
583
|
coverage_status:
|
|
428
|
-
|
|
584
|
+
GetIntegrationsIntegrationIdPositiveResponseReadModelFieldCoverageStatus$inboundSchema,
|
|
429
585
|
scope_config_setting: FieldScopeConfigSetting$inboundSchema,
|
|
430
586
|
opted_out_by_customer: z.boolean(),
|
|
431
587
|
});
|
|
432
588
|
|
|
433
|
-
export function
|
|
589
|
+
export function getIntegrationsIntegrationIdPositiveResponseReadModelFieldFromJSON(
|
|
434
590
|
jsonString: string,
|
|
435
591
|
): SafeParseResult<
|
|
436
|
-
|
|
592
|
+
GetIntegrationsIntegrationIdPositiveResponseReadModelField,
|
|
437
593
|
SDKValidationError
|
|
438
594
|
> {
|
|
439
595
|
return safeParse(
|
|
440
596
|
jsonString,
|
|
441
597
|
(x) =>
|
|
442
|
-
|
|
443
|
-
JSON.parse(x),
|
|
444
|
-
|
|
445
|
-
`Failed to parse 'GetIntegrationsIntegrationIdPositiveResponseField' from JSON`,
|
|
598
|
+
GetIntegrationsIntegrationIdPositiveResponseReadModelField$inboundSchema
|
|
599
|
+
.parse(JSON.parse(x)),
|
|
600
|
+
`Failed to parse 'GetIntegrationsIntegrationIdPositiveResponseReadModelField' from JSON`,
|
|
446
601
|
);
|
|
447
602
|
}
|
|
448
603
|
|
|
@@ -457,12 +612,12 @@ export const GetIntegrationsIntegrationIdPositiveResponseReadModel$inboundSchema
|
|
|
457
612
|
label: z.string(),
|
|
458
613
|
is_available: z.boolean(),
|
|
459
614
|
coverage_status:
|
|
460
|
-
|
|
461
|
-
scope_config_setting:
|
|
615
|
+
GetIntegrationsIntegrationIdPositiveResponseReadModelCoverageStatus$inboundSchema,
|
|
616
|
+
scope_config_setting: ReadModelScopeConfigSetting$inboundSchema,
|
|
462
617
|
opted_out_by_customer: z.boolean(),
|
|
463
618
|
fields: z.array(
|
|
464
619
|
z.lazy(() =>
|
|
465
|
-
|
|
620
|
+
GetIntegrationsIntegrationIdPositiveResponseReadModelField$inboundSchema
|
|
466
621
|
),
|
|
467
622
|
),
|
|
468
623
|
});
|
|
@@ -483,6 +638,91 @@ export function getIntegrationsIntegrationIdPositiveResponseReadModelFromJSON(
|
|
|
483
638
|
);
|
|
484
639
|
}
|
|
485
640
|
|
|
641
|
+
/** @internal */
|
|
642
|
+
export const GetIntegrationsIntegrationIdPositiveResponseWriteActionCoverageStatus$inboundSchema:
|
|
643
|
+
z.ZodNativeEnum<
|
|
644
|
+
typeof GetIntegrationsIntegrationIdPositiveResponseWriteActionCoverageStatus
|
|
645
|
+
> = z.nativeEnum(
|
|
646
|
+
GetIntegrationsIntegrationIdPositiveResponseWriteActionCoverageStatus,
|
|
647
|
+
);
|
|
648
|
+
|
|
649
|
+
/** @internal */
|
|
650
|
+
export const WriteActionScopeConfigSetting$inboundSchema: z.ZodNativeEnum<
|
|
651
|
+
typeof WriteActionScopeConfigSetting
|
|
652
|
+
> = z.nativeEnum(WriteActionScopeConfigSetting);
|
|
653
|
+
|
|
654
|
+
/** @internal */
|
|
655
|
+
export const GetIntegrationsIntegrationIdPositiveResponseWriteActionFieldCoverageStatus$inboundSchema:
|
|
656
|
+
z.ZodNativeEnum<
|
|
657
|
+
typeof GetIntegrationsIntegrationIdPositiveResponseWriteActionFieldCoverageStatus
|
|
658
|
+
> = z.nativeEnum(
|
|
659
|
+
GetIntegrationsIntegrationIdPositiveResponseWriteActionFieldCoverageStatus,
|
|
660
|
+
);
|
|
661
|
+
|
|
662
|
+
/** @internal */
|
|
663
|
+
export const GetIntegrationsIntegrationIdPositiveResponseWriteActionField$inboundSchema:
|
|
664
|
+
z.ZodType<
|
|
665
|
+
GetIntegrationsIntegrationIdPositiveResponseWriteActionField,
|
|
666
|
+
z.ZodTypeDef,
|
|
667
|
+
unknown
|
|
668
|
+
> = z.object({
|
|
669
|
+
id: z.string(),
|
|
670
|
+
is_available: z.boolean(),
|
|
671
|
+
coverage_status:
|
|
672
|
+
GetIntegrationsIntegrationIdPositiveResponseWriteActionFieldCoverageStatus$inboundSchema,
|
|
673
|
+
});
|
|
674
|
+
|
|
675
|
+
export function getIntegrationsIntegrationIdPositiveResponseWriteActionFieldFromJSON(
|
|
676
|
+
jsonString: string,
|
|
677
|
+
): SafeParseResult<
|
|
678
|
+
GetIntegrationsIntegrationIdPositiveResponseWriteActionField,
|
|
679
|
+
SDKValidationError
|
|
680
|
+
> {
|
|
681
|
+
return safeParse(
|
|
682
|
+
jsonString,
|
|
683
|
+
(x) =>
|
|
684
|
+
GetIntegrationsIntegrationIdPositiveResponseWriteActionField$inboundSchema
|
|
685
|
+
.parse(JSON.parse(x)),
|
|
686
|
+
`Failed to parse 'GetIntegrationsIntegrationIdPositiveResponseWriteActionField' from JSON`,
|
|
687
|
+
);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
/** @internal */
|
|
691
|
+
export const GetIntegrationsIntegrationIdPositiveResponseWriteAction$inboundSchema:
|
|
692
|
+
z.ZodType<
|
|
693
|
+
GetIntegrationsIntegrationIdPositiveResponseWriteAction,
|
|
694
|
+
z.ZodTypeDef,
|
|
695
|
+
unknown
|
|
696
|
+
> = z.object({
|
|
697
|
+
id: z.string(),
|
|
698
|
+
label: z.string(),
|
|
699
|
+
is_available: z.boolean(),
|
|
700
|
+
coverage_status:
|
|
701
|
+
GetIntegrationsIntegrationIdPositiveResponseWriteActionCoverageStatus$inboundSchema,
|
|
702
|
+
scope_config_setting: WriteActionScopeConfigSetting$inboundSchema,
|
|
703
|
+
opted_out_by_customer: z.boolean(),
|
|
704
|
+
fields: z.array(
|
|
705
|
+
z.lazy(() =>
|
|
706
|
+
GetIntegrationsIntegrationIdPositiveResponseWriteActionField$inboundSchema
|
|
707
|
+
),
|
|
708
|
+
),
|
|
709
|
+
});
|
|
710
|
+
|
|
711
|
+
export function getIntegrationsIntegrationIdPositiveResponseWriteActionFromJSON(
|
|
712
|
+
jsonString: string,
|
|
713
|
+
): SafeParseResult<
|
|
714
|
+
GetIntegrationsIntegrationIdPositiveResponseWriteAction,
|
|
715
|
+
SDKValidationError
|
|
716
|
+
> {
|
|
717
|
+
return safeParse(
|
|
718
|
+
jsonString,
|
|
719
|
+
(x) =>
|
|
720
|
+
GetIntegrationsIntegrationIdPositiveResponseWriteAction$inboundSchema
|
|
721
|
+
.parse(JSON.parse(x)),
|
|
722
|
+
`Failed to parse 'GetIntegrationsIntegrationIdPositiveResponseWriteAction' from JSON`,
|
|
723
|
+
);
|
|
724
|
+
}
|
|
725
|
+
|
|
486
726
|
/** @internal */
|
|
487
727
|
export const GetIntegrationsIntegrationIdPositiveResponseData$inboundSchema:
|
|
488
728
|
z.ZodType<
|
|
@@ -503,6 +743,9 @@ export const GetIntegrationsIntegrationIdPositiveResponseData$inboundSchema:
|
|
|
503
743
|
GetIntegrationsIntegrationIdPositiveResponseEndUser$inboundSchema
|
|
504
744
|
),
|
|
505
745
|
scope_config: z.lazy(() => ScopeConfig$inboundSchema),
|
|
746
|
+
data_expired_at: z.nullable(
|
|
747
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
748
|
+
),
|
|
506
749
|
created_at: z.string().datetime({ offset: true }).transform(v =>
|
|
507
750
|
new Date(v)
|
|
508
751
|
),
|
|
@@ -512,6 +755,11 @@ export const GetIntegrationsIntegrationIdPositiveResponseData$inboundSchema:
|
|
|
512
755
|
GetIntegrationsIntegrationIdPositiveResponseReadModel$inboundSchema
|
|
513
756
|
),
|
|
514
757
|
),
|
|
758
|
+
write_actions: z.array(
|
|
759
|
+
z.lazy(() =>
|
|
760
|
+
GetIntegrationsIntegrationIdPositiveResponseWriteAction$inboundSchema
|
|
761
|
+
),
|
|
762
|
+
),
|
|
515
763
|
});
|
|
516
764
|
|
|
517
765
|
export function getIntegrationsIntegrationIdPositiveResponseDataFromJSON(
|