@unified-api/typescript-sdk 2.40.0 → 2.46.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/docs/sdks/connection/README.md +4 -4
- package/docs/sdks/unified/README.md +4 -4
- 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/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/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.js +2 -0
- package/sdk/models/shared/propertyconnectionpermissions.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/metadatametadata.ts +4 -54
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
|
@@ -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(),
|
|
@@ -15,8 +15,6 @@ import {
|
|
|
15
15
|
AtsScorecardQuestion$outboundSchema,
|
|
16
16
|
} from "./atsscorecardquestion.js";
|
|
17
17
|
|
|
18
|
-
export type AtsScorecardRaw = {};
|
|
19
|
-
|
|
20
18
|
export const Recommendation = {
|
|
21
19
|
DefinitelyNo: "DEFINITELY_NO",
|
|
22
20
|
No: "NO",
|
|
@@ -35,57 +33,11 @@ export type AtsScorecard = {
|
|
|
35
33
|
interviewerId?: string | undefined;
|
|
36
34
|
jobId?: string | undefined;
|
|
37
35
|
questions?: Array<AtsScorecardQuestion> | undefined;
|
|
38
|
-
raw?:
|
|
36
|
+
raw?: { [k: string]: any } | undefined;
|
|
39
37
|
recommendation?: Recommendation | undefined;
|
|
40
38
|
updatedAt?: Date | undefined;
|
|
41
39
|
};
|
|
42
40
|
|
|
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
|
-
|
|
89
41
|
/** @internal */
|
|
90
42
|
export const Recommendation$inboundSchema: z.ZodNativeEnum<
|
|
91
43
|
typeof Recommendation
|
|
@@ -123,7 +75,7 @@ export const AtsScorecard$inboundSchema: z.ZodType<
|
|
|
123
75
|
interviewer_id: z.string().optional(),
|
|
124
76
|
job_id: z.string().optional(),
|
|
125
77
|
questions: z.array(AtsScorecardQuestion$inboundSchema).optional(),
|
|
126
|
-
raw: z.
|
|
78
|
+
raw: z.record(z.any()).optional(),
|
|
127
79
|
recommendation: Recommendation$inboundSchema.optional(),
|
|
128
80
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
129
81
|
.optional(),
|
|
@@ -150,7 +102,7 @@ export type AtsScorecard$Outbound = {
|
|
|
150
102
|
interviewer_id?: string | undefined;
|
|
151
103
|
job_id?: string | undefined;
|
|
152
104
|
questions?: Array<AtsScorecardQuestion$Outbound> | undefined;
|
|
153
|
-
raw?:
|
|
105
|
+
raw?: { [k: string]: any } | undefined;
|
|
154
106
|
recommendation?: string | undefined;
|
|
155
107
|
updated_at?: string | undefined;
|
|
156
108
|
};
|
|
@@ -170,7 +122,7 @@ export const AtsScorecard$outboundSchema: z.ZodType<
|
|
|
170
122
|
interviewerId: z.string().optional(),
|
|
171
123
|
jobId: z.string().optional(),
|
|
172
124
|
questions: z.array(AtsScorecardQuestion$outboundSchema).optional(),
|
|
173
|
-
raw: z.
|
|
125
|
+
raw: z.record(z.any()).optional(),
|
|
174
126
|
recommendation: Recommendation$outboundSchema.optional(),
|
|
175
127
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
176
128
|
}).transform((v) => {
|
|
@@ -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 AtsStatusRaw = {};
|
|
13
|
-
|
|
14
12
|
export const AtsStatusStatus = {
|
|
15
13
|
New: "NEW",
|
|
16
14
|
Reviewing: "REVIEWING",
|
|
@@ -33,54 +31,10 @@ export type AtsStatus = {
|
|
|
33
31
|
description?: string | undefined;
|
|
34
32
|
id?: string | undefined;
|
|
35
33
|
originalStatus?: string | undefined;
|
|
36
|
-
raw?:
|
|
34
|
+
raw?: { [k: string]: any } | undefined;
|
|
37
35
|
status?: AtsStatusStatus | undefined;
|
|
38
36
|
};
|
|
39
37
|
|
|
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
|
-
|
|
84
38
|
/** @internal */
|
|
85
39
|
export const AtsStatusStatus$inboundSchema: z.ZodNativeEnum<
|
|
86
40
|
typeof AtsStatusStatus
|
|
@@ -111,7 +65,7 @@ export const AtsStatus$inboundSchema: z.ZodType<
|
|
|
111
65
|
description: z.string().optional(),
|
|
112
66
|
id: z.string().optional(),
|
|
113
67
|
original_status: z.string().optional(),
|
|
114
|
-
raw: z.
|
|
68
|
+
raw: z.record(z.any()).optional(),
|
|
115
69
|
status: AtsStatusStatus$inboundSchema.optional(),
|
|
116
70
|
}).transform((v) => {
|
|
117
71
|
return remap$(v, {
|
|
@@ -124,7 +78,7 @@ export type AtsStatus$Outbound = {
|
|
|
124
78
|
description?: string | undefined;
|
|
125
79
|
id?: string | undefined;
|
|
126
80
|
original_status?: string | undefined;
|
|
127
|
-
raw?:
|
|
81
|
+
raw?: { [k: string]: any } | undefined;
|
|
128
82
|
status?: string | undefined;
|
|
129
83
|
};
|
|
130
84
|
|
|
@@ -137,7 +91,7 @@ export const AtsStatus$outboundSchema: z.ZodType<
|
|
|
137
91
|
description: z.string().optional(),
|
|
138
92
|
id: z.string().optional(),
|
|
139
93
|
originalStatus: z.string().optional(),
|
|
140
|
-
raw: z.
|
|
94
|
+
raw: z.record(z.any()).optional(),
|
|
141
95
|
status: AtsStatusStatus$outboundSchema.optional(),
|
|
142
96
|
}).transform((v) => {
|
|
143
97
|
return remap$(v, {
|
|
@@ -8,63 +8,15 @@ import { safeParse } from "../../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export type CalendarBusyRaw = {};
|
|
12
|
-
|
|
13
11
|
export type CalendarBusy = {
|
|
14
12
|
description?: string | undefined;
|
|
15
13
|
endAt: Date;
|
|
16
14
|
id?: string | undefined;
|
|
17
|
-
raw?:
|
|
15
|
+
raw?: { [k: string]: any } | undefined;
|
|
18
16
|
startAt: Date;
|
|
19
17
|
timezone?: string | undefined;
|
|
20
18
|
};
|
|
21
19
|
|
|
22
|
-
/** @internal */
|
|
23
|
-
export const CalendarBusyRaw$inboundSchema: z.ZodType<
|
|
24
|
-
CalendarBusyRaw,
|
|
25
|
-
z.ZodTypeDef,
|
|
26
|
-
unknown
|
|
27
|
-
> = z.object({});
|
|
28
|
-
|
|
29
|
-
/** @internal */
|
|
30
|
-
export type CalendarBusyRaw$Outbound = {};
|
|
31
|
-
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const CalendarBusyRaw$outboundSchema: z.ZodType<
|
|
34
|
-
CalendarBusyRaw$Outbound,
|
|
35
|
-
z.ZodTypeDef,
|
|
36
|
-
CalendarBusyRaw
|
|
37
|
-
> = z.object({});
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
42
|
-
*/
|
|
43
|
-
export namespace CalendarBusyRaw$ {
|
|
44
|
-
/** @deprecated use `CalendarBusyRaw$inboundSchema` instead. */
|
|
45
|
-
export const inboundSchema = CalendarBusyRaw$inboundSchema;
|
|
46
|
-
/** @deprecated use `CalendarBusyRaw$outboundSchema` instead. */
|
|
47
|
-
export const outboundSchema = CalendarBusyRaw$outboundSchema;
|
|
48
|
-
/** @deprecated use `CalendarBusyRaw$Outbound` instead. */
|
|
49
|
-
export type Outbound = CalendarBusyRaw$Outbound;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function calendarBusyRawToJSON(
|
|
53
|
-
calendarBusyRaw: CalendarBusyRaw,
|
|
54
|
-
): string {
|
|
55
|
-
return JSON.stringify(CalendarBusyRaw$outboundSchema.parse(calendarBusyRaw));
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function calendarBusyRawFromJSON(
|
|
59
|
-
jsonString: string,
|
|
60
|
-
): SafeParseResult<CalendarBusyRaw, SDKValidationError> {
|
|
61
|
-
return safeParse(
|
|
62
|
-
jsonString,
|
|
63
|
-
(x) => CalendarBusyRaw$inboundSchema.parse(JSON.parse(x)),
|
|
64
|
-
`Failed to parse 'CalendarBusyRaw' from JSON`,
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
20
|
/** @internal */
|
|
69
21
|
export const CalendarBusy$inboundSchema: z.ZodType<
|
|
70
22
|
CalendarBusy,
|
|
@@ -74,7 +26,7 @@ export const CalendarBusy$inboundSchema: z.ZodType<
|
|
|
74
26
|
description: z.string().optional(),
|
|
75
27
|
end_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
76
28
|
id: z.string().optional(),
|
|
77
|
-
raw: z.
|
|
29
|
+
raw: z.record(z.any()).optional(),
|
|
78
30
|
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
79
31
|
timezone: z.string().optional(),
|
|
80
32
|
}).transform((v) => {
|
|
@@ -89,7 +41,7 @@ export type CalendarBusy$Outbound = {
|
|
|
89
41
|
description?: string | undefined;
|
|
90
42
|
end_at: string;
|
|
91
43
|
id?: string | undefined;
|
|
92
|
-
raw?:
|
|
44
|
+
raw?: { [k: string]: any } | undefined;
|
|
93
45
|
start_at: string;
|
|
94
46
|
timezone?: string | undefined;
|
|
95
47
|
};
|
|
@@ -103,7 +55,7 @@ export const CalendarBusy$outboundSchema: z.ZodType<
|
|
|
103
55
|
description: z.string().optional(),
|
|
104
56
|
endAt: z.date().transform(v => v.toISOString()),
|
|
105
57
|
id: z.string().optional(),
|
|
106
|
-
raw: z.
|
|
58
|
+
raw: z.record(z.any()).optional(),
|
|
107
59
|
startAt: z.date().transform(v => v.toISOString()),
|
|
108
60
|
timezone: z.string().optional(),
|
|
109
61
|
}).transform((v) => {
|
|
@@ -8,67 +8,17 @@ import { safeParse } from "../../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export type CalendarCalendarRaw = {};
|
|
12
|
-
|
|
13
11
|
export type CalendarCalendar = {
|
|
14
12
|
createdAt?: Date | undefined;
|
|
15
13
|
description?: string | undefined;
|
|
16
14
|
id?: string | undefined;
|
|
17
15
|
name: string;
|
|
18
16
|
primary?: boolean | undefined;
|
|
19
|
-
raw?:
|
|
17
|
+
raw?: { [k: string]: any } | undefined;
|
|
20
18
|
timezone?: string | undefined;
|
|
21
19
|
updatedAt?: Date | undefined;
|
|
22
20
|
};
|
|
23
21
|
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const CalendarCalendarRaw$inboundSchema: z.ZodType<
|
|
26
|
-
CalendarCalendarRaw,
|
|
27
|
-
z.ZodTypeDef,
|
|
28
|
-
unknown
|
|
29
|
-
> = z.object({});
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type CalendarCalendarRaw$Outbound = {};
|
|
33
|
-
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const CalendarCalendarRaw$outboundSchema: z.ZodType<
|
|
36
|
-
CalendarCalendarRaw$Outbound,
|
|
37
|
-
z.ZodTypeDef,
|
|
38
|
-
CalendarCalendarRaw
|
|
39
|
-
> = z.object({});
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
-
*/
|
|
45
|
-
export namespace CalendarCalendarRaw$ {
|
|
46
|
-
/** @deprecated use `CalendarCalendarRaw$inboundSchema` instead. */
|
|
47
|
-
export const inboundSchema = CalendarCalendarRaw$inboundSchema;
|
|
48
|
-
/** @deprecated use `CalendarCalendarRaw$outboundSchema` instead. */
|
|
49
|
-
export const outboundSchema = CalendarCalendarRaw$outboundSchema;
|
|
50
|
-
/** @deprecated use `CalendarCalendarRaw$Outbound` instead. */
|
|
51
|
-
export type Outbound = CalendarCalendarRaw$Outbound;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function calendarCalendarRawToJSON(
|
|
55
|
-
calendarCalendarRaw: CalendarCalendarRaw,
|
|
56
|
-
): string {
|
|
57
|
-
return JSON.stringify(
|
|
58
|
-
CalendarCalendarRaw$outboundSchema.parse(calendarCalendarRaw),
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function calendarCalendarRawFromJSON(
|
|
63
|
-
jsonString: string,
|
|
64
|
-
): SafeParseResult<CalendarCalendarRaw, SDKValidationError> {
|
|
65
|
-
return safeParse(
|
|
66
|
-
jsonString,
|
|
67
|
-
(x) => CalendarCalendarRaw$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
-
`Failed to parse 'CalendarCalendarRaw' from JSON`,
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
22
|
/** @internal */
|
|
73
23
|
export const CalendarCalendar$inboundSchema: z.ZodType<
|
|
74
24
|
CalendarCalendar,
|
|
@@ -81,7 +31,7 @@ export const CalendarCalendar$inboundSchema: z.ZodType<
|
|
|
81
31
|
id: z.string().optional(),
|
|
82
32
|
name: z.string(),
|
|
83
33
|
primary: z.boolean().optional(),
|
|
84
|
-
raw: z.
|
|
34
|
+
raw: z.record(z.any()).optional(),
|
|
85
35
|
timezone: z.string().optional(),
|
|
86
36
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
87
37
|
.optional(),
|
|
@@ -99,7 +49,7 @@ export type CalendarCalendar$Outbound = {
|
|
|
99
49
|
id?: string | undefined;
|
|
100
50
|
name: string;
|
|
101
51
|
primary?: boolean | undefined;
|
|
102
|
-
raw?:
|
|
52
|
+
raw?: { [k: string]: any } | undefined;
|
|
103
53
|
timezone?: string | undefined;
|
|
104
54
|
updated_at?: string | undefined;
|
|
105
55
|
};
|
|
@@ -115,7 +65,7 @@ export const CalendarCalendar$outboundSchema: z.ZodType<
|
|
|
115
65
|
id: z.string().optional(),
|
|
116
66
|
name: z.string(),
|
|
117
67
|
primary: z.boolean().optional(),
|
|
118
|
-
raw: z.
|
|
68
|
+
raw: z.record(z.any()).optional(),
|
|
119
69
|
timezone: z.string().optional(),
|
|
120
70
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
121
71
|
}).transform((v) => {
|
|
@@ -21,8 +21,6 @@ import {
|
|
|
21
21
|
PropertyCalendarEventOrganizer$outboundSchema,
|
|
22
22
|
} from "./propertycalendareventorganizer.js";
|
|
23
23
|
|
|
24
|
-
export type CalendarEventRaw = {};
|
|
25
|
-
|
|
26
24
|
export const CalendarEventStatus = {
|
|
27
25
|
Canceled: "CANCELED",
|
|
28
26
|
Confirmed: "CONFIRMED",
|
|
@@ -42,7 +40,7 @@ export type CalendarEvent = {
|
|
|
42
40
|
location?: string | undefined;
|
|
43
41
|
notes?: string | undefined;
|
|
44
42
|
organizer?: PropertyCalendarEventOrganizer | undefined;
|
|
45
|
-
raw?:
|
|
43
|
+
raw?: { [k: string]: any } | undefined;
|
|
46
44
|
startAt: string;
|
|
47
45
|
status?: CalendarEventStatus | undefined;
|
|
48
46
|
subject: string;
|
|
@@ -51,54 +49,6 @@ export type CalendarEvent = {
|
|
|
51
49
|
webUrl?: string | undefined;
|
|
52
50
|
};
|
|
53
51
|
|
|
54
|
-
/** @internal */
|
|
55
|
-
export const CalendarEventRaw$inboundSchema: z.ZodType<
|
|
56
|
-
CalendarEventRaw,
|
|
57
|
-
z.ZodTypeDef,
|
|
58
|
-
unknown
|
|
59
|
-
> = z.object({});
|
|
60
|
-
|
|
61
|
-
/** @internal */
|
|
62
|
-
export type CalendarEventRaw$Outbound = {};
|
|
63
|
-
|
|
64
|
-
/** @internal */
|
|
65
|
-
export const CalendarEventRaw$outboundSchema: z.ZodType<
|
|
66
|
-
CalendarEventRaw$Outbound,
|
|
67
|
-
z.ZodTypeDef,
|
|
68
|
-
CalendarEventRaw
|
|
69
|
-
> = z.object({});
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @internal
|
|
73
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
74
|
-
*/
|
|
75
|
-
export namespace CalendarEventRaw$ {
|
|
76
|
-
/** @deprecated use `CalendarEventRaw$inboundSchema` instead. */
|
|
77
|
-
export const inboundSchema = CalendarEventRaw$inboundSchema;
|
|
78
|
-
/** @deprecated use `CalendarEventRaw$outboundSchema` instead. */
|
|
79
|
-
export const outboundSchema = CalendarEventRaw$outboundSchema;
|
|
80
|
-
/** @deprecated use `CalendarEventRaw$Outbound` instead. */
|
|
81
|
-
export type Outbound = CalendarEventRaw$Outbound;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export function calendarEventRawToJSON(
|
|
85
|
-
calendarEventRaw: CalendarEventRaw,
|
|
86
|
-
): string {
|
|
87
|
-
return JSON.stringify(
|
|
88
|
-
CalendarEventRaw$outboundSchema.parse(calendarEventRaw),
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export function calendarEventRawFromJSON(
|
|
93
|
-
jsonString: string,
|
|
94
|
-
): SafeParseResult<CalendarEventRaw, SDKValidationError> {
|
|
95
|
-
return safeParse(
|
|
96
|
-
jsonString,
|
|
97
|
-
(x) => CalendarEventRaw$inboundSchema.parse(JSON.parse(x)),
|
|
98
|
-
`Failed to parse 'CalendarEventRaw' from JSON`,
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
52
|
/** @internal */
|
|
103
53
|
export const CalendarEventStatus$inboundSchema: z.ZodNativeEnum<
|
|
104
54
|
typeof CalendarEventStatus
|
|
@@ -137,7 +87,7 @@ export const CalendarEvent$inboundSchema: z.ZodType<
|
|
|
137
87
|
location: z.string().optional(),
|
|
138
88
|
notes: z.string().optional(),
|
|
139
89
|
organizer: PropertyCalendarEventOrganizer$inboundSchema.optional(),
|
|
140
|
-
raw: z.
|
|
90
|
+
raw: z.record(z.any()).optional(),
|
|
141
91
|
start_at: z.string(),
|
|
142
92
|
status: CalendarEventStatus$inboundSchema.optional(),
|
|
143
93
|
subject: z.string(),
|
|
@@ -171,7 +121,7 @@ export type CalendarEvent$Outbound = {
|
|
|
171
121
|
location?: string | undefined;
|
|
172
122
|
notes?: string | undefined;
|
|
173
123
|
organizer?: PropertyCalendarEventOrganizer$Outbound | undefined;
|
|
174
|
-
raw?:
|
|
124
|
+
raw?: { [k: string]: any } | undefined;
|
|
175
125
|
start_at: string;
|
|
176
126
|
status?: string | undefined;
|
|
177
127
|
subject: string;
|
|
@@ -197,7 +147,7 @@ export const CalendarEvent$outboundSchema: z.ZodType<
|
|
|
197
147
|
location: z.string().optional(),
|
|
198
148
|
notes: z.string().optional(),
|
|
199
149
|
organizer: PropertyCalendarEventOrganizer$outboundSchema.optional(),
|
|
200
|
-
raw: z.
|
|
150
|
+
raw: z.record(z.any()).optional(),
|
|
201
151
|
startAt: z.string(),
|
|
202
152
|
status: CalendarEventStatus$outboundSchema.optional(),
|
|
203
153
|
subject: z.string(),
|
|
@@ -8,8 +8,6 @@ import { safeParse } from "../../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export type CalendarLinkRaw = {};
|
|
12
|
-
|
|
13
11
|
export type CalendarLink = {
|
|
14
12
|
createdAt?: string | undefined;
|
|
15
13
|
description?: string | undefined;
|
|
@@ -19,57 +17,11 @@ export type CalendarLink = {
|
|
|
19
17
|
name?: string | undefined;
|
|
20
18
|
priceAmount?: number | undefined;
|
|
21
19
|
priceCurrency?: string | undefined;
|
|
22
|
-
raw?:
|
|
20
|
+
raw?: { [k: string]: any } | undefined;
|
|
23
21
|
updatedAt?: string | undefined;
|
|
24
22
|
url: string;
|
|
25
23
|
};
|
|
26
24
|
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const CalendarLinkRaw$inboundSchema: z.ZodType<
|
|
29
|
-
CalendarLinkRaw,
|
|
30
|
-
z.ZodTypeDef,
|
|
31
|
-
unknown
|
|
32
|
-
> = z.object({});
|
|
33
|
-
|
|
34
|
-
/** @internal */
|
|
35
|
-
export type CalendarLinkRaw$Outbound = {};
|
|
36
|
-
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const CalendarLinkRaw$outboundSchema: z.ZodType<
|
|
39
|
-
CalendarLinkRaw$Outbound,
|
|
40
|
-
z.ZodTypeDef,
|
|
41
|
-
CalendarLinkRaw
|
|
42
|
-
> = z.object({});
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
-
*/
|
|
48
|
-
export namespace CalendarLinkRaw$ {
|
|
49
|
-
/** @deprecated use `CalendarLinkRaw$inboundSchema` instead. */
|
|
50
|
-
export const inboundSchema = CalendarLinkRaw$inboundSchema;
|
|
51
|
-
/** @deprecated use `CalendarLinkRaw$outboundSchema` instead. */
|
|
52
|
-
export const outboundSchema = CalendarLinkRaw$outboundSchema;
|
|
53
|
-
/** @deprecated use `CalendarLinkRaw$Outbound` instead. */
|
|
54
|
-
export type Outbound = CalendarLinkRaw$Outbound;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export function calendarLinkRawToJSON(
|
|
58
|
-
calendarLinkRaw: CalendarLinkRaw,
|
|
59
|
-
): string {
|
|
60
|
-
return JSON.stringify(CalendarLinkRaw$outboundSchema.parse(calendarLinkRaw));
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function calendarLinkRawFromJSON(
|
|
64
|
-
jsonString: string,
|
|
65
|
-
): SafeParseResult<CalendarLinkRaw, SDKValidationError> {
|
|
66
|
-
return safeParse(
|
|
67
|
-
jsonString,
|
|
68
|
-
(x) => CalendarLinkRaw$inboundSchema.parse(JSON.parse(x)),
|
|
69
|
-
`Failed to parse 'CalendarLinkRaw' from JSON`,
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
25
|
/** @internal */
|
|
74
26
|
export const CalendarLink$inboundSchema: z.ZodType<
|
|
75
27
|
CalendarLink,
|
|
@@ -84,7 +36,7 @@ export const CalendarLink$inboundSchema: z.ZodType<
|
|
|
84
36
|
name: z.string().optional(),
|
|
85
37
|
price_amount: z.number().optional(),
|
|
86
38
|
price_currency: z.string().optional(),
|
|
87
|
-
raw: z.
|
|
39
|
+
raw: z.record(z.any()).optional(),
|
|
88
40
|
updated_at: z.string().optional(),
|
|
89
41
|
url: z.string(),
|
|
90
42
|
}).transform((v) => {
|
|
@@ -107,7 +59,7 @@ export type CalendarLink$Outbound = {
|
|
|
107
59
|
name?: string | undefined;
|
|
108
60
|
price_amount?: number | undefined;
|
|
109
61
|
price_currency?: string | undefined;
|
|
110
|
-
raw?:
|
|
62
|
+
raw?: { [k: string]: any } | undefined;
|
|
111
63
|
updated_at?: string | undefined;
|
|
112
64
|
url: string;
|
|
113
65
|
};
|
|
@@ -126,7 +78,7 @@ export const CalendarLink$outboundSchema: z.ZodType<
|
|
|
126
78
|
name: z.string().optional(),
|
|
127
79
|
priceAmount: z.number().optional(),
|
|
128
80
|
priceCurrency: z.string().optional(),
|
|
129
|
-
raw: z.
|
|
81
|
+
raw: z.record(z.any()).optional(),
|
|
130
82
|
updatedAt: z.string().optional(),
|
|
131
83
|
url: z.string(),
|
|
132
84
|
}).transform((v) => {
|