@kombo-api/sdk 1.0.2 → 1.0.4
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 +2 -2
- package/esm/funcs/{assessmentGetOpenOrders.d.ts → assessmentGetAssessmentOrders.d.ts} +4 -4
- package/esm/funcs/assessmentGetAssessmentOrders.d.ts.map +1 -0
- package/esm/funcs/{assessmentGetOpenOrders.js → assessmentGetAssessmentOrders.js} +16 -12
- package/esm/funcs/assessmentGetAssessmentOrders.js.map +1 -0
- package/esm/funcs/generalSendPassthroughRequest.d.ts +4 -2
- package/esm/funcs/generalSendPassthroughRequest.d.ts.map +1 -1
- package/esm/funcs/generalSendPassthroughRequest.js +4 -2
- package/esm/funcs/generalSendPassthroughRequest.js.map +1 -1
- 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/security.d.ts +1 -1
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js +19 -8
- package/esm/lib/security.js.map +1 -1
- package/esm/models/assessmentorderreceivedwebhookpayload.d.ts +37 -27
- package/esm/models/assessmentorderreceivedwebhookpayload.d.ts.map +1 -1
- package/esm/models/assessmentorderreceivedwebhookpayload.js +28 -24
- package/esm/models/assessmentorderreceivedwebhookpayload.js.map +1 -1
- package/esm/models/deletehrisabsencesabsenceidpositiveresponse.d.ts +8 -0
- package/esm/models/deletehrisabsencesabsenceidpositiveresponse.d.ts.map +1 -1
- package/esm/models/deletehrisabsencesabsenceidpositiveresponse.js +2 -0
- package/esm/models/deletehrisabsencesabsenceidpositiveresponse.js.map +1 -1
- package/esm/models/getassessmentorderspositiveresponse.d.ts +197 -0
- package/esm/models/getassessmentorderspositiveresponse.d.ts.map +1 -0
- package/esm/models/getassessmentorderspositiveresponse.js +110 -0
- package/esm/models/getassessmentorderspositiveresponse.js.map +1 -0
- package/esm/models/gethrisabsencespositiveresponse.d.ts +8 -0
- package/esm/models/gethrisabsencespositiveresponse.d.ts.map +1 -1
- package/esm/models/gethrisabsencespositiveresponse.js +2 -0
- package/esm/models/gethrisabsencespositiveresponse.js.map +1 -1
- package/esm/models/index.d.ts +1 -1
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +1 -1
- package/esm/models/index.js.map +1 -1
- package/esm/models/inlineassessmentorderreceivedwebhookpayload.d.ts +37 -27
- package/esm/models/inlineassessmentorderreceivedwebhookpayload.d.ts.map +1 -1
- package/esm/models/inlineassessmentorderreceivedwebhookpayload.js +28 -24
- package/esm/models/inlineassessmentorderreceivedwebhookpayload.js.map +1 -1
- package/esm/models/operations/getassessmentorders.d.ts +50 -0
- package/esm/models/operations/getassessmentorders.d.ts.map +1 -0
- package/esm/models/operations/getassessmentorders.js +30 -0
- package/esm/models/operations/getassessmentorders.js.map +1 -0
- package/esm/models/operations/getatsapplications.d.ts +11 -7
- package/esm/models/operations/getatsapplications.d.ts.map +1 -1
- package/esm/models/operations/getatsapplications.js.map +1 -1
- package/esm/models/operations/getatscandidates.d.ts +9 -6
- 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 +9 -6
- 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 +9 -9
- package/esm/models/operations/getatsoffers.d.ts +8 -4
- package/esm/models/operations/getatsoffers.d.ts.map +1 -1
- package/esm/models/operations/getatsoffers.js.map +1 -1
- package/esm/models/operations/getatsusers.d.ts +6 -3
- 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 +6 -2
- package/esm/models/operations/gethrisabsences.d.ts.map +1 -1
- package/esm/models/operations/gethrisabsences.js.map +1 -1
- package/esm/models/operations/gethrisemployees.d.ts +11 -8
- package/esm/models/operations/gethrisemployees.d.ts.map +1 -1
- package/esm/models/operations/gethrisemployees.js.map +1 -1
- package/esm/models/operations/gethrisperformancereviews.d.ts +8 -4
- 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 +8 -7
- package/esm/models/operations/gethrisstaffingentities.d.ts.map +1 -1
- package/esm/models/operations/gethrisstaffingentities.js.map +1 -1
- package/esm/models/operations/gethristimeoffbalances.d.ts +6 -2
- package/esm/models/operations/gethristimeoffbalances.d.ts.map +1 -1
- package/esm/models/operations/gethristimeoffbalances.js.map +1 -1
- package/esm/models/operations/index.d.ts +1 -1
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +1 -1
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/postconnectcreatelinkrequestbody.d.ts +2 -0
- package/esm/models/postconnectcreatelinkrequestbody.d.ts.map +1 -1
- package/esm/models/postconnectcreatelinkrequestbody.js +2 -0
- package/esm/models/postconnectcreatelinkrequestbody.js.map +1 -1
- package/esm/models/posthrisabsencespositiveresponse.d.ts +8 -0
- package/esm/models/posthrisabsencespositiveresponse.d.ts.map +1 -1
- package/esm/models/posthrisabsencespositiveresponse.js +2 -0
- package/esm/models/posthrisabsencespositiveresponse.js.map +1 -1
- package/esm/sdk/assessment.d.ts +3 -3
- package/esm/sdk/assessment.d.ts.map +1 -1
- package/esm/sdk/assessment.js +5 -5
- package/esm/sdk/assessment.js.map +1 -1
- package/esm/sdk/general.d.ts +4 -2
- package/esm/sdk/general.d.ts.map +1 -1
- package/esm/sdk/general.js +4 -2
- package/esm/sdk/general.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/{assessmentGetOpenOrders.ts → assessmentGetAssessmentOrders.ts} +27 -20
- package/src/funcs/generalSendPassthroughRequest.ts +4 -2
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +14 -2
- package/src/models/assessmentorderreceivedwebhookpayload.ts +65 -54
- package/src/models/deletehrisabsencesabsenceidpositiveresponse.ts +14 -0
- package/src/models/getassessmentorderspositiveresponse.ts +429 -0
- package/src/models/gethrisabsencespositiveresponse.ts +14 -0
- package/src/models/index.ts +1 -1
- package/src/models/inlineassessmentorderreceivedwebhookpayload.ts +65 -57
- package/src/models/operations/getassessmentorders.ts +97 -0
- package/src/models/operations/getatsapplications.ts +11 -7
- package/src/models/operations/getatscandidates.ts +9 -6
- package/src/models/operations/getatsinterviews.ts +9 -6
- package/src/models/operations/getatsjobs.ts +9 -9
- package/src/models/operations/getatsoffers.ts +8 -4
- package/src/models/operations/getatsusers.ts +6 -3
- package/src/models/operations/gethrisabsences.ts +6 -2
- package/src/models/operations/gethrisemployees.ts +11 -8
- package/src/models/operations/gethrisperformancereviews.ts +8 -4
- package/src/models/operations/gethrisstaffingentities.ts +8 -7
- package/src/models/operations/gethristimeoffbalances.ts +6 -2
- package/src/models/operations/index.ts +1 -1
- package/src/models/postconnectcreatelinkrequestbody.ts +2 -0
- package/src/models/posthrisabsencespositiveresponse.ts +14 -0
- package/src/sdk/assessment.ts +7 -7
- package/src/sdk/general.ts +4 -2
- package/tests/error-handling.spec.ts +2 -2
- package/esm/funcs/assessmentGetOpenOrders.d.ts.map +0 -1
- package/esm/funcs/assessmentGetOpenOrders.js.map +0 -1
- package/esm/models/getassessmentordersopenpositiveresponse.d.ts +0 -170
- package/esm/models/getassessmentordersopenpositiveresponse.d.ts.map +0 -1
- package/esm/models/getassessmentordersopenpositiveresponse.js +0 -94
- package/esm/models/getassessmentordersopenpositiveresponse.js.map +0 -1
- package/esm/models/operations/getassessmentordersopen.d.ts +0 -35
- package/esm/models/operations/getassessmentordersopen.d.ts.map +0 -1
- package/esm/models/operations/getassessmentordersopen.js +0 -27
- package/esm/models/operations/getassessmentordersopen.js.map +0 -1
- package/src/models/getassessmentordersopenpositiveresponse.ts +0 -410
- package/src/models/operations/getassessmentordersopen.ts +0 -81
|
@@ -140,6 +140,14 @@ export type GetHrisAbsencesPositiveResponseResult = {
|
|
|
140
140
|
* The Kombo absence type ID of this absence.
|
|
141
141
|
*/
|
|
142
142
|
type_id: string | null;
|
|
143
|
+
/**
|
|
144
|
+
* The date and time the object was created in the remote system.
|
|
145
|
+
*/
|
|
146
|
+
remote_created_at: Date | null;
|
|
147
|
+
/**
|
|
148
|
+
* A timestamp retrieved from the remote system, describing when the resource was last updated.
|
|
149
|
+
*/
|
|
150
|
+
remote_updated_at: Date | null;
|
|
143
151
|
/**
|
|
144
152
|
* 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.
|
|
145
153
|
*/
|
|
@@ -231,6 +239,12 @@ export const GetHrisAbsencesPositiveResponseResult$inboundSchema: z.ZodType<
|
|
|
231
239
|
.optional(),
|
|
232
240
|
employee_note: z.nullable(z.string()),
|
|
233
241
|
type_id: z.nullable(z.string()),
|
|
242
|
+
remote_created_at: z.nullable(
|
|
243
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
244
|
+
),
|
|
245
|
+
remote_updated_at: z.nullable(
|
|
246
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
247
|
+
),
|
|
234
248
|
changed_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
235
249
|
remote_deleted_at: z.nullable(
|
|
236
250
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
package/src/models/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ export * from "./deletehrisabsencesabsenceidpositiveresponse.js";
|
|
|
11
11
|
export * from "./deletehrisabsencesabsenceidrequestbody.js";
|
|
12
12
|
export * from "./deleteintegrationsintegrationidpositiveresponse.js";
|
|
13
13
|
export * from "./deleteintegrationsintegrationidrequestbody.js";
|
|
14
|
-
export * from "./
|
|
14
|
+
export * from "./getassessmentorderspositiveresponse.js";
|
|
15
15
|
export * from "./getassessmentpackagespositiveresponse.js";
|
|
16
16
|
export * from "./getatsapplicationsapplicationidattachmentspositiveresponse.js";
|
|
17
17
|
export * from "./getatsapplicationspositiveresponse.js";
|
|
@@ -44,7 +44,7 @@ export type InlineAssessmentOrderReceivedWebhookPayloadCandidate = {
|
|
|
44
44
|
/**
|
|
45
45
|
* The candidate's identifier in the integrated system.
|
|
46
46
|
*/
|
|
47
|
-
remote_id
|
|
47
|
+
remote_id: string | null;
|
|
48
48
|
/**
|
|
49
49
|
* The candidate's email address.
|
|
50
50
|
*/
|
|
@@ -52,15 +52,15 @@ export type InlineAssessmentOrderReceivedWebhookPayloadCandidate = {
|
|
|
52
52
|
/**
|
|
53
53
|
* The candidate's first name.
|
|
54
54
|
*/
|
|
55
|
-
first_name
|
|
55
|
+
first_name: string | null;
|
|
56
56
|
/**
|
|
57
57
|
* The candidate's last name.
|
|
58
58
|
*/
|
|
59
|
-
last_name
|
|
59
|
+
last_name: string | null;
|
|
60
60
|
/**
|
|
61
61
|
* The candidate's phone number.
|
|
62
62
|
*/
|
|
63
|
-
phone
|
|
63
|
+
phone: string | null;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
/**
|
|
@@ -70,14 +70,21 @@ export type InlineAssessmentOrderReceivedWebhookPayloadApplication = {
|
|
|
70
70
|
/**
|
|
71
71
|
* The application's identifier in the integrated system.
|
|
72
72
|
*/
|
|
73
|
-
remote_id
|
|
73
|
+
remote_id: string | null;
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The job location information.
|
|
78
78
|
*/
|
|
79
79
|
export type InlineAssessmentOrderReceivedWebhookPayloadLocation = {
|
|
80
|
+
/**
|
|
81
|
+
* If we can parse the address data, this field contains the first part of the street information.
|
|
82
|
+
*/
|
|
83
|
+
street_1?: string | null | undefined;
|
|
84
|
+
street_2?: string | null | undefined;
|
|
80
85
|
city?: string | null | undefined;
|
|
86
|
+
state?: string | null | undefined;
|
|
87
|
+
zip_code?: string | null | undefined;
|
|
81
88
|
/**
|
|
82
89
|
* Contains the ISO2 country code if possible. If not, it contains the original value.
|
|
83
90
|
*/
|
|
@@ -86,13 +93,6 @@ export type InlineAssessmentOrderReceivedWebhookPayloadLocation = {
|
|
|
86
93
|
* If we have address data, this is filled with the raw address string.
|
|
87
94
|
*/
|
|
88
95
|
raw?: string | null | undefined;
|
|
89
|
-
state?: string | null | undefined;
|
|
90
|
-
/**
|
|
91
|
-
* If we can parse the address data, this field contains the first part of the street information.
|
|
92
|
-
*/
|
|
93
|
-
street_1?: string | null | undefined;
|
|
94
|
-
street_2?: string | null | undefined;
|
|
95
|
-
zip_code?: string | null | undefined;
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
export const InlineAssessmentOrderReceivedWebhookPayloadHiringTeamRole = {
|
|
@@ -140,18 +140,23 @@ export type InlineAssessmentOrderReceivedWebhookPayloadJob = {
|
|
|
140
140
|
/**
|
|
141
141
|
* The job's identifier in the integrated system.
|
|
142
142
|
*/
|
|
143
|
-
remote_id
|
|
143
|
+
remote_id: string | null;
|
|
144
144
|
/**
|
|
145
145
|
* The job title.
|
|
146
146
|
*/
|
|
147
|
-
name
|
|
147
|
+
name: string | null;
|
|
148
|
+
/**
|
|
149
|
+
* The human readable job code. Some systems expose this as the Requisition Code/ID.
|
|
150
|
+
*/
|
|
151
|
+
job_code: string | null;
|
|
152
|
+
/**
|
|
153
|
+
* Description of the job. This field is usually returned as HTML.
|
|
154
|
+
*/
|
|
155
|
+
description: string | null;
|
|
148
156
|
/**
|
|
149
157
|
* The job location information.
|
|
150
158
|
*/
|
|
151
|
-
location
|
|
152
|
-
| InlineAssessmentOrderReceivedWebhookPayloadLocation
|
|
153
|
-
| null
|
|
154
|
-
| undefined;
|
|
159
|
+
location: InlineAssessmentOrderReceivedWebhookPayloadLocation | null;
|
|
155
160
|
/**
|
|
156
161
|
* The hiring team allows you to provision users into your system who can access the job and its applications.
|
|
157
162
|
*/
|
|
@@ -226,19 +231,19 @@ export const InlineAssessmentOrderReceivedWebhookPayloadCandidate$inboundSchema:
|
|
|
226
231
|
z.ZodTypeDef,
|
|
227
232
|
unknown
|
|
228
233
|
> = z.object({
|
|
229
|
-
remote_id: z.nullable(z.string())
|
|
234
|
+
remote_id: z.nullable(z.string()),
|
|
230
235
|
email: z.string(),
|
|
231
|
-
first_name: z.nullable(z.string())
|
|
232
|
-
last_name: z.nullable(z.string())
|
|
233
|
-
phone: z.nullable(z.string())
|
|
236
|
+
first_name: z.nullable(z.string()),
|
|
237
|
+
last_name: z.nullable(z.string()),
|
|
238
|
+
phone: z.nullable(z.string()),
|
|
234
239
|
});
|
|
235
240
|
/** @internal */
|
|
236
241
|
export type InlineAssessmentOrderReceivedWebhookPayloadCandidate$Outbound = {
|
|
237
|
-
remote_id
|
|
242
|
+
remote_id: string | null;
|
|
238
243
|
email: string;
|
|
239
|
-
first_name
|
|
240
|
-
last_name
|
|
241
|
-
phone
|
|
244
|
+
first_name: string | null;
|
|
245
|
+
last_name: string | null;
|
|
246
|
+
phone: string | null;
|
|
242
247
|
};
|
|
243
248
|
|
|
244
249
|
/** @internal */
|
|
@@ -248,11 +253,11 @@ export const InlineAssessmentOrderReceivedWebhookPayloadCandidate$outboundSchema
|
|
|
248
253
|
z.ZodTypeDef,
|
|
249
254
|
InlineAssessmentOrderReceivedWebhookPayloadCandidate
|
|
250
255
|
> = z.object({
|
|
251
|
-
remote_id: z.nullable(z.string())
|
|
256
|
+
remote_id: z.nullable(z.string()),
|
|
252
257
|
email: z.string(),
|
|
253
|
-
first_name: z.nullable(z.string())
|
|
254
|
-
last_name: z.nullable(z.string())
|
|
255
|
-
phone: z.nullable(z.string())
|
|
258
|
+
first_name: z.nullable(z.string()),
|
|
259
|
+
last_name: z.nullable(z.string()),
|
|
260
|
+
phone: z.nullable(z.string()),
|
|
256
261
|
});
|
|
257
262
|
|
|
258
263
|
export function inlineAssessmentOrderReceivedWebhookPayloadCandidateToJSON(
|
|
@@ -288,11 +293,11 @@ export const InlineAssessmentOrderReceivedWebhookPayloadApplication$inboundSchem
|
|
|
288
293
|
z.ZodTypeDef,
|
|
289
294
|
unknown
|
|
290
295
|
> = z.object({
|
|
291
|
-
remote_id: z.nullable(z.string())
|
|
296
|
+
remote_id: z.nullable(z.string()),
|
|
292
297
|
});
|
|
293
298
|
/** @internal */
|
|
294
299
|
export type InlineAssessmentOrderReceivedWebhookPayloadApplication$Outbound = {
|
|
295
|
-
remote_id
|
|
300
|
+
remote_id: string | null;
|
|
296
301
|
};
|
|
297
302
|
|
|
298
303
|
/** @internal */
|
|
@@ -302,7 +307,7 @@ export const InlineAssessmentOrderReceivedWebhookPayloadApplication$outboundSche
|
|
|
302
307
|
z.ZodTypeDef,
|
|
303
308
|
InlineAssessmentOrderReceivedWebhookPayloadApplication
|
|
304
309
|
> = z.object({
|
|
305
|
-
remote_id: z.nullable(z.string())
|
|
310
|
+
remote_id: z.nullable(z.string()),
|
|
306
311
|
});
|
|
307
312
|
|
|
308
313
|
export function inlineAssessmentOrderReceivedWebhookPayloadApplicationToJSON(
|
|
@@ -337,23 +342,23 @@ export const InlineAssessmentOrderReceivedWebhookPayloadLocation$inboundSchema:
|
|
|
337
342
|
z.ZodTypeDef,
|
|
338
343
|
unknown
|
|
339
344
|
> = z.object({
|
|
340
|
-
city: z.nullable(z.string()).optional(),
|
|
341
|
-
country: z.nullable(z.string()).optional(),
|
|
342
|
-
raw: z.nullable(z.string()).optional(),
|
|
343
|
-
state: z.nullable(z.string()).optional(),
|
|
344
345
|
street_1: z.nullable(z.string()).optional(),
|
|
345
346
|
street_2: z.nullable(z.string()).optional(),
|
|
347
|
+
city: z.nullable(z.string()).optional(),
|
|
348
|
+
state: z.nullable(z.string()).optional(),
|
|
346
349
|
zip_code: z.nullable(z.string()).optional(),
|
|
350
|
+
country: z.nullable(z.string()).optional(),
|
|
351
|
+
raw: z.nullable(z.string()).optional(),
|
|
347
352
|
});
|
|
348
353
|
/** @internal */
|
|
349
354
|
export type InlineAssessmentOrderReceivedWebhookPayloadLocation$Outbound = {
|
|
350
|
-
city?: string | null | undefined;
|
|
351
|
-
country?: string | null | undefined;
|
|
352
|
-
raw?: string | null | undefined;
|
|
353
|
-
state?: string | null | undefined;
|
|
354
355
|
street_1?: string | null | undefined;
|
|
355
356
|
street_2?: string | null | undefined;
|
|
357
|
+
city?: string | null | undefined;
|
|
358
|
+
state?: string | null | undefined;
|
|
356
359
|
zip_code?: string | null | undefined;
|
|
360
|
+
country?: string | null | undefined;
|
|
361
|
+
raw?: string | null | undefined;
|
|
357
362
|
};
|
|
358
363
|
|
|
359
364
|
/** @internal */
|
|
@@ -363,13 +368,13 @@ export const InlineAssessmentOrderReceivedWebhookPayloadLocation$outboundSchema:
|
|
|
363
368
|
z.ZodTypeDef,
|
|
364
369
|
InlineAssessmentOrderReceivedWebhookPayloadLocation
|
|
365
370
|
> = z.object({
|
|
366
|
-
city: z.nullable(z.string()).optional(),
|
|
367
|
-
country: z.nullable(z.string()).optional(),
|
|
368
|
-
raw: z.nullable(z.string()).optional(),
|
|
369
|
-
state: z.nullable(z.string()).optional(),
|
|
370
371
|
street_1: z.nullable(z.string()).optional(),
|
|
371
372
|
street_2: z.nullable(z.string()).optional(),
|
|
373
|
+
city: z.nullable(z.string()).optional(),
|
|
374
|
+
state: z.nullable(z.string()).optional(),
|
|
372
375
|
zip_code: z.nullable(z.string()).optional(),
|
|
376
|
+
country: z.nullable(z.string()).optional(),
|
|
377
|
+
raw: z.nullable(z.string()).optional(),
|
|
373
378
|
});
|
|
374
379
|
|
|
375
380
|
export function inlineAssessmentOrderReceivedWebhookPayloadLocationToJSON(
|
|
@@ -482,13 +487,15 @@ export const InlineAssessmentOrderReceivedWebhookPayloadJob$inboundSchema:
|
|
|
482
487
|
z.ZodTypeDef,
|
|
483
488
|
unknown
|
|
484
489
|
> = z.object({
|
|
485
|
-
remote_id: z.nullable(z.string())
|
|
486
|
-
name: z.nullable(z.string())
|
|
490
|
+
remote_id: z.nullable(z.string()),
|
|
491
|
+
name: z.nullable(z.string()),
|
|
492
|
+
job_code: z.nullable(z.string()),
|
|
493
|
+
description: z.nullable(z.string()),
|
|
487
494
|
location: z.nullable(
|
|
488
495
|
z.lazy(() =>
|
|
489
496
|
InlineAssessmentOrderReceivedWebhookPayloadLocation$inboundSchema
|
|
490
497
|
),
|
|
491
|
-
)
|
|
498
|
+
),
|
|
492
499
|
hiring_team: z.array(
|
|
493
500
|
z.lazy(() =>
|
|
494
501
|
InlineAssessmentOrderReceivedWebhookPayloadHiringTeam$inboundSchema
|
|
@@ -497,12 +504,11 @@ export const InlineAssessmentOrderReceivedWebhookPayloadJob$inboundSchema:
|
|
|
497
504
|
});
|
|
498
505
|
/** @internal */
|
|
499
506
|
export type InlineAssessmentOrderReceivedWebhookPayloadJob$Outbound = {
|
|
500
|
-
remote_id
|
|
501
|
-
name
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
| undefined;
|
|
507
|
+
remote_id: string | null;
|
|
508
|
+
name: string | null;
|
|
509
|
+
job_code: string | null;
|
|
510
|
+
description: string | null;
|
|
511
|
+
location: InlineAssessmentOrderReceivedWebhookPayloadLocation$Outbound | null;
|
|
506
512
|
hiring_team: Array<
|
|
507
513
|
InlineAssessmentOrderReceivedWebhookPayloadHiringTeam$Outbound
|
|
508
514
|
>;
|
|
@@ -515,13 +521,15 @@ export const InlineAssessmentOrderReceivedWebhookPayloadJob$outboundSchema:
|
|
|
515
521
|
z.ZodTypeDef,
|
|
516
522
|
InlineAssessmentOrderReceivedWebhookPayloadJob
|
|
517
523
|
> = z.object({
|
|
518
|
-
remote_id: z.nullable(z.string())
|
|
519
|
-
name: z.nullable(z.string())
|
|
524
|
+
remote_id: z.nullable(z.string()),
|
|
525
|
+
name: z.nullable(z.string()),
|
|
526
|
+
job_code: z.nullable(z.string()),
|
|
527
|
+
description: z.nullable(z.string()),
|
|
520
528
|
location: z.nullable(
|
|
521
529
|
z.lazy(() =>
|
|
522
530
|
InlineAssessmentOrderReceivedWebhookPayloadLocation$outboundSchema
|
|
523
531
|
),
|
|
524
|
-
)
|
|
532
|
+
),
|
|
525
533
|
hiring_team: z.array(
|
|
526
534
|
z.lazy(() =>
|
|
527
535
|
InlineAssessmentOrderReceivedWebhookPayloadHiringTeam$outboundSchema
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import * as models from "../index.js";
|
|
11
|
+
|
|
12
|
+
export type GetAssessmentOrdersGlobals = {
|
|
13
|
+
/**
|
|
14
|
+
* ID of the integration you want to interact with.
|
|
15
|
+
*/
|
|
16
|
+
integration_id?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type GetAssessmentOrdersRequest = {
|
|
20
|
+
/**
|
|
21
|
+
* An optional cursor string used for pagination. This can be retrieved from the `next` property of the previous page response.
|
|
22
|
+
*/
|
|
23
|
+
cursor?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* The number of results to return per page. Maximum is 250.
|
|
26
|
+
*/
|
|
27
|
+
page_size?: number | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Filter by a comma-separated list of IDs such as `222k7eCGyUdgt2JWZDNnkDs3,B5DVmypWENfU6eMe6gYDyJG3`.
|
|
30
|
+
*/
|
|
31
|
+
ids?: Array<string> | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Filter by a comma-separated list of statuses such as `OPEN,COMPLETED`.
|
|
34
|
+
*/
|
|
35
|
+
statuses?: Array<string> | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Filter orders by their creation date. Only orders created on or after this date will be returned.
|
|
38
|
+
*/
|
|
39
|
+
created_after?: Date | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type GetAssessmentOrdersResponse = {
|
|
43
|
+
result: models.GetAssessmentOrdersPositiveResponse;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type GetAssessmentOrdersRequest$Outbound = {
|
|
48
|
+
cursor?: string | undefined;
|
|
49
|
+
page_size: number;
|
|
50
|
+
ids?: Array<string> | undefined;
|
|
51
|
+
statuses?: Array<string> | undefined;
|
|
52
|
+
created_after?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const GetAssessmentOrdersRequest$outboundSchema: z.ZodType<
|
|
57
|
+
GetAssessmentOrdersRequest$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
GetAssessmentOrdersRequest
|
|
60
|
+
> = z.object({
|
|
61
|
+
cursor: z.string().optional(),
|
|
62
|
+
page_size: z.number().int().default(100),
|
|
63
|
+
ids: z.array(z.string()).optional(),
|
|
64
|
+
statuses: z.array(z.string()).optional(),
|
|
65
|
+
created_after: z.date().transform(v => v.toISOString()).optional(),
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
export function getAssessmentOrdersRequestToJSON(
|
|
69
|
+
getAssessmentOrdersRequest: GetAssessmentOrdersRequest,
|
|
70
|
+
): string {
|
|
71
|
+
return JSON.stringify(
|
|
72
|
+
GetAssessmentOrdersRequest$outboundSchema.parse(getAssessmentOrdersRequest),
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const GetAssessmentOrdersResponse$inboundSchema: z.ZodType<
|
|
78
|
+
GetAssessmentOrdersResponse,
|
|
79
|
+
z.ZodTypeDef,
|
|
80
|
+
unknown
|
|
81
|
+
> = z.object({
|
|
82
|
+
Result: models.GetAssessmentOrdersPositiveResponse$inboundSchema,
|
|
83
|
+
}).transform((v) => {
|
|
84
|
+
return remap$(v, {
|
|
85
|
+
"Result": "result",
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
export function getAssessmentOrdersResponseFromJSON(
|
|
90
|
+
jsonString: string,
|
|
91
|
+
): SafeParseResult<GetAssessmentOrdersResponse, SDKValidationError> {
|
|
92
|
+
return safeParse(
|
|
93
|
+
jsonString,
|
|
94
|
+
(x) => GetAssessmentOrdersResponse$inboundSchema.parse(JSON.parse(x)),
|
|
95
|
+
`Failed to parse 'GetAssessmentOrdersResponse' from JSON`,
|
|
96
|
+
);
|
|
97
|
+
}
|
|
@@ -34,14 +34,18 @@ export type GetAtsApplicationsRequest = {
|
|
|
34
34
|
*
|
|
35
35
|
* For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior).
|
|
36
36
|
*
|
|
37
|
-
* For this endpoint, `updated_after`
|
|
37
|
+
* For this endpoint, `updated_after` matches when the returned record changed, or when related data changed as described below.
|
|
38
38
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
39
|
+
* | Path | Relationship | Target Record |
|
|
40
|
+
* | --- | --- | --- |
|
|
41
|
+
* | `candidate` | n/a | ✓ Yes |
|
|
42
|
+
* | `candidate` → `tags` | ✗ No | ✗ No |
|
|
43
|
+
* | `current_stage` | n/a | ✓ Yes |
|
|
44
|
+
* | `job` | ✗ No | ✗ No |
|
|
45
|
+
* | `interviews` | ✓ Yes | ✓ Yes |
|
|
46
|
+
* | `offers` | ✓ Yes | ✓ Yes |
|
|
47
|
+
*
|
|
48
|
+
* _**Relationship**: Whether adding or removing entries from this list triggers an update (n/a for single references that are not lists). **Target Record**: Whether changes to the linked record itself trigger an update._
|
|
45
49
|
*/
|
|
46
50
|
updated_after?: Date | undefined;
|
|
47
51
|
/**
|
|
@@ -34,13 +34,16 @@ export type GetAtsCandidatesRequest = {
|
|
|
34
34
|
*
|
|
35
35
|
* For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior).
|
|
36
36
|
*
|
|
37
|
-
* For this endpoint, `updated_after`
|
|
37
|
+
* For this endpoint, `updated_after` matches when the returned record changed, or when related data changed as described below.
|
|
38
38
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
39
|
+
* | Path | Relationship | Target Record |
|
|
40
|
+
* | --- | --- | --- |
|
|
41
|
+
* | `applications` | ✓ Yes | ✓ Yes |
|
|
42
|
+
* | `applications` → `current_stage` | ✗ No | ✗ No |
|
|
43
|
+
* | `applications` → `job` | ✗ No | ✗ No |
|
|
44
|
+
* | `tags` | ✓ Yes | ✗ No |
|
|
45
|
+
*
|
|
46
|
+
* _**Relationship**: Whether adding or removing entries from this list triggers an update (n/a for single references that are not lists). **Target Record**: Whether changes to the linked record itself trigger an update._
|
|
44
47
|
*/
|
|
45
48
|
updated_after?: Date | undefined;
|
|
46
49
|
/**
|
|
@@ -34,13 +34,16 @@ export type GetAtsInterviewsRequest = {
|
|
|
34
34
|
*
|
|
35
35
|
* For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior).
|
|
36
36
|
*
|
|
37
|
-
* For this endpoint, `updated_after`
|
|
37
|
+
* For this endpoint, `updated_after` matches when the returned record changed, or when related data changed as described below.
|
|
38
38
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
39
|
+
* | Path | Relationship | Target Record |
|
|
40
|
+
* | --- | --- | --- |
|
|
41
|
+
* | `interviewers` | ✓ Yes | ✗ No |
|
|
42
|
+
* | `application` | n/a | ✓ Yes |
|
|
43
|
+
* | `application` → `candidate` | ✗ No | ✗ No |
|
|
44
|
+
* | `application` → `job` | ✗ No | ✗ No |
|
|
45
|
+
*
|
|
46
|
+
* _**Relationship**: Whether adding or removing entries from this list triggers an update (n/a for single references that are not lists). **Target Record**: Whether changes to the linked record itself trigger an update._
|
|
44
47
|
*/
|
|
45
48
|
updated_after?: Date | undefined;
|
|
46
49
|
/**
|
|
@@ -34,16 +34,16 @@ export type GetAtsJobsRequest = {
|
|
|
34
34
|
*
|
|
35
35
|
* For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior).
|
|
36
36
|
*
|
|
37
|
-
* For this endpoint, `updated_after`
|
|
37
|
+
* For this endpoint, `updated_after` matches when the returned record changed, or when related data changed as described below.
|
|
38
38
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
39
|
+
* | Path | Relationship | Target Record |
|
|
40
|
+
* | --- | --- | --- |
|
|
41
|
+
* | `stages` | ✓ Yes | ✗ No |
|
|
42
|
+
* | `screening_questions` | ✓ Yes | ✗ No |
|
|
43
|
+
* | `job_postings` | ✓ Yes | ✓ Yes |
|
|
44
|
+
* | `hiring_team` | ✓ Yes | ✗ No |
|
|
45
|
+
*
|
|
46
|
+
* _**Relationship**: Whether adding or removing entries from this list triggers an update (n/a for single references that are not lists). **Target Record**: Whether changes to the linked record itself trigger an update._
|
|
47
47
|
*/
|
|
48
48
|
updated_after?: Date | undefined;
|
|
49
49
|
/**
|
|
@@ -34,11 +34,15 @@ export type GetAtsOffersRequest = {
|
|
|
34
34
|
*
|
|
35
35
|
* For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior).
|
|
36
36
|
*
|
|
37
|
-
* For this endpoint, `updated_after`
|
|
37
|
+
* For this endpoint, `updated_after` matches when the returned record changed, or when related data changed as described below.
|
|
38
38
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
39
|
+
* | Path | Relationship | Target Record |
|
|
40
|
+
* | --- | --- | --- |
|
|
41
|
+
* | `application` | n/a | ✓ Yes |
|
|
42
|
+
* | `application` → `candidate` | ✗ No | ✗ No |
|
|
43
|
+
* | `application` → `job` | ✗ No | ✗ No |
|
|
44
|
+
*
|
|
45
|
+
* _**Relationship**: Whether adding or removing entries from this list triggers an update (n/a for single references that are not lists). **Target Record**: Whether changes to the linked record itself trigger an update._
|
|
42
46
|
*/
|
|
43
47
|
updated_after?: Date | undefined;
|
|
44
48
|
/**
|
|
@@ -34,10 +34,13 @@ export type GetAtsUsersRequest = {
|
|
|
34
34
|
*
|
|
35
35
|
* For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior).
|
|
36
36
|
*
|
|
37
|
-
* For this endpoint, `updated_after`
|
|
37
|
+
* For this endpoint, `updated_after` matches when the returned record changed, or when related data changed as described below.
|
|
38
38
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
39
|
+
* | Path | Relationship | Target Record |
|
|
40
|
+
* | --- | --- | --- |
|
|
41
|
+
* | `system_role_assignment` | ✓ Yes | ✓ Yes |
|
|
42
|
+
*
|
|
43
|
+
* _**Relationship**: Whether adding or removing entries from this list triggers an update (n/a for single references that are not lists). **Target Record**: Whether changes to the linked record itself trigger an update._
|
|
41
44
|
*/
|
|
42
45
|
updated_after?: Date | undefined;
|
|
43
46
|
/**
|
|
@@ -34,9 +34,13 @@ export type GetHrisAbsencesRequest = {
|
|
|
34
34
|
*
|
|
35
35
|
* For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior).
|
|
36
36
|
*
|
|
37
|
-
* For this endpoint, `updated_after`
|
|
37
|
+
* For this endpoint, `updated_after` matches when the returned record changed, or when related data changed as described below.
|
|
38
38
|
*
|
|
39
|
-
*
|
|
39
|
+
* | Path | Relationship | Target Record |
|
|
40
|
+
* | --- | --- | --- |
|
|
41
|
+
* | `type` | n/a | ✓ Yes |
|
|
42
|
+
*
|
|
43
|
+
* _**Relationship**: Whether adding or removing entries from this list triggers an update (n/a for single references that are not lists). **Target Record**: Whether changes to the linked record itself trigger an update._
|
|
40
44
|
*/
|
|
41
45
|
updated_after?: Date | undefined;
|
|
42
46
|
/**
|
|
@@ -34,15 +34,18 @@ export type GetHrisEmployeesRequest = {
|
|
|
34
34
|
*
|
|
35
35
|
* For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior).
|
|
36
36
|
*
|
|
37
|
-
* For this endpoint, `updated_after`
|
|
37
|
+
* For this endpoint, `updated_after` matches when the returned record changed, or when related data changed as described below.
|
|
38
38
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
39
|
+
* | Path | Relationship | Target Record |
|
|
40
|
+
* | --- | --- | --- |
|
|
41
|
+
* | `employments` | ✓ Yes | ✓ Yes |
|
|
42
|
+
* | `time_off_balances` | ✓ Yes | ✓ Yes |
|
|
43
|
+
* | `manager` | n/a | ✓ Yes |
|
|
44
|
+
* | `group_memberships` | ✓ Yes | ✗ No |
|
|
45
|
+
* | `legal_entity` | n/a | ✓ Yes |
|
|
46
|
+
* | `work_location` | n/a | ✓ Yes |
|
|
47
|
+
*
|
|
48
|
+
* _**Relationship**: Whether adding or removing entries from this list triggers an update (n/a for single references that are not lists). **Target Record**: Whether changes to the linked record itself trigger an update._
|
|
46
49
|
*/
|
|
47
50
|
updated_after?: Date | undefined;
|
|
48
51
|
/**
|
|
@@ -34,11 +34,15 @@ export type GetHrisPerformanceReviewsRequest = {
|
|
|
34
34
|
*
|
|
35
35
|
* For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior).
|
|
36
36
|
*
|
|
37
|
-
* For this endpoint, `updated_after`
|
|
37
|
+
* For this endpoint, `updated_after` matches when the returned record changed, or when related data changed as described below.
|
|
38
38
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
39
|
+
* | Path | Relationship | Target Record |
|
|
40
|
+
* | --- | --- | --- |
|
|
41
|
+
* | `review_cycle` | n/a | ✓ Yes |
|
|
42
|
+
* | `reviewee` | n/a | ✓ Yes |
|
|
43
|
+
* | `reviewer` | n/a | ✓ Yes |
|
|
44
|
+
*
|
|
45
|
+
* _**Relationship**: Whether adding or removing entries from this list triggers an update (n/a for single references that are not lists). **Target Record**: Whether changes to the linked record itself trigger an update._
|
|
42
46
|
*/
|
|
43
47
|
updated_after?: Date | undefined;
|
|
44
48
|
/**
|
|
@@ -34,14 +34,15 @@ export type GetHrisStaffingEntitiesRequest = {
|
|
|
34
34
|
*
|
|
35
35
|
* For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior).
|
|
36
36
|
*
|
|
37
|
-
* For this endpoint, `updated_after`
|
|
37
|
+
* For this endpoint, `updated_after` matches when the returned record changed, or when related data changed as described below.
|
|
38
38
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
39
|
+
* | Path | Relationship | Target Record |
|
|
40
|
+
* | --- | --- | --- |
|
|
41
|
+
* | `locations` | ✓ Yes | ✓ Yes |
|
|
42
|
+
* | `legal_entities` | ✓ Yes | ✓ Yes |
|
|
43
|
+
* | `groups` | ✓ Yes | ✓ Yes |
|
|
44
|
+
*
|
|
45
|
+
* _**Relationship**: Whether adding or removing entries from this list triggers an update (n/a for single references that are not lists). **Target Record**: Whether changes to the linked record itself trigger an update._
|
|
45
46
|
*/
|
|
46
47
|
updated_after?: Date | undefined;
|
|
47
48
|
/**
|
|
@@ -34,9 +34,13 @@ export type GetHrisTimeOffBalancesRequest = {
|
|
|
34
34
|
*
|
|
35
35
|
* For more details, see [Understanding changed_at vs updated_after Behavior](https://docs.kombo.dev/ats/getting-started/fetching-data#understanding-changed_at-vs-updated_after-behavior).
|
|
36
36
|
*
|
|
37
|
-
* For this endpoint, `updated_after`
|
|
37
|
+
* For this endpoint, `updated_after` matches when the returned record changed, or when related data changed as described below.
|
|
38
38
|
*
|
|
39
|
-
*
|
|
39
|
+
* | Path | Relationship | Target Record |
|
|
40
|
+
* | --- | --- | --- |
|
|
41
|
+
* | `type` | n/a | ✓ Yes |
|
|
42
|
+
*
|
|
43
|
+
* _**Relationship**: Whether adding or removing entries from this list triggers an update (n/a for single references that are not lists). **Target Record**: Whether changes to the linked record itself trigger an update._
|
|
40
44
|
*/
|
|
41
45
|
updated_after?: Date | undefined;
|
|
42
46
|
/**
|