@unified-api/typescript-sdk 2.9.28 → 2.10.0

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 (70) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/package.json +1 -1
  5. package/sdk/models/shared/atsactivity.d.ts +23 -6
  6. package/sdk/models/shared/atsactivity.d.ts.map +1 -1
  7. package/sdk/models/shared/atsactivity.js +28 -3
  8. package/sdk/models/shared/atsactivity.js.map +1 -1
  9. package/sdk/models/shared/atsapplication.d.ts +23 -6
  10. package/sdk/models/shared/atsapplication.d.ts.map +1 -1
  11. package/sdk/models/shared/atsapplication.js +26 -3
  12. package/sdk/models/shared/atsapplication.js.map +1 -1
  13. package/sdk/models/shared/atscandidate.d.ts +23 -6
  14. package/sdk/models/shared/atscandidate.d.ts.map +1 -1
  15. package/sdk/models/shared/atscandidate.js +26 -3
  16. package/sdk/models/shared/atscandidate.js.map +1 -1
  17. package/sdk/models/shared/atscompany.d.ts +23 -6
  18. package/sdk/models/shared/atscompany.d.ts.map +1 -1
  19. package/sdk/models/shared/atscompany.js +26 -3
  20. package/sdk/models/shared/atscompany.js.map +1 -1
  21. package/sdk/models/shared/atsdocument.d.ts +23 -6
  22. package/sdk/models/shared/atsdocument.d.ts.map +1 -1
  23. package/sdk/models/shared/atsdocument.js +26 -3
  24. package/sdk/models/shared/atsdocument.js.map +1 -1
  25. package/sdk/models/shared/atsinterview.d.ts +23 -6
  26. package/sdk/models/shared/atsinterview.d.ts.map +1 -1
  27. package/sdk/models/shared/atsinterview.js +26 -3
  28. package/sdk/models/shared/atsinterview.js.map +1 -1
  29. package/sdk/models/shared/atsjob.d.ts +29 -6
  30. package/sdk/models/shared/atsjob.d.ts.map +1 -1
  31. package/sdk/models/shared/atsjob.js +29 -3
  32. package/sdk/models/shared/atsjob.js.map +1 -1
  33. package/sdk/models/shared/atsjobposting.d.ts +49 -0
  34. package/sdk/models/shared/atsjobposting.d.ts.map +1 -0
  35. package/sdk/models/shared/atsjobposting.js +93 -0
  36. package/sdk/models/shared/atsjobposting.js.map +1 -0
  37. package/sdk/models/shared/atsscorecard.d.ts +23 -6
  38. package/sdk/models/shared/atsscorecard.d.ts.map +1 -1
  39. package/sdk/models/shared/atsscorecard.js +26 -3
  40. package/sdk/models/shared/atsscorecard.js.map +1 -1
  41. package/sdk/models/shared/atsstatus.d.ts +23 -6
  42. package/sdk/models/shared/atsstatus.d.ts.map +1 -1
  43. package/sdk/models/shared/atsstatus.js +26 -3
  44. package/sdk/models/shared/atsstatus.js.map +1 -1
  45. package/sdk/models/shared/commercecollection.d.ts +15 -15
  46. package/sdk/models/shared/commercecollection.d.ts.map +1 -1
  47. package/sdk/models/shared/commercecollection.js +18 -20
  48. package/sdk/models/shared/commercecollection.js.map +1 -1
  49. package/sdk/models/shared/index.d.ts +2 -0
  50. package/sdk/models/shared/index.d.ts.map +1 -1
  51. package/sdk/models/shared/index.js +2 -0
  52. package/sdk/models/shared/index.js.map +1 -1
  53. package/sdk/models/shared/propertyatsjobpostingaddress.d.ts +46 -0
  54. package/sdk/models/shared/propertyatsjobpostingaddress.d.ts.map +1 -0
  55. package/sdk/models/shared/propertyatsjobpostingaddress.js +86 -0
  56. package/sdk/models/shared/propertyatsjobpostingaddress.js.map +1 -0
  57. package/src/lib/config.ts +3 -3
  58. package/src/sdk/models/shared/atsactivity.ts +44 -4
  59. package/src/sdk/models/shared/atsapplication.ts +54 -4
  60. package/src/sdk/models/shared/atscandidate.ts +52 -4
  61. package/src/sdk/models/shared/atscompany.ts +50 -4
  62. package/src/sdk/models/shared/atsdocument.ts +50 -4
  63. package/src/sdk/models/shared/atsinterview.ts +52 -4
  64. package/src/sdk/models/shared/atsjob.ts +63 -4
  65. package/src/sdk/models/shared/atsjobposting.ts +120 -0
  66. package/src/sdk/models/shared/atsscorecard.ts +52 -4
  67. package/src/sdk/models/shared/atsstatus.ts +50 -4
  68. package/src/sdk/models/shared/commercecollection.ts +33 -23
  69. package/src/sdk/models/shared/index.ts +2 -0
  70. package/src/sdk/models/shared/propertyatsjobpostingaddress.ts +112 -0
@@ -9,6 +9,8 @@ import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
+ export type AtsInterviewRaw = {};
13
+
12
14
  export const AtsInterviewStatus = {
13
15
  Scheduled: "SCHEDULED",
14
16
  AwaitingFeedback: "AWAITING_FEEDBACK",
@@ -27,13 +29,59 @@ export type AtsInterview = {
27
29
  id?: string | undefined;
28
30
  jobId?: string | undefined;
29
31
  location?: string | undefined;
30
- raw?: { [k: string]: any } | undefined;
32
+ raw?: AtsInterviewRaw | undefined;
31
33
  startAt?: Date | undefined;
32
34
  status?: AtsInterviewStatus | undefined;
33
35
  updatedAt?: Date | undefined;
34
36
  userIds?: Array<string> | undefined;
35
37
  };
36
38
 
39
+ /** @internal */
40
+ export const AtsInterviewRaw$inboundSchema: z.ZodType<
41
+ AtsInterviewRaw,
42
+ z.ZodTypeDef,
43
+ unknown
44
+ > = z.object({});
45
+
46
+ /** @internal */
47
+ export type AtsInterviewRaw$Outbound = {};
48
+
49
+ /** @internal */
50
+ export const AtsInterviewRaw$outboundSchema: z.ZodType<
51
+ AtsInterviewRaw$Outbound,
52
+ z.ZodTypeDef,
53
+ AtsInterviewRaw
54
+ > = z.object({});
55
+
56
+ /**
57
+ * @internal
58
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
+ */
60
+ export namespace AtsInterviewRaw$ {
61
+ /** @deprecated use `AtsInterviewRaw$inboundSchema` instead. */
62
+ export const inboundSchema = AtsInterviewRaw$inboundSchema;
63
+ /** @deprecated use `AtsInterviewRaw$outboundSchema` instead. */
64
+ export const outboundSchema = AtsInterviewRaw$outboundSchema;
65
+ /** @deprecated use `AtsInterviewRaw$Outbound` instead. */
66
+ export type Outbound = AtsInterviewRaw$Outbound;
67
+ }
68
+
69
+ export function atsInterviewRawToJSON(
70
+ atsInterviewRaw: AtsInterviewRaw,
71
+ ): string {
72
+ return JSON.stringify(AtsInterviewRaw$outboundSchema.parse(atsInterviewRaw));
73
+ }
74
+
75
+ export function atsInterviewRawFromJSON(
76
+ jsonString: string,
77
+ ): SafeParseResult<AtsInterviewRaw, SDKValidationError> {
78
+ return safeParse(
79
+ jsonString,
80
+ (x) => AtsInterviewRaw$inboundSchema.parse(JSON.parse(x)),
81
+ `Failed to parse 'AtsInterviewRaw' from JSON`,
82
+ );
83
+ }
84
+
37
85
  /** @internal */
38
86
  export const AtsInterviewStatus$inboundSchema: z.ZodNativeEnum<
39
87
  typeof AtsInterviewStatus
@@ -71,7 +119,7 @@ export const AtsInterview$inboundSchema: z.ZodType<
71
119
  id: z.string().optional(),
72
120
  job_id: z.string().optional(),
73
121
  location: z.string().optional(),
74
- raw: z.record(z.any()).optional(),
122
+ raw: z.lazy(() => AtsInterviewRaw$inboundSchema).optional(),
75
123
  start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
76
124
  .optional(),
77
125
  status: AtsInterviewStatus$inboundSchema.optional(),
@@ -102,7 +150,7 @@ export type AtsInterview$Outbound = {
102
150
  id?: string | undefined;
103
151
  job_id?: string | undefined;
104
152
  location?: string | undefined;
105
- raw?: { [k: string]: any } | undefined;
153
+ raw?: AtsInterviewRaw$Outbound | undefined;
106
154
  start_at?: string | undefined;
107
155
  status?: string | undefined;
108
156
  updated_at?: string | undefined;
@@ -123,7 +171,7 @@ export const AtsInterview$outboundSchema: z.ZodType<
123
171
  id: z.string().optional(),
124
172
  jobId: z.string().optional(),
125
173
  location: z.string().optional(),
126
- raw: z.record(z.any()).optional(),
174
+ raw: z.lazy(() => AtsInterviewRaw$outboundSchema).optional(),
127
175
  startAt: z.date().transform(v => v.toISOString()).optional(),
128
176
  status: AtsInterviewStatus$outboundSchema.optional(),
129
177
  updatedAt: z.date().transform(v => v.toISOString()).optional(),
@@ -20,6 +20,12 @@ import {
20
20
  AtsCompensation$Outbound,
21
21
  AtsCompensation$outboundSchema,
22
22
  } from "./atscompensation.js";
23
+ import {
24
+ AtsJobPosting,
25
+ AtsJobPosting$inboundSchema,
26
+ AtsJobPosting$Outbound,
27
+ AtsJobPosting$outboundSchema,
28
+ } from "./atsjobposting.js";
23
29
  import {
24
30
  AtsJobQuestion,
25
31
  AtsJobQuestion$inboundSchema,
@@ -41,6 +47,8 @@ export const EmploymentType = {
41
47
  } as const;
42
48
  export type EmploymentType = ClosedEnum<typeof EmploymentType>;
43
49
 
50
+ export type AtsJobRaw = {};
51
+
44
52
  export const AtsJobStatus = {
45
53
  Archived: "ARCHIVED",
46
54
  Pending: "PENDING",
@@ -67,12 +75,16 @@ export type AtsJob = {
67
75
  languageLocale?: string | undefined;
68
76
  name?: string | undefined;
69
77
  numberOfOpenings?: number | undefined;
78
+ /**
79
+ * Public job postings
80
+ */
81
+ postings?: Array<AtsJobPosting> | undefined;
70
82
  /**
71
83
  * URLs for pages containing public listings for the job
72
84
  */
73
85
  publicJobUrls?: Array<string> | undefined;
74
86
  questions?: Array<AtsJobQuestion> | undefined;
75
- raw?: { [k: string]: any } | undefined;
87
+ raw?: AtsJobRaw | undefined;
76
88
  recruiterIds?: Array<string> | undefined;
77
89
  remote?: boolean | undefined;
78
90
  status?: AtsJobStatus | undefined;
@@ -100,6 +112,50 @@ export namespace EmploymentType$ {
100
112
  export const outboundSchema = EmploymentType$outboundSchema;
101
113
  }
102
114
 
115
+ /** @internal */
116
+ export const AtsJobRaw$inboundSchema: z.ZodType<
117
+ AtsJobRaw,
118
+ z.ZodTypeDef,
119
+ unknown
120
+ > = z.object({});
121
+
122
+ /** @internal */
123
+ export type AtsJobRaw$Outbound = {};
124
+
125
+ /** @internal */
126
+ export const AtsJobRaw$outboundSchema: z.ZodType<
127
+ AtsJobRaw$Outbound,
128
+ z.ZodTypeDef,
129
+ AtsJobRaw
130
+ > = z.object({});
131
+
132
+ /**
133
+ * @internal
134
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
135
+ */
136
+ export namespace AtsJobRaw$ {
137
+ /** @deprecated use `AtsJobRaw$inboundSchema` instead. */
138
+ export const inboundSchema = AtsJobRaw$inboundSchema;
139
+ /** @deprecated use `AtsJobRaw$outboundSchema` instead. */
140
+ export const outboundSchema = AtsJobRaw$outboundSchema;
141
+ /** @deprecated use `AtsJobRaw$Outbound` instead. */
142
+ export type Outbound = AtsJobRaw$Outbound;
143
+ }
144
+
145
+ export function atsJobRawToJSON(atsJobRaw: AtsJobRaw): string {
146
+ return JSON.stringify(AtsJobRaw$outboundSchema.parse(atsJobRaw));
147
+ }
148
+
149
+ export function atsJobRawFromJSON(
150
+ jsonString: string,
151
+ ): SafeParseResult<AtsJobRaw, SDKValidationError> {
152
+ return safeParse(
153
+ jsonString,
154
+ (x) => AtsJobRaw$inboundSchema.parse(JSON.parse(x)),
155
+ `Failed to parse 'AtsJobRaw' from JSON`,
156
+ );
157
+ }
158
+
103
159
  /** @internal */
104
160
  export const AtsJobStatus$inboundSchema: z.ZodNativeEnum<typeof AtsJobStatus> =
105
161
  z.nativeEnum(AtsJobStatus);
@@ -138,9 +194,10 @@ export const AtsJob$inboundSchema: z.ZodType<AtsJob, z.ZodTypeDef, unknown> = z
138
194
  language_locale: z.string().optional(),
139
195
  name: z.string().optional(),
140
196
  number_of_openings: z.number().optional(),
197
+ postings: z.array(AtsJobPosting$inboundSchema).optional(),
141
198
  public_job_urls: z.array(z.string()).optional(),
142
199
  questions: z.array(AtsJobQuestion$inboundSchema).optional(),
143
- raw: z.record(z.any()).optional(),
200
+ raw: z.lazy(() => AtsJobRaw$inboundSchema).optional(),
144
201
  recruiter_ids: z.array(z.string()).optional(),
145
202
  remote: z.boolean().optional(),
146
203
  status: AtsJobStatus$inboundSchema.optional(),
@@ -177,9 +234,10 @@ export type AtsJob$Outbound = {
177
234
  language_locale?: string | undefined;
178
235
  name?: string | undefined;
179
236
  number_of_openings?: number | undefined;
237
+ postings?: Array<AtsJobPosting$Outbound> | undefined;
180
238
  public_job_urls?: Array<string> | undefined;
181
239
  questions?: Array<AtsJobQuestion$Outbound> | undefined;
182
- raw?: { [k: string]: any } | undefined;
240
+ raw?: AtsJobRaw$Outbound | undefined;
183
241
  recruiter_ids?: Array<string> | undefined;
184
242
  remote?: boolean | undefined;
185
243
  status?: string | undefined;
@@ -205,9 +263,10 @@ export const AtsJob$outboundSchema: z.ZodType<
205
263
  languageLocale: z.string().optional(),
206
264
  name: z.string().optional(),
207
265
  numberOfOpenings: z.number().optional(),
266
+ postings: z.array(AtsJobPosting$outboundSchema).optional(),
208
267
  publicJobUrls: z.array(z.string()).optional(),
209
268
  questions: z.array(AtsJobQuestion$outboundSchema).optional(),
210
- raw: z.record(z.any()).optional(),
269
+ raw: z.lazy(() => AtsJobRaw$outboundSchema).optional(),
211
270
  recruiterIds: z.array(z.string()).optional(),
212
271
  remote: z.boolean().optional(),
213
272
  status: AtsJobStatus$outboundSchema.optional(),
@@ -0,0 +1,120 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
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 {
11
+ PropertyAtsJobPostingAddress,
12
+ PropertyAtsJobPostingAddress$inboundSchema,
13
+ PropertyAtsJobPostingAddress$Outbound,
14
+ PropertyAtsJobPostingAddress$outboundSchema,
15
+ } from "./propertyatsjobpostingaddress.js";
16
+
17
+ export type AtsJobPosting = {
18
+ /**
19
+ * job-post-specific address
20
+ */
21
+ address?: PropertyAtsJobPostingAddress | undefined;
22
+ createdAt?: Date | undefined;
23
+ description?: string | undefined;
24
+ id?: string | undefined;
25
+ isActive?: boolean | undefined;
26
+ location?: string | undefined;
27
+ name?: string | undefined;
28
+ postingUrl?: string | undefined;
29
+ updatedAt?: Date | undefined;
30
+ };
31
+
32
+ /** @internal */
33
+ export const AtsJobPosting$inboundSchema: z.ZodType<
34
+ AtsJobPosting,
35
+ z.ZodTypeDef,
36
+ unknown
37
+ > = z.object({
38
+ address: PropertyAtsJobPostingAddress$inboundSchema.optional(),
39
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
40
+ .optional(),
41
+ description: z.string().optional(),
42
+ id: z.string().optional(),
43
+ is_active: z.boolean().optional(),
44
+ location: z.string().optional(),
45
+ name: z.string().optional(),
46
+ posting_url: z.string().optional(),
47
+ updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
48
+ .optional(),
49
+ }).transform((v) => {
50
+ return remap$(v, {
51
+ "created_at": "createdAt",
52
+ "is_active": "isActive",
53
+ "posting_url": "postingUrl",
54
+ "updated_at": "updatedAt",
55
+ });
56
+ });
57
+
58
+ /** @internal */
59
+ export type AtsJobPosting$Outbound = {
60
+ address?: PropertyAtsJobPostingAddress$Outbound | undefined;
61
+ created_at?: string | undefined;
62
+ description?: string | undefined;
63
+ id?: string | undefined;
64
+ is_active?: boolean | undefined;
65
+ location?: string | undefined;
66
+ name?: string | undefined;
67
+ posting_url?: string | undefined;
68
+ updated_at?: string | undefined;
69
+ };
70
+
71
+ /** @internal */
72
+ export const AtsJobPosting$outboundSchema: z.ZodType<
73
+ AtsJobPosting$Outbound,
74
+ z.ZodTypeDef,
75
+ AtsJobPosting
76
+ > = z.object({
77
+ address: PropertyAtsJobPostingAddress$outboundSchema.optional(),
78
+ createdAt: z.date().transform(v => v.toISOString()).optional(),
79
+ description: z.string().optional(),
80
+ id: z.string().optional(),
81
+ isActive: z.boolean().optional(),
82
+ location: z.string().optional(),
83
+ name: z.string().optional(),
84
+ postingUrl: z.string().optional(),
85
+ updatedAt: z.date().transform(v => v.toISOString()).optional(),
86
+ }).transform((v) => {
87
+ return remap$(v, {
88
+ createdAt: "created_at",
89
+ isActive: "is_active",
90
+ postingUrl: "posting_url",
91
+ updatedAt: "updated_at",
92
+ });
93
+ });
94
+
95
+ /**
96
+ * @internal
97
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
98
+ */
99
+ export namespace AtsJobPosting$ {
100
+ /** @deprecated use `AtsJobPosting$inboundSchema` instead. */
101
+ export const inboundSchema = AtsJobPosting$inboundSchema;
102
+ /** @deprecated use `AtsJobPosting$outboundSchema` instead. */
103
+ export const outboundSchema = AtsJobPosting$outboundSchema;
104
+ /** @deprecated use `AtsJobPosting$Outbound` instead. */
105
+ export type Outbound = AtsJobPosting$Outbound;
106
+ }
107
+
108
+ export function atsJobPostingToJSON(atsJobPosting: AtsJobPosting): string {
109
+ return JSON.stringify(AtsJobPosting$outboundSchema.parse(atsJobPosting));
110
+ }
111
+
112
+ export function atsJobPostingFromJSON(
113
+ jsonString: string,
114
+ ): SafeParseResult<AtsJobPosting, SDKValidationError> {
115
+ return safeParse(
116
+ jsonString,
117
+ (x) => AtsJobPosting$inboundSchema.parse(JSON.parse(x)),
118
+ `Failed to parse 'AtsJobPosting' from JSON`,
119
+ );
120
+ }
@@ -15,6 +15,8 @@ import {
15
15
  AtsScorecardQuestion$outboundSchema,
16
16
  } from "./atsscorecardquestion.js";
17
17
 
18
+ export type AtsScorecardRaw = {};
19
+
18
20
  export const Recommendation = {
19
21
  DefinitelyNo: "DEFINITELY_NO",
20
22
  No: "NO",
@@ -33,11 +35,57 @@ export type AtsScorecard = {
33
35
  interviewerId?: string | undefined;
34
36
  jobId?: string | undefined;
35
37
  questions?: Array<AtsScorecardQuestion> | undefined;
36
- raw?: { [k: string]: any } | undefined;
38
+ raw?: AtsScorecardRaw | undefined;
37
39
  recommendation?: Recommendation | undefined;
38
40
  updatedAt?: Date | undefined;
39
41
  };
40
42
 
43
+ /** @internal */
44
+ export const AtsScorecardRaw$inboundSchema: z.ZodType<
45
+ AtsScorecardRaw,
46
+ z.ZodTypeDef,
47
+ unknown
48
+ > = z.object({});
49
+
50
+ /** @internal */
51
+ export type AtsScorecardRaw$Outbound = {};
52
+
53
+ /** @internal */
54
+ export const AtsScorecardRaw$outboundSchema: z.ZodType<
55
+ AtsScorecardRaw$Outbound,
56
+ z.ZodTypeDef,
57
+ AtsScorecardRaw
58
+ > = z.object({});
59
+
60
+ /**
61
+ * @internal
62
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
+ */
64
+ export namespace AtsScorecardRaw$ {
65
+ /** @deprecated use `AtsScorecardRaw$inboundSchema` instead. */
66
+ export const inboundSchema = AtsScorecardRaw$inboundSchema;
67
+ /** @deprecated use `AtsScorecardRaw$outboundSchema` instead. */
68
+ export const outboundSchema = AtsScorecardRaw$outboundSchema;
69
+ /** @deprecated use `AtsScorecardRaw$Outbound` instead. */
70
+ export type Outbound = AtsScorecardRaw$Outbound;
71
+ }
72
+
73
+ export function atsScorecardRawToJSON(
74
+ atsScorecardRaw: AtsScorecardRaw,
75
+ ): string {
76
+ return JSON.stringify(AtsScorecardRaw$outboundSchema.parse(atsScorecardRaw));
77
+ }
78
+
79
+ export function atsScorecardRawFromJSON(
80
+ jsonString: string,
81
+ ): SafeParseResult<AtsScorecardRaw, SDKValidationError> {
82
+ return safeParse(
83
+ jsonString,
84
+ (x) => AtsScorecardRaw$inboundSchema.parse(JSON.parse(x)),
85
+ `Failed to parse 'AtsScorecardRaw' from JSON`,
86
+ );
87
+ }
88
+
41
89
  /** @internal */
42
90
  export const Recommendation$inboundSchema: z.ZodNativeEnum<
43
91
  typeof Recommendation
@@ -75,7 +123,7 @@ export const AtsScorecard$inboundSchema: z.ZodType<
75
123
  interviewer_id: z.string().optional(),
76
124
  job_id: z.string().optional(),
77
125
  questions: z.array(AtsScorecardQuestion$inboundSchema).optional(),
78
- raw: z.record(z.any()).optional(),
126
+ raw: z.lazy(() => AtsScorecardRaw$inboundSchema).optional(),
79
127
  recommendation: Recommendation$inboundSchema.optional(),
80
128
  updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
81
129
  .optional(),
@@ -102,7 +150,7 @@ export type AtsScorecard$Outbound = {
102
150
  interviewer_id?: string | undefined;
103
151
  job_id?: string | undefined;
104
152
  questions?: Array<AtsScorecardQuestion$Outbound> | undefined;
105
- raw?: { [k: string]: any } | undefined;
153
+ raw?: AtsScorecardRaw$Outbound | undefined;
106
154
  recommendation?: string | undefined;
107
155
  updated_at?: string | undefined;
108
156
  };
@@ -122,7 +170,7 @@ export const AtsScorecard$outboundSchema: z.ZodType<
122
170
  interviewerId: z.string().optional(),
123
171
  jobId: z.string().optional(),
124
172
  questions: z.array(AtsScorecardQuestion$outboundSchema).optional(),
125
- raw: z.record(z.any()).optional(),
173
+ raw: z.lazy(() => AtsScorecardRaw$outboundSchema).optional(),
126
174
  recommendation: Recommendation$outboundSchema.optional(),
127
175
  updatedAt: z.date().transform(v => v.toISOString()).optional(),
128
176
  }).transform((v) => {
@@ -9,6 +9,8 @@ import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
+ export type AtsStatusRaw = {};
13
+
12
14
  export const AtsStatusStatus = {
13
15
  New: "NEW",
14
16
  Reviewing: "REVIEWING",
@@ -31,10 +33,54 @@ export type AtsStatus = {
31
33
  description?: string | undefined;
32
34
  id?: string | undefined;
33
35
  originalStatus?: string | undefined;
34
- raw?: { [k: string]: any } | undefined;
36
+ raw?: AtsStatusRaw | undefined;
35
37
  status?: AtsStatusStatus | undefined;
36
38
  };
37
39
 
40
+ /** @internal */
41
+ export const AtsStatusRaw$inboundSchema: z.ZodType<
42
+ AtsStatusRaw,
43
+ z.ZodTypeDef,
44
+ unknown
45
+ > = z.object({});
46
+
47
+ /** @internal */
48
+ export type AtsStatusRaw$Outbound = {};
49
+
50
+ /** @internal */
51
+ export const AtsStatusRaw$outboundSchema: z.ZodType<
52
+ AtsStatusRaw$Outbound,
53
+ z.ZodTypeDef,
54
+ AtsStatusRaw
55
+ > = z.object({});
56
+
57
+ /**
58
+ * @internal
59
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
+ */
61
+ export namespace AtsStatusRaw$ {
62
+ /** @deprecated use `AtsStatusRaw$inboundSchema` instead. */
63
+ export const inboundSchema = AtsStatusRaw$inboundSchema;
64
+ /** @deprecated use `AtsStatusRaw$outboundSchema` instead. */
65
+ export const outboundSchema = AtsStatusRaw$outboundSchema;
66
+ /** @deprecated use `AtsStatusRaw$Outbound` instead. */
67
+ export type Outbound = AtsStatusRaw$Outbound;
68
+ }
69
+
70
+ export function atsStatusRawToJSON(atsStatusRaw: AtsStatusRaw): string {
71
+ return JSON.stringify(AtsStatusRaw$outboundSchema.parse(atsStatusRaw));
72
+ }
73
+
74
+ export function atsStatusRawFromJSON(
75
+ jsonString: string,
76
+ ): SafeParseResult<AtsStatusRaw, SDKValidationError> {
77
+ return safeParse(
78
+ jsonString,
79
+ (x) => AtsStatusRaw$inboundSchema.parse(JSON.parse(x)),
80
+ `Failed to parse 'AtsStatusRaw' from JSON`,
81
+ );
82
+ }
83
+
38
84
  /** @internal */
39
85
  export const AtsStatusStatus$inboundSchema: z.ZodNativeEnum<
40
86
  typeof AtsStatusStatus
@@ -65,7 +111,7 @@ export const AtsStatus$inboundSchema: z.ZodType<
65
111
  description: z.string().optional(),
66
112
  id: z.string().optional(),
67
113
  original_status: z.string().optional(),
68
- raw: z.record(z.any()).optional(),
114
+ raw: z.lazy(() => AtsStatusRaw$inboundSchema).optional(),
69
115
  status: AtsStatusStatus$inboundSchema.optional(),
70
116
  }).transform((v) => {
71
117
  return remap$(v, {
@@ -78,7 +124,7 @@ export type AtsStatus$Outbound = {
78
124
  description?: string | undefined;
79
125
  id?: string | undefined;
80
126
  original_status?: string | undefined;
81
- raw?: { [k: string]: any } | undefined;
127
+ raw?: AtsStatusRaw$Outbound | undefined;
82
128
  status?: string | undefined;
83
129
  };
84
130
 
@@ -91,7 +137,7 @@ export const AtsStatus$outboundSchema: z.ZodType<
91
137
  description: z.string().optional(),
92
138
  id: z.string().optional(),
93
139
  originalStatus: z.string().optional(),
94
- raw: z.record(z.any()).optional(),
140
+ raw: z.lazy(() => AtsStatusRaw$outboundSchema).optional(),
95
141
  status: AtsStatusStatus$outboundSchema.optional(),
96
142
  }).transform((v) => {
97
143
  return remap$(v, {
@@ -21,7 +21,7 @@ import {
21
21
  CommerceItemMetadata$outboundSchema,
22
22
  } from "./commerceitemmetadata.js";
23
23
 
24
- export type Raw = {};
24
+ export type CommerceCollectionRaw = {};
25
25
 
26
26
  export const CommerceCollectionType = {
27
27
  Collection: "COLLECTION",
@@ -46,47 +46,57 @@ export type CommerceCollection = {
46
46
  parentId?: string | undefined;
47
47
  publicDescription?: string | undefined;
48
48
  publicName?: string | undefined;
49
- raw?: Raw | undefined;
49
+ raw?: CommerceCollectionRaw | undefined;
50
50
  tags?: Array<string> | undefined;
51
51
  type?: CommerceCollectionType | undefined;
52
52
  updatedAt?: Date | undefined;
53
53
  };
54
54
 
55
55
  /** @internal */
56
- export const Raw$inboundSchema: z.ZodType<Raw, z.ZodTypeDef, unknown> = z
57
- .object({});
56
+ export const CommerceCollectionRaw$inboundSchema: z.ZodType<
57
+ CommerceCollectionRaw,
58
+ z.ZodTypeDef,
59
+ unknown
60
+ > = z.object({});
58
61
 
59
62
  /** @internal */
60
- export type Raw$Outbound = {};
63
+ export type CommerceCollectionRaw$Outbound = {};
61
64
 
62
65
  /** @internal */
63
- export const Raw$outboundSchema: z.ZodType<Raw$Outbound, z.ZodTypeDef, Raw> = z
64
- .object({});
66
+ export const CommerceCollectionRaw$outboundSchema: z.ZodType<
67
+ CommerceCollectionRaw$Outbound,
68
+ z.ZodTypeDef,
69
+ CommerceCollectionRaw
70
+ > = z.object({});
65
71
 
66
72
  /**
67
73
  * @internal
68
74
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
69
75
  */
70
- export namespace Raw$ {
71
- /** @deprecated use `Raw$inboundSchema` instead. */
72
- export const inboundSchema = Raw$inboundSchema;
73
- /** @deprecated use `Raw$outboundSchema` instead. */
74
- export const outboundSchema = Raw$outboundSchema;
75
- /** @deprecated use `Raw$Outbound` instead. */
76
- export type Outbound = Raw$Outbound;
76
+ export namespace CommerceCollectionRaw$ {
77
+ /** @deprecated use `CommerceCollectionRaw$inboundSchema` instead. */
78
+ export const inboundSchema = CommerceCollectionRaw$inboundSchema;
79
+ /** @deprecated use `CommerceCollectionRaw$outboundSchema` instead. */
80
+ export const outboundSchema = CommerceCollectionRaw$outboundSchema;
81
+ /** @deprecated use `CommerceCollectionRaw$Outbound` instead. */
82
+ export type Outbound = CommerceCollectionRaw$Outbound;
77
83
  }
78
84
 
79
- export function rawToJSON(raw: Raw): string {
80
- return JSON.stringify(Raw$outboundSchema.parse(raw));
85
+ export function commerceCollectionRawToJSON(
86
+ commerceCollectionRaw: CommerceCollectionRaw,
87
+ ): string {
88
+ return JSON.stringify(
89
+ CommerceCollectionRaw$outboundSchema.parse(commerceCollectionRaw),
90
+ );
81
91
  }
82
92
 
83
- export function rawFromJSON(
93
+ export function commerceCollectionRawFromJSON(
84
94
  jsonString: string,
85
- ): SafeParseResult<Raw, SDKValidationError> {
95
+ ): SafeParseResult<CommerceCollectionRaw, SDKValidationError> {
86
96
  return safeParse(
87
97
  jsonString,
88
- (x) => Raw$inboundSchema.parse(JSON.parse(x)),
89
- `Failed to parse 'Raw' from JSON`,
98
+ (x) => CommerceCollectionRaw$inboundSchema.parse(JSON.parse(x)),
99
+ `Failed to parse 'CommerceCollectionRaw' from JSON`,
90
100
  );
91
101
  }
92
102
 
@@ -130,7 +140,7 @@ export const CommerceCollection$inboundSchema: z.ZodType<
130
140
  parent_id: z.string().optional(),
131
141
  public_description: z.string().optional(),
132
142
  public_name: z.string().optional(),
133
- raw: z.lazy(() => Raw$inboundSchema).optional(),
143
+ raw: z.lazy(() => CommerceCollectionRaw$inboundSchema).optional(),
134
144
  tags: z.array(z.string()).optional(),
135
145
  type: CommerceCollectionType$inboundSchema.optional(),
136
146
  updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
@@ -162,7 +172,7 @@ export type CommerceCollection$Outbound = {
162
172
  parent_id?: string | undefined;
163
173
  public_description?: string | undefined;
164
174
  public_name?: string | undefined;
165
- raw?: Raw$Outbound | undefined;
175
+ raw?: CommerceCollectionRaw$Outbound | undefined;
166
176
  tags?: Array<string> | undefined;
167
177
  type?: string | undefined;
168
178
  updated_at?: string | undefined;
@@ -186,7 +196,7 @@ export const CommerceCollection$outboundSchema: z.ZodType<
186
196
  parentId: z.string().optional(),
187
197
  publicDescription: z.string().optional(),
188
198
  publicName: z.string().optional(),
189
- raw: z.lazy(() => Raw$outboundSchema).optional(),
199
+ raw: z.lazy(() => CommerceCollectionRaw$outboundSchema).optional(),
190
200
  tags: z.array(z.string()).optional(),
191
201
  type: CommerceCollectionType$outboundSchema.optional(),
192
202
  updatedAt: z.date().transform(v => v.toISOString()).optional(),
@@ -29,6 +29,7 @@ export * from "./atsdocument.js";
29
29
  export * from "./atsemail.js";
30
30
  export * from "./atsinterview.js";
31
31
  export * from "./atsjob.js";
32
+ export * from "./atsjobposting.js";
32
33
  export * from "./atsjobquestion.js";
33
34
  export * from "./atsoffer.js";
34
35
  export * from "./atsscorecard.js";
@@ -110,6 +111,7 @@ export * from "./propertyaccountingorganizationaddress.js";
110
111
  export * from "./propertyatsactivityfrom.js";
111
112
  export * from "./propertyatscandidateaddress.js";
112
113
  export * from "./propertyatscompanyaddress.js";
114
+ export * from "./propertyatsjobpostingaddress.js";
113
115
  export * from "./propertycommercelocationaddress.js";
114
116
  export * from "./propertyconnectionauth.js";
115
117
  export * from "./propertyconnectioncategories.js";