@unified-api/typescript-sdk 2.9.27 → 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.
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/package.json +1 -1
- package/sdk/models/shared/atsactivity.d.ts +23 -6
- package/sdk/models/shared/atsactivity.d.ts.map +1 -1
- package/sdk/models/shared/atsactivity.js +28 -3
- package/sdk/models/shared/atsactivity.js.map +1 -1
- package/sdk/models/shared/atsapplication.d.ts +23 -6
- package/sdk/models/shared/atsapplication.d.ts.map +1 -1
- package/sdk/models/shared/atsapplication.js +26 -3
- package/sdk/models/shared/atsapplication.js.map +1 -1
- package/sdk/models/shared/atscandidate.d.ts +23 -6
- package/sdk/models/shared/atscandidate.d.ts.map +1 -1
- package/sdk/models/shared/atscandidate.js +26 -3
- package/sdk/models/shared/atscandidate.js.map +1 -1
- package/sdk/models/shared/atscompany.d.ts +23 -6
- package/sdk/models/shared/atscompany.d.ts.map +1 -1
- package/sdk/models/shared/atscompany.js +26 -3
- package/sdk/models/shared/atscompany.js.map +1 -1
- package/sdk/models/shared/atsdocument.d.ts +23 -6
- package/sdk/models/shared/atsdocument.d.ts.map +1 -1
- package/sdk/models/shared/atsdocument.js +26 -3
- package/sdk/models/shared/atsdocument.js.map +1 -1
- package/sdk/models/shared/atsinterview.d.ts +23 -6
- package/sdk/models/shared/atsinterview.d.ts.map +1 -1
- package/sdk/models/shared/atsinterview.js +26 -3
- package/sdk/models/shared/atsinterview.js.map +1 -1
- package/sdk/models/shared/atsjob.d.ts +29 -6
- package/sdk/models/shared/atsjob.d.ts.map +1 -1
- package/sdk/models/shared/atsjob.js +29 -3
- package/sdk/models/shared/atsjob.js.map +1 -1
- package/sdk/models/shared/atsjobposting.d.ts +49 -0
- package/sdk/models/shared/atsjobposting.d.ts.map +1 -0
- package/sdk/models/shared/atsjobposting.js +93 -0
- package/sdk/models/shared/atsjobposting.js.map +1 -0
- package/sdk/models/shared/atsscorecard.d.ts +23 -6
- package/sdk/models/shared/atsscorecard.d.ts.map +1 -1
- package/sdk/models/shared/atsscorecard.js +26 -3
- package/sdk/models/shared/atsscorecard.js.map +1 -1
- package/sdk/models/shared/atsstatus.d.ts +23 -6
- package/sdk/models/shared/atsstatus.d.ts.map +1 -1
- package/sdk/models/shared/atsstatus.js +26 -3
- package/sdk/models/shared/atsstatus.js.map +1 -1
- package/sdk/models/shared/commercecollection.d.ts +15 -15
- package/sdk/models/shared/commercecollection.d.ts.map +1 -1
- package/sdk/models/shared/commercecollection.js +18 -20
- package/sdk/models/shared/commercecollection.js.map +1 -1
- package/sdk/models/shared/connection.d.ts +2 -2
- package/sdk/models/shared/connection.d.ts.map +1 -1
- package/sdk/models/shared/connection.js +2 -2
- package/sdk/models/shared/connection.js.map +1 -1
- package/sdk/models/shared/index.d.ts +2 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +2 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/metadatametadata.d.ts +85 -7
- package/sdk/models/shared/metadatametadata.d.ts.map +1 -1
- package/sdk/models/shared/metadatametadata.js +60 -5
- package/sdk/models/shared/metadatametadata.js.map +1 -1
- package/sdk/models/shared/propertyatsjobpostingaddress.d.ts +46 -0
- package/sdk/models/shared/propertyatsjobpostingaddress.d.ts.map +1 -0
- package/sdk/models/shared/propertyatsjobpostingaddress.js +86 -0
- package/sdk/models/shared/propertyatsjobpostingaddress.js.map +1 -0
- package/src/lib/config.ts +3 -3
- package/src/sdk/models/shared/atsactivity.ts +44 -4
- package/src/sdk/models/shared/atsapplication.ts +54 -4
- package/src/sdk/models/shared/atscandidate.ts +52 -4
- package/src/sdk/models/shared/atscompany.ts +50 -4
- package/src/sdk/models/shared/atsdocument.ts +50 -4
- package/src/sdk/models/shared/atsinterview.ts +52 -4
- package/src/sdk/models/shared/atsjob.ts +63 -4
- package/src/sdk/models/shared/atsjobposting.ts +120 -0
- package/src/sdk/models/shared/atsscorecard.ts +52 -4
- package/src/sdk/models/shared/atsstatus.ts +50 -4
- package/src/sdk/models/shared/commercecollection.ts +33 -23
- package/src/sdk/models/shared/connection.ts +4 -4
- package/src/sdk/models/shared/index.ts +2 -0
- package/src/sdk/models/shared/metadatametadata.ts +100 -7
- package/src/sdk/models/shared/propertyatsjobpostingaddress.ts +112 -0
|
@@ -21,6 +21,8 @@ import {
|
|
|
21
21
|
AtsOffer$outboundSchema,
|
|
22
22
|
} from "./atsoffer.js";
|
|
23
23
|
|
|
24
|
+
export type AtsApplicationRaw = {};
|
|
25
|
+
|
|
24
26
|
export const AtsApplicationStatus = {
|
|
25
27
|
New: "NEW",
|
|
26
28
|
Reviewing: "REVIEWING",
|
|
@@ -49,7 +51,7 @@ export type AtsApplication = {
|
|
|
49
51
|
jobId?: string | undefined;
|
|
50
52
|
offers?: Array<AtsOffer> | undefined;
|
|
51
53
|
originalStatus?: string | undefined;
|
|
52
|
-
raw?:
|
|
54
|
+
raw?: AtsApplicationRaw | undefined;
|
|
53
55
|
rejectedAt?: Date | undefined;
|
|
54
56
|
rejectedReason?: string | undefined;
|
|
55
57
|
source?: string | undefined;
|
|
@@ -57,6 +59,54 @@ export type AtsApplication = {
|
|
|
57
59
|
updatedAt?: Date | undefined;
|
|
58
60
|
};
|
|
59
61
|
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const AtsApplicationRaw$inboundSchema: z.ZodType<
|
|
64
|
+
AtsApplicationRaw,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
unknown
|
|
67
|
+
> = z.object({});
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export type AtsApplicationRaw$Outbound = {};
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const AtsApplicationRaw$outboundSchema: z.ZodType<
|
|
74
|
+
AtsApplicationRaw$Outbound,
|
|
75
|
+
z.ZodTypeDef,
|
|
76
|
+
AtsApplicationRaw
|
|
77
|
+
> = z.object({});
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
82
|
+
*/
|
|
83
|
+
export namespace AtsApplicationRaw$ {
|
|
84
|
+
/** @deprecated use `AtsApplicationRaw$inboundSchema` instead. */
|
|
85
|
+
export const inboundSchema = AtsApplicationRaw$inboundSchema;
|
|
86
|
+
/** @deprecated use `AtsApplicationRaw$outboundSchema` instead. */
|
|
87
|
+
export const outboundSchema = AtsApplicationRaw$outboundSchema;
|
|
88
|
+
/** @deprecated use `AtsApplicationRaw$Outbound` instead. */
|
|
89
|
+
export type Outbound = AtsApplicationRaw$Outbound;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function atsApplicationRawToJSON(
|
|
93
|
+
atsApplicationRaw: AtsApplicationRaw,
|
|
94
|
+
): string {
|
|
95
|
+
return JSON.stringify(
|
|
96
|
+
AtsApplicationRaw$outboundSchema.parse(atsApplicationRaw),
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function atsApplicationRawFromJSON(
|
|
101
|
+
jsonString: string,
|
|
102
|
+
): SafeParseResult<AtsApplicationRaw, SDKValidationError> {
|
|
103
|
+
return safeParse(
|
|
104
|
+
jsonString,
|
|
105
|
+
(x) => AtsApplicationRaw$inboundSchema.parse(JSON.parse(x)),
|
|
106
|
+
`Failed to parse 'AtsApplicationRaw' from JSON`,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
60
110
|
/** @internal */
|
|
61
111
|
export const AtsApplicationStatus$inboundSchema: z.ZodNativeEnum<
|
|
62
112
|
typeof AtsApplicationStatus
|
|
@@ -96,7 +146,7 @@ export const AtsApplication$inboundSchema: z.ZodType<
|
|
|
96
146
|
job_id: z.string().optional(),
|
|
97
147
|
offers: z.array(AtsOffer$inboundSchema).optional(),
|
|
98
148
|
original_status: z.string().optional(),
|
|
99
|
-
raw: z.
|
|
149
|
+
raw: z.lazy(() => AtsApplicationRaw$inboundSchema).optional(),
|
|
100
150
|
rejected_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
101
151
|
.optional(),
|
|
102
152
|
rejected_reason: z.string().optional(),
|
|
@@ -129,7 +179,7 @@ export type AtsApplication$Outbound = {
|
|
|
129
179
|
job_id?: string | undefined;
|
|
130
180
|
offers?: Array<AtsOffer$Outbound> | undefined;
|
|
131
181
|
original_status?: string | undefined;
|
|
132
|
-
raw?:
|
|
182
|
+
raw?: AtsApplicationRaw$Outbound | undefined;
|
|
133
183
|
rejected_at?: string | undefined;
|
|
134
184
|
rejected_reason?: string | undefined;
|
|
135
185
|
source?: string | undefined;
|
|
@@ -152,7 +202,7 @@ export const AtsApplication$outboundSchema: z.ZodType<
|
|
|
152
202
|
jobId: z.string().optional(),
|
|
153
203
|
offers: z.array(AtsOffer$outboundSchema).optional(),
|
|
154
204
|
originalStatus: z.string().optional(),
|
|
155
|
-
raw: z.
|
|
205
|
+
raw: z.lazy(() => AtsApplicationRaw$outboundSchema).optional(),
|
|
156
206
|
rejectedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
157
207
|
rejectedReason: z.string().optional(),
|
|
158
208
|
source: z.string().optional(),
|
|
@@ -37,6 +37,8 @@ export const Origin = {
|
|
|
37
37
|
} as const;
|
|
38
38
|
export type Origin = ClosedEnum<typeof Origin>;
|
|
39
39
|
|
|
40
|
+
export type AtsCandidateRaw = {};
|
|
41
|
+
|
|
40
42
|
export type AtsCandidate = {
|
|
41
43
|
address?: PropertyAtsCandidateAddress | undefined;
|
|
42
44
|
companyId?: string | undefined;
|
|
@@ -53,7 +55,7 @@ export type AtsCandidate = {
|
|
|
53
55
|
linkUrls?: Array<string> | undefined;
|
|
54
56
|
name?: string | undefined;
|
|
55
57
|
origin?: Origin | undefined;
|
|
56
|
-
raw?:
|
|
58
|
+
raw?: AtsCandidateRaw | undefined;
|
|
57
59
|
sources?: Array<string> | undefined;
|
|
58
60
|
tags?: Array<string> | undefined;
|
|
59
61
|
telephones?: Array<AtsTelephone> | undefined;
|
|
@@ -82,6 +84,52 @@ export namespace Origin$ {
|
|
|
82
84
|
export const outboundSchema = Origin$outboundSchema;
|
|
83
85
|
}
|
|
84
86
|
|
|
87
|
+
/** @internal */
|
|
88
|
+
export const AtsCandidateRaw$inboundSchema: z.ZodType<
|
|
89
|
+
AtsCandidateRaw,
|
|
90
|
+
z.ZodTypeDef,
|
|
91
|
+
unknown
|
|
92
|
+
> = z.object({});
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export type AtsCandidateRaw$Outbound = {};
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const AtsCandidateRaw$outboundSchema: z.ZodType<
|
|
99
|
+
AtsCandidateRaw$Outbound,
|
|
100
|
+
z.ZodTypeDef,
|
|
101
|
+
AtsCandidateRaw
|
|
102
|
+
> = z.object({});
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @internal
|
|
106
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
107
|
+
*/
|
|
108
|
+
export namespace AtsCandidateRaw$ {
|
|
109
|
+
/** @deprecated use `AtsCandidateRaw$inboundSchema` instead. */
|
|
110
|
+
export const inboundSchema = AtsCandidateRaw$inboundSchema;
|
|
111
|
+
/** @deprecated use `AtsCandidateRaw$outboundSchema` instead. */
|
|
112
|
+
export const outboundSchema = AtsCandidateRaw$outboundSchema;
|
|
113
|
+
/** @deprecated use `AtsCandidateRaw$Outbound` instead. */
|
|
114
|
+
export type Outbound = AtsCandidateRaw$Outbound;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function atsCandidateRawToJSON(
|
|
118
|
+
atsCandidateRaw: AtsCandidateRaw,
|
|
119
|
+
): string {
|
|
120
|
+
return JSON.stringify(AtsCandidateRaw$outboundSchema.parse(atsCandidateRaw));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function atsCandidateRawFromJSON(
|
|
124
|
+
jsonString: string,
|
|
125
|
+
): SafeParseResult<AtsCandidateRaw, SDKValidationError> {
|
|
126
|
+
return safeParse(
|
|
127
|
+
jsonString,
|
|
128
|
+
(x) => AtsCandidateRaw$inboundSchema.parse(JSON.parse(x)),
|
|
129
|
+
`Failed to parse 'AtsCandidateRaw' from JSON`,
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
|
|
85
133
|
/** @internal */
|
|
86
134
|
export const AtsCandidate$inboundSchema: z.ZodType<
|
|
87
135
|
AtsCandidate,
|
|
@@ -103,7 +151,7 @@ export const AtsCandidate$inboundSchema: z.ZodType<
|
|
|
103
151
|
link_urls: z.array(z.string()).optional(),
|
|
104
152
|
name: z.string().optional(),
|
|
105
153
|
origin: Origin$inboundSchema.optional(),
|
|
106
|
-
raw: z.
|
|
154
|
+
raw: z.lazy(() => AtsCandidateRaw$inboundSchema).optional(),
|
|
107
155
|
sources: z.array(z.string()).optional(),
|
|
108
156
|
tags: z.array(z.string()).optional(),
|
|
109
157
|
telephones: z.array(AtsTelephone$inboundSchema).optional(),
|
|
@@ -141,7 +189,7 @@ export type AtsCandidate$Outbound = {
|
|
|
141
189
|
link_urls?: Array<string> | undefined;
|
|
142
190
|
name?: string | undefined;
|
|
143
191
|
origin?: string | undefined;
|
|
144
|
-
raw?:
|
|
192
|
+
raw?: AtsCandidateRaw$Outbound | undefined;
|
|
145
193
|
sources?: Array<string> | undefined;
|
|
146
194
|
tags?: Array<string> | undefined;
|
|
147
195
|
telephones?: Array<AtsTelephone$Outbound> | undefined;
|
|
@@ -169,7 +217,7 @@ export const AtsCandidate$outboundSchema: z.ZodType<
|
|
|
169
217
|
linkUrls: z.array(z.string()).optional(),
|
|
170
218
|
name: z.string().optional(),
|
|
171
219
|
origin: Origin$outboundSchema.optional(),
|
|
172
|
-
raw: z.
|
|
220
|
+
raw: z.lazy(() => AtsCandidateRaw$outboundSchema).optional(),
|
|
173
221
|
sources: z.array(z.string()).optional(),
|
|
174
222
|
tags: z.array(z.string()).optional(),
|
|
175
223
|
telephones: z.array(AtsTelephone$outboundSchema).optional(),
|
|
@@ -14,6 +14,8 @@ import {
|
|
|
14
14
|
PropertyAtsCompanyAddress$outboundSchema,
|
|
15
15
|
} from "./propertyatscompanyaddress.js";
|
|
16
16
|
|
|
17
|
+
export type AtsCompanyRaw = {};
|
|
18
|
+
|
|
17
19
|
export type AtsCompany = {
|
|
18
20
|
address?: PropertyAtsCompanyAddress | undefined;
|
|
19
21
|
createdAt?: Date | undefined;
|
|
@@ -21,12 +23,56 @@ export type AtsCompany = {
|
|
|
21
23
|
name: string;
|
|
22
24
|
parentId?: string | undefined;
|
|
23
25
|
phone?: string | undefined;
|
|
24
|
-
raw?:
|
|
26
|
+
raw?: AtsCompanyRaw | undefined;
|
|
25
27
|
recruiterIds?: Array<string> | undefined;
|
|
26
28
|
updatedAt?: Date | undefined;
|
|
27
29
|
websiteUrl?: string | undefined;
|
|
28
30
|
};
|
|
29
31
|
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const AtsCompanyRaw$inboundSchema: z.ZodType<
|
|
34
|
+
AtsCompanyRaw,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
unknown
|
|
37
|
+
> = z.object({});
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type AtsCompanyRaw$Outbound = {};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const AtsCompanyRaw$outboundSchema: z.ZodType<
|
|
44
|
+
AtsCompanyRaw$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
AtsCompanyRaw
|
|
47
|
+
> = z.object({});
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
export namespace AtsCompanyRaw$ {
|
|
54
|
+
/** @deprecated use `AtsCompanyRaw$inboundSchema` instead. */
|
|
55
|
+
export const inboundSchema = AtsCompanyRaw$inboundSchema;
|
|
56
|
+
/** @deprecated use `AtsCompanyRaw$outboundSchema` instead. */
|
|
57
|
+
export const outboundSchema = AtsCompanyRaw$outboundSchema;
|
|
58
|
+
/** @deprecated use `AtsCompanyRaw$Outbound` instead. */
|
|
59
|
+
export type Outbound = AtsCompanyRaw$Outbound;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function atsCompanyRawToJSON(atsCompanyRaw: AtsCompanyRaw): string {
|
|
63
|
+
return JSON.stringify(AtsCompanyRaw$outboundSchema.parse(atsCompanyRaw));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function atsCompanyRawFromJSON(
|
|
67
|
+
jsonString: string,
|
|
68
|
+
): SafeParseResult<AtsCompanyRaw, SDKValidationError> {
|
|
69
|
+
return safeParse(
|
|
70
|
+
jsonString,
|
|
71
|
+
(x) => AtsCompanyRaw$inboundSchema.parse(JSON.parse(x)),
|
|
72
|
+
`Failed to parse 'AtsCompanyRaw' from JSON`,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
30
76
|
/** @internal */
|
|
31
77
|
export const AtsCompany$inboundSchema: z.ZodType<
|
|
32
78
|
AtsCompany,
|
|
@@ -40,7 +86,7 @@ export const AtsCompany$inboundSchema: z.ZodType<
|
|
|
40
86
|
name: z.string(),
|
|
41
87
|
parent_id: z.string().optional(),
|
|
42
88
|
phone: z.string().optional(),
|
|
43
|
-
raw: z.
|
|
89
|
+
raw: z.lazy(() => AtsCompanyRaw$inboundSchema).optional(),
|
|
44
90
|
recruiter_ids: z.array(z.string()).optional(),
|
|
45
91
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
46
92
|
.optional(),
|
|
@@ -63,7 +109,7 @@ export type AtsCompany$Outbound = {
|
|
|
63
109
|
name: string;
|
|
64
110
|
parent_id?: string | undefined;
|
|
65
111
|
phone?: string | undefined;
|
|
66
|
-
raw?:
|
|
112
|
+
raw?: AtsCompanyRaw$Outbound | undefined;
|
|
67
113
|
recruiter_ids?: Array<string> | undefined;
|
|
68
114
|
updated_at?: string | undefined;
|
|
69
115
|
website_url?: string | undefined;
|
|
@@ -81,7 +127,7 @@ export const AtsCompany$outboundSchema: z.ZodType<
|
|
|
81
127
|
name: z.string(),
|
|
82
128
|
parentId: z.string().optional(),
|
|
83
129
|
phone: z.string().optional(),
|
|
84
|
-
raw: z.
|
|
130
|
+
raw: z.lazy(() => AtsCompanyRaw$outboundSchema).optional(),
|
|
85
131
|
recruiterIds: z.array(z.string()).optional(),
|
|
86
132
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
87
133
|
websiteUrl: z.string().optional(),
|
|
@@ -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 AtsDocumentRaw = {};
|
|
13
|
+
|
|
12
14
|
export const AtsDocumentType = {
|
|
13
15
|
Resume: "RESUME",
|
|
14
16
|
CoverLetter: "COVER_LETTER",
|
|
@@ -28,12 +30,56 @@ export type AtsDocument = {
|
|
|
28
30
|
filename?: string | undefined;
|
|
29
31
|
id?: string | undefined;
|
|
30
32
|
jobId?: string | undefined;
|
|
31
|
-
raw?:
|
|
33
|
+
raw?: AtsDocumentRaw | undefined;
|
|
32
34
|
type?: AtsDocumentType | undefined;
|
|
33
35
|
updatedAt?: Date | undefined;
|
|
34
36
|
userId?: string | undefined;
|
|
35
37
|
};
|
|
36
38
|
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const AtsDocumentRaw$inboundSchema: z.ZodType<
|
|
41
|
+
AtsDocumentRaw,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({});
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type AtsDocumentRaw$Outbound = {};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const AtsDocumentRaw$outboundSchema: z.ZodType<
|
|
51
|
+
AtsDocumentRaw$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
AtsDocumentRaw
|
|
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 AtsDocumentRaw$ {
|
|
61
|
+
/** @deprecated use `AtsDocumentRaw$inboundSchema` instead. */
|
|
62
|
+
export const inboundSchema = AtsDocumentRaw$inboundSchema;
|
|
63
|
+
/** @deprecated use `AtsDocumentRaw$outboundSchema` instead. */
|
|
64
|
+
export const outboundSchema = AtsDocumentRaw$outboundSchema;
|
|
65
|
+
/** @deprecated use `AtsDocumentRaw$Outbound` instead. */
|
|
66
|
+
export type Outbound = AtsDocumentRaw$Outbound;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function atsDocumentRawToJSON(atsDocumentRaw: AtsDocumentRaw): string {
|
|
70
|
+
return JSON.stringify(AtsDocumentRaw$outboundSchema.parse(atsDocumentRaw));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function atsDocumentRawFromJSON(
|
|
74
|
+
jsonString: string,
|
|
75
|
+
): SafeParseResult<AtsDocumentRaw, SDKValidationError> {
|
|
76
|
+
return safeParse(
|
|
77
|
+
jsonString,
|
|
78
|
+
(x) => AtsDocumentRaw$inboundSchema.parse(JSON.parse(x)),
|
|
79
|
+
`Failed to parse 'AtsDocumentRaw' from JSON`,
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
37
83
|
/** @internal */
|
|
38
84
|
export const AtsDocumentType$inboundSchema: z.ZodNativeEnum<
|
|
39
85
|
typeof AtsDocumentType
|
|
@@ -70,7 +116,7 @@ export const AtsDocument$inboundSchema: z.ZodType<
|
|
|
70
116
|
filename: z.string().optional(),
|
|
71
117
|
id: z.string().optional(),
|
|
72
118
|
job_id: z.string().optional(),
|
|
73
|
-
raw: z.
|
|
119
|
+
raw: z.lazy(() => AtsDocumentRaw$inboundSchema).optional(),
|
|
74
120
|
type: AtsDocumentType$inboundSchema.optional(),
|
|
75
121
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
76
122
|
.optional(),
|
|
@@ -98,7 +144,7 @@ export type AtsDocument$Outbound = {
|
|
|
98
144
|
filename?: string | undefined;
|
|
99
145
|
id?: string | undefined;
|
|
100
146
|
job_id?: string | undefined;
|
|
101
|
-
raw?:
|
|
147
|
+
raw?: AtsDocumentRaw$Outbound | undefined;
|
|
102
148
|
type?: string | undefined;
|
|
103
149
|
updated_at?: string | undefined;
|
|
104
150
|
user_id?: string | undefined;
|
|
@@ -118,7 +164,7 @@ export const AtsDocument$outboundSchema: z.ZodType<
|
|
|
118
164
|
filename: z.string().optional(),
|
|
119
165
|
id: z.string().optional(),
|
|
120
166
|
jobId: z.string().optional(),
|
|
121
|
-
raw: z.
|
|
167
|
+
raw: z.lazy(() => AtsDocumentRaw$outboundSchema).optional(),
|
|
122
168
|
type: AtsDocumentType$outboundSchema.optional(),
|
|
123
169
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
124
170
|
userId: z.string().optional(),
|
|
@@ -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?:
|
|
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.
|
|
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?:
|
|
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.
|
|
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?:
|
|
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.
|
|
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?:
|
|
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.
|
|
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(),
|