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