@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.
Files changed (137) hide show
  1. package/README.md +2 -2
  2. package/esm/funcs/{assessmentGetOpenOrders.d.ts → assessmentGetAssessmentOrders.d.ts} +4 -4
  3. package/esm/funcs/assessmentGetAssessmentOrders.d.ts.map +1 -0
  4. package/esm/funcs/{assessmentGetOpenOrders.js → assessmentGetAssessmentOrders.js} +16 -12
  5. package/esm/funcs/assessmentGetAssessmentOrders.js.map +1 -0
  6. package/esm/funcs/generalSendPassthroughRequest.d.ts +4 -2
  7. package/esm/funcs/generalSendPassthroughRequest.d.ts.map +1 -1
  8. package/esm/funcs/generalSendPassthroughRequest.js +4 -2
  9. package/esm/funcs/generalSendPassthroughRequest.js.map +1 -1
  10. package/esm/lib/config.d.ts +3 -3
  11. package/esm/lib/config.js +3 -3
  12. package/esm/lib/config.js.map +1 -1
  13. package/esm/lib/security.d.ts +1 -1
  14. package/esm/lib/security.d.ts.map +1 -1
  15. package/esm/lib/security.js +19 -8
  16. package/esm/lib/security.js.map +1 -1
  17. package/esm/models/assessmentorderreceivedwebhookpayload.d.ts +37 -27
  18. package/esm/models/assessmentorderreceivedwebhookpayload.d.ts.map +1 -1
  19. package/esm/models/assessmentorderreceivedwebhookpayload.js +28 -24
  20. package/esm/models/assessmentorderreceivedwebhookpayload.js.map +1 -1
  21. package/esm/models/deletehrisabsencesabsenceidpositiveresponse.d.ts +8 -0
  22. package/esm/models/deletehrisabsencesabsenceidpositiveresponse.d.ts.map +1 -1
  23. package/esm/models/deletehrisabsencesabsenceidpositiveresponse.js +2 -0
  24. package/esm/models/deletehrisabsencesabsenceidpositiveresponse.js.map +1 -1
  25. package/esm/models/getassessmentorderspositiveresponse.d.ts +197 -0
  26. package/esm/models/getassessmentorderspositiveresponse.d.ts.map +1 -0
  27. package/esm/models/getassessmentorderspositiveresponse.js +110 -0
  28. package/esm/models/getassessmentorderspositiveresponse.js.map +1 -0
  29. package/esm/models/gethrisabsencespositiveresponse.d.ts +8 -0
  30. package/esm/models/gethrisabsencespositiveresponse.d.ts.map +1 -1
  31. package/esm/models/gethrisabsencespositiveresponse.js +2 -0
  32. package/esm/models/gethrisabsencespositiveresponse.js.map +1 -1
  33. package/esm/models/index.d.ts +1 -1
  34. package/esm/models/index.d.ts.map +1 -1
  35. package/esm/models/index.js +1 -1
  36. package/esm/models/index.js.map +1 -1
  37. package/esm/models/inlineassessmentorderreceivedwebhookpayload.d.ts +37 -27
  38. package/esm/models/inlineassessmentorderreceivedwebhookpayload.d.ts.map +1 -1
  39. package/esm/models/inlineassessmentorderreceivedwebhookpayload.js +28 -24
  40. package/esm/models/inlineassessmentorderreceivedwebhookpayload.js.map +1 -1
  41. package/esm/models/operations/getassessmentorders.d.ts +50 -0
  42. package/esm/models/operations/getassessmentorders.d.ts.map +1 -0
  43. package/esm/models/operations/getassessmentorders.js +30 -0
  44. package/esm/models/operations/getassessmentorders.js.map +1 -0
  45. package/esm/models/operations/getatsapplications.d.ts +11 -7
  46. package/esm/models/operations/getatsapplications.d.ts.map +1 -1
  47. package/esm/models/operations/getatsapplications.js.map +1 -1
  48. package/esm/models/operations/getatscandidates.d.ts +9 -6
  49. package/esm/models/operations/getatscandidates.d.ts.map +1 -1
  50. package/esm/models/operations/getatscandidates.js.map +1 -1
  51. package/esm/models/operations/getatsinterviews.d.ts +9 -6
  52. package/esm/models/operations/getatsinterviews.d.ts.map +1 -1
  53. package/esm/models/operations/getatsinterviews.js.map +1 -1
  54. package/esm/models/operations/getatsjobs.d.ts +9 -9
  55. package/esm/models/operations/getatsoffers.d.ts +8 -4
  56. package/esm/models/operations/getatsoffers.d.ts.map +1 -1
  57. package/esm/models/operations/getatsoffers.js.map +1 -1
  58. package/esm/models/operations/getatsusers.d.ts +6 -3
  59. package/esm/models/operations/getatsusers.d.ts.map +1 -1
  60. package/esm/models/operations/getatsusers.js.map +1 -1
  61. package/esm/models/operations/gethrisabsences.d.ts +6 -2
  62. package/esm/models/operations/gethrisabsences.d.ts.map +1 -1
  63. package/esm/models/operations/gethrisabsences.js.map +1 -1
  64. package/esm/models/operations/gethrisemployees.d.ts +11 -8
  65. package/esm/models/operations/gethrisemployees.d.ts.map +1 -1
  66. package/esm/models/operations/gethrisemployees.js.map +1 -1
  67. package/esm/models/operations/gethrisperformancereviews.d.ts +8 -4
  68. package/esm/models/operations/gethrisperformancereviews.d.ts.map +1 -1
  69. package/esm/models/operations/gethrisperformancereviews.js.map +1 -1
  70. package/esm/models/operations/gethrisstaffingentities.d.ts +8 -7
  71. package/esm/models/operations/gethrisstaffingentities.d.ts.map +1 -1
  72. package/esm/models/operations/gethrisstaffingentities.js.map +1 -1
  73. package/esm/models/operations/gethristimeoffbalances.d.ts +6 -2
  74. package/esm/models/operations/gethristimeoffbalances.d.ts.map +1 -1
  75. package/esm/models/operations/gethristimeoffbalances.js.map +1 -1
  76. package/esm/models/operations/index.d.ts +1 -1
  77. package/esm/models/operations/index.d.ts.map +1 -1
  78. package/esm/models/operations/index.js +1 -1
  79. package/esm/models/operations/index.js.map +1 -1
  80. package/esm/models/postconnectcreatelinkrequestbody.d.ts +2 -0
  81. package/esm/models/postconnectcreatelinkrequestbody.d.ts.map +1 -1
  82. package/esm/models/postconnectcreatelinkrequestbody.js +2 -0
  83. package/esm/models/postconnectcreatelinkrequestbody.js.map +1 -1
  84. package/esm/models/posthrisabsencespositiveresponse.d.ts +8 -0
  85. package/esm/models/posthrisabsencespositiveresponse.d.ts.map +1 -1
  86. package/esm/models/posthrisabsencespositiveresponse.js +2 -0
  87. package/esm/models/posthrisabsencespositiveresponse.js.map +1 -1
  88. package/esm/sdk/assessment.d.ts +3 -3
  89. package/esm/sdk/assessment.d.ts.map +1 -1
  90. package/esm/sdk/assessment.js +5 -5
  91. package/esm/sdk/assessment.js.map +1 -1
  92. package/esm/sdk/general.d.ts +4 -2
  93. package/esm/sdk/general.d.ts.map +1 -1
  94. package/esm/sdk/general.js +4 -2
  95. package/esm/sdk/general.js.map +1 -1
  96. package/jsr.json +1 -1
  97. package/package.json +1 -1
  98. package/src/funcs/{assessmentGetOpenOrders.ts → assessmentGetAssessmentOrders.ts} +27 -20
  99. package/src/funcs/generalSendPassthroughRequest.ts +4 -2
  100. package/src/lib/config.ts +3 -3
  101. package/src/lib/security.ts +14 -2
  102. package/src/models/assessmentorderreceivedwebhookpayload.ts +65 -54
  103. package/src/models/deletehrisabsencesabsenceidpositiveresponse.ts +14 -0
  104. package/src/models/getassessmentorderspositiveresponse.ts +429 -0
  105. package/src/models/gethrisabsencespositiveresponse.ts +14 -0
  106. package/src/models/index.ts +1 -1
  107. package/src/models/inlineassessmentorderreceivedwebhookpayload.ts +65 -57
  108. package/src/models/operations/getassessmentorders.ts +97 -0
  109. package/src/models/operations/getatsapplications.ts +11 -7
  110. package/src/models/operations/getatscandidates.ts +9 -6
  111. package/src/models/operations/getatsinterviews.ts +9 -6
  112. package/src/models/operations/getatsjobs.ts +9 -9
  113. package/src/models/operations/getatsoffers.ts +8 -4
  114. package/src/models/operations/getatsusers.ts +6 -3
  115. package/src/models/operations/gethrisabsences.ts +6 -2
  116. package/src/models/operations/gethrisemployees.ts +11 -8
  117. package/src/models/operations/gethrisperformancereviews.ts +8 -4
  118. package/src/models/operations/gethrisstaffingentities.ts +8 -7
  119. package/src/models/operations/gethristimeoffbalances.ts +6 -2
  120. package/src/models/operations/index.ts +1 -1
  121. package/src/models/postconnectcreatelinkrequestbody.ts +2 -0
  122. package/src/models/posthrisabsencespositiveresponse.ts +14 -0
  123. package/src/sdk/assessment.ts +7 -7
  124. package/src/sdk/general.ts +4 -2
  125. package/tests/error-handling.spec.ts +2 -2
  126. package/esm/funcs/assessmentGetOpenOrders.d.ts.map +0 -1
  127. package/esm/funcs/assessmentGetOpenOrders.js.map +0 -1
  128. package/esm/models/getassessmentordersopenpositiveresponse.d.ts +0 -170
  129. package/esm/models/getassessmentordersopenpositiveresponse.d.ts.map +0 -1
  130. package/esm/models/getassessmentordersopenpositiveresponse.js +0 -94
  131. package/esm/models/getassessmentordersopenpositiveresponse.js.map +0 -1
  132. package/esm/models/operations/getassessmentordersopen.d.ts +0 -35
  133. package/esm/models/operations/getassessmentordersopen.d.ts.map +0 -1
  134. package/esm/models/operations/getassessmentordersopen.js +0 -27
  135. package/esm/models/operations/getassessmentordersopen.js.map +0 -1
  136. package/src/models/getassessmentordersopenpositiveresponse.ts +0 -410
  137. package/src/models/operations/getassessmentordersopen.ts +0 -81
@@ -44,7 +44,7 @@ export type AssessmentOrderReceivedWebhookPayloadCandidate = {
44
44
  /**
45
45
  * The candidate's identifier in the integrated system.
46
46
  */
47
- remote_id?: string | null | undefined;
47
+ remote_id: string | null;
48
48
  /**
49
49
  * The candidate's email address.
50
50
  */
@@ -52,15 +52,15 @@ export type AssessmentOrderReceivedWebhookPayloadCandidate = {
52
52
  /**
53
53
  * The candidate's first name.
54
54
  */
55
- first_name?: string | null | undefined;
55
+ first_name: string | null;
56
56
  /**
57
57
  * The candidate's last name.
58
58
  */
59
- last_name?: string | null | undefined;
59
+ last_name: string | null;
60
60
  /**
61
61
  * The candidate's phone number.
62
62
  */
63
- phone?: string | null | undefined;
63
+ phone: string | null;
64
64
  };
65
65
 
66
66
  /**
@@ -70,14 +70,21 @@ export type AssessmentOrderReceivedWebhookPayloadApplication = {
70
70
  /**
71
71
  * The application's identifier in the integrated system.
72
72
  */
73
- remote_id?: string | null | undefined;
73
+ remote_id: string | null;
74
74
  };
75
75
 
76
76
  /**
77
77
  * The job location information.
78
78
  */
79
79
  export type AssessmentOrderReceivedWebhookPayloadLocation = {
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 AssessmentOrderReceivedWebhookPayloadLocation = {
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 AssessmentOrderReceivedWebhookPayloadHiringTeamRole = {
@@ -139,15 +139,23 @@ export type AssessmentOrderReceivedWebhookPayloadJob = {
139
139
  /**
140
140
  * The job's identifier in the integrated system.
141
141
  */
142
- remote_id?: string | null | undefined;
142
+ remote_id: string | null;
143
143
  /**
144
144
  * The job title.
145
145
  */
146
- name?: string | null | undefined;
146
+ name: string | null;
147
+ /**
148
+ * The human readable job code. Some systems expose this as the Requisition Code/ID.
149
+ */
150
+ job_code: string | null;
151
+ /**
152
+ * Description of the job. This field is usually returned as HTML.
153
+ */
154
+ description: string | null;
147
155
  /**
148
156
  * The job location information.
149
157
  */
150
- location?: AssessmentOrderReceivedWebhookPayloadLocation | null | undefined;
158
+ location: AssessmentOrderReceivedWebhookPayloadLocation | null;
151
159
  /**
152
160
  * The hiring team allows you to provision users into your system who can access the job and its applications.
153
161
  */
@@ -222,19 +230,19 @@ export const AssessmentOrderReceivedWebhookPayloadCandidate$inboundSchema:
222
230
  z.ZodTypeDef,
223
231
  unknown
224
232
  > = z.object({
225
- remote_id: z.nullable(z.string()).optional(),
233
+ remote_id: z.nullable(z.string()),
226
234
  email: z.string(),
227
- first_name: z.nullable(z.string()).optional(),
228
- last_name: z.nullable(z.string()).optional(),
229
- phone: z.nullable(z.string()).optional(),
235
+ first_name: z.nullable(z.string()),
236
+ last_name: z.nullable(z.string()),
237
+ phone: z.nullable(z.string()),
230
238
  });
231
239
  /** @internal */
232
240
  export type AssessmentOrderReceivedWebhookPayloadCandidate$Outbound = {
233
- remote_id?: string | null | undefined;
241
+ remote_id: string | null;
234
242
  email: string;
235
- first_name?: string | null | undefined;
236
- last_name?: string | null | undefined;
237
- phone?: string | null | undefined;
243
+ first_name: string | null;
244
+ last_name: string | null;
245
+ phone: string | null;
238
246
  };
239
247
 
240
248
  /** @internal */
@@ -244,11 +252,11 @@ export const AssessmentOrderReceivedWebhookPayloadCandidate$outboundSchema:
244
252
  z.ZodTypeDef,
245
253
  AssessmentOrderReceivedWebhookPayloadCandidate
246
254
  > = z.object({
247
- remote_id: z.nullable(z.string()).optional(),
255
+ remote_id: z.nullable(z.string()),
248
256
  email: z.string(),
249
- first_name: z.nullable(z.string()).optional(),
250
- last_name: z.nullable(z.string()).optional(),
251
- phone: z.nullable(z.string()).optional(),
257
+ first_name: z.nullable(z.string()),
258
+ last_name: z.nullable(z.string()),
259
+ phone: z.nullable(z.string()),
252
260
  });
253
261
 
254
262
  export function assessmentOrderReceivedWebhookPayloadCandidateToJSON(
@@ -284,11 +292,11 @@ export const AssessmentOrderReceivedWebhookPayloadApplication$inboundSchema:
284
292
  z.ZodTypeDef,
285
293
  unknown
286
294
  > = z.object({
287
- remote_id: z.nullable(z.string()).optional(),
295
+ remote_id: z.nullable(z.string()),
288
296
  });
289
297
  /** @internal */
290
298
  export type AssessmentOrderReceivedWebhookPayloadApplication$Outbound = {
291
- remote_id?: string | null | undefined;
299
+ remote_id: string | null;
292
300
  };
293
301
 
294
302
  /** @internal */
@@ -298,7 +306,7 @@ export const AssessmentOrderReceivedWebhookPayloadApplication$outboundSchema:
298
306
  z.ZodTypeDef,
299
307
  AssessmentOrderReceivedWebhookPayloadApplication
300
308
  > = z.object({
301
- remote_id: z.nullable(z.string()).optional(),
309
+ remote_id: z.nullable(z.string()),
302
310
  });
303
311
 
304
312
  export function assessmentOrderReceivedWebhookPayloadApplicationToJSON(
@@ -334,23 +342,23 @@ export const AssessmentOrderReceivedWebhookPayloadLocation$inboundSchema:
334
342
  z.ZodTypeDef,
335
343
  unknown
336
344
  > = z.object({
337
- city: z.nullable(z.string()).optional(),
338
- country: z.nullable(z.string()).optional(),
339
- raw: z.nullable(z.string()).optional(),
340
- state: z.nullable(z.string()).optional(),
341
345
  street_1: z.nullable(z.string()).optional(),
342
346
  street_2: z.nullable(z.string()).optional(),
347
+ city: z.nullable(z.string()).optional(),
348
+ state: z.nullable(z.string()).optional(),
343
349
  zip_code: z.nullable(z.string()).optional(),
350
+ country: z.nullable(z.string()).optional(),
351
+ raw: z.nullable(z.string()).optional(),
344
352
  });
345
353
  /** @internal */
346
354
  export type AssessmentOrderReceivedWebhookPayloadLocation$Outbound = {
347
- city?: string | null | undefined;
348
- country?: string | null | undefined;
349
- raw?: string | null | undefined;
350
- state?: string | null | undefined;
351
355
  street_1?: string | null | undefined;
352
356
  street_2?: string | null | undefined;
357
+ city?: string | null | undefined;
358
+ state?: string | null | undefined;
353
359
  zip_code?: string | null | undefined;
360
+ country?: string | null | undefined;
361
+ raw?: string | null | undefined;
354
362
  };
355
363
 
356
364
  /** @internal */
@@ -360,13 +368,13 @@ export const AssessmentOrderReceivedWebhookPayloadLocation$outboundSchema:
360
368
  z.ZodTypeDef,
361
369
  AssessmentOrderReceivedWebhookPayloadLocation
362
370
  > = z.object({
363
- city: z.nullable(z.string()).optional(),
364
- country: z.nullable(z.string()).optional(),
365
- raw: z.nullable(z.string()).optional(),
366
- state: z.nullable(z.string()).optional(),
367
371
  street_1: z.nullable(z.string()).optional(),
368
372
  street_2: z.nullable(z.string()).optional(),
373
+ city: z.nullable(z.string()).optional(),
374
+ state: z.nullable(z.string()).optional(),
369
375
  zip_code: z.nullable(z.string()).optional(),
376
+ country: z.nullable(z.string()).optional(),
377
+ raw: z.nullable(z.string()).optional(),
370
378
  });
371
379
 
372
380
  export function assessmentOrderReceivedWebhookPayloadLocationToJSON(
@@ -476,23 +484,24 @@ export const AssessmentOrderReceivedWebhookPayloadJob$inboundSchema: z.ZodType<
476
484
  z.ZodTypeDef,
477
485
  unknown
478
486
  > = z.object({
479
- remote_id: z.nullable(z.string()).optional(),
480
- name: z.nullable(z.string()).optional(),
487
+ remote_id: z.nullable(z.string()),
488
+ name: z.nullable(z.string()),
489
+ job_code: z.nullable(z.string()),
490
+ description: z.nullable(z.string()),
481
491
  location: z.nullable(
482
492
  z.lazy(() => AssessmentOrderReceivedWebhookPayloadLocation$inboundSchema),
483
- ).optional(),
493
+ ),
484
494
  hiring_team: z.array(
485
495
  z.lazy(() => AssessmentOrderReceivedWebhookPayloadHiringTeam$inboundSchema),
486
496
  ),
487
497
  });
488
498
  /** @internal */
489
499
  export type AssessmentOrderReceivedWebhookPayloadJob$Outbound = {
490
- remote_id?: string | null | undefined;
491
- name?: string | null | undefined;
492
- location?:
493
- | AssessmentOrderReceivedWebhookPayloadLocation$Outbound
494
- | null
495
- | undefined;
500
+ remote_id: string | null;
501
+ name: string | null;
502
+ job_code: string | null;
503
+ description: string | null;
504
+ location: AssessmentOrderReceivedWebhookPayloadLocation$Outbound | null;
496
505
  hiring_team: Array<AssessmentOrderReceivedWebhookPayloadHiringTeam$Outbound>;
497
506
  };
498
507
 
@@ -502,11 +511,13 @@ export const AssessmentOrderReceivedWebhookPayloadJob$outboundSchema: z.ZodType<
502
511
  z.ZodTypeDef,
503
512
  AssessmentOrderReceivedWebhookPayloadJob
504
513
  > = z.object({
505
- remote_id: z.nullable(z.string()).optional(),
506
- name: z.nullable(z.string()).optional(),
514
+ remote_id: z.nullable(z.string()),
515
+ name: z.nullable(z.string()),
516
+ job_code: z.nullable(z.string()),
517
+ description: z.nullable(z.string()),
507
518
  location: z.nullable(
508
519
  z.lazy(() => AssessmentOrderReceivedWebhookPayloadLocation$outboundSchema),
509
- ).optional(),
520
+ ),
510
521
  hiring_team: z.array(
511
522
  z.lazy(() =>
512
523
  AssessmentOrderReceivedWebhookPayloadHiringTeam$outboundSchema
@@ -91,6 +91,14 @@ export type DeleteHrisAbsencesAbsenceIdPositiveResponseData = {
91
91
  * The Kombo absence type ID of this absence.
92
92
  */
93
93
  type_id: string | null;
94
+ /**
95
+ * The date and time the object was created in the remote system.
96
+ */
97
+ remote_created_at: Date | null;
98
+ /**
99
+ * A timestamp retrieved from the remote system, describing when the resource was last updated.
100
+ */
101
+ remote_updated_at: Date | null;
94
102
  /**
95
103
  * 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.
96
104
  */
@@ -154,6 +162,12 @@ export const DeleteHrisAbsencesAbsenceIdPositiveResponseData$inboundSchema:
154
162
  ).optional(),
155
163
  employee_note: z.nullable(z.string()),
156
164
  type_id: z.nullable(z.string()),
165
+ remote_created_at: z.nullable(
166
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
167
+ ),
168
+ remote_updated_at: z.nullable(
169
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
170
+ ),
157
171
  changed_at: z.string().datetime({ offset: true }).transform(v =>
158
172
  new Date(v)
159
173
  ),
@@ -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
+ }