@unified-api/typescript-sdk 2.9.28 → 2.10.1
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/accountingaccount.d.ts +23 -9
- package/sdk/models/shared/accountingaccount.d.ts.map +1 -1
- package/sdk/models/shared/accountingaccount.js +28 -3
- package/sdk/models/shared/accountingaccount.js.map +1 -1
- package/sdk/models/shared/accountingcontact.d.ts +23 -6
- package/sdk/models/shared/accountingcontact.d.ts.map +1 -1
- package/sdk/models/shared/accountingcontact.js +26 -3
- package/sdk/models/shared/accountingcontact.js.map +1 -1
- package/sdk/models/shared/accountinginvoice.d.ts +23 -6
- package/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
- package/sdk/models/shared/accountinginvoice.js +26 -3
- package/sdk/models/shared/accountinginvoice.js.map +1 -1
- package/sdk/models/shared/accountingjournal.d.ts +23 -6
- package/sdk/models/shared/accountingjournal.d.ts.map +1 -1
- package/sdk/models/shared/accountingjournal.js +26 -3
- package/sdk/models/shared/accountingjournal.js.map +1 -1
- package/sdk/models/shared/accountingorder.d.ts +23 -6
- package/sdk/models/shared/accountingorder.d.ts.map +1 -1
- package/sdk/models/shared/accountingorder.js +26 -3
- package/sdk/models/shared/accountingorder.js.map +1 -1
- package/sdk/models/shared/accountingorganization.d.ts +23 -6
- package/sdk/models/shared/accountingorganization.d.ts.map +1 -1
- package/sdk/models/shared/accountingorganization.js +26 -3
- package/sdk/models/shared/accountingorganization.js.map +1 -1
- package/sdk/models/shared/accountingtaxrate.d.ts +23 -6
- package/sdk/models/shared/accountingtaxrate.d.ts.map +1 -1
- package/sdk/models/shared/accountingtaxrate.js +26 -3
- package/sdk/models/shared/accountingtaxrate.js.map +1 -1
- package/sdk/models/shared/accountingtransaction.d.ts +23 -6
- package/sdk/models/shared/accountingtransaction.d.ts.map +1 -1
- package/sdk/models/shared/accountingtransaction.js +26 -3
- package/sdk/models/shared/accountingtransaction.js.map +1 -1
- package/sdk/models/shared/accountingtransactioncontact.d.ts +10 -2
- package/sdk/models/shared/accountingtransactioncontact.d.ts.map +1 -1
- package/sdk/models/shared/accountingtransactioncontact.js +21 -2
- package/sdk/models/shared/accountingtransactioncontact.js.map +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 +26 -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/atsoffer.d.ts +85 -2
- package/sdk/models/shared/atsoffer.d.ts.map +1 -1
- package/sdk/models/shared/atsoffer.js +103 -3
- package/sdk/models/shared/atsoffer.js.map +1 -1
- 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/crmcompany.d.ts +26 -9
- package/sdk/models/shared/crmcompany.d.ts.map +1 -1
- package/sdk/models/shared/crmcompany.js +26 -3
- package/sdk/models/shared/crmcompany.js.map +1 -1
- package/sdk/models/shared/crmcontact.d.ts +26 -9
- package/sdk/models/shared/crmcontact.d.ts.map +1 -1
- package/sdk/models/shared/crmcontact.js +26 -3
- package/sdk/models/shared/crmcontact.js.map +1 -1
- package/sdk/models/shared/crmdeal.d.ts +27 -9
- package/sdk/models/shared/crmdeal.d.ts.map +1 -1
- package/sdk/models/shared/crmdeal.js +34 -3
- package/sdk/models/shared/crmdeal.js.map +1 -1
- package/sdk/models/shared/crmevent.d.ts +23 -9
- package/sdk/models/shared/crmevent.d.ts.map +1 -1
- package/sdk/models/shared/crmevent.js +26 -3
- package/sdk/models/shared/crmevent.js.map +1 -1
- package/sdk/models/shared/crmeventformfield.d.ts +3 -0
- package/sdk/models/shared/crmeventformfield.d.ts.map +1 -1
- package/sdk/models/shared/crmeventformfield.js +1 -0
- package/sdk/models/shared/crmeventformfield.js.map +1 -1
- package/sdk/models/shared/crmlead.d.ts +23 -6
- package/sdk/models/shared/crmlead.d.ts.map +1 -1
- package/sdk/models/shared/crmlead.js +26 -3
- package/sdk/models/shared/crmlead.js.map +1 -1
- package/sdk/models/shared/crmpipeline.d.ts +23 -6
- package/sdk/models/shared/crmpipeline.d.ts.map +1 -1
- package/sdk/models/shared/crmpipeline.js +26 -3
- package/sdk/models/shared/crmpipeline.js.map +1 -1
- package/sdk/models/shared/hriscompany.d.ts +23 -6
- package/sdk/models/shared/hriscompany.d.ts.map +1 -1
- package/sdk/models/shared/hriscompany.js +26 -3
- package/sdk/models/shared/hriscompany.js.map +1 -1
- package/sdk/models/shared/hrisemployee.d.ts +23 -6
- package/sdk/models/shared/hrisemployee.d.ts.map +1 -1
- package/sdk/models/shared/hrisemployee.js +26 -3
- package/sdk/models/shared/hrisemployee.js.map +1 -1
- package/sdk/models/shared/hrisgroup.d.ts +23 -6
- package/sdk/models/shared/hrisgroup.d.ts.map +1 -1
- package/sdk/models/shared/hrisgroup.js +26 -3
- package/sdk/models/shared/hrisgroup.js.map +1 -1
- package/sdk/models/shared/hrislocation.d.ts +23 -6
- package/sdk/models/shared/hrislocation.d.ts.map +1 -1
- package/sdk/models/shared/hrislocation.js +26 -3
- package/sdk/models/shared/hrislocation.js.map +1 -1
- package/sdk/models/shared/hrispayslip.d.ts +27 -8
- package/sdk/models/shared/hrispayslip.d.ts.map +1 -1
- package/sdk/models/shared/hrispayslip.js +32 -5
- package/sdk/models/shared/hrispayslip.js.map +1 -1
- package/sdk/models/shared/hristimeoff.d.ts +27 -8
- package/sdk/models/shared/hristimeoff.d.ts.map +1 -1
- package/sdk/models/shared/hristimeoff.js +32 -5
- package/sdk/models/shared/hristimeoff.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/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/accountingaccount.ts +44 -7
- package/src/sdk/models/shared/accountingcontact.ts +54 -4
- package/src/sdk/models/shared/accountinginvoice.ts +54 -4
- package/src/sdk/models/shared/accountingjournal.ts +54 -4
- package/src/sdk/models/shared/accountingorder.ts +54 -4
- package/src/sdk/models/shared/accountingorganization.ts +54 -4
- package/src/sdk/models/shared/accountingtaxrate.ts +54 -4
- package/src/sdk/models/shared/accountingtransaction.ts +54 -4
- package/src/sdk/models/shared/accountingtransactioncontact.ts +31 -4
- package/src/sdk/models/shared/atsactivity.ts +50 -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/atsoffer.ts +170 -4
- 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/crmcompany.ts +53 -7
- package/src/sdk/models/shared/crmcontact.ts +53 -7
- package/src/sdk/models/shared/crmdeal.ts +62 -7
- package/src/sdk/models/shared/crmevent.ts +50 -7
- package/src/sdk/models/shared/crmeventformfield.ts +1 -0
- package/src/sdk/models/shared/crmlead.ts +50 -4
- package/src/sdk/models/shared/crmpipeline.ts +50 -4
- package/src/sdk/models/shared/hriscompany.ts +50 -4
- package/src/sdk/models/shared/hrisemployee.ts +52 -4
- package/src/sdk/models/shared/hrisgroup.ts +50 -4
- package/src/sdk/models/shared/hrislocation.ts +52 -4
- package/src/sdk/models/shared/hrispayslip.ts +60 -8
- package/src/sdk/models/shared/hristimeoff.ts +60 -8
- package/src/sdk/models/shared/index.ts +2 -0
- package/src/sdk/models/shared/propertyatsjobpostingaddress.ts +112 -0
|
@@ -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(),
|
|
@@ -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
|
+
}
|