@kombo-api/sdk 1.0.3 → 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 +3 -1
- package/esm/funcs/generalSendPassthroughRequest.d.ts.map +1 -1
- package/esm/funcs/generalSendPassthroughRequest.js +3 -1
- 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 +31 -31
- package/esm/models/assessmentorderreceivedwebhookpayload.d.ts.map +1 -1
- package/esm/models/assessmentorderreceivedwebhookpayload.js +28 -28
- 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 +31 -31
- package/esm/models/inlineassessmentorderreceivedwebhookpayload.d.ts.map +1 -1
- package/esm/models/inlineassessmentorderreceivedwebhookpayload.js +28 -28
- 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 +3 -1
- package/esm/sdk/general.d.ts.map +1 -1
- package/esm/sdk/general.js +3 -1
- 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 +3 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +14 -2
- package/src/models/assessmentorderreceivedwebhookpayload.ts +59 -62
- 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 +59 -65
- 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 +3 -1
- 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 -178
- package/esm/models/getassessmentordersopenpositiveresponse.d.ts.map +0 -1
- package/esm/models/getassessmentordersopenpositiveresponse.js +0 -96
- 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 -420
- package/src/models/operations/getassessmentordersopen.ts +0 -81
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The current status of the assessment order.
|
|
13
|
+
*/
|
|
14
|
+
export const GetAssessmentOrdersPositiveResponseStatus = {
|
|
15
|
+
Open: "OPEN",
|
|
16
|
+
Completed: "COMPLETED",
|
|
17
|
+
Cancelled: "CANCELLED",
|
|
18
|
+
Rejected: "REJECTED",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* The current status of the assessment order.
|
|
22
|
+
*/
|
|
23
|
+
export type GetAssessmentOrdersPositiveResponseStatus = ClosedEnum<
|
|
24
|
+
typeof GetAssessmentOrdersPositiveResponseStatus
|
|
25
|
+
>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Information about the candidate taking the assessment.
|
|
29
|
+
*/
|
|
30
|
+
export type GetAssessmentOrdersPositiveResponseCandidate = {
|
|
31
|
+
/**
|
|
32
|
+
* The candidate's identifier in the integrated system.
|
|
33
|
+
*/
|
|
34
|
+
remote_id: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* The candidate's email address.
|
|
37
|
+
*/
|
|
38
|
+
email: string;
|
|
39
|
+
/**
|
|
40
|
+
* The candidate's first name.
|
|
41
|
+
*/
|
|
42
|
+
first_name: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* The candidate's last name.
|
|
45
|
+
*/
|
|
46
|
+
last_name: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* The candidate's phone number.
|
|
49
|
+
*/
|
|
50
|
+
phone: string | null;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Information about the job application.
|
|
55
|
+
*/
|
|
56
|
+
export type GetAssessmentOrdersPositiveResponseApplication = {
|
|
57
|
+
/**
|
|
58
|
+
* The application's identifier in the integrated system.
|
|
59
|
+
*/
|
|
60
|
+
remote_id: string | null;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The job location information.
|
|
65
|
+
*/
|
|
66
|
+
export type GetAssessmentOrdersPositiveResponseLocation = {
|
|
67
|
+
/**
|
|
68
|
+
* If we can parse the address data, this field contains the first part of the street information.
|
|
69
|
+
*/
|
|
70
|
+
street_1?: string | null | undefined;
|
|
71
|
+
street_2?: string | null | undefined;
|
|
72
|
+
city?: string | null | undefined;
|
|
73
|
+
state?: string | null | undefined;
|
|
74
|
+
zip_code?: string | null | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Contains the ISO2 country code if possible. If not, it contains the original value.
|
|
77
|
+
*/
|
|
78
|
+
country?: string | null | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* If we have address data, this is filled with the raw address string.
|
|
81
|
+
*/
|
|
82
|
+
raw?: string | null | undefined;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const GetAssessmentOrdersPositiveResponseHiringTeamRole = {
|
|
86
|
+
Recruiter: "RECRUITER",
|
|
87
|
+
HiringManager: "HIRING_MANAGER",
|
|
88
|
+
Coordinator: "COORDINATOR",
|
|
89
|
+
Sourcer: "SOURCER",
|
|
90
|
+
Interviewer: "INTERVIEWER",
|
|
91
|
+
} as const;
|
|
92
|
+
export type GetAssessmentOrdersPositiveResponseHiringTeamRole = ClosedEnum<
|
|
93
|
+
typeof GetAssessmentOrdersPositiveResponseHiringTeamRole
|
|
94
|
+
>;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* A member of the hiring team.
|
|
98
|
+
*/
|
|
99
|
+
export type GetAssessmentOrdersPositiveResponseHiringTeam = {
|
|
100
|
+
/**
|
|
101
|
+
* The team member's identifier in the integrated system.
|
|
102
|
+
*/
|
|
103
|
+
remote_id: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* The team member's email address.
|
|
106
|
+
*/
|
|
107
|
+
email: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* The team member's first name.
|
|
110
|
+
*/
|
|
111
|
+
first_name: string | null;
|
|
112
|
+
/**
|
|
113
|
+
* The team member's last name.
|
|
114
|
+
*/
|
|
115
|
+
last_name: string | null;
|
|
116
|
+
/**
|
|
117
|
+
* Array of the roles of the user for this specific job. Currently only `RECRUITER` and `HIRING_MANAGER` are mapped into our unified schema.
|
|
118
|
+
*/
|
|
119
|
+
hiring_team_roles: Array<GetAssessmentOrdersPositiveResponseHiringTeamRole>;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Information about the job posting.
|
|
124
|
+
*/
|
|
125
|
+
export type GetAssessmentOrdersPositiveResponseJob = {
|
|
126
|
+
/**
|
|
127
|
+
* The job's identifier in the integrated system.
|
|
128
|
+
*/
|
|
129
|
+
remote_id: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* The job title.
|
|
132
|
+
*/
|
|
133
|
+
name: string | null;
|
|
134
|
+
/**
|
|
135
|
+
* The human readable job code. Some systems expose this as the Requisition Code/ID.
|
|
136
|
+
*/
|
|
137
|
+
job_code: string | null;
|
|
138
|
+
/**
|
|
139
|
+
* Description of the job. This field is usually returned as HTML.
|
|
140
|
+
*/
|
|
141
|
+
description: string | null;
|
|
142
|
+
/**
|
|
143
|
+
* The job location information.
|
|
144
|
+
*/
|
|
145
|
+
location: GetAssessmentOrdersPositiveResponseLocation | null;
|
|
146
|
+
/**
|
|
147
|
+
* The hiring team allows you to provision users into your system who can access the job and its applications.
|
|
148
|
+
*/
|
|
149
|
+
hiring_team: Array<GetAssessmentOrdersPositiveResponseHiringTeam>;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export type GetAssessmentOrdersPositiveResponseResult = {
|
|
153
|
+
/**
|
|
154
|
+
* The unique identifier of the assessment order.
|
|
155
|
+
*/
|
|
156
|
+
id: string;
|
|
157
|
+
/**
|
|
158
|
+
* The identifier of the assessment package.
|
|
159
|
+
*/
|
|
160
|
+
package_id: string;
|
|
161
|
+
/**
|
|
162
|
+
* The current status of the assessment order.
|
|
163
|
+
*/
|
|
164
|
+
status: GetAssessmentOrdersPositiveResponseStatus;
|
|
165
|
+
/**
|
|
166
|
+
* Information about the candidate taking the assessment.
|
|
167
|
+
*/
|
|
168
|
+
candidate: GetAssessmentOrdersPositiveResponseCandidate;
|
|
169
|
+
/**
|
|
170
|
+
* Information about the job application.
|
|
171
|
+
*/
|
|
172
|
+
application: GetAssessmentOrdersPositiveResponseApplication;
|
|
173
|
+
/**
|
|
174
|
+
* Information about the job posting.
|
|
175
|
+
*/
|
|
176
|
+
job: GetAssessmentOrdersPositiveResponseJob;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
export type GetAssessmentOrdersPositiveResponseData = {
|
|
180
|
+
next: string | null;
|
|
181
|
+
results: Array<GetAssessmentOrdersPositiveResponseResult>;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export type GetAssessmentOrdersPositiveResponse = {
|
|
185
|
+
status: "success";
|
|
186
|
+
data: GetAssessmentOrdersPositiveResponseData;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
/** @internal */
|
|
190
|
+
export const GetAssessmentOrdersPositiveResponseStatus$inboundSchema:
|
|
191
|
+
z.ZodNativeEnum<typeof GetAssessmentOrdersPositiveResponseStatus> = z
|
|
192
|
+
.nativeEnum(GetAssessmentOrdersPositiveResponseStatus);
|
|
193
|
+
|
|
194
|
+
/** @internal */
|
|
195
|
+
export const GetAssessmentOrdersPositiveResponseCandidate$inboundSchema:
|
|
196
|
+
z.ZodType<
|
|
197
|
+
GetAssessmentOrdersPositiveResponseCandidate,
|
|
198
|
+
z.ZodTypeDef,
|
|
199
|
+
unknown
|
|
200
|
+
> = z.object({
|
|
201
|
+
remote_id: z.nullable(z.string()),
|
|
202
|
+
email: z.string(),
|
|
203
|
+
first_name: z.nullable(z.string()),
|
|
204
|
+
last_name: z.nullable(z.string()),
|
|
205
|
+
phone: z.nullable(z.string()),
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
export function getAssessmentOrdersPositiveResponseCandidateFromJSON(
|
|
209
|
+
jsonString: string,
|
|
210
|
+
): SafeParseResult<
|
|
211
|
+
GetAssessmentOrdersPositiveResponseCandidate,
|
|
212
|
+
SDKValidationError
|
|
213
|
+
> {
|
|
214
|
+
return safeParse(
|
|
215
|
+
jsonString,
|
|
216
|
+
(x) =>
|
|
217
|
+
GetAssessmentOrdersPositiveResponseCandidate$inboundSchema.parse(
|
|
218
|
+
JSON.parse(x),
|
|
219
|
+
),
|
|
220
|
+
`Failed to parse 'GetAssessmentOrdersPositiveResponseCandidate' from JSON`,
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/** @internal */
|
|
225
|
+
export const GetAssessmentOrdersPositiveResponseApplication$inboundSchema:
|
|
226
|
+
z.ZodType<
|
|
227
|
+
GetAssessmentOrdersPositiveResponseApplication,
|
|
228
|
+
z.ZodTypeDef,
|
|
229
|
+
unknown
|
|
230
|
+
> = z.object({
|
|
231
|
+
remote_id: z.nullable(z.string()),
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
export function getAssessmentOrdersPositiveResponseApplicationFromJSON(
|
|
235
|
+
jsonString: string,
|
|
236
|
+
): SafeParseResult<
|
|
237
|
+
GetAssessmentOrdersPositiveResponseApplication,
|
|
238
|
+
SDKValidationError
|
|
239
|
+
> {
|
|
240
|
+
return safeParse(
|
|
241
|
+
jsonString,
|
|
242
|
+
(x) =>
|
|
243
|
+
GetAssessmentOrdersPositiveResponseApplication$inboundSchema.parse(
|
|
244
|
+
JSON.parse(x),
|
|
245
|
+
),
|
|
246
|
+
`Failed to parse 'GetAssessmentOrdersPositiveResponseApplication' from JSON`,
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/** @internal */
|
|
251
|
+
export const GetAssessmentOrdersPositiveResponseLocation$inboundSchema:
|
|
252
|
+
z.ZodType<
|
|
253
|
+
GetAssessmentOrdersPositiveResponseLocation,
|
|
254
|
+
z.ZodTypeDef,
|
|
255
|
+
unknown
|
|
256
|
+
> = z.object({
|
|
257
|
+
street_1: z.nullable(z.string()).optional(),
|
|
258
|
+
street_2: z.nullable(z.string()).optional(),
|
|
259
|
+
city: z.nullable(z.string()).optional(),
|
|
260
|
+
state: z.nullable(z.string()).optional(),
|
|
261
|
+
zip_code: z.nullable(z.string()).optional(),
|
|
262
|
+
country: z.nullable(z.string()).optional(),
|
|
263
|
+
raw: z.nullable(z.string()).optional(),
|
|
264
|
+
});
|
|
265
|
+
|
|
266
|
+
export function getAssessmentOrdersPositiveResponseLocationFromJSON(
|
|
267
|
+
jsonString: string,
|
|
268
|
+
): SafeParseResult<
|
|
269
|
+
GetAssessmentOrdersPositiveResponseLocation,
|
|
270
|
+
SDKValidationError
|
|
271
|
+
> {
|
|
272
|
+
return safeParse(
|
|
273
|
+
jsonString,
|
|
274
|
+
(x) =>
|
|
275
|
+
GetAssessmentOrdersPositiveResponseLocation$inboundSchema.parse(
|
|
276
|
+
JSON.parse(x),
|
|
277
|
+
),
|
|
278
|
+
`Failed to parse 'GetAssessmentOrdersPositiveResponseLocation' from JSON`,
|
|
279
|
+
);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/** @internal */
|
|
283
|
+
export const GetAssessmentOrdersPositiveResponseHiringTeamRole$inboundSchema:
|
|
284
|
+
z.ZodNativeEnum<typeof GetAssessmentOrdersPositiveResponseHiringTeamRole> = z
|
|
285
|
+
.nativeEnum(GetAssessmentOrdersPositiveResponseHiringTeamRole);
|
|
286
|
+
|
|
287
|
+
/** @internal */
|
|
288
|
+
export const GetAssessmentOrdersPositiveResponseHiringTeam$inboundSchema:
|
|
289
|
+
z.ZodType<
|
|
290
|
+
GetAssessmentOrdersPositiveResponseHiringTeam,
|
|
291
|
+
z.ZodTypeDef,
|
|
292
|
+
unknown
|
|
293
|
+
> = z.object({
|
|
294
|
+
remote_id: z.nullable(z.string()),
|
|
295
|
+
email: z.nullable(z.string()),
|
|
296
|
+
first_name: z.nullable(z.string()),
|
|
297
|
+
last_name: z.nullable(z.string()),
|
|
298
|
+
hiring_team_roles: z.array(
|
|
299
|
+
GetAssessmentOrdersPositiveResponseHiringTeamRole$inboundSchema,
|
|
300
|
+
),
|
|
301
|
+
});
|
|
302
|
+
|
|
303
|
+
export function getAssessmentOrdersPositiveResponseHiringTeamFromJSON(
|
|
304
|
+
jsonString: string,
|
|
305
|
+
): SafeParseResult<
|
|
306
|
+
GetAssessmentOrdersPositiveResponseHiringTeam,
|
|
307
|
+
SDKValidationError
|
|
308
|
+
> {
|
|
309
|
+
return safeParse(
|
|
310
|
+
jsonString,
|
|
311
|
+
(x) =>
|
|
312
|
+
GetAssessmentOrdersPositiveResponseHiringTeam$inboundSchema.parse(
|
|
313
|
+
JSON.parse(x),
|
|
314
|
+
),
|
|
315
|
+
`Failed to parse 'GetAssessmentOrdersPositiveResponseHiringTeam' from JSON`,
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/** @internal */
|
|
320
|
+
export const GetAssessmentOrdersPositiveResponseJob$inboundSchema: z.ZodType<
|
|
321
|
+
GetAssessmentOrdersPositiveResponseJob,
|
|
322
|
+
z.ZodTypeDef,
|
|
323
|
+
unknown
|
|
324
|
+
> = z.object({
|
|
325
|
+
remote_id: z.nullable(z.string()),
|
|
326
|
+
name: z.nullable(z.string()),
|
|
327
|
+
job_code: z.nullable(z.string()),
|
|
328
|
+
description: z.nullable(z.string()),
|
|
329
|
+
location: z.nullable(
|
|
330
|
+
z.lazy(() => GetAssessmentOrdersPositiveResponseLocation$inboundSchema),
|
|
331
|
+
),
|
|
332
|
+
hiring_team: z.array(
|
|
333
|
+
z.lazy(() => GetAssessmentOrdersPositiveResponseHiringTeam$inboundSchema),
|
|
334
|
+
),
|
|
335
|
+
});
|
|
336
|
+
|
|
337
|
+
export function getAssessmentOrdersPositiveResponseJobFromJSON(
|
|
338
|
+
jsonString: string,
|
|
339
|
+
): SafeParseResult<GetAssessmentOrdersPositiveResponseJob, SDKValidationError> {
|
|
340
|
+
return safeParse(
|
|
341
|
+
jsonString,
|
|
342
|
+
(x) =>
|
|
343
|
+
GetAssessmentOrdersPositiveResponseJob$inboundSchema.parse(JSON.parse(x)),
|
|
344
|
+
`Failed to parse 'GetAssessmentOrdersPositiveResponseJob' from JSON`,
|
|
345
|
+
);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/** @internal */
|
|
349
|
+
export const GetAssessmentOrdersPositiveResponseResult$inboundSchema: z.ZodType<
|
|
350
|
+
GetAssessmentOrdersPositiveResponseResult,
|
|
351
|
+
z.ZodTypeDef,
|
|
352
|
+
unknown
|
|
353
|
+
> = z.object({
|
|
354
|
+
id: z.string(),
|
|
355
|
+
package_id: z.string(),
|
|
356
|
+
status: GetAssessmentOrdersPositiveResponseStatus$inboundSchema,
|
|
357
|
+
candidate: z.lazy(() =>
|
|
358
|
+
GetAssessmentOrdersPositiveResponseCandidate$inboundSchema
|
|
359
|
+
),
|
|
360
|
+
application: z.lazy(() =>
|
|
361
|
+
GetAssessmentOrdersPositiveResponseApplication$inboundSchema
|
|
362
|
+
),
|
|
363
|
+
job: z.lazy(() => GetAssessmentOrdersPositiveResponseJob$inboundSchema),
|
|
364
|
+
});
|
|
365
|
+
|
|
366
|
+
export function getAssessmentOrdersPositiveResponseResultFromJSON(
|
|
367
|
+
jsonString: string,
|
|
368
|
+
): SafeParseResult<
|
|
369
|
+
GetAssessmentOrdersPositiveResponseResult,
|
|
370
|
+
SDKValidationError
|
|
371
|
+
> {
|
|
372
|
+
return safeParse(
|
|
373
|
+
jsonString,
|
|
374
|
+
(x) =>
|
|
375
|
+
GetAssessmentOrdersPositiveResponseResult$inboundSchema.parse(
|
|
376
|
+
JSON.parse(x),
|
|
377
|
+
),
|
|
378
|
+
`Failed to parse 'GetAssessmentOrdersPositiveResponseResult' from JSON`,
|
|
379
|
+
);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/** @internal */
|
|
383
|
+
export const GetAssessmentOrdersPositiveResponseData$inboundSchema: z.ZodType<
|
|
384
|
+
GetAssessmentOrdersPositiveResponseData,
|
|
385
|
+
z.ZodTypeDef,
|
|
386
|
+
unknown
|
|
387
|
+
> = z.object({
|
|
388
|
+
next: z.nullable(z.string()),
|
|
389
|
+
results: z.array(
|
|
390
|
+
z.lazy(() => GetAssessmentOrdersPositiveResponseResult$inboundSchema),
|
|
391
|
+
),
|
|
392
|
+
});
|
|
393
|
+
|
|
394
|
+
export function getAssessmentOrdersPositiveResponseDataFromJSON(
|
|
395
|
+
jsonString: string,
|
|
396
|
+
): SafeParseResult<
|
|
397
|
+
GetAssessmentOrdersPositiveResponseData,
|
|
398
|
+
SDKValidationError
|
|
399
|
+
> {
|
|
400
|
+
return safeParse(
|
|
401
|
+
jsonString,
|
|
402
|
+
(x) =>
|
|
403
|
+
GetAssessmentOrdersPositiveResponseData$inboundSchema.parse(
|
|
404
|
+
JSON.parse(x),
|
|
405
|
+
),
|
|
406
|
+
`Failed to parse 'GetAssessmentOrdersPositiveResponseData' from JSON`,
|
|
407
|
+
);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/** @internal */
|
|
411
|
+
export const GetAssessmentOrdersPositiveResponse$inboundSchema: z.ZodType<
|
|
412
|
+
GetAssessmentOrdersPositiveResponse,
|
|
413
|
+
z.ZodTypeDef,
|
|
414
|
+
unknown
|
|
415
|
+
> = z.object({
|
|
416
|
+
status: z.literal("success"),
|
|
417
|
+
data: z.lazy(() => GetAssessmentOrdersPositiveResponseData$inboundSchema),
|
|
418
|
+
});
|
|
419
|
+
|
|
420
|
+
export function getAssessmentOrdersPositiveResponseFromJSON(
|
|
421
|
+
jsonString: string,
|
|
422
|
+
): SafeParseResult<GetAssessmentOrdersPositiveResponse, SDKValidationError> {
|
|
423
|
+
return safeParse(
|
|
424
|
+
jsonString,
|
|
425
|
+
(x) =>
|
|
426
|
+
GetAssessmentOrdersPositiveResponse$inboundSchema.parse(JSON.parse(x)),
|
|
427
|
+
`Failed to parse 'GetAssessmentOrdersPositiveResponse' from JSON`,
|
|
428
|
+
);
|
|
429
|
+
}
|
|
@@ -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";
|