@unified-api/typescript-sdk 2.42.0 → 2.48.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/README.md +2 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +6 -2
- package/lib/config.js.map +1 -1
- package/package.json +1 -1
- package/sdk/models/shared/accountingaccount.d.ts +6 -23
- package/sdk/models/shared/accountingaccount.d.ts.map +1 -1
- package/sdk/models/shared/accountingaccount.js +3 -28
- package/sdk/models/shared/accountingaccount.js.map +1 -1
- package/sdk/models/shared/accountingcontact.d.ts +6 -23
- package/sdk/models/shared/accountingcontact.d.ts.map +1 -1
- package/sdk/models/shared/accountingcontact.js +3 -26
- package/sdk/models/shared/accountingcontact.js.map +1 -1
- package/sdk/models/shared/accountinginvoice.d.ts +6 -23
- package/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
- package/sdk/models/shared/accountinginvoice.js +3 -26
- package/sdk/models/shared/accountinginvoice.js.map +1 -1
- package/sdk/models/shared/accountingjournal.d.ts +6 -23
- package/sdk/models/shared/accountingjournal.d.ts.map +1 -1
- package/sdk/models/shared/accountingjournal.js +3 -26
- package/sdk/models/shared/accountingjournal.js.map +1 -1
- package/sdk/models/shared/accountingorder.d.ts +6 -23
- package/sdk/models/shared/accountingorder.d.ts.map +1 -1
- package/sdk/models/shared/accountingorder.js +3 -26
- package/sdk/models/shared/accountingorder.js.map +1 -1
- package/sdk/models/shared/accountingorganization.d.ts +6 -23
- package/sdk/models/shared/accountingorganization.d.ts.map +1 -1
- package/sdk/models/shared/accountingorganization.js +3 -26
- package/sdk/models/shared/accountingorganization.js.map +1 -1
- package/sdk/models/shared/accountingreport.d.ts +6 -23
- package/sdk/models/shared/accountingreport.d.ts.map +1 -1
- package/sdk/models/shared/accountingreport.js +3 -26
- package/sdk/models/shared/accountingreport.js.map +1 -1
- package/sdk/models/shared/accountingtaxrate.d.ts +6 -23
- package/sdk/models/shared/accountingtaxrate.d.ts.map +1 -1
- package/sdk/models/shared/accountingtaxrate.js +3 -26
- package/sdk/models/shared/accountingtaxrate.js.map +1 -1
- package/sdk/models/shared/accountingtransaction.d.ts +6 -23
- package/sdk/models/shared/accountingtransaction.d.ts.map +1 -1
- package/sdk/models/shared/accountingtransaction.js +3 -26
- package/sdk/models/shared/accountingtransaction.js.map +1 -1
- package/sdk/models/shared/atsactivity.d.ts +6 -23
- package/sdk/models/shared/atsactivity.d.ts.map +1 -1
- package/sdk/models/shared/atsactivity.js +3 -26
- package/sdk/models/shared/atsactivity.js.map +1 -1
- package/sdk/models/shared/atsapplication.d.ts +6 -23
- package/sdk/models/shared/atsapplication.d.ts.map +1 -1
- package/sdk/models/shared/atsapplication.js +3 -26
- package/sdk/models/shared/atsapplication.js.map +1 -1
- package/sdk/models/shared/atscandidate.d.ts +6 -23
- package/sdk/models/shared/atscandidate.d.ts.map +1 -1
- package/sdk/models/shared/atscandidate.js +3 -26
- package/sdk/models/shared/atscandidate.js.map +1 -1
- package/sdk/models/shared/atscompany.d.ts +6 -23
- package/sdk/models/shared/atscompany.d.ts.map +1 -1
- package/sdk/models/shared/atscompany.js +3 -26
- package/sdk/models/shared/atscompany.js.map +1 -1
- package/sdk/models/shared/atsdocument.d.ts +6 -23
- package/sdk/models/shared/atsdocument.d.ts.map +1 -1
- package/sdk/models/shared/atsdocument.js +3 -26
- package/sdk/models/shared/atsdocument.js.map +1 -1
- package/sdk/models/shared/atsinterview.d.ts +6 -23
- package/sdk/models/shared/atsinterview.d.ts.map +1 -1
- package/sdk/models/shared/atsinterview.js +3 -26
- package/sdk/models/shared/atsinterview.js.map +1 -1
- package/sdk/models/shared/atsjob.d.ts +6 -23
- package/sdk/models/shared/atsjob.d.ts.map +1 -1
- package/sdk/models/shared/atsjob.js +3 -26
- package/sdk/models/shared/atsjob.js.map +1 -1
- package/sdk/models/shared/atsoffer.d.ts +6 -23
- package/sdk/models/shared/atsoffer.d.ts.map +1 -1
- package/sdk/models/shared/atsoffer.js +3 -26
- package/sdk/models/shared/atsoffer.js.map +1 -1
- package/sdk/models/shared/atsscorecard.d.ts +6 -23
- package/sdk/models/shared/atsscorecard.d.ts.map +1 -1
- package/sdk/models/shared/atsscorecard.js +3 -26
- package/sdk/models/shared/atsscorecard.js.map +1 -1
- package/sdk/models/shared/atsstatus.d.ts +6 -23
- package/sdk/models/shared/atsstatus.d.ts.map +1 -1
- package/sdk/models/shared/atsstatus.js +3 -26
- package/sdk/models/shared/atsstatus.js.map +1 -1
- package/sdk/models/shared/calendarbusy.d.ts +6 -23
- package/sdk/models/shared/calendarbusy.d.ts.map +1 -1
- package/sdk/models/shared/calendarbusy.js +3 -26
- package/sdk/models/shared/calendarbusy.js.map +1 -1
- package/sdk/models/shared/calendarcalendar.d.ts +6 -23
- package/sdk/models/shared/calendarcalendar.d.ts.map +1 -1
- package/sdk/models/shared/calendarcalendar.js +3 -26
- package/sdk/models/shared/calendarcalendar.js.map +1 -1
- package/sdk/models/shared/calendarevent.d.ts +6 -23
- package/sdk/models/shared/calendarevent.d.ts.map +1 -1
- package/sdk/models/shared/calendarevent.js +3 -26
- package/sdk/models/shared/calendarevent.js.map +1 -1
- package/sdk/models/shared/calendarlink.d.ts +6 -23
- package/sdk/models/shared/calendarlink.d.ts.map +1 -1
- package/sdk/models/shared/calendarlink.js +3 -26
- package/sdk/models/shared/calendarlink.js.map +1 -1
- package/sdk/models/shared/calendarrecording.d.ts +6 -23
- package/sdk/models/shared/calendarrecording.d.ts.map +1 -1
- package/sdk/models/shared/calendarrecording.js +3 -26
- package/sdk/models/shared/calendarrecording.js.map +1 -1
- package/sdk/models/shared/commercecollection.d.ts +6 -23
- package/sdk/models/shared/commercecollection.d.ts.map +1 -1
- package/sdk/models/shared/commercecollection.js +3 -26
- package/sdk/models/shared/commercecollection.js.map +1 -1
- package/sdk/models/shared/commerceinventory.d.ts +6 -23
- package/sdk/models/shared/commerceinventory.d.ts.map +1 -1
- package/sdk/models/shared/commerceinventory.js +3 -26
- package/sdk/models/shared/commerceinventory.js.map +1 -1
- package/sdk/models/shared/commerceitem.d.ts +6 -23
- package/sdk/models/shared/commerceitem.d.ts.map +1 -1
- package/sdk/models/shared/commerceitem.js +3 -26
- package/sdk/models/shared/commerceitem.js.map +1 -1
- package/sdk/models/shared/commercelocation.d.ts +6 -23
- package/sdk/models/shared/commercelocation.d.ts.map +1 -1
- package/sdk/models/shared/commercelocation.js +3 -26
- package/sdk/models/shared/commercelocation.js.map +1 -1
- package/sdk/models/shared/crmcompany.d.ts +6 -23
- package/sdk/models/shared/crmcompany.d.ts.map +1 -1
- package/sdk/models/shared/crmcompany.js +3 -26
- package/sdk/models/shared/crmcompany.js.map +1 -1
- package/sdk/models/shared/crmcontact.d.ts +6 -23
- package/sdk/models/shared/crmcontact.d.ts.map +1 -1
- package/sdk/models/shared/crmcontact.js +3 -26
- package/sdk/models/shared/crmcontact.js.map +1 -1
- package/sdk/models/shared/crmdeal.d.ts +6 -23
- package/sdk/models/shared/crmdeal.d.ts.map +1 -1
- package/sdk/models/shared/crmdeal.js +3 -26
- package/sdk/models/shared/crmdeal.js.map +1 -1
- package/sdk/models/shared/crmevent.d.ts +6 -23
- package/sdk/models/shared/crmevent.d.ts.map +1 -1
- package/sdk/models/shared/crmevent.js +3 -26
- package/sdk/models/shared/crmevent.js.map +1 -1
- package/sdk/models/shared/crmlead.d.ts +6 -23
- package/sdk/models/shared/crmlead.d.ts.map +1 -1
- package/sdk/models/shared/crmlead.js +3 -26
- package/sdk/models/shared/crmlead.js.map +1 -1
- package/sdk/models/shared/crmpipeline.d.ts +6 -23
- package/sdk/models/shared/crmpipeline.d.ts.map +1 -1
- package/sdk/models/shared/crmpipeline.js +3 -26
- package/sdk/models/shared/crmpipeline.js.map +1 -1
- package/sdk/models/shared/hriscompany.d.ts +6 -23
- package/sdk/models/shared/hriscompany.d.ts.map +1 -1
- package/sdk/models/shared/hriscompany.js +3 -26
- package/sdk/models/shared/hriscompany.js.map +1 -1
- package/sdk/models/shared/hrisemployee.d.ts +6 -23
- package/sdk/models/shared/hrisemployee.d.ts.map +1 -1
- package/sdk/models/shared/hrisemployee.js +3 -26
- package/sdk/models/shared/hrisemployee.js.map +1 -1
- package/sdk/models/shared/hrisgroup.d.ts +6 -23
- package/sdk/models/shared/hrisgroup.d.ts.map +1 -1
- package/sdk/models/shared/hrisgroup.js +3 -26
- package/sdk/models/shared/hrisgroup.js.map +1 -1
- package/sdk/models/shared/hrislocation.d.ts +6 -23
- package/sdk/models/shared/hrislocation.d.ts.map +1 -1
- package/sdk/models/shared/hrislocation.js +3 -26
- package/sdk/models/shared/hrislocation.js.map +1 -1
- package/sdk/models/shared/hrispayslip.d.ts +6 -23
- package/sdk/models/shared/hrispayslip.d.ts.map +1 -1
- package/sdk/models/shared/hrispayslip.js +3 -26
- package/sdk/models/shared/hrispayslip.js.map +1 -1
- package/sdk/models/shared/hristimeoff.d.ts +6 -23
- package/sdk/models/shared/hristimeoff.d.ts.map +1 -1
- package/sdk/models/shared/hristimeoff.js +3 -26
- package/sdk/models/shared/hristimeoff.js.map +1 -1
- package/sdk/models/shared/kmscomment.d.ts +3 -3
- package/sdk/models/shared/kmscomment.js +1 -1
- package/sdk/models/shared/metadatametadata.d.ts +6 -23
- package/sdk/models/shared/metadatametadata.d.ts.map +1 -1
- package/sdk/models/shared/metadatametadata.js +3 -26
- package/sdk/models/shared/metadatametadata.js.map +1 -1
- package/src/lib/config.ts +6 -2
- package/src/sdk/models/shared/accountingaccount.ts +4 -44
- package/src/sdk/models/shared/accountingcontact.ts +4 -54
- package/src/sdk/models/shared/accountinginvoice.ts +4 -54
- package/src/sdk/models/shared/accountingjournal.ts +4 -54
- package/src/sdk/models/shared/accountingorder.ts +4 -54
- package/src/sdk/models/shared/accountingorganization.ts +4 -54
- package/src/sdk/models/shared/accountingreport.ts +4 -54
- package/src/sdk/models/shared/accountingtaxrate.ts +4 -54
- package/src/sdk/models/shared/accountingtransaction.ts +4 -54
- package/src/sdk/models/shared/atsactivity.ts +4 -50
- package/src/sdk/models/shared/atsapplication.ts +4 -54
- package/src/sdk/models/shared/atscandidate.ts +4 -52
- package/src/sdk/models/shared/atscompany.ts +4 -50
- package/src/sdk/models/shared/atsdocument.ts +4 -50
- package/src/sdk/models/shared/atsinterview.ts +4 -52
- package/src/sdk/models/shared/atsjob.ts +4 -50
- package/src/sdk/models/shared/atsoffer.ts +4 -50
- package/src/sdk/models/shared/atsscorecard.ts +4 -52
- package/src/sdk/models/shared/atsstatus.ts +4 -50
- package/src/sdk/models/shared/calendarbusy.ts +4 -52
- package/src/sdk/models/shared/calendarcalendar.ts +4 -54
- package/src/sdk/models/shared/calendarevent.ts +4 -54
- package/src/sdk/models/shared/calendarlink.ts +4 -52
- package/src/sdk/models/shared/calendarrecording.ts +4 -54
- package/src/sdk/models/shared/commercecollection.ts +4 -54
- package/src/sdk/models/shared/commerceinventory.ts +4 -54
- package/src/sdk/models/shared/commerceitem.ts +4 -52
- package/src/sdk/models/shared/commercelocation.ts +4 -54
- package/src/sdk/models/shared/crmcompany.ts +4 -50
- package/src/sdk/models/shared/crmcontact.ts +4 -50
- package/src/sdk/models/shared/crmdeal.ts +4 -50
- package/src/sdk/models/shared/crmevent.ts +4 -50
- package/src/sdk/models/shared/crmlead.ts +4 -50
- package/src/sdk/models/shared/crmpipeline.ts +4 -50
- package/src/sdk/models/shared/hriscompany.ts +4 -50
- package/src/sdk/models/shared/hrisemployee.ts +4 -52
- package/src/sdk/models/shared/hrisgroup.ts +4 -50
- package/src/sdk/models/shared/hrislocation.ts +4 -52
- package/src/sdk/models/shared/hrispayslip.ts +4 -50
- package/src/sdk/models/shared/hristimeoff.ts +4 -50
- package/src/sdk/models/shared/kmscomment.ts +1 -1
- package/src/sdk/models/shared/metadatametadata.ts +4 -54
|
@@ -27,8 +27,6 @@ import {
|
|
|
27
27
|
AtsOffer$outboundSchema,
|
|
28
28
|
} from "./atsoffer.js";
|
|
29
29
|
|
|
30
|
-
export type AtsApplicationRaw = {};
|
|
31
|
-
|
|
32
30
|
export const AtsApplicationStatus = {
|
|
33
31
|
New: "NEW",
|
|
34
32
|
Reviewing: "REVIEWING",
|
|
@@ -58,7 +56,7 @@ export type AtsApplication = {
|
|
|
58
56
|
metadata?: Array<AtsMetadata> | undefined;
|
|
59
57
|
offers?: Array<AtsOffer> | undefined;
|
|
60
58
|
originalStatus?: string | undefined;
|
|
61
|
-
raw?:
|
|
59
|
+
raw?: { [k: string]: any } | undefined;
|
|
62
60
|
rejectedAt?: Date | undefined;
|
|
63
61
|
rejectedReason?: string | undefined;
|
|
64
62
|
source?: string | undefined;
|
|
@@ -66,54 +64,6 @@ export type AtsApplication = {
|
|
|
66
64
|
updatedAt?: Date | undefined;
|
|
67
65
|
};
|
|
68
66
|
|
|
69
|
-
/** @internal */
|
|
70
|
-
export const AtsApplicationRaw$inboundSchema: z.ZodType<
|
|
71
|
-
AtsApplicationRaw,
|
|
72
|
-
z.ZodTypeDef,
|
|
73
|
-
unknown
|
|
74
|
-
> = z.object({});
|
|
75
|
-
|
|
76
|
-
/** @internal */
|
|
77
|
-
export type AtsApplicationRaw$Outbound = {};
|
|
78
|
-
|
|
79
|
-
/** @internal */
|
|
80
|
-
export const AtsApplicationRaw$outboundSchema: z.ZodType<
|
|
81
|
-
AtsApplicationRaw$Outbound,
|
|
82
|
-
z.ZodTypeDef,
|
|
83
|
-
AtsApplicationRaw
|
|
84
|
-
> = z.object({});
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @internal
|
|
88
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
89
|
-
*/
|
|
90
|
-
export namespace AtsApplicationRaw$ {
|
|
91
|
-
/** @deprecated use `AtsApplicationRaw$inboundSchema` instead. */
|
|
92
|
-
export const inboundSchema = AtsApplicationRaw$inboundSchema;
|
|
93
|
-
/** @deprecated use `AtsApplicationRaw$outboundSchema` instead. */
|
|
94
|
-
export const outboundSchema = AtsApplicationRaw$outboundSchema;
|
|
95
|
-
/** @deprecated use `AtsApplicationRaw$Outbound` instead. */
|
|
96
|
-
export type Outbound = AtsApplicationRaw$Outbound;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export function atsApplicationRawToJSON(
|
|
100
|
-
atsApplicationRaw: AtsApplicationRaw,
|
|
101
|
-
): string {
|
|
102
|
-
return JSON.stringify(
|
|
103
|
-
AtsApplicationRaw$outboundSchema.parse(atsApplicationRaw),
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export function atsApplicationRawFromJSON(
|
|
108
|
-
jsonString: string,
|
|
109
|
-
): SafeParseResult<AtsApplicationRaw, SDKValidationError> {
|
|
110
|
-
return safeParse(
|
|
111
|
-
jsonString,
|
|
112
|
-
(x) => AtsApplicationRaw$inboundSchema.parse(JSON.parse(x)),
|
|
113
|
-
`Failed to parse 'AtsApplicationRaw' from JSON`,
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
67
|
/** @internal */
|
|
118
68
|
export const AtsApplicationStatus$inboundSchema: z.ZodNativeEnum<
|
|
119
69
|
typeof AtsApplicationStatus
|
|
@@ -154,7 +104,7 @@ export const AtsApplication$inboundSchema: z.ZodType<
|
|
|
154
104
|
metadata: z.array(AtsMetadata$inboundSchema).optional(),
|
|
155
105
|
offers: z.array(AtsOffer$inboundSchema).optional(),
|
|
156
106
|
original_status: z.string().optional(),
|
|
157
|
-
raw: z.
|
|
107
|
+
raw: z.record(z.any()).optional(),
|
|
158
108
|
rejected_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
159
109
|
.optional(),
|
|
160
110
|
rejected_reason: z.string().optional(),
|
|
@@ -188,7 +138,7 @@ export type AtsApplication$Outbound = {
|
|
|
188
138
|
metadata?: Array<AtsMetadata$Outbound> | undefined;
|
|
189
139
|
offers?: Array<AtsOffer$Outbound> | undefined;
|
|
190
140
|
original_status?: string | undefined;
|
|
191
|
-
raw?:
|
|
141
|
+
raw?: { [k: string]: any } | undefined;
|
|
192
142
|
rejected_at?: string | undefined;
|
|
193
143
|
rejected_reason?: string | undefined;
|
|
194
144
|
source?: string | undefined;
|
|
@@ -212,7 +162,7 @@ export const AtsApplication$outboundSchema: z.ZodType<
|
|
|
212
162
|
metadata: z.array(AtsMetadata$outboundSchema).optional(),
|
|
213
163
|
offers: z.array(AtsOffer$outboundSchema).optional(),
|
|
214
164
|
originalStatus: z.string().optional(),
|
|
215
|
-
raw: z.
|
|
165
|
+
raw: z.record(z.any()).optional(),
|
|
216
166
|
rejectedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
217
167
|
rejectedReason: z.string().optional(),
|
|
218
168
|
source: z.string().optional(),
|
|
@@ -55,8 +55,6 @@ export const Origin = {
|
|
|
55
55
|
} as const;
|
|
56
56
|
export type Origin = ClosedEnum<typeof Origin>;
|
|
57
57
|
|
|
58
|
-
export type AtsCandidateRaw = {};
|
|
59
|
-
|
|
60
58
|
export type AtsCandidate = {
|
|
61
59
|
address?: PropertyAtsCandidateAddress | undefined;
|
|
62
60
|
companyId?: string | undefined;
|
|
@@ -76,7 +74,7 @@ export type AtsCandidate = {
|
|
|
76
74
|
metadata?: Array<AtsMetadata> | undefined;
|
|
77
75
|
name?: string | undefined;
|
|
78
76
|
origin?: Origin | undefined;
|
|
79
|
-
raw?:
|
|
77
|
+
raw?: { [k: string]: any } | undefined;
|
|
80
78
|
skills?: Array<string> | undefined;
|
|
81
79
|
sources?: Array<string> | undefined;
|
|
82
80
|
tags?: Array<string> | undefined;
|
|
@@ -106,52 +104,6 @@ export namespace Origin$ {
|
|
|
106
104
|
export const outboundSchema = Origin$outboundSchema;
|
|
107
105
|
}
|
|
108
106
|
|
|
109
|
-
/** @internal */
|
|
110
|
-
export const AtsCandidateRaw$inboundSchema: z.ZodType<
|
|
111
|
-
AtsCandidateRaw,
|
|
112
|
-
z.ZodTypeDef,
|
|
113
|
-
unknown
|
|
114
|
-
> = z.object({});
|
|
115
|
-
|
|
116
|
-
/** @internal */
|
|
117
|
-
export type AtsCandidateRaw$Outbound = {};
|
|
118
|
-
|
|
119
|
-
/** @internal */
|
|
120
|
-
export const AtsCandidateRaw$outboundSchema: z.ZodType<
|
|
121
|
-
AtsCandidateRaw$Outbound,
|
|
122
|
-
z.ZodTypeDef,
|
|
123
|
-
AtsCandidateRaw
|
|
124
|
-
> = z.object({});
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* @internal
|
|
128
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
129
|
-
*/
|
|
130
|
-
export namespace AtsCandidateRaw$ {
|
|
131
|
-
/** @deprecated use `AtsCandidateRaw$inboundSchema` instead. */
|
|
132
|
-
export const inboundSchema = AtsCandidateRaw$inboundSchema;
|
|
133
|
-
/** @deprecated use `AtsCandidateRaw$outboundSchema` instead. */
|
|
134
|
-
export const outboundSchema = AtsCandidateRaw$outboundSchema;
|
|
135
|
-
/** @deprecated use `AtsCandidateRaw$Outbound` instead. */
|
|
136
|
-
export type Outbound = AtsCandidateRaw$Outbound;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export function atsCandidateRawToJSON(
|
|
140
|
-
atsCandidateRaw: AtsCandidateRaw,
|
|
141
|
-
): string {
|
|
142
|
-
return JSON.stringify(AtsCandidateRaw$outboundSchema.parse(atsCandidateRaw));
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export function atsCandidateRawFromJSON(
|
|
146
|
-
jsonString: string,
|
|
147
|
-
): SafeParseResult<AtsCandidateRaw, SDKValidationError> {
|
|
148
|
-
return safeParse(
|
|
149
|
-
jsonString,
|
|
150
|
-
(x) => AtsCandidateRaw$inboundSchema.parse(JSON.parse(x)),
|
|
151
|
-
`Failed to parse 'AtsCandidateRaw' from JSON`,
|
|
152
|
-
);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
107
|
/** @internal */
|
|
156
108
|
export const AtsCandidate$inboundSchema: z.ZodType<
|
|
157
109
|
AtsCandidate,
|
|
@@ -176,7 +128,7 @@ export const AtsCandidate$inboundSchema: z.ZodType<
|
|
|
176
128
|
metadata: z.array(AtsMetadata$inboundSchema).optional(),
|
|
177
129
|
name: z.string().optional(),
|
|
178
130
|
origin: Origin$inboundSchema.optional(),
|
|
179
|
-
raw: z.
|
|
131
|
+
raw: z.record(z.any()).optional(),
|
|
180
132
|
skills: z.array(z.string()).optional(),
|
|
181
133
|
sources: z.array(z.string()).optional(),
|
|
182
134
|
tags: z.array(z.string()).optional(),
|
|
@@ -218,7 +170,7 @@ export type AtsCandidate$Outbound = {
|
|
|
218
170
|
metadata?: Array<AtsMetadata$Outbound> | undefined;
|
|
219
171
|
name?: string | undefined;
|
|
220
172
|
origin?: string | undefined;
|
|
221
|
-
raw?:
|
|
173
|
+
raw?: { [k: string]: any } | undefined;
|
|
222
174
|
skills?: Array<string> | undefined;
|
|
223
175
|
sources?: Array<string> | undefined;
|
|
224
176
|
tags?: Array<string> | undefined;
|
|
@@ -250,7 +202,7 @@ export const AtsCandidate$outboundSchema: z.ZodType<
|
|
|
250
202
|
metadata: z.array(AtsMetadata$outboundSchema).optional(),
|
|
251
203
|
name: z.string().optional(),
|
|
252
204
|
origin: Origin$outboundSchema.optional(),
|
|
253
|
-
raw: z.
|
|
205
|
+
raw: z.record(z.any()).optional(),
|
|
254
206
|
skills: z.array(z.string()).optional(),
|
|
255
207
|
sources: z.array(z.string()).optional(),
|
|
256
208
|
tags: z.array(z.string()).optional(),
|
|
@@ -20,8 +20,6 @@ import {
|
|
|
20
20
|
PropertyAtsCompanyAddress$outboundSchema,
|
|
21
21
|
} from "./propertyatscompanyaddress.js";
|
|
22
22
|
|
|
23
|
-
export type AtsCompanyRaw = {};
|
|
24
|
-
|
|
25
23
|
export type AtsCompany = {
|
|
26
24
|
address?: PropertyAtsCompanyAddress | undefined;
|
|
27
25
|
createdAt?: Date | undefined;
|
|
@@ -30,56 +28,12 @@ export type AtsCompany = {
|
|
|
30
28
|
name: string;
|
|
31
29
|
parentId?: string | undefined;
|
|
32
30
|
phone?: string | undefined;
|
|
33
|
-
raw?:
|
|
31
|
+
raw?: { [k: string]: any } | undefined;
|
|
34
32
|
recruiterIds?: Array<string> | undefined;
|
|
35
33
|
updatedAt?: Date | undefined;
|
|
36
34
|
websiteUrl?: string | undefined;
|
|
37
35
|
};
|
|
38
36
|
|
|
39
|
-
/** @internal */
|
|
40
|
-
export const AtsCompanyRaw$inboundSchema: z.ZodType<
|
|
41
|
-
AtsCompanyRaw,
|
|
42
|
-
z.ZodTypeDef,
|
|
43
|
-
unknown
|
|
44
|
-
> = z.object({});
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export type AtsCompanyRaw$Outbound = {};
|
|
48
|
-
|
|
49
|
-
/** @internal */
|
|
50
|
-
export const AtsCompanyRaw$outboundSchema: z.ZodType<
|
|
51
|
-
AtsCompanyRaw$Outbound,
|
|
52
|
-
z.ZodTypeDef,
|
|
53
|
-
AtsCompanyRaw
|
|
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 AtsCompanyRaw$ {
|
|
61
|
-
/** @deprecated use `AtsCompanyRaw$inboundSchema` instead. */
|
|
62
|
-
export const inboundSchema = AtsCompanyRaw$inboundSchema;
|
|
63
|
-
/** @deprecated use `AtsCompanyRaw$outboundSchema` instead. */
|
|
64
|
-
export const outboundSchema = AtsCompanyRaw$outboundSchema;
|
|
65
|
-
/** @deprecated use `AtsCompanyRaw$Outbound` instead. */
|
|
66
|
-
export type Outbound = AtsCompanyRaw$Outbound;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function atsCompanyRawToJSON(atsCompanyRaw: AtsCompanyRaw): string {
|
|
70
|
-
return JSON.stringify(AtsCompanyRaw$outboundSchema.parse(atsCompanyRaw));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function atsCompanyRawFromJSON(
|
|
74
|
-
jsonString: string,
|
|
75
|
-
): SafeParseResult<AtsCompanyRaw, SDKValidationError> {
|
|
76
|
-
return safeParse(
|
|
77
|
-
jsonString,
|
|
78
|
-
(x) => AtsCompanyRaw$inboundSchema.parse(JSON.parse(x)),
|
|
79
|
-
`Failed to parse 'AtsCompanyRaw' from JSON`,
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
37
|
/** @internal */
|
|
84
38
|
export const AtsCompany$inboundSchema: z.ZodType<
|
|
85
39
|
AtsCompany,
|
|
@@ -94,7 +48,7 @@ export const AtsCompany$inboundSchema: z.ZodType<
|
|
|
94
48
|
name: z.string(),
|
|
95
49
|
parent_id: z.string().optional(),
|
|
96
50
|
phone: z.string().optional(),
|
|
97
|
-
raw: z.
|
|
51
|
+
raw: z.record(z.any()).optional(),
|
|
98
52
|
recruiter_ids: z.array(z.string()).optional(),
|
|
99
53
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
100
54
|
.optional(),
|
|
@@ -118,7 +72,7 @@ export type AtsCompany$Outbound = {
|
|
|
118
72
|
name: string;
|
|
119
73
|
parent_id?: string | undefined;
|
|
120
74
|
phone?: string | undefined;
|
|
121
|
-
raw?:
|
|
75
|
+
raw?: { [k: string]: any } | undefined;
|
|
122
76
|
recruiter_ids?: Array<string> | undefined;
|
|
123
77
|
updated_at?: string | undefined;
|
|
124
78
|
website_url?: string | undefined;
|
|
@@ -137,7 +91,7 @@ export const AtsCompany$outboundSchema: z.ZodType<
|
|
|
137
91
|
name: z.string(),
|
|
138
92
|
parentId: z.string().optional(),
|
|
139
93
|
phone: z.string().optional(),
|
|
140
|
-
raw: z.
|
|
94
|
+
raw: z.record(z.any()).optional(),
|
|
141
95
|
recruiterIds: z.array(z.string()).optional(),
|
|
142
96
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
143
97
|
websiteUrl: z.string().optional(),
|
|
@@ -9,8 +9,6 @@ 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
|
-
|
|
14
12
|
export const AtsDocumentType = {
|
|
15
13
|
Resume: "RESUME",
|
|
16
14
|
CoverLetter: "COVER_LETTER",
|
|
@@ -30,56 +28,12 @@ export type AtsDocument = {
|
|
|
30
28
|
filename?: string | undefined;
|
|
31
29
|
id?: string | undefined;
|
|
32
30
|
jobId?: string | undefined;
|
|
33
|
-
raw?:
|
|
31
|
+
raw?: { [k: string]: any } | undefined;
|
|
34
32
|
type?: AtsDocumentType | undefined;
|
|
35
33
|
updatedAt?: Date | undefined;
|
|
36
34
|
userId?: string | undefined;
|
|
37
35
|
};
|
|
38
36
|
|
|
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
|
-
|
|
83
37
|
/** @internal */
|
|
84
38
|
export const AtsDocumentType$inboundSchema: z.ZodNativeEnum<
|
|
85
39
|
typeof AtsDocumentType
|
|
@@ -116,7 +70,7 @@ export const AtsDocument$inboundSchema: z.ZodType<
|
|
|
116
70
|
filename: z.string().optional(),
|
|
117
71
|
id: z.string().optional(),
|
|
118
72
|
job_id: z.string().optional(),
|
|
119
|
-
raw: z.
|
|
73
|
+
raw: z.record(z.any()).optional(),
|
|
120
74
|
type: AtsDocumentType$inboundSchema.optional(),
|
|
121
75
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
122
76
|
.optional(),
|
|
@@ -144,7 +98,7 @@ export type AtsDocument$Outbound = {
|
|
|
144
98
|
filename?: string | undefined;
|
|
145
99
|
id?: string | undefined;
|
|
146
100
|
job_id?: string | undefined;
|
|
147
|
-
raw?:
|
|
101
|
+
raw?: { [k: string]: any } | undefined;
|
|
148
102
|
type?: string | undefined;
|
|
149
103
|
updated_at?: string | undefined;
|
|
150
104
|
user_id?: string | undefined;
|
|
@@ -164,7 +118,7 @@ export const AtsDocument$outboundSchema: z.ZodType<
|
|
|
164
118
|
filename: z.string().optional(),
|
|
165
119
|
id: z.string().optional(),
|
|
166
120
|
jobId: z.string().optional(),
|
|
167
|
-
raw: z.
|
|
121
|
+
raw: z.record(z.any()).optional(),
|
|
168
122
|
type: AtsDocumentType$outboundSchema.optional(),
|
|
169
123
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
170
124
|
userId: z.string().optional(),
|
|
@@ -9,8 +9,6 @@ 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
|
-
|
|
14
12
|
export const AtsInterviewStatus = {
|
|
15
13
|
Scheduled: "SCHEDULED",
|
|
16
14
|
AwaitingFeedback: "AWAITING_FEEDBACK",
|
|
@@ -29,59 +27,13 @@ export type AtsInterview = {
|
|
|
29
27
|
id?: string | undefined;
|
|
30
28
|
jobId?: string | undefined;
|
|
31
29
|
location?: string | undefined;
|
|
32
|
-
raw?:
|
|
30
|
+
raw?: { [k: string]: any } | undefined;
|
|
33
31
|
startAt?: Date | undefined;
|
|
34
32
|
status?: AtsInterviewStatus | undefined;
|
|
35
33
|
updatedAt?: Date | undefined;
|
|
36
34
|
userIds?: Array<string> | undefined;
|
|
37
35
|
};
|
|
38
36
|
|
|
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
|
-
|
|
85
37
|
/** @internal */
|
|
86
38
|
export const AtsInterviewStatus$inboundSchema: z.ZodNativeEnum<
|
|
87
39
|
typeof AtsInterviewStatus
|
|
@@ -119,7 +71,7 @@ export const AtsInterview$inboundSchema: z.ZodType<
|
|
|
119
71
|
id: z.string().optional(),
|
|
120
72
|
job_id: z.string().optional(),
|
|
121
73
|
location: z.string().optional(),
|
|
122
|
-
raw: z.
|
|
74
|
+
raw: z.record(z.any()).optional(),
|
|
123
75
|
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
124
76
|
.optional(),
|
|
125
77
|
status: AtsInterviewStatus$inboundSchema.optional(),
|
|
@@ -150,7 +102,7 @@ export type AtsInterview$Outbound = {
|
|
|
150
102
|
id?: string | undefined;
|
|
151
103
|
job_id?: string | undefined;
|
|
152
104
|
location?: string | undefined;
|
|
153
|
-
raw?:
|
|
105
|
+
raw?: { [k: string]: any } | undefined;
|
|
154
106
|
start_at?: string | undefined;
|
|
155
107
|
status?: string | undefined;
|
|
156
108
|
updated_at?: string | undefined;
|
|
@@ -171,7 +123,7 @@ export const AtsInterview$outboundSchema: z.ZodType<
|
|
|
171
123
|
id: z.string().optional(),
|
|
172
124
|
jobId: z.string().optional(),
|
|
173
125
|
location: z.string().optional(),
|
|
174
|
-
raw: z.
|
|
126
|
+
raw: z.record(z.any()).optional(),
|
|
175
127
|
startAt: z.date().transform(v => v.toISOString()).optional(),
|
|
176
128
|
status: AtsInterviewStatus$outboundSchema.optional(),
|
|
177
129
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -59,8 +59,6 @@ export const EmploymentType = {
|
|
|
59
59
|
} as const;
|
|
60
60
|
export type EmploymentType = ClosedEnum<typeof EmploymentType>;
|
|
61
61
|
|
|
62
|
-
export type AtsJobRaw = {};
|
|
63
|
-
|
|
64
62
|
export const AtsJobStatus = {
|
|
65
63
|
Archived: "ARCHIVED",
|
|
66
64
|
Pending: "PENDING",
|
|
@@ -101,7 +99,7 @@ export type AtsJob = {
|
|
|
101
99
|
*/
|
|
102
100
|
publicJobUrls?: Array<string> | undefined;
|
|
103
101
|
questions?: Array<AtsJobQuestion> | undefined;
|
|
104
|
-
raw?:
|
|
102
|
+
raw?: { [k: string]: any } | undefined;
|
|
105
103
|
recruiterIds?: Array<string> | undefined;
|
|
106
104
|
remote?: boolean | undefined;
|
|
107
105
|
status?: AtsJobStatus | undefined;
|
|
@@ -129,50 +127,6 @@ export namespace EmploymentType$ {
|
|
|
129
127
|
export const outboundSchema = EmploymentType$outboundSchema;
|
|
130
128
|
}
|
|
131
129
|
|
|
132
|
-
/** @internal */
|
|
133
|
-
export const AtsJobRaw$inboundSchema: z.ZodType<
|
|
134
|
-
AtsJobRaw,
|
|
135
|
-
z.ZodTypeDef,
|
|
136
|
-
unknown
|
|
137
|
-
> = z.object({});
|
|
138
|
-
|
|
139
|
-
/** @internal */
|
|
140
|
-
export type AtsJobRaw$Outbound = {};
|
|
141
|
-
|
|
142
|
-
/** @internal */
|
|
143
|
-
export const AtsJobRaw$outboundSchema: z.ZodType<
|
|
144
|
-
AtsJobRaw$Outbound,
|
|
145
|
-
z.ZodTypeDef,
|
|
146
|
-
AtsJobRaw
|
|
147
|
-
> = z.object({});
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* @internal
|
|
151
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
152
|
-
*/
|
|
153
|
-
export namespace AtsJobRaw$ {
|
|
154
|
-
/** @deprecated use `AtsJobRaw$inboundSchema` instead. */
|
|
155
|
-
export const inboundSchema = AtsJobRaw$inboundSchema;
|
|
156
|
-
/** @deprecated use `AtsJobRaw$outboundSchema` instead. */
|
|
157
|
-
export const outboundSchema = AtsJobRaw$outboundSchema;
|
|
158
|
-
/** @deprecated use `AtsJobRaw$Outbound` instead. */
|
|
159
|
-
export type Outbound = AtsJobRaw$Outbound;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
export function atsJobRawToJSON(atsJobRaw: AtsJobRaw): string {
|
|
163
|
-
return JSON.stringify(AtsJobRaw$outboundSchema.parse(atsJobRaw));
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export function atsJobRawFromJSON(
|
|
167
|
-
jsonString: string,
|
|
168
|
-
): SafeParseResult<AtsJobRaw, SDKValidationError> {
|
|
169
|
-
return safeParse(
|
|
170
|
-
jsonString,
|
|
171
|
-
(x) => AtsJobRaw$inboundSchema.parse(JSON.parse(x)),
|
|
172
|
-
`Failed to parse 'AtsJobRaw' from JSON`,
|
|
173
|
-
);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
130
|
/** @internal */
|
|
177
131
|
export const AtsJobStatus$inboundSchema: z.ZodNativeEnum<typeof AtsJobStatus> =
|
|
178
132
|
z.nativeEnum(AtsJobStatus);
|
|
@@ -216,7 +170,7 @@ export const AtsJob$inboundSchema: z.ZodType<AtsJob, z.ZodTypeDef, unknown> = z
|
|
|
216
170
|
postings: z.array(AtsJobPosting$inboundSchema).optional(),
|
|
217
171
|
public_job_urls: z.array(z.string()).optional(),
|
|
218
172
|
questions: z.array(AtsJobQuestion$inboundSchema).optional(),
|
|
219
|
-
raw: z.
|
|
173
|
+
raw: z.record(z.any()).optional(),
|
|
220
174
|
recruiter_ids: z.array(z.string()).optional(),
|
|
221
175
|
remote: z.boolean().optional(),
|
|
222
176
|
status: AtsJobStatus$inboundSchema.optional(),
|
|
@@ -258,7 +212,7 @@ export type AtsJob$Outbound = {
|
|
|
258
212
|
postings?: Array<AtsJobPosting$Outbound> | undefined;
|
|
259
213
|
public_job_urls?: Array<string> | undefined;
|
|
260
214
|
questions?: Array<AtsJobQuestion$Outbound> | undefined;
|
|
261
|
-
raw?:
|
|
215
|
+
raw?: { [k: string]: any } | undefined;
|
|
262
216
|
recruiter_ids?: Array<string> | undefined;
|
|
263
217
|
remote?: boolean | undefined;
|
|
264
218
|
status?: string | undefined;
|
|
@@ -289,7 +243,7 @@ export const AtsJob$outboundSchema: z.ZodType<
|
|
|
289
243
|
postings: z.array(AtsJobPosting$outboundSchema).optional(),
|
|
290
244
|
publicJobUrls: z.array(z.string()).optional(),
|
|
291
245
|
questions: z.array(AtsJobQuestion$outboundSchema).optional(),
|
|
292
|
-
raw: z.
|
|
246
|
+
raw: z.record(z.any()).optional(),
|
|
293
247
|
recruiterIds: z.array(z.string()).optional(),
|
|
294
248
|
remote: z.boolean().optional(),
|
|
295
249
|
status: AtsJobStatus$outboundSchema.optional(),
|
|
@@ -15,8 +15,6 @@ import {
|
|
|
15
15
|
AtsCompensation$outboundSchema,
|
|
16
16
|
} from "./atscompensation.js";
|
|
17
17
|
|
|
18
|
-
export type AtsOfferRaw = {};
|
|
19
|
-
|
|
20
18
|
export const AtsOfferStatus = {
|
|
21
19
|
Created: "CREATED",
|
|
22
20
|
Sent: "SENT",
|
|
@@ -35,7 +33,7 @@ export type AtsOffer = {
|
|
|
35
33
|
creatorUserId?: string | undefined;
|
|
36
34
|
employeeUserId?: string | undefined;
|
|
37
35
|
id?: string | undefined;
|
|
38
|
-
raw?:
|
|
36
|
+
raw?: { [k: string]: any } | undefined;
|
|
39
37
|
rejectedAt?: Date | undefined;
|
|
40
38
|
sentAt?: Date | undefined;
|
|
41
39
|
startAt?: Date | undefined;
|
|
@@ -43,50 +41,6 @@ export type AtsOffer = {
|
|
|
43
41
|
updatedAt?: Date | undefined;
|
|
44
42
|
};
|
|
45
43
|
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const AtsOfferRaw$inboundSchema: z.ZodType<
|
|
48
|
-
AtsOfferRaw,
|
|
49
|
-
z.ZodTypeDef,
|
|
50
|
-
unknown
|
|
51
|
-
> = z.object({});
|
|
52
|
-
|
|
53
|
-
/** @internal */
|
|
54
|
-
export type AtsOfferRaw$Outbound = {};
|
|
55
|
-
|
|
56
|
-
/** @internal */
|
|
57
|
-
export const AtsOfferRaw$outboundSchema: z.ZodType<
|
|
58
|
-
AtsOfferRaw$Outbound,
|
|
59
|
-
z.ZodTypeDef,
|
|
60
|
-
AtsOfferRaw
|
|
61
|
-
> = z.object({});
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
-
*/
|
|
67
|
-
export namespace AtsOfferRaw$ {
|
|
68
|
-
/** @deprecated use `AtsOfferRaw$inboundSchema` instead. */
|
|
69
|
-
export const inboundSchema = AtsOfferRaw$inboundSchema;
|
|
70
|
-
/** @deprecated use `AtsOfferRaw$outboundSchema` instead. */
|
|
71
|
-
export const outboundSchema = AtsOfferRaw$outboundSchema;
|
|
72
|
-
/** @deprecated use `AtsOfferRaw$Outbound` instead. */
|
|
73
|
-
export type Outbound = AtsOfferRaw$Outbound;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function atsOfferRawToJSON(atsOfferRaw: AtsOfferRaw): string {
|
|
77
|
-
return JSON.stringify(AtsOfferRaw$outboundSchema.parse(atsOfferRaw));
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function atsOfferRawFromJSON(
|
|
81
|
-
jsonString: string,
|
|
82
|
-
): SafeParseResult<AtsOfferRaw, SDKValidationError> {
|
|
83
|
-
return safeParse(
|
|
84
|
-
jsonString,
|
|
85
|
-
(x) => AtsOfferRaw$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
-
`Failed to parse 'AtsOfferRaw' from JSON`,
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
44
|
/** @internal */
|
|
91
45
|
export const AtsOfferStatus$inboundSchema: z.ZodNativeEnum<
|
|
92
46
|
typeof AtsOfferStatus
|
|
@@ -122,7 +76,7 @@ export const AtsOffer$inboundSchema: z.ZodType<
|
|
|
122
76
|
creator_user_id: z.string().optional(),
|
|
123
77
|
employee_user_id: z.string().optional(),
|
|
124
78
|
id: z.string().optional(),
|
|
125
|
-
raw: z.
|
|
79
|
+
raw: z.record(z.any()).optional(),
|
|
126
80
|
rejected_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
127
81
|
.optional(),
|
|
128
82
|
sent_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -153,7 +107,7 @@ export type AtsOffer$Outbound = {
|
|
|
153
107
|
creator_user_id?: string | undefined;
|
|
154
108
|
employee_user_id?: string | undefined;
|
|
155
109
|
id?: string | undefined;
|
|
156
|
-
raw?:
|
|
110
|
+
raw?: { [k: string]: any } | undefined;
|
|
157
111
|
rejected_at?: string | undefined;
|
|
158
112
|
sent_at?: string | undefined;
|
|
159
113
|
start_at?: string | undefined;
|
|
@@ -173,7 +127,7 @@ export const AtsOffer$outboundSchema: z.ZodType<
|
|
|
173
127
|
creatorUserId: z.string().optional(),
|
|
174
128
|
employeeUserId: z.string().optional(),
|
|
175
129
|
id: z.string().optional(),
|
|
176
|
-
raw: z.
|
|
130
|
+
raw: z.record(z.any()).optional(),
|
|
177
131
|
rejectedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
178
132
|
sentAt: z.date().transform(v => v.toISOString()).optional(),
|
|
179
133
|
startAt: z.date().transform(v => v.toISOString()).optional(),
|