@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
|
@@ -3,28 +3,194 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
AtsCompensation,
|
|
13
|
+
AtsCompensation$inboundSchema,
|
|
14
|
+
AtsCompensation$Outbound,
|
|
15
|
+
AtsCompensation$outboundSchema,
|
|
16
|
+
} from "./atscompensation.js";
|
|
9
17
|
|
|
10
|
-
export type
|
|
18
|
+
export type AtsOfferRaw = {};
|
|
19
|
+
|
|
20
|
+
export const AtsOfferStatus = {
|
|
21
|
+
Created: "CREATED",
|
|
22
|
+
Sent: "SENT",
|
|
23
|
+
Accepted: "ACCEPTED",
|
|
24
|
+
Rejected: "REJECTED",
|
|
25
|
+
} as const;
|
|
26
|
+
export type AtsOfferStatus = ClosedEnum<typeof AtsOfferStatus>;
|
|
27
|
+
|
|
28
|
+
export type AtsOffer = {
|
|
29
|
+
acceptedAt?: Date | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* compensation details for the offer
|
|
32
|
+
*/
|
|
33
|
+
compensation?: Array<AtsCompensation> | undefined;
|
|
34
|
+
createdAt?: Date | undefined;
|
|
35
|
+
creatorUserId?: string | undefined;
|
|
36
|
+
employeeUserId?: string | undefined;
|
|
37
|
+
id?: string | undefined;
|
|
38
|
+
raw?: AtsOfferRaw | undefined;
|
|
39
|
+
rejectedAt?: Date | undefined;
|
|
40
|
+
sentAt?: Date | undefined;
|
|
41
|
+
startAt?: Date | undefined;
|
|
42
|
+
status?: AtsOfferStatus | undefined;
|
|
43
|
+
updatedAt?: Date | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
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
|
+
/** @internal */
|
|
91
|
+
export const AtsOfferStatus$inboundSchema: z.ZodNativeEnum<
|
|
92
|
+
typeof AtsOfferStatus
|
|
93
|
+
> = z.nativeEnum(AtsOfferStatus);
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
export const AtsOfferStatus$outboundSchema: z.ZodNativeEnum<
|
|
97
|
+
typeof AtsOfferStatus
|
|
98
|
+
> = AtsOfferStatus$inboundSchema;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
103
|
+
*/
|
|
104
|
+
export namespace AtsOfferStatus$ {
|
|
105
|
+
/** @deprecated use `AtsOfferStatus$inboundSchema` instead. */
|
|
106
|
+
export const inboundSchema = AtsOfferStatus$inboundSchema;
|
|
107
|
+
/** @deprecated use `AtsOfferStatus$outboundSchema` instead. */
|
|
108
|
+
export const outboundSchema = AtsOfferStatus$outboundSchema;
|
|
109
|
+
}
|
|
11
110
|
|
|
12
111
|
/** @internal */
|
|
13
112
|
export const AtsOffer$inboundSchema: z.ZodType<
|
|
14
113
|
AtsOffer,
|
|
15
114
|
z.ZodTypeDef,
|
|
16
115
|
unknown
|
|
17
|
-
> = z.object({
|
|
116
|
+
> = z.object({
|
|
117
|
+
accepted_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
118
|
+
.optional(),
|
|
119
|
+
compensation: z.array(AtsCompensation$inboundSchema).optional(),
|
|
120
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
121
|
+
.optional(),
|
|
122
|
+
creator_user_id: z.string().optional(),
|
|
123
|
+
employee_user_id: z.string().optional(),
|
|
124
|
+
id: z.string().optional(),
|
|
125
|
+
raw: z.lazy(() => AtsOfferRaw$inboundSchema).optional(),
|
|
126
|
+
rejected_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
127
|
+
.optional(),
|
|
128
|
+
sent_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
129
|
+
.optional(),
|
|
130
|
+
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
131
|
+
.optional(),
|
|
132
|
+
status: AtsOfferStatus$inboundSchema.optional(),
|
|
133
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
134
|
+
.optional(),
|
|
135
|
+
}).transform((v) => {
|
|
136
|
+
return remap$(v, {
|
|
137
|
+
"accepted_at": "acceptedAt",
|
|
138
|
+
"created_at": "createdAt",
|
|
139
|
+
"creator_user_id": "creatorUserId",
|
|
140
|
+
"employee_user_id": "employeeUserId",
|
|
141
|
+
"rejected_at": "rejectedAt",
|
|
142
|
+
"sent_at": "sentAt",
|
|
143
|
+
"start_at": "startAt",
|
|
144
|
+
"updated_at": "updatedAt",
|
|
145
|
+
});
|
|
146
|
+
});
|
|
18
147
|
|
|
19
148
|
/** @internal */
|
|
20
|
-
export type AtsOffer$Outbound = {
|
|
149
|
+
export type AtsOffer$Outbound = {
|
|
150
|
+
accepted_at?: string | undefined;
|
|
151
|
+
compensation?: Array<AtsCompensation$Outbound> | undefined;
|
|
152
|
+
created_at?: string | undefined;
|
|
153
|
+
creator_user_id?: string | undefined;
|
|
154
|
+
employee_user_id?: string | undefined;
|
|
155
|
+
id?: string | undefined;
|
|
156
|
+
raw?: AtsOfferRaw$Outbound | undefined;
|
|
157
|
+
rejected_at?: string | undefined;
|
|
158
|
+
sent_at?: string | undefined;
|
|
159
|
+
start_at?: string | undefined;
|
|
160
|
+
status?: string | undefined;
|
|
161
|
+
updated_at?: string | undefined;
|
|
162
|
+
};
|
|
21
163
|
|
|
22
164
|
/** @internal */
|
|
23
165
|
export const AtsOffer$outboundSchema: z.ZodType<
|
|
24
166
|
AtsOffer$Outbound,
|
|
25
167
|
z.ZodTypeDef,
|
|
26
168
|
AtsOffer
|
|
27
|
-
> = z.object({
|
|
169
|
+
> = z.object({
|
|
170
|
+
acceptedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
171
|
+
compensation: z.array(AtsCompensation$outboundSchema).optional(),
|
|
172
|
+
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
173
|
+
creatorUserId: z.string().optional(),
|
|
174
|
+
employeeUserId: z.string().optional(),
|
|
175
|
+
id: z.string().optional(),
|
|
176
|
+
raw: z.lazy(() => AtsOfferRaw$outboundSchema).optional(),
|
|
177
|
+
rejectedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
178
|
+
sentAt: z.date().transform(v => v.toISOString()).optional(),
|
|
179
|
+
startAt: z.date().transform(v => v.toISOString()).optional(),
|
|
180
|
+
status: AtsOfferStatus$outboundSchema.optional(),
|
|
181
|
+
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
182
|
+
}).transform((v) => {
|
|
183
|
+
return remap$(v, {
|
|
184
|
+
acceptedAt: "accepted_at",
|
|
185
|
+
createdAt: "created_at",
|
|
186
|
+
creatorUserId: "creator_user_id",
|
|
187
|
+
employeeUserId: "employee_user_id",
|
|
188
|
+
rejectedAt: "rejected_at",
|
|
189
|
+
sentAt: "sent_at",
|
|
190
|
+
startAt: "start_at",
|
|
191
|
+
updatedAt: "updated_at",
|
|
192
|
+
});
|
|
193
|
+
});
|
|
28
194
|
|
|
29
195
|
/**
|
|
30
196
|
* @internal
|
|
@@ -15,6 +15,8 @@ import {
|
|
|
15
15
|
AtsScorecardQuestion$outboundSchema,
|
|
16
16
|
} from "./atsscorecardquestion.js";
|
|
17
17
|
|
|
18
|
+
export type AtsScorecardRaw = {};
|
|
19
|
+
|
|
18
20
|
export const Recommendation = {
|
|
19
21
|
DefinitelyNo: "DEFINITELY_NO",
|
|
20
22
|
No: "NO",
|
|
@@ -33,11 +35,57 @@ export type AtsScorecard = {
|
|
|
33
35
|
interviewerId?: string | undefined;
|
|
34
36
|
jobId?: string | undefined;
|
|
35
37
|
questions?: Array<AtsScorecardQuestion> | undefined;
|
|
36
|
-
raw?:
|
|
38
|
+
raw?: AtsScorecardRaw | undefined;
|
|
37
39
|
recommendation?: Recommendation | undefined;
|
|
38
40
|
updatedAt?: Date | undefined;
|
|
39
41
|
};
|
|
40
42
|
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const AtsScorecardRaw$inboundSchema: z.ZodType<
|
|
45
|
+
AtsScorecardRaw,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
unknown
|
|
48
|
+
> = z.object({});
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type AtsScorecardRaw$Outbound = {};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const AtsScorecardRaw$outboundSchema: z.ZodType<
|
|
55
|
+
AtsScorecardRaw$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
AtsScorecardRaw
|
|
58
|
+
> = z.object({});
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
+
*/
|
|
64
|
+
export namespace AtsScorecardRaw$ {
|
|
65
|
+
/** @deprecated use `AtsScorecardRaw$inboundSchema` instead. */
|
|
66
|
+
export const inboundSchema = AtsScorecardRaw$inboundSchema;
|
|
67
|
+
/** @deprecated use `AtsScorecardRaw$outboundSchema` instead. */
|
|
68
|
+
export const outboundSchema = AtsScorecardRaw$outboundSchema;
|
|
69
|
+
/** @deprecated use `AtsScorecardRaw$Outbound` instead. */
|
|
70
|
+
export type Outbound = AtsScorecardRaw$Outbound;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function atsScorecardRawToJSON(
|
|
74
|
+
atsScorecardRaw: AtsScorecardRaw,
|
|
75
|
+
): string {
|
|
76
|
+
return JSON.stringify(AtsScorecardRaw$outboundSchema.parse(atsScorecardRaw));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function atsScorecardRawFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<AtsScorecardRaw, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) => AtsScorecardRaw$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'AtsScorecardRaw' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
41
89
|
/** @internal */
|
|
42
90
|
export const Recommendation$inboundSchema: z.ZodNativeEnum<
|
|
43
91
|
typeof Recommendation
|
|
@@ -75,7 +123,7 @@ export const AtsScorecard$inboundSchema: z.ZodType<
|
|
|
75
123
|
interviewer_id: z.string().optional(),
|
|
76
124
|
job_id: z.string().optional(),
|
|
77
125
|
questions: z.array(AtsScorecardQuestion$inboundSchema).optional(),
|
|
78
|
-
raw: z.
|
|
126
|
+
raw: z.lazy(() => AtsScorecardRaw$inboundSchema).optional(),
|
|
79
127
|
recommendation: Recommendation$inboundSchema.optional(),
|
|
80
128
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
81
129
|
.optional(),
|
|
@@ -102,7 +150,7 @@ export type AtsScorecard$Outbound = {
|
|
|
102
150
|
interviewer_id?: string | undefined;
|
|
103
151
|
job_id?: string | undefined;
|
|
104
152
|
questions?: Array<AtsScorecardQuestion$Outbound> | undefined;
|
|
105
|
-
raw?:
|
|
153
|
+
raw?: AtsScorecardRaw$Outbound | undefined;
|
|
106
154
|
recommendation?: string | undefined;
|
|
107
155
|
updated_at?: string | undefined;
|
|
108
156
|
};
|
|
@@ -122,7 +170,7 @@ export const AtsScorecard$outboundSchema: z.ZodType<
|
|
|
122
170
|
interviewerId: z.string().optional(),
|
|
123
171
|
jobId: z.string().optional(),
|
|
124
172
|
questions: z.array(AtsScorecardQuestion$outboundSchema).optional(),
|
|
125
|
-
raw: z.
|
|
173
|
+
raw: z.lazy(() => AtsScorecardRaw$outboundSchema).optional(),
|
|
126
174
|
recommendation: Recommendation$outboundSchema.optional(),
|
|
127
175
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
128
176
|
}).transform((v) => {
|
|
@@ -9,6 +9,8 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
+
export type AtsStatusRaw = {};
|
|
13
|
+
|
|
12
14
|
export const AtsStatusStatus = {
|
|
13
15
|
New: "NEW",
|
|
14
16
|
Reviewing: "REVIEWING",
|
|
@@ -31,10 +33,54 @@ export type AtsStatus = {
|
|
|
31
33
|
description?: string | undefined;
|
|
32
34
|
id?: string | undefined;
|
|
33
35
|
originalStatus?: string | undefined;
|
|
34
|
-
raw?:
|
|
36
|
+
raw?: AtsStatusRaw | undefined;
|
|
35
37
|
status?: AtsStatusStatus | undefined;
|
|
36
38
|
};
|
|
37
39
|
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const AtsStatusRaw$inboundSchema: z.ZodType<
|
|
42
|
+
AtsStatusRaw,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
unknown
|
|
45
|
+
> = z.object({});
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export type AtsStatusRaw$Outbound = {};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const AtsStatusRaw$outboundSchema: z.ZodType<
|
|
52
|
+
AtsStatusRaw$Outbound,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
AtsStatusRaw
|
|
55
|
+
> = z.object({});
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
+
*/
|
|
61
|
+
export namespace AtsStatusRaw$ {
|
|
62
|
+
/** @deprecated use `AtsStatusRaw$inboundSchema` instead. */
|
|
63
|
+
export const inboundSchema = AtsStatusRaw$inboundSchema;
|
|
64
|
+
/** @deprecated use `AtsStatusRaw$outboundSchema` instead. */
|
|
65
|
+
export const outboundSchema = AtsStatusRaw$outboundSchema;
|
|
66
|
+
/** @deprecated use `AtsStatusRaw$Outbound` instead. */
|
|
67
|
+
export type Outbound = AtsStatusRaw$Outbound;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function atsStatusRawToJSON(atsStatusRaw: AtsStatusRaw): string {
|
|
71
|
+
return JSON.stringify(AtsStatusRaw$outboundSchema.parse(atsStatusRaw));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function atsStatusRawFromJSON(
|
|
75
|
+
jsonString: string,
|
|
76
|
+
): SafeParseResult<AtsStatusRaw, SDKValidationError> {
|
|
77
|
+
return safeParse(
|
|
78
|
+
jsonString,
|
|
79
|
+
(x) => AtsStatusRaw$inboundSchema.parse(JSON.parse(x)),
|
|
80
|
+
`Failed to parse 'AtsStatusRaw' from JSON`,
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
38
84
|
/** @internal */
|
|
39
85
|
export const AtsStatusStatus$inboundSchema: z.ZodNativeEnum<
|
|
40
86
|
typeof AtsStatusStatus
|
|
@@ -65,7 +111,7 @@ export const AtsStatus$inboundSchema: z.ZodType<
|
|
|
65
111
|
description: z.string().optional(),
|
|
66
112
|
id: z.string().optional(),
|
|
67
113
|
original_status: z.string().optional(),
|
|
68
|
-
raw: z.
|
|
114
|
+
raw: z.lazy(() => AtsStatusRaw$inboundSchema).optional(),
|
|
69
115
|
status: AtsStatusStatus$inboundSchema.optional(),
|
|
70
116
|
}).transform((v) => {
|
|
71
117
|
return remap$(v, {
|
|
@@ -78,7 +124,7 @@ export type AtsStatus$Outbound = {
|
|
|
78
124
|
description?: string | undefined;
|
|
79
125
|
id?: string | undefined;
|
|
80
126
|
original_status?: string | undefined;
|
|
81
|
-
raw?:
|
|
127
|
+
raw?: AtsStatusRaw$Outbound | undefined;
|
|
82
128
|
status?: string | undefined;
|
|
83
129
|
};
|
|
84
130
|
|
|
@@ -91,7 +137,7 @@ export const AtsStatus$outboundSchema: z.ZodType<
|
|
|
91
137
|
description: z.string().optional(),
|
|
92
138
|
id: z.string().optional(),
|
|
93
139
|
originalStatus: z.string().optional(),
|
|
94
|
-
raw: z.
|
|
140
|
+
raw: z.lazy(() => AtsStatusRaw$outboundSchema).optional(),
|
|
95
141
|
status: AtsStatusStatus$outboundSchema.optional(),
|
|
96
142
|
}).transform((v) => {
|
|
97
143
|
return remap$(v, {
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
CommerceItemMetadata$outboundSchema,
|
|
22
22
|
} from "./commerceitemmetadata.js";
|
|
23
23
|
|
|
24
|
-
export type
|
|
24
|
+
export type CommerceCollectionRaw = {};
|
|
25
25
|
|
|
26
26
|
export const CommerceCollectionType = {
|
|
27
27
|
Collection: "COLLECTION",
|
|
@@ -46,47 +46,57 @@ export type CommerceCollection = {
|
|
|
46
46
|
parentId?: string | undefined;
|
|
47
47
|
publicDescription?: string | undefined;
|
|
48
48
|
publicName?: string | undefined;
|
|
49
|
-
raw?:
|
|
49
|
+
raw?: CommerceCollectionRaw | undefined;
|
|
50
50
|
tags?: Array<string> | undefined;
|
|
51
51
|
type?: CommerceCollectionType | undefined;
|
|
52
52
|
updatedAt?: Date | undefined;
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
/** @internal */
|
|
56
|
-
export const
|
|
57
|
-
|
|
56
|
+
export const CommerceCollectionRaw$inboundSchema: z.ZodType<
|
|
57
|
+
CommerceCollectionRaw,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
unknown
|
|
60
|
+
> = z.object({});
|
|
58
61
|
|
|
59
62
|
/** @internal */
|
|
60
|
-
export type
|
|
63
|
+
export type CommerceCollectionRaw$Outbound = {};
|
|
61
64
|
|
|
62
65
|
/** @internal */
|
|
63
|
-
export const
|
|
64
|
-
|
|
66
|
+
export const CommerceCollectionRaw$outboundSchema: z.ZodType<
|
|
67
|
+
CommerceCollectionRaw$Outbound,
|
|
68
|
+
z.ZodTypeDef,
|
|
69
|
+
CommerceCollectionRaw
|
|
70
|
+
> = z.object({});
|
|
65
71
|
|
|
66
72
|
/**
|
|
67
73
|
* @internal
|
|
68
74
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
75
|
*/
|
|
70
|
-
export namespace
|
|
71
|
-
/** @deprecated use `
|
|
72
|
-
export const inboundSchema =
|
|
73
|
-
/** @deprecated use `
|
|
74
|
-
export const outboundSchema =
|
|
75
|
-
/** @deprecated use `
|
|
76
|
-
export type Outbound =
|
|
76
|
+
export namespace CommerceCollectionRaw$ {
|
|
77
|
+
/** @deprecated use `CommerceCollectionRaw$inboundSchema` instead. */
|
|
78
|
+
export const inboundSchema = CommerceCollectionRaw$inboundSchema;
|
|
79
|
+
/** @deprecated use `CommerceCollectionRaw$outboundSchema` instead. */
|
|
80
|
+
export const outboundSchema = CommerceCollectionRaw$outboundSchema;
|
|
81
|
+
/** @deprecated use `CommerceCollectionRaw$Outbound` instead. */
|
|
82
|
+
export type Outbound = CommerceCollectionRaw$Outbound;
|
|
77
83
|
}
|
|
78
84
|
|
|
79
|
-
export function
|
|
80
|
-
|
|
85
|
+
export function commerceCollectionRawToJSON(
|
|
86
|
+
commerceCollectionRaw: CommerceCollectionRaw,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
CommerceCollectionRaw$outboundSchema.parse(commerceCollectionRaw),
|
|
90
|
+
);
|
|
81
91
|
}
|
|
82
92
|
|
|
83
|
-
export function
|
|
93
|
+
export function commerceCollectionRawFromJSON(
|
|
84
94
|
jsonString: string,
|
|
85
|
-
): SafeParseResult<
|
|
95
|
+
): SafeParseResult<CommerceCollectionRaw, SDKValidationError> {
|
|
86
96
|
return safeParse(
|
|
87
97
|
jsonString,
|
|
88
|
-
(x) =>
|
|
89
|
-
`Failed to parse '
|
|
98
|
+
(x) => CommerceCollectionRaw$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'CommerceCollectionRaw' from JSON`,
|
|
90
100
|
);
|
|
91
101
|
}
|
|
92
102
|
|
|
@@ -130,7 +140,7 @@ export const CommerceCollection$inboundSchema: z.ZodType<
|
|
|
130
140
|
parent_id: z.string().optional(),
|
|
131
141
|
public_description: z.string().optional(),
|
|
132
142
|
public_name: z.string().optional(),
|
|
133
|
-
raw: z.lazy(() =>
|
|
143
|
+
raw: z.lazy(() => CommerceCollectionRaw$inboundSchema).optional(),
|
|
134
144
|
tags: z.array(z.string()).optional(),
|
|
135
145
|
type: CommerceCollectionType$inboundSchema.optional(),
|
|
136
146
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -162,7 +172,7 @@ export type CommerceCollection$Outbound = {
|
|
|
162
172
|
parent_id?: string | undefined;
|
|
163
173
|
public_description?: string | undefined;
|
|
164
174
|
public_name?: string | undefined;
|
|
165
|
-
raw?:
|
|
175
|
+
raw?: CommerceCollectionRaw$Outbound | undefined;
|
|
166
176
|
tags?: Array<string> | undefined;
|
|
167
177
|
type?: string | undefined;
|
|
168
178
|
updated_at?: string | undefined;
|
|
@@ -186,7 +196,7 @@ export const CommerceCollection$outboundSchema: z.ZodType<
|
|
|
186
196
|
parentId: z.string().optional(),
|
|
187
197
|
publicDescription: z.string().optional(),
|
|
188
198
|
publicName: z.string().optional(),
|
|
189
|
-
raw: z.lazy(() =>
|
|
199
|
+
raw: z.lazy(() => CommerceCollectionRaw$outboundSchema).optional(),
|
|
190
200
|
tags: z.array(z.string()).optional(),
|
|
191
201
|
type: CommerceCollectionType$outboundSchema.optional(),
|
|
192
202
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -26,6 +26,8 @@ import {
|
|
|
26
26
|
PropertyCrmCompanyAddress$outboundSchema,
|
|
27
27
|
} from "./propertycrmcompanyaddress.js";
|
|
28
28
|
|
|
29
|
+
export type CrmCompanyRaw = {};
|
|
30
|
+
|
|
29
31
|
/**
|
|
30
32
|
* A company represents an organization that optionally is associated with a deal and/or contacts
|
|
31
33
|
*/
|
|
@@ -46,12 +48,12 @@ export type CrmCompany = {
|
|
|
46
48
|
id?: string | undefined;
|
|
47
49
|
industry?: string | undefined;
|
|
48
50
|
isActive?: boolean | undefined;
|
|
49
|
-
linkUrls?: Array<string> | undefined;
|
|
50
|
-
name?: string | undefined;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Additional URLs associated with the contact e.g., LinkedIn, website, etc
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
linkUrls?: Array<string> | undefined;
|
|
55
|
+
name?: string | undefined;
|
|
56
|
+
raw?: CrmCompanyRaw | undefined;
|
|
55
57
|
tags?: Array<string> | undefined;
|
|
56
58
|
telephones?: Array<CrmTelephone> | undefined;
|
|
57
59
|
timezone?: string | undefined;
|
|
@@ -60,6 +62,50 @@ export type CrmCompany = {
|
|
|
60
62
|
websites?: Array<string> | undefined;
|
|
61
63
|
};
|
|
62
64
|
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const CrmCompanyRaw$inboundSchema: z.ZodType<
|
|
67
|
+
CrmCompanyRaw,
|
|
68
|
+
z.ZodTypeDef,
|
|
69
|
+
unknown
|
|
70
|
+
> = z.object({});
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export type CrmCompanyRaw$Outbound = {};
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const CrmCompanyRaw$outboundSchema: z.ZodType<
|
|
77
|
+
CrmCompanyRaw$Outbound,
|
|
78
|
+
z.ZodTypeDef,
|
|
79
|
+
CrmCompanyRaw
|
|
80
|
+
> = z.object({});
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
|
+
*/
|
|
86
|
+
export namespace CrmCompanyRaw$ {
|
|
87
|
+
/** @deprecated use `CrmCompanyRaw$inboundSchema` instead. */
|
|
88
|
+
export const inboundSchema = CrmCompanyRaw$inboundSchema;
|
|
89
|
+
/** @deprecated use `CrmCompanyRaw$outboundSchema` instead. */
|
|
90
|
+
export const outboundSchema = CrmCompanyRaw$outboundSchema;
|
|
91
|
+
/** @deprecated use `CrmCompanyRaw$Outbound` instead. */
|
|
92
|
+
export type Outbound = CrmCompanyRaw$Outbound;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function crmCompanyRawToJSON(crmCompanyRaw: CrmCompanyRaw): string {
|
|
96
|
+
return JSON.stringify(CrmCompanyRaw$outboundSchema.parse(crmCompanyRaw));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function crmCompanyRawFromJSON(
|
|
100
|
+
jsonString: string,
|
|
101
|
+
): SafeParseResult<CrmCompanyRaw, SDKValidationError> {
|
|
102
|
+
return safeParse(
|
|
103
|
+
jsonString,
|
|
104
|
+
(x) => CrmCompanyRaw$inboundSchema.parse(JSON.parse(x)),
|
|
105
|
+
`Failed to parse 'CrmCompanyRaw' from JSON`,
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
63
109
|
/** @internal */
|
|
64
110
|
export const CrmCompany$inboundSchema: z.ZodType<
|
|
65
111
|
CrmCompany,
|
|
@@ -79,7 +125,7 @@ export const CrmCompany$inboundSchema: z.ZodType<
|
|
|
79
125
|
is_active: z.boolean().optional(),
|
|
80
126
|
link_urls: z.array(z.string()).optional(),
|
|
81
127
|
name: z.string().optional(),
|
|
82
|
-
raw: z.
|
|
128
|
+
raw: z.lazy(() => CrmCompanyRaw$inboundSchema).optional(),
|
|
83
129
|
tags: z.array(z.string()).optional(),
|
|
84
130
|
telephones: z.array(CrmTelephone$inboundSchema).optional(),
|
|
85
131
|
timezone: z.string().optional(),
|
|
@@ -113,7 +159,7 @@ export type CrmCompany$Outbound = {
|
|
|
113
159
|
is_active?: boolean | undefined;
|
|
114
160
|
link_urls?: Array<string> | undefined;
|
|
115
161
|
name?: string | undefined;
|
|
116
|
-
raw?:
|
|
162
|
+
raw?: CrmCompanyRaw$Outbound | undefined;
|
|
117
163
|
tags?: Array<string> | undefined;
|
|
118
164
|
telephones?: Array<CrmTelephone$Outbound> | undefined;
|
|
119
165
|
timezone?: string | undefined;
|
|
@@ -140,7 +186,7 @@ export const CrmCompany$outboundSchema: z.ZodType<
|
|
|
140
186
|
isActive: z.boolean().optional(),
|
|
141
187
|
linkUrls: z.array(z.string()).optional(),
|
|
142
188
|
name: z.string().optional(),
|
|
143
|
-
raw: z.
|
|
189
|
+
raw: z.lazy(() => CrmCompanyRaw$outboundSchema).optional(),
|
|
144
190
|
tags: z.array(z.string()).optional(),
|
|
145
191
|
telephones: z.array(CrmTelephone$outboundSchema).optional(),
|
|
146
192
|
timezone: z.string().optional(),
|