@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
|
@@ -57,8 +57,6 @@ import {
|
|
|
57
57
|
PropertyCrmEventTask$outboundSchema,
|
|
58
58
|
} from "./propertycrmeventtask.js";
|
|
59
59
|
|
|
60
|
-
export type CrmEventRaw = {};
|
|
61
|
-
|
|
62
60
|
export const CrmEventType = {
|
|
63
61
|
Note: "NOTE",
|
|
64
62
|
Email: "EMAIL",
|
|
@@ -109,7 +107,7 @@ export type CrmEvent = {
|
|
|
109
107
|
*/
|
|
110
108
|
note?: PropertyCrmEventNote | undefined;
|
|
111
109
|
pageView?: PropertyCrmEventPageView | undefined;
|
|
112
|
-
raw?:
|
|
110
|
+
raw?: { [k: string]: any } | undefined;
|
|
113
111
|
/**
|
|
114
112
|
* The task object, when type = task
|
|
115
113
|
*/
|
|
@@ -119,50 +117,6 @@ export type CrmEvent = {
|
|
|
119
117
|
userId?: string | undefined;
|
|
120
118
|
};
|
|
121
119
|
|
|
122
|
-
/** @internal */
|
|
123
|
-
export const CrmEventRaw$inboundSchema: z.ZodType<
|
|
124
|
-
CrmEventRaw,
|
|
125
|
-
z.ZodTypeDef,
|
|
126
|
-
unknown
|
|
127
|
-
> = z.object({});
|
|
128
|
-
|
|
129
|
-
/** @internal */
|
|
130
|
-
export type CrmEventRaw$Outbound = {};
|
|
131
|
-
|
|
132
|
-
/** @internal */
|
|
133
|
-
export const CrmEventRaw$outboundSchema: z.ZodType<
|
|
134
|
-
CrmEventRaw$Outbound,
|
|
135
|
-
z.ZodTypeDef,
|
|
136
|
-
CrmEventRaw
|
|
137
|
-
> = z.object({});
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* @internal
|
|
141
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
142
|
-
*/
|
|
143
|
-
export namespace CrmEventRaw$ {
|
|
144
|
-
/** @deprecated use `CrmEventRaw$inboundSchema` instead. */
|
|
145
|
-
export const inboundSchema = CrmEventRaw$inboundSchema;
|
|
146
|
-
/** @deprecated use `CrmEventRaw$outboundSchema` instead. */
|
|
147
|
-
export const outboundSchema = CrmEventRaw$outboundSchema;
|
|
148
|
-
/** @deprecated use `CrmEventRaw$Outbound` instead. */
|
|
149
|
-
export type Outbound = CrmEventRaw$Outbound;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export function crmEventRawToJSON(crmEventRaw: CrmEventRaw): string {
|
|
153
|
-
return JSON.stringify(CrmEventRaw$outboundSchema.parse(crmEventRaw));
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export function crmEventRawFromJSON(
|
|
157
|
-
jsonString: string,
|
|
158
|
-
): SafeParseResult<CrmEventRaw, SDKValidationError> {
|
|
159
|
-
return safeParse(
|
|
160
|
-
jsonString,
|
|
161
|
-
(x) => CrmEventRaw$inboundSchema.parse(JSON.parse(x)),
|
|
162
|
-
`Failed to parse 'CrmEventRaw' from JSON`,
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
120
|
/** @internal */
|
|
167
121
|
export const CrmEventType$inboundSchema: z.ZodNativeEnum<typeof CrmEventType> =
|
|
168
122
|
z.nativeEnum(CrmEventType);
|
|
@@ -202,7 +156,7 @@ export const CrmEvent$inboundSchema: z.ZodType<
|
|
|
202
156
|
meeting: PropertyCrmEventMeeting$inboundSchema.optional(),
|
|
203
157
|
note: PropertyCrmEventNote$inboundSchema.optional(),
|
|
204
158
|
page_view: PropertyCrmEventPageView$inboundSchema.optional(),
|
|
205
|
-
raw: z.
|
|
159
|
+
raw: z.record(z.any()).optional(),
|
|
206
160
|
task: PropertyCrmEventTask$inboundSchema.optional(),
|
|
207
161
|
type: CrmEventType$inboundSchema.optional(),
|
|
208
162
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -237,7 +191,7 @@ export type CrmEvent$Outbound = {
|
|
|
237
191
|
meeting?: PropertyCrmEventMeeting$Outbound | undefined;
|
|
238
192
|
note?: PropertyCrmEventNote$Outbound | undefined;
|
|
239
193
|
page_view?: PropertyCrmEventPageView$Outbound | undefined;
|
|
240
|
-
raw?:
|
|
194
|
+
raw?: { [k: string]: any } | undefined;
|
|
241
195
|
task?: PropertyCrmEventTask$Outbound | undefined;
|
|
242
196
|
type?: string | undefined;
|
|
243
197
|
updated_at?: string | undefined;
|
|
@@ -263,7 +217,7 @@ export const CrmEvent$outboundSchema: z.ZodType<
|
|
|
263
217
|
meeting: PropertyCrmEventMeeting$outboundSchema.optional(),
|
|
264
218
|
note: PropertyCrmEventNote$outboundSchema.optional(),
|
|
265
219
|
pageView: PropertyCrmEventPageView$outboundSchema.optional(),
|
|
266
|
-
raw: z.
|
|
220
|
+
raw: z.record(z.any()).optional(),
|
|
267
221
|
task: PropertyCrmEventTask$outboundSchema.optional(),
|
|
268
222
|
type: CrmEventType$outboundSchema.optional(),
|
|
269
223
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -32,8 +32,6 @@ import {
|
|
|
32
32
|
PropertyCrmLeadAddress$outboundSchema,
|
|
33
33
|
} from "./propertycrmleadaddress.js";
|
|
34
34
|
|
|
35
|
-
export type CrmLeadRaw = {};
|
|
36
|
-
|
|
37
35
|
export type CrmLead = {
|
|
38
36
|
address?: PropertyCrmLeadAddress | undefined;
|
|
39
37
|
companyId?: string | undefined;
|
|
@@ -47,7 +45,7 @@ export type CrmLead = {
|
|
|
47
45
|
linkUrls?: Array<string> | undefined;
|
|
48
46
|
metadata?: Array<CrmMetadata> | undefined;
|
|
49
47
|
name?: string | undefined;
|
|
50
|
-
raw?:
|
|
48
|
+
raw?: { [k: string]: any } | undefined;
|
|
51
49
|
source?: string | undefined;
|
|
52
50
|
status?: string | undefined;
|
|
53
51
|
telephones?: Array<CrmTelephone> | undefined;
|
|
@@ -55,50 +53,6 @@ export type CrmLead = {
|
|
|
55
53
|
userId?: string | undefined;
|
|
56
54
|
};
|
|
57
55
|
|
|
58
|
-
/** @internal */
|
|
59
|
-
export const CrmLeadRaw$inboundSchema: z.ZodType<
|
|
60
|
-
CrmLeadRaw,
|
|
61
|
-
z.ZodTypeDef,
|
|
62
|
-
unknown
|
|
63
|
-
> = z.object({});
|
|
64
|
-
|
|
65
|
-
/** @internal */
|
|
66
|
-
export type CrmLeadRaw$Outbound = {};
|
|
67
|
-
|
|
68
|
-
/** @internal */
|
|
69
|
-
export const CrmLeadRaw$outboundSchema: z.ZodType<
|
|
70
|
-
CrmLeadRaw$Outbound,
|
|
71
|
-
z.ZodTypeDef,
|
|
72
|
-
CrmLeadRaw
|
|
73
|
-
> = z.object({});
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @internal
|
|
77
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
-
*/
|
|
79
|
-
export namespace CrmLeadRaw$ {
|
|
80
|
-
/** @deprecated use `CrmLeadRaw$inboundSchema` instead. */
|
|
81
|
-
export const inboundSchema = CrmLeadRaw$inboundSchema;
|
|
82
|
-
/** @deprecated use `CrmLeadRaw$outboundSchema` instead. */
|
|
83
|
-
export const outboundSchema = CrmLeadRaw$outboundSchema;
|
|
84
|
-
/** @deprecated use `CrmLeadRaw$Outbound` instead. */
|
|
85
|
-
export type Outbound = CrmLeadRaw$Outbound;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export function crmLeadRawToJSON(crmLeadRaw: CrmLeadRaw): string {
|
|
89
|
-
return JSON.stringify(CrmLeadRaw$outboundSchema.parse(crmLeadRaw));
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export function crmLeadRawFromJSON(
|
|
93
|
-
jsonString: string,
|
|
94
|
-
): SafeParseResult<CrmLeadRaw, SDKValidationError> {
|
|
95
|
-
return safeParse(
|
|
96
|
-
jsonString,
|
|
97
|
-
(x) => CrmLeadRaw$inboundSchema.parse(JSON.parse(x)),
|
|
98
|
-
`Failed to parse 'CrmLeadRaw' from JSON`,
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
56
|
/** @internal */
|
|
103
57
|
export const CrmLead$inboundSchema: z.ZodType<CrmLead, z.ZodTypeDef, unknown> =
|
|
104
58
|
z.object({
|
|
@@ -116,7 +70,7 @@ export const CrmLead$inboundSchema: z.ZodType<CrmLead, z.ZodTypeDef, unknown> =
|
|
|
116
70
|
link_urls: z.array(z.string()).optional(),
|
|
117
71
|
metadata: z.array(CrmMetadata$inboundSchema).optional(),
|
|
118
72
|
name: z.string().optional(),
|
|
119
|
-
raw: z.
|
|
73
|
+
raw: z.record(z.any()).optional(),
|
|
120
74
|
source: z.string().optional(),
|
|
121
75
|
status: z.string().optional(),
|
|
122
76
|
telephones: z.array(CrmTelephone$inboundSchema).optional(),
|
|
@@ -152,7 +106,7 @@ export type CrmLead$Outbound = {
|
|
|
152
106
|
link_urls?: Array<string> | undefined;
|
|
153
107
|
metadata?: Array<CrmMetadata$Outbound> | undefined;
|
|
154
108
|
name?: string | undefined;
|
|
155
|
-
raw?:
|
|
109
|
+
raw?: { [k: string]: any } | undefined;
|
|
156
110
|
source?: string | undefined;
|
|
157
111
|
status?: string | undefined;
|
|
158
112
|
telephones?: Array<CrmTelephone$Outbound> | undefined;
|
|
@@ -178,7 +132,7 @@ export const CrmLead$outboundSchema: z.ZodType<
|
|
|
178
132
|
linkUrls: z.array(z.string()).optional(),
|
|
179
133
|
metadata: z.array(CrmMetadata$outboundSchema).optional(),
|
|
180
134
|
name: z.string().optional(),
|
|
181
|
-
raw: z.
|
|
135
|
+
raw: z.record(z.any()).optional(),
|
|
182
136
|
source: z.string().optional(),
|
|
183
137
|
status: z.string().optional(),
|
|
184
138
|
telephones: z.array(CrmTelephone$outboundSchema).optional(),
|
|
@@ -14,8 +14,6 @@ import {
|
|
|
14
14
|
CrmStage$outboundSchema,
|
|
15
15
|
} from "./crmstage.js";
|
|
16
16
|
|
|
17
|
-
export type CrmPipelineRaw = {};
|
|
18
|
-
|
|
19
17
|
export type CrmPipeline = {
|
|
20
18
|
createdAt?: Date | undefined;
|
|
21
19
|
dealProbability?: number | undefined;
|
|
@@ -23,55 +21,11 @@ export type CrmPipeline = {
|
|
|
23
21
|
id?: string | undefined;
|
|
24
22
|
isActive?: boolean | undefined;
|
|
25
23
|
name?: string | undefined;
|
|
26
|
-
raw?:
|
|
24
|
+
raw?: { [k: string]: any } | undefined;
|
|
27
25
|
stages?: Array<CrmStage> | undefined;
|
|
28
26
|
updatedAt?: Date | undefined;
|
|
29
27
|
};
|
|
30
28
|
|
|
31
|
-
/** @internal */
|
|
32
|
-
export const CrmPipelineRaw$inboundSchema: z.ZodType<
|
|
33
|
-
CrmPipelineRaw,
|
|
34
|
-
z.ZodTypeDef,
|
|
35
|
-
unknown
|
|
36
|
-
> = z.object({});
|
|
37
|
-
|
|
38
|
-
/** @internal */
|
|
39
|
-
export type CrmPipelineRaw$Outbound = {};
|
|
40
|
-
|
|
41
|
-
/** @internal */
|
|
42
|
-
export const CrmPipelineRaw$outboundSchema: z.ZodType<
|
|
43
|
-
CrmPipelineRaw$Outbound,
|
|
44
|
-
z.ZodTypeDef,
|
|
45
|
-
CrmPipelineRaw
|
|
46
|
-
> = z.object({});
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
-
*/
|
|
52
|
-
export namespace CrmPipelineRaw$ {
|
|
53
|
-
/** @deprecated use `CrmPipelineRaw$inboundSchema` instead. */
|
|
54
|
-
export const inboundSchema = CrmPipelineRaw$inboundSchema;
|
|
55
|
-
/** @deprecated use `CrmPipelineRaw$outboundSchema` instead. */
|
|
56
|
-
export const outboundSchema = CrmPipelineRaw$outboundSchema;
|
|
57
|
-
/** @deprecated use `CrmPipelineRaw$Outbound` instead. */
|
|
58
|
-
export type Outbound = CrmPipelineRaw$Outbound;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function crmPipelineRawToJSON(crmPipelineRaw: CrmPipelineRaw): string {
|
|
62
|
-
return JSON.stringify(CrmPipelineRaw$outboundSchema.parse(crmPipelineRaw));
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function crmPipelineRawFromJSON(
|
|
66
|
-
jsonString: string,
|
|
67
|
-
): SafeParseResult<CrmPipelineRaw, SDKValidationError> {
|
|
68
|
-
return safeParse(
|
|
69
|
-
jsonString,
|
|
70
|
-
(x) => CrmPipelineRaw$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
-
`Failed to parse 'CrmPipelineRaw' from JSON`,
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
29
|
/** @internal */
|
|
76
30
|
export const CrmPipeline$inboundSchema: z.ZodType<
|
|
77
31
|
CrmPipeline,
|
|
@@ -85,7 +39,7 @@ export const CrmPipeline$inboundSchema: z.ZodType<
|
|
|
85
39
|
id: z.string().optional(),
|
|
86
40
|
is_active: z.boolean().optional(),
|
|
87
41
|
name: z.string().optional(),
|
|
88
|
-
raw: z.
|
|
42
|
+
raw: z.record(z.any()).optional(),
|
|
89
43
|
stages: z.array(CrmStage$inboundSchema).optional(),
|
|
90
44
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
91
45
|
.optional(),
|
|
@@ -107,7 +61,7 @@ export type CrmPipeline$Outbound = {
|
|
|
107
61
|
id?: string | undefined;
|
|
108
62
|
is_active?: boolean | undefined;
|
|
109
63
|
name?: string | undefined;
|
|
110
|
-
raw?:
|
|
64
|
+
raw?: { [k: string]: any } | undefined;
|
|
111
65
|
stages?: Array<CrmStage$Outbound> | undefined;
|
|
112
66
|
updated_at?: string | undefined;
|
|
113
67
|
};
|
|
@@ -124,7 +78,7 @@ export const CrmPipeline$outboundSchema: z.ZodType<
|
|
|
124
78
|
id: z.string().optional(),
|
|
125
79
|
isActive: z.boolean().optional(),
|
|
126
80
|
name: z.string().optional(),
|
|
127
|
-
raw: z.
|
|
81
|
+
raw: z.record(z.any()).optional(),
|
|
128
82
|
stages: z.array(CrmStage$outboundSchema).optional(),
|
|
129
83
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
130
84
|
}).transform((v) => {
|
|
@@ -14,62 +14,16 @@ import {
|
|
|
14
14
|
PropertyHrisCompanyAddress$outboundSchema,
|
|
15
15
|
} from "./propertyhriscompanyaddress.js";
|
|
16
16
|
|
|
17
|
-
export type HrisCompanyRaw = {};
|
|
18
|
-
|
|
19
17
|
export type HrisCompany = {
|
|
20
18
|
address?: PropertyHrisCompanyAddress | undefined;
|
|
21
19
|
createdAt?: Date | undefined;
|
|
22
20
|
id?: string | undefined;
|
|
23
21
|
legalName?: string | undefined;
|
|
24
22
|
name?: string | undefined;
|
|
25
|
-
raw?:
|
|
23
|
+
raw?: { [k: string]: any } | undefined;
|
|
26
24
|
updatedAt?: Date | undefined;
|
|
27
25
|
};
|
|
28
26
|
|
|
29
|
-
/** @internal */
|
|
30
|
-
export const HrisCompanyRaw$inboundSchema: z.ZodType<
|
|
31
|
-
HrisCompanyRaw,
|
|
32
|
-
z.ZodTypeDef,
|
|
33
|
-
unknown
|
|
34
|
-
> = z.object({});
|
|
35
|
-
|
|
36
|
-
/** @internal */
|
|
37
|
-
export type HrisCompanyRaw$Outbound = {};
|
|
38
|
-
|
|
39
|
-
/** @internal */
|
|
40
|
-
export const HrisCompanyRaw$outboundSchema: z.ZodType<
|
|
41
|
-
HrisCompanyRaw$Outbound,
|
|
42
|
-
z.ZodTypeDef,
|
|
43
|
-
HrisCompanyRaw
|
|
44
|
-
> = z.object({});
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
-
*/
|
|
50
|
-
export namespace HrisCompanyRaw$ {
|
|
51
|
-
/** @deprecated use `HrisCompanyRaw$inboundSchema` instead. */
|
|
52
|
-
export const inboundSchema = HrisCompanyRaw$inboundSchema;
|
|
53
|
-
/** @deprecated use `HrisCompanyRaw$outboundSchema` instead. */
|
|
54
|
-
export const outboundSchema = HrisCompanyRaw$outboundSchema;
|
|
55
|
-
/** @deprecated use `HrisCompanyRaw$Outbound` instead. */
|
|
56
|
-
export type Outbound = HrisCompanyRaw$Outbound;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function hrisCompanyRawToJSON(hrisCompanyRaw: HrisCompanyRaw): string {
|
|
60
|
-
return JSON.stringify(HrisCompanyRaw$outboundSchema.parse(hrisCompanyRaw));
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function hrisCompanyRawFromJSON(
|
|
64
|
-
jsonString: string,
|
|
65
|
-
): SafeParseResult<HrisCompanyRaw, SDKValidationError> {
|
|
66
|
-
return safeParse(
|
|
67
|
-
jsonString,
|
|
68
|
-
(x) => HrisCompanyRaw$inboundSchema.parse(JSON.parse(x)),
|
|
69
|
-
`Failed to parse 'HrisCompanyRaw' from JSON`,
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
27
|
/** @internal */
|
|
74
28
|
export const HrisCompany$inboundSchema: z.ZodType<
|
|
75
29
|
HrisCompany,
|
|
@@ -82,7 +36,7 @@ export const HrisCompany$inboundSchema: z.ZodType<
|
|
|
82
36
|
id: z.string().optional(),
|
|
83
37
|
legal_name: z.string().optional(),
|
|
84
38
|
name: z.string().optional(),
|
|
85
|
-
raw: z.
|
|
39
|
+
raw: z.record(z.any()).optional(),
|
|
86
40
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
87
41
|
.optional(),
|
|
88
42
|
}).transform((v) => {
|
|
@@ -100,7 +54,7 @@ export type HrisCompany$Outbound = {
|
|
|
100
54
|
id?: string | undefined;
|
|
101
55
|
legal_name?: string | undefined;
|
|
102
56
|
name?: string | undefined;
|
|
103
|
-
raw?:
|
|
57
|
+
raw?: { [k: string]: any } | undefined;
|
|
104
58
|
updated_at?: string | undefined;
|
|
105
59
|
};
|
|
106
60
|
|
|
@@ -115,7 +69,7 @@ export const HrisCompany$outboundSchema: z.ZodType<
|
|
|
115
69
|
id: z.string().optional(),
|
|
116
70
|
legalName: z.string().optional(),
|
|
117
71
|
name: z.string().optional(),
|
|
118
|
-
raw: z.
|
|
72
|
+
raw: z.record(z.any()).optional(),
|
|
119
73
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
120
74
|
}).transform((v) => {
|
|
121
75
|
return remap$(v, {
|
|
@@ -93,8 +93,6 @@ export const MaritalStatus = {
|
|
|
93
93
|
} as const;
|
|
94
94
|
export type MaritalStatus = ClosedEnum<typeof MaritalStatus>;
|
|
95
95
|
|
|
96
|
-
export type HrisEmployeeRaw = {};
|
|
97
|
-
|
|
98
96
|
export type HrisEmployee = {
|
|
99
97
|
address?: PropertyHrisEmployeeAddress | undefined;
|
|
100
98
|
bio?: string | undefined;
|
|
@@ -126,7 +124,7 @@ export type HrisEmployee = {
|
|
|
126
124
|
metadata?: Array<HrisMetadata> | undefined;
|
|
127
125
|
name?: string | undefined;
|
|
128
126
|
pronouns?: string | undefined;
|
|
129
|
-
raw?:
|
|
127
|
+
raw?: { [k: string]: any } | undefined;
|
|
130
128
|
salutation?: string | undefined;
|
|
131
129
|
ssnSin?: string | undefined;
|
|
132
130
|
storageQuotaAllocated?: number | undefined;
|
|
@@ -223,52 +221,6 @@ export namespace MaritalStatus$ {
|
|
|
223
221
|
export const outboundSchema = MaritalStatus$outboundSchema;
|
|
224
222
|
}
|
|
225
223
|
|
|
226
|
-
/** @internal */
|
|
227
|
-
export const HrisEmployeeRaw$inboundSchema: z.ZodType<
|
|
228
|
-
HrisEmployeeRaw,
|
|
229
|
-
z.ZodTypeDef,
|
|
230
|
-
unknown
|
|
231
|
-
> = z.object({});
|
|
232
|
-
|
|
233
|
-
/** @internal */
|
|
234
|
-
export type HrisEmployeeRaw$Outbound = {};
|
|
235
|
-
|
|
236
|
-
/** @internal */
|
|
237
|
-
export const HrisEmployeeRaw$outboundSchema: z.ZodType<
|
|
238
|
-
HrisEmployeeRaw$Outbound,
|
|
239
|
-
z.ZodTypeDef,
|
|
240
|
-
HrisEmployeeRaw
|
|
241
|
-
> = z.object({});
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* @internal
|
|
245
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
246
|
-
*/
|
|
247
|
-
export namespace HrisEmployeeRaw$ {
|
|
248
|
-
/** @deprecated use `HrisEmployeeRaw$inboundSchema` instead. */
|
|
249
|
-
export const inboundSchema = HrisEmployeeRaw$inboundSchema;
|
|
250
|
-
/** @deprecated use `HrisEmployeeRaw$outboundSchema` instead. */
|
|
251
|
-
export const outboundSchema = HrisEmployeeRaw$outboundSchema;
|
|
252
|
-
/** @deprecated use `HrisEmployeeRaw$Outbound` instead. */
|
|
253
|
-
export type Outbound = HrisEmployeeRaw$Outbound;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
export function hrisEmployeeRawToJSON(
|
|
257
|
-
hrisEmployeeRaw: HrisEmployeeRaw,
|
|
258
|
-
): string {
|
|
259
|
-
return JSON.stringify(HrisEmployeeRaw$outboundSchema.parse(hrisEmployeeRaw));
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
export function hrisEmployeeRawFromJSON(
|
|
263
|
-
jsonString: string,
|
|
264
|
-
): SafeParseResult<HrisEmployeeRaw, SDKValidationError> {
|
|
265
|
-
return safeParse(
|
|
266
|
-
jsonString,
|
|
267
|
-
(x) => HrisEmployeeRaw$inboundSchema.parse(JSON.parse(x)),
|
|
268
|
-
`Failed to parse 'HrisEmployeeRaw' from JSON`,
|
|
269
|
-
);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
224
|
/** @internal */
|
|
273
225
|
export const HrisEmployee$inboundSchema: z.ZodType<
|
|
274
226
|
HrisEmployee,
|
|
@@ -307,7 +259,7 @@ export const HrisEmployee$inboundSchema: z.ZodType<
|
|
|
307
259
|
metadata: z.array(HrisMetadata$inboundSchema).optional(),
|
|
308
260
|
name: z.string().optional(),
|
|
309
261
|
pronouns: z.string().optional(),
|
|
310
|
-
raw: z.
|
|
262
|
+
raw: z.record(z.any()).optional(),
|
|
311
263
|
salutation: z.string().optional(),
|
|
312
264
|
ssn_sin: z.string().optional(),
|
|
313
265
|
storage_quota_allocated: z.number().optional(),
|
|
@@ -373,7 +325,7 @@ export type HrisEmployee$Outbound = {
|
|
|
373
325
|
metadata?: Array<HrisMetadata$Outbound> | undefined;
|
|
374
326
|
name?: string | undefined;
|
|
375
327
|
pronouns?: string | undefined;
|
|
376
|
-
raw?:
|
|
328
|
+
raw?: { [k: string]: any } | undefined;
|
|
377
329
|
salutation?: string | undefined;
|
|
378
330
|
ssn_sin?: string | undefined;
|
|
379
331
|
storage_quota_allocated?: number | undefined;
|
|
@@ -420,7 +372,7 @@ export const HrisEmployee$outboundSchema: z.ZodType<
|
|
|
420
372
|
metadata: z.array(HrisMetadata$outboundSchema).optional(),
|
|
421
373
|
name: z.string().optional(),
|
|
422
374
|
pronouns: z.string().optional(),
|
|
423
|
-
raw: z.
|
|
375
|
+
raw: z.record(z.any()).optional(),
|
|
424
376
|
salutation: z.string().optional(),
|
|
425
377
|
ssnSin: z.string().optional(),
|
|
426
378
|
storageQuotaAllocated: z.number().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 HrisGroupRaw = {};
|
|
13
|
-
|
|
14
12
|
export const HrisGroupType = {
|
|
15
13
|
Team: "TEAM",
|
|
16
14
|
Group: "GROUP",
|
|
@@ -31,56 +29,12 @@ export type HrisGroup = {
|
|
|
31
29
|
managerIds?: Array<string> | undefined;
|
|
32
30
|
name?: string | undefined;
|
|
33
31
|
parentId?: string | undefined;
|
|
34
|
-
raw?:
|
|
32
|
+
raw?: { [k: string]: any } | undefined;
|
|
35
33
|
type?: HrisGroupType | undefined;
|
|
36
34
|
updatedAt?: Date | undefined;
|
|
37
35
|
userIds?: Array<string> | undefined;
|
|
38
36
|
};
|
|
39
37
|
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const HrisGroupRaw$inboundSchema: z.ZodType<
|
|
42
|
-
HrisGroupRaw,
|
|
43
|
-
z.ZodTypeDef,
|
|
44
|
-
unknown
|
|
45
|
-
> = z.object({});
|
|
46
|
-
|
|
47
|
-
/** @internal */
|
|
48
|
-
export type HrisGroupRaw$Outbound = {};
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export const HrisGroupRaw$outboundSchema: z.ZodType<
|
|
52
|
-
HrisGroupRaw$Outbound,
|
|
53
|
-
z.ZodTypeDef,
|
|
54
|
-
HrisGroupRaw
|
|
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 HrisGroupRaw$ {
|
|
62
|
-
/** @deprecated use `HrisGroupRaw$inboundSchema` instead. */
|
|
63
|
-
export const inboundSchema = HrisGroupRaw$inboundSchema;
|
|
64
|
-
/** @deprecated use `HrisGroupRaw$outboundSchema` instead. */
|
|
65
|
-
export const outboundSchema = HrisGroupRaw$outboundSchema;
|
|
66
|
-
/** @deprecated use `HrisGroupRaw$Outbound` instead. */
|
|
67
|
-
export type Outbound = HrisGroupRaw$Outbound;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function hrisGroupRawToJSON(hrisGroupRaw: HrisGroupRaw): string {
|
|
71
|
-
return JSON.stringify(HrisGroupRaw$outboundSchema.parse(hrisGroupRaw));
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function hrisGroupRawFromJSON(
|
|
75
|
-
jsonString: string,
|
|
76
|
-
): SafeParseResult<HrisGroupRaw, SDKValidationError> {
|
|
77
|
-
return safeParse(
|
|
78
|
-
jsonString,
|
|
79
|
-
(x) => HrisGroupRaw$inboundSchema.parse(JSON.parse(x)),
|
|
80
|
-
`Failed to parse 'HrisGroupRaw' from JSON`,
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
38
|
/** @internal */
|
|
85
39
|
export const HrisGroupType$inboundSchema: z.ZodNativeEnum<
|
|
86
40
|
typeof HrisGroupType
|
|
@@ -117,7 +71,7 @@ export const HrisGroup$inboundSchema: z.ZodType<
|
|
|
117
71
|
manager_ids: z.array(z.string()).optional(),
|
|
118
72
|
name: z.string().optional(),
|
|
119
73
|
parent_id: z.string().optional(),
|
|
120
|
-
raw: z.
|
|
74
|
+
raw: z.record(z.any()).optional(),
|
|
121
75
|
type: HrisGroupType$inboundSchema.optional(),
|
|
122
76
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
123
77
|
.optional(),
|
|
@@ -144,7 +98,7 @@ export type HrisGroup$Outbound = {
|
|
|
144
98
|
manager_ids?: Array<string> | undefined;
|
|
145
99
|
name?: string | undefined;
|
|
146
100
|
parent_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_ids?: Array<string> | undefined;
|
|
@@ -164,7 +118,7 @@ export const HrisGroup$outboundSchema: z.ZodType<
|
|
|
164
118
|
managerIds: z.array(z.string()).optional(),
|
|
165
119
|
name: z.string().optional(),
|
|
166
120
|
parentId: z.string().optional(),
|
|
167
|
-
raw: z.
|
|
121
|
+
raw: z.record(z.any()).optional(),
|
|
168
122
|
type: HrisGroupType$outboundSchema.optional(),
|
|
169
123
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
170
124
|
userIds: z.array(z.string()).optional(),
|
|
@@ -20,8 +20,6 @@ import {
|
|
|
20
20
|
PropertyHrisLocationAddress$outboundSchema,
|
|
21
21
|
} from "./propertyhrislocationaddress.js";
|
|
22
22
|
|
|
23
|
-
export type HrisLocationRaw = {};
|
|
24
|
-
|
|
25
23
|
export type HrisLocation = {
|
|
26
24
|
address?: PropertyHrisLocationAddress | undefined;
|
|
27
25
|
createdAt?: Date | undefined;
|
|
@@ -34,58 +32,12 @@ export type HrisLocation = {
|
|
|
34
32
|
languageLocale?: string | undefined;
|
|
35
33
|
name?: string | undefined;
|
|
36
34
|
parentId?: string | undefined;
|
|
37
|
-
raw?:
|
|
35
|
+
raw?: { [k: string]: any } | undefined;
|
|
38
36
|
telephones?: Array<HrisTelephone> | undefined;
|
|
39
37
|
timezone?: string | undefined;
|
|
40
38
|
updatedAt?: Date | undefined;
|
|
41
39
|
};
|
|
42
40
|
|
|
43
|
-
/** @internal */
|
|
44
|
-
export const HrisLocationRaw$inboundSchema: z.ZodType<
|
|
45
|
-
HrisLocationRaw,
|
|
46
|
-
z.ZodTypeDef,
|
|
47
|
-
unknown
|
|
48
|
-
> = z.object({});
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export type HrisLocationRaw$Outbound = {};
|
|
52
|
-
|
|
53
|
-
/** @internal */
|
|
54
|
-
export const HrisLocationRaw$outboundSchema: z.ZodType<
|
|
55
|
-
HrisLocationRaw$Outbound,
|
|
56
|
-
z.ZodTypeDef,
|
|
57
|
-
HrisLocationRaw
|
|
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 HrisLocationRaw$ {
|
|
65
|
-
/** @deprecated use `HrisLocationRaw$inboundSchema` instead. */
|
|
66
|
-
export const inboundSchema = HrisLocationRaw$inboundSchema;
|
|
67
|
-
/** @deprecated use `HrisLocationRaw$outboundSchema` instead. */
|
|
68
|
-
export const outboundSchema = HrisLocationRaw$outboundSchema;
|
|
69
|
-
/** @deprecated use `HrisLocationRaw$Outbound` instead. */
|
|
70
|
-
export type Outbound = HrisLocationRaw$Outbound;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function hrisLocationRawToJSON(
|
|
74
|
-
hrisLocationRaw: HrisLocationRaw,
|
|
75
|
-
): string {
|
|
76
|
-
return JSON.stringify(HrisLocationRaw$outboundSchema.parse(hrisLocationRaw));
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function hrisLocationRawFromJSON(
|
|
80
|
-
jsonString: string,
|
|
81
|
-
): SafeParseResult<HrisLocationRaw, SDKValidationError> {
|
|
82
|
-
return safeParse(
|
|
83
|
-
jsonString,
|
|
84
|
-
(x) => HrisLocationRaw$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
-
`Failed to parse 'HrisLocationRaw' from JSON`,
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
41
|
/** @internal */
|
|
90
42
|
export const HrisLocation$inboundSchema: z.ZodType<
|
|
91
43
|
HrisLocation,
|
|
@@ -104,7 +56,7 @@ export const HrisLocation$inboundSchema: z.ZodType<
|
|
|
104
56
|
language_locale: z.string().optional(),
|
|
105
57
|
name: z.string().optional(),
|
|
106
58
|
parent_id: z.string().optional(),
|
|
107
|
-
raw: z.
|
|
59
|
+
raw: z.record(z.any()).optional(),
|
|
108
60
|
telephones: z.array(HrisTelephone$inboundSchema).optional(),
|
|
109
61
|
timezone: z.string().optional(),
|
|
110
62
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -134,7 +86,7 @@ export type HrisLocation$Outbound = {
|
|
|
134
86
|
language_locale?: string | undefined;
|
|
135
87
|
name?: string | undefined;
|
|
136
88
|
parent_id?: string | undefined;
|
|
137
|
-
raw?:
|
|
89
|
+
raw?: { [k: string]: any } | undefined;
|
|
138
90
|
telephones?: Array<HrisTelephone$Outbound> | undefined;
|
|
139
91
|
timezone?: string | undefined;
|
|
140
92
|
updated_at?: string | undefined;
|
|
@@ -157,7 +109,7 @@ export const HrisLocation$outboundSchema: z.ZodType<
|
|
|
157
109
|
languageLocale: z.string().optional(),
|
|
158
110
|
name: z.string().optional(),
|
|
159
111
|
parentId: z.string().optional(),
|
|
160
|
-
raw: z.
|
|
112
|
+
raw: z.record(z.any()).optional(),
|
|
161
113
|
telephones: z.array(HrisTelephone$outboundSchema).optional(),
|
|
162
114
|
timezone: z.string().optional(),
|
|
163
115
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|