@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
@@ -1,410 +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 job location information.
122
- */
123
- location?: GetAssessmentOrdersOpenPositiveResponseLocation | null | undefined;
124
- /**
125
- * The hiring team allows you to provision users into your system who can access the job and its applications.
126
- */
127
- hiring_team: Array<GetAssessmentOrdersOpenPositiveResponseHiringTeam>;
128
- };
129
-
130
- export type GetAssessmentOrdersOpenPositiveResponseResult = {
131
- /**
132
- * The unique identifier of the assessment order.
133
- */
134
- id: string;
135
- /**
136
- * The identifier of the assessment package.
137
- */
138
- package_id: string;
139
- /**
140
- * Information about the candidate taking the assessment.
141
- */
142
- candidate: GetAssessmentOrdersOpenPositiveResponseCandidate;
143
- /**
144
- * Information about the job application.
145
- */
146
- application: GetAssessmentOrdersOpenPositiveResponseApplication;
147
- /**
148
- * Information about the job posting.
149
- */
150
- job: GetAssessmentOrdersOpenPositiveResponseJob;
151
- };
152
-
153
- export type GetAssessmentOrdersOpenPositiveResponseData = {
154
- next: string | null;
155
- results: Array<GetAssessmentOrdersOpenPositiveResponseResult>;
156
- };
157
-
158
- export type GetAssessmentOrdersOpenPositiveResponse = {
159
- status: "success";
160
- data: GetAssessmentOrdersOpenPositiveResponseData;
161
- };
162
-
163
- /** @internal */
164
- export const GetAssessmentOrdersOpenPositiveResponseCandidate$inboundSchema:
165
- z.ZodType<
166
- GetAssessmentOrdersOpenPositiveResponseCandidate,
167
- z.ZodTypeDef,
168
- unknown
169
- > = z.object({
170
- remote_id: z.nullable(z.string()).optional(),
171
- email: z.string(),
172
- first_name: z.nullable(z.string()).optional(),
173
- last_name: z.nullable(z.string()).optional(),
174
- phone: z.nullable(z.string()).optional(),
175
- });
176
-
177
- export function getAssessmentOrdersOpenPositiveResponseCandidateFromJSON(
178
- jsonString: string,
179
- ): SafeParseResult<
180
- GetAssessmentOrdersOpenPositiveResponseCandidate,
181
- SDKValidationError
182
- > {
183
- return safeParse(
184
- jsonString,
185
- (x) =>
186
- GetAssessmentOrdersOpenPositiveResponseCandidate$inboundSchema.parse(
187
- JSON.parse(x),
188
- ),
189
- `Failed to parse 'GetAssessmentOrdersOpenPositiveResponseCandidate' from JSON`,
190
- );
191
- }
192
-
193
- /** @internal */
194
- export const GetAssessmentOrdersOpenPositiveResponseApplication$inboundSchema:
195
- z.ZodType<
196
- GetAssessmentOrdersOpenPositiveResponseApplication,
197
- z.ZodTypeDef,
198
- unknown
199
- > = z.object({
200
- remote_id: z.nullable(z.string()).optional(),
201
- });
202
-
203
- export function getAssessmentOrdersOpenPositiveResponseApplicationFromJSON(
204
- jsonString: string,
205
- ): SafeParseResult<
206
- GetAssessmentOrdersOpenPositiveResponseApplication,
207
- SDKValidationError
208
- > {
209
- return safeParse(
210
- jsonString,
211
- (x) =>
212
- GetAssessmentOrdersOpenPositiveResponseApplication$inboundSchema.parse(
213
- JSON.parse(x),
214
- ),
215
- `Failed to parse 'GetAssessmentOrdersOpenPositiveResponseApplication' from JSON`,
216
- );
217
- }
218
-
219
- /** @internal */
220
- export const GetAssessmentOrdersOpenPositiveResponseLocation$inboundSchema:
221
- z.ZodType<
222
- GetAssessmentOrdersOpenPositiveResponseLocation,
223
- z.ZodTypeDef,
224
- unknown
225
- > = z.object({
226
- city: z.nullable(z.string()).optional(),
227
- country: z.nullable(z.string()).optional(),
228
- raw: z.nullable(z.string()).optional(),
229
- state: z.nullable(z.string()).optional(),
230
- street_1: z.nullable(z.string()).optional(),
231
- street_2: z.nullable(z.string()).optional(),
232
- zip_code: z.nullable(z.string()).optional(),
233
- });
234
-
235
- export function getAssessmentOrdersOpenPositiveResponseLocationFromJSON(
236
- jsonString: string,
237
- ): SafeParseResult<
238
- GetAssessmentOrdersOpenPositiveResponseLocation,
239
- SDKValidationError
240
- > {
241
- return safeParse(
242
- jsonString,
243
- (x) =>
244
- GetAssessmentOrdersOpenPositiveResponseLocation$inboundSchema.parse(
245
- JSON.parse(x),
246
- ),
247
- `Failed to parse 'GetAssessmentOrdersOpenPositiveResponseLocation' from JSON`,
248
- );
249
- }
250
-
251
- /** @internal */
252
- export const GetAssessmentOrdersOpenPositiveResponseHiringTeamRole$inboundSchema:
253
- z.ZodNativeEnum<
254
- typeof GetAssessmentOrdersOpenPositiveResponseHiringTeamRole
255
- > = z.nativeEnum(GetAssessmentOrdersOpenPositiveResponseHiringTeamRole);
256
-
257
- /** @internal */
258
- export const GetAssessmentOrdersOpenPositiveResponseHiringTeam$inboundSchema:
259
- z.ZodType<
260
- GetAssessmentOrdersOpenPositiveResponseHiringTeam,
261
- z.ZodTypeDef,
262
- unknown
263
- > = z.object({
264
- remote_id: z.nullable(z.string()),
265
- email: z.nullable(z.string()),
266
- first_name: z.nullable(z.string()),
267
- last_name: z.nullable(z.string()),
268
- hiring_team_roles: z.array(
269
- GetAssessmentOrdersOpenPositiveResponseHiringTeamRole$inboundSchema,
270
- ),
271
- });
272
-
273
- export function getAssessmentOrdersOpenPositiveResponseHiringTeamFromJSON(
274
- jsonString: string,
275
- ): SafeParseResult<
276
- GetAssessmentOrdersOpenPositiveResponseHiringTeam,
277
- SDKValidationError
278
- > {
279
- return safeParse(
280
- jsonString,
281
- (x) =>
282
- GetAssessmentOrdersOpenPositiveResponseHiringTeam$inboundSchema.parse(
283
- JSON.parse(x),
284
- ),
285
- `Failed to parse 'GetAssessmentOrdersOpenPositiveResponseHiringTeam' from JSON`,
286
- );
287
- }
288
-
289
- /** @internal */
290
- export const GetAssessmentOrdersOpenPositiveResponseJob$inboundSchema:
291
- z.ZodType<GetAssessmentOrdersOpenPositiveResponseJob, z.ZodTypeDef, unknown> =
292
- z.object({
293
- remote_id: z.nullable(z.string()).optional(),
294
- name: z.nullable(z.string()).optional(),
295
- location: z.nullable(
296
- z.lazy(() =>
297
- GetAssessmentOrdersOpenPositiveResponseLocation$inboundSchema
298
- ),
299
- ).optional(),
300
- hiring_team: z.array(
301
- z.lazy(() =>
302
- GetAssessmentOrdersOpenPositiveResponseHiringTeam$inboundSchema
303
- ),
304
- ),
305
- });
306
-
307
- export function getAssessmentOrdersOpenPositiveResponseJobFromJSON(
308
- jsonString: string,
309
- ): SafeParseResult<
310
- GetAssessmentOrdersOpenPositiveResponseJob,
311
- SDKValidationError
312
- > {
313
- return safeParse(
314
- jsonString,
315
- (x) =>
316
- GetAssessmentOrdersOpenPositiveResponseJob$inboundSchema.parse(
317
- JSON.parse(x),
318
- ),
319
- `Failed to parse 'GetAssessmentOrdersOpenPositiveResponseJob' from JSON`,
320
- );
321
- }
322
-
323
- /** @internal */
324
- export const GetAssessmentOrdersOpenPositiveResponseResult$inboundSchema:
325
- z.ZodType<
326
- GetAssessmentOrdersOpenPositiveResponseResult,
327
- z.ZodTypeDef,
328
- unknown
329
- > = z.object({
330
- id: z.string(),
331
- package_id: z.string(),
332
- candidate: z.lazy(() =>
333
- GetAssessmentOrdersOpenPositiveResponseCandidate$inboundSchema
334
- ),
335
- application: z.lazy(() =>
336
- GetAssessmentOrdersOpenPositiveResponseApplication$inboundSchema
337
- ),
338
- job: z.lazy(() => GetAssessmentOrdersOpenPositiveResponseJob$inboundSchema),
339
- });
340
-
341
- export function getAssessmentOrdersOpenPositiveResponseResultFromJSON(
342
- jsonString: string,
343
- ): SafeParseResult<
344
- GetAssessmentOrdersOpenPositiveResponseResult,
345
- SDKValidationError
346
- > {
347
- return safeParse(
348
- jsonString,
349
- (x) =>
350
- GetAssessmentOrdersOpenPositiveResponseResult$inboundSchema.parse(
351
- JSON.parse(x),
352
- ),
353
- `Failed to parse 'GetAssessmentOrdersOpenPositiveResponseResult' from JSON`,
354
- );
355
- }
356
-
357
- /** @internal */
358
- export const GetAssessmentOrdersOpenPositiveResponseData$inboundSchema:
359
- z.ZodType<
360
- GetAssessmentOrdersOpenPositiveResponseData,
361
- z.ZodTypeDef,
362
- unknown
363
- > = z.object({
364
- next: z.nullable(z.string()),
365
- results: z.array(
366
- z.lazy(() => GetAssessmentOrdersOpenPositiveResponseResult$inboundSchema),
367
- ),
368
- });
369
-
370
- export function getAssessmentOrdersOpenPositiveResponseDataFromJSON(
371
- jsonString: string,
372
- ): SafeParseResult<
373
- GetAssessmentOrdersOpenPositiveResponseData,
374
- SDKValidationError
375
- > {
376
- return safeParse(
377
- jsonString,
378
- (x) =>
379
- GetAssessmentOrdersOpenPositiveResponseData$inboundSchema.parse(
380
- JSON.parse(x),
381
- ),
382
- `Failed to parse 'GetAssessmentOrdersOpenPositiveResponseData' from JSON`,
383
- );
384
- }
385
-
386
- /** @internal */
387
- export const GetAssessmentOrdersOpenPositiveResponse$inboundSchema: z.ZodType<
388
- GetAssessmentOrdersOpenPositiveResponse,
389
- z.ZodTypeDef,
390
- unknown
391
- > = z.object({
392
- status: z.literal("success"),
393
- data: z.lazy(() => GetAssessmentOrdersOpenPositiveResponseData$inboundSchema),
394
- });
395
-
396
- export function getAssessmentOrdersOpenPositiveResponseFromJSON(
397
- jsonString: string,
398
- ): SafeParseResult<
399
- GetAssessmentOrdersOpenPositiveResponse,
400
- SDKValidationError
401
- > {
402
- return safeParse(
403
- jsonString,
404
- (x) =>
405
- GetAssessmentOrdersOpenPositiveResponse$inboundSchema.parse(
406
- JSON.parse(x),
407
- ),
408
- `Failed to parse 'GetAssessmentOrdersOpenPositiveResponse' from JSON`,
409
- );
410
- }
@@ -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
- }