@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
|
@@ -26,6 +26,8 @@ import {
|
|
|
26
26
|
PropertyCrmContactAddress$outboundSchema,
|
|
27
27
|
} from "./propertycrmcontactaddress.js";
|
|
28
28
|
|
|
29
|
+
export type CrmContactRaw = {};
|
|
30
|
+
|
|
29
31
|
/**
|
|
30
32
|
* A contact represents a person that optionally is associated with a deal and/or a company
|
|
31
33
|
*/
|
|
@@ -46,12 +48,12 @@ export type CrmContact = {
|
|
|
46
48
|
*/
|
|
47
49
|
emails?: Array<CrmEmail> | undefined;
|
|
48
50
|
id?: string | 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?: CrmContactRaw | undefined;
|
|
55
57
|
/**
|
|
56
58
|
* An array of telephones for this contact
|
|
57
59
|
*/
|
|
@@ -61,6 +63,50 @@ export type CrmContact = {
|
|
|
61
63
|
userId?: string | undefined;
|
|
62
64
|
};
|
|
63
65
|
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const CrmContactRaw$inboundSchema: z.ZodType<
|
|
68
|
+
CrmContactRaw,
|
|
69
|
+
z.ZodTypeDef,
|
|
70
|
+
unknown
|
|
71
|
+
> = z.object({});
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export type CrmContactRaw$Outbound = {};
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const CrmContactRaw$outboundSchema: z.ZodType<
|
|
78
|
+
CrmContactRaw$Outbound,
|
|
79
|
+
z.ZodTypeDef,
|
|
80
|
+
CrmContactRaw
|
|
81
|
+
> = z.object({});
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
86
|
+
*/
|
|
87
|
+
export namespace CrmContactRaw$ {
|
|
88
|
+
/** @deprecated use `CrmContactRaw$inboundSchema` instead. */
|
|
89
|
+
export const inboundSchema = CrmContactRaw$inboundSchema;
|
|
90
|
+
/** @deprecated use `CrmContactRaw$outboundSchema` instead. */
|
|
91
|
+
export const outboundSchema = CrmContactRaw$outboundSchema;
|
|
92
|
+
/** @deprecated use `CrmContactRaw$Outbound` instead. */
|
|
93
|
+
export type Outbound = CrmContactRaw$Outbound;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function crmContactRawToJSON(crmContactRaw: CrmContactRaw): string {
|
|
97
|
+
return JSON.stringify(CrmContactRaw$outboundSchema.parse(crmContactRaw));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function crmContactRawFromJSON(
|
|
101
|
+
jsonString: string,
|
|
102
|
+
): SafeParseResult<CrmContactRaw, SDKValidationError> {
|
|
103
|
+
return safeParse(
|
|
104
|
+
jsonString,
|
|
105
|
+
(x) => CrmContactRaw$inboundSchema.parse(JSON.parse(x)),
|
|
106
|
+
`Failed to parse 'CrmContactRaw' from JSON`,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
64
110
|
/** @internal */
|
|
65
111
|
export const CrmContact$inboundSchema: z.ZodType<
|
|
66
112
|
CrmContact,
|
|
@@ -77,7 +123,7 @@ export const CrmContact$inboundSchema: z.ZodType<
|
|
|
77
123
|
id: z.string().optional(),
|
|
78
124
|
link_urls: z.array(z.string()).optional(),
|
|
79
125
|
name: z.string().optional(),
|
|
80
|
-
raw: z.
|
|
126
|
+
raw: z.lazy(() => CrmContactRaw$inboundSchema).optional(),
|
|
81
127
|
telephones: z.array(CrmTelephone$inboundSchema).optional(),
|
|
82
128
|
title: z.string().optional(),
|
|
83
129
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -105,7 +151,7 @@ export type CrmContact$Outbound = {
|
|
|
105
151
|
id?: string | undefined;
|
|
106
152
|
link_urls?: Array<string> | undefined;
|
|
107
153
|
name?: string | undefined;
|
|
108
|
-
raw?:
|
|
154
|
+
raw?: CrmContactRaw$Outbound | undefined;
|
|
109
155
|
telephones?: Array<CrmTelephone$Outbound> | undefined;
|
|
110
156
|
title?: string | undefined;
|
|
111
157
|
updated_at?: string | undefined;
|
|
@@ -127,7 +173,7 @@ export const CrmContact$outboundSchema: z.ZodType<
|
|
|
127
173
|
id: z.string().optional(),
|
|
128
174
|
linkUrls: z.array(z.string()).optional(),
|
|
129
175
|
name: z.string().optional(),
|
|
130
|
-
raw: z.
|
|
176
|
+
raw: z.lazy(() => CrmContactRaw$outboundSchema).optional(),
|
|
131
177
|
telephones: z.array(CrmTelephone$outboundSchema).optional(),
|
|
132
178
|
title: z.string().optional(),
|
|
133
179
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -8,12 +8,16 @@ 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 CrmDealRaw = {};
|
|
12
|
+
|
|
11
13
|
/**
|
|
12
14
|
* A deal represents an opportunity with companies and/or contacts
|
|
13
15
|
*/
|
|
14
16
|
export type CrmDeal = {
|
|
15
17
|
amount?: number | undefined;
|
|
16
18
|
closedAt?: Date | undefined;
|
|
19
|
+
companyIds?: Array<string> | undefined;
|
|
20
|
+
contactIds?: Array<string> | undefined;
|
|
17
21
|
createdAt?: Date | undefined;
|
|
18
22
|
currency?: string | undefined;
|
|
19
23
|
id?: string | undefined;
|
|
@@ -22,10 +26,7 @@ export type CrmDeal = {
|
|
|
22
26
|
pipeline?: string | undefined;
|
|
23
27
|
pipelineId?: string | undefined;
|
|
24
28
|
probability?: number | undefined;
|
|
25
|
-
|
|
26
|
-
* The raw data returned by the integration for this deal
|
|
27
|
-
*/
|
|
28
|
-
raw?: { [k: string]: any } | undefined;
|
|
29
|
+
raw?: CrmDealRaw | undefined;
|
|
29
30
|
source?: string | undefined;
|
|
30
31
|
stage?: string | undefined;
|
|
31
32
|
stageId?: string | undefined;
|
|
@@ -35,12 +36,58 @@ export type CrmDeal = {
|
|
|
35
36
|
wonReason?: string | undefined;
|
|
36
37
|
};
|
|
37
38
|
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const CrmDealRaw$inboundSchema: z.ZodType<
|
|
41
|
+
CrmDealRaw,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({});
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type CrmDealRaw$Outbound = {};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const CrmDealRaw$outboundSchema: z.ZodType<
|
|
51
|
+
CrmDealRaw$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
CrmDealRaw
|
|
54
|
+
> = z.object({});
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
+
*/
|
|
60
|
+
export namespace CrmDealRaw$ {
|
|
61
|
+
/** @deprecated use `CrmDealRaw$inboundSchema` instead. */
|
|
62
|
+
export const inboundSchema = CrmDealRaw$inboundSchema;
|
|
63
|
+
/** @deprecated use `CrmDealRaw$outboundSchema` instead. */
|
|
64
|
+
export const outboundSchema = CrmDealRaw$outboundSchema;
|
|
65
|
+
/** @deprecated use `CrmDealRaw$Outbound` instead. */
|
|
66
|
+
export type Outbound = CrmDealRaw$Outbound;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function crmDealRawToJSON(crmDealRaw: CrmDealRaw): string {
|
|
70
|
+
return JSON.stringify(CrmDealRaw$outboundSchema.parse(crmDealRaw));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function crmDealRawFromJSON(
|
|
74
|
+
jsonString: string,
|
|
75
|
+
): SafeParseResult<CrmDealRaw, SDKValidationError> {
|
|
76
|
+
return safeParse(
|
|
77
|
+
jsonString,
|
|
78
|
+
(x) => CrmDealRaw$inboundSchema.parse(JSON.parse(x)),
|
|
79
|
+
`Failed to parse 'CrmDealRaw' from JSON`,
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
38
83
|
/** @internal */
|
|
39
84
|
export const CrmDeal$inboundSchema: z.ZodType<CrmDeal, z.ZodTypeDef, unknown> =
|
|
40
85
|
z.object({
|
|
41
86
|
amount: z.number().optional(),
|
|
42
87
|
closed_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
43
88
|
.optional(),
|
|
89
|
+
company_ids: z.array(z.string()).optional(),
|
|
90
|
+
contact_ids: z.array(z.string()).optional(),
|
|
44
91
|
created_at: z.string().datetime({ offset: true }).transform(v =>
|
|
45
92
|
new Date(v)
|
|
46
93
|
).optional(),
|
|
@@ -51,7 +98,7 @@ export const CrmDeal$inboundSchema: z.ZodType<CrmDeal, z.ZodTypeDef, unknown> =
|
|
|
51
98
|
pipeline: z.string().optional(),
|
|
52
99
|
pipeline_id: z.string().optional(),
|
|
53
100
|
probability: z.number().optional(),
|
|
54
|
-
raw: z.
|
|
101
|
+
raw: z.lazy(() => CrmDealRaw$inboundSchema).optional(),
|
|
55
102
|
source: z.string().optional(),
|
|
56
103
|
stage: z.string().optional(),
|
|
57
104
|
stage_id: z.string().optional(),
|
|
@@ -64,6 +111,8 @@ export const CrmDeal$inboundSchema: z.ZodType<CrmDeal, z.ZodTypeDef, unknown> =
|
|
|
64
111
|
}).transform((v) => {
|
|
65
112
|
return remap$(v, {
|
|
66
113
|
"closed_at": "closedAt",
|
|
114
|
+
"company_ids": "companyIds",
|
|
115
|
+
"contact_ids": "contactIds",
|
|
67
116
|
"created_at": "createdAt",
|
|
68
117
|
"lost_reason": "lostReason",
|
|
69
118
|
"pipeline_id": "pipelineId",
|
|
@@ -78,6 +127,8 @@ export const CrmDeal$inboundSchema: z.ZodType<CrmDeal, z.ZodTypeDef, unknown> =
|
|
|
78
127
|
export type CrmDeal$Outbound = {
|
|
79
128
|
amount?: number | undefined;
|
|
80
129
|
closed_at?: string | undefined;
|
|
130
|
+
company_ids?: Array<string> | undefined;
|
|
131
|
+
contact_ids?: Array<string> | undefined;
|
|
81
132
|
created_at?: string | undefined;
|
|
82
133
|
currency?: string | undefined;
|
|
83
134
|
id?: string | undefined;
|
|
@@ -86,7 +137,7 @@ export type CrmDeal$Outbound = {
|
|
|
86
137
|
pipeline?: string | undefined;
|
|
87
138
|
pipeline_id?: string | undefined;
|
|
88
139
|
probability?: number | undefined;
|
|
89
|
-
raw?:
|
|
140
|
+
raw?: CrmDealRaw$Outbound | undefined;
|
|
90
141
|
source?: string | undefined;
|
|
91
142
|
stage?: string | undefined;
|
|
92
143
|
stage_id?: string | undefined;
|
|
@@ -104,6 +155,8 @@ export const CrmDeal$outboundSchema: z.ZodType<
|
|
|
104
155
|
> = z.object({
|
|
105
156
|
amount: z.number().optional(),
|
|
106
157
|
closedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
158
|
+
companyIds: z.array(z.string()).optional(),
|
|
159
|
+
contactIds: z.array(z.string()).optional(),
|
|
107
160
|
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
108
161
|
currency: z.string().optional(),
|
|
109
162
|
id: z.string().optional(),
|
|
@@ -112,7 +165,7 @@ export const CrmDeal$outboundSchema: z.ZodType<
|
|
|
112
165
|
pipeline: z.string().optional(),
|
|
113
166
|
pipelineId: z.string().optional(),
|
|
114
167
|
probability: z.number().optional(),
|
|
115
|
-
raw: z.
|
|
168
|
+
raw: z.lazy(() => CrmDealRaw$outboundSchema).optional(),
|
|
116
169
|
source: z.string().optional(),
|
|
117
170
|
stage: z.string().optional(),
|
|
118
171
|
stageId: z.string().optional(),
|
|
@@ -123,6 +176,8 @@ export const CrmDeal$outboundSchema: z.ZodType<
|
|
|
123
176
|
}).transform((v) => {
|
|
124
177
|
return remap$(v, {
|
|
125
178
|
closedAt: "closed_at",
|
|
179
|
+
companyIds: "company_ids",
|
|
180
|
+
contactIds: "contact_ids",
|
|
126
181
|
createdAt: "created_at",
|
|
127
182
|
lostReason: "lost_reason",
|
|
128
183
|
pipelineId: "pipeline_id",
|
|
@@ -57,6 +57,8 @@ import {
|
|
|
57
57
|
PropertyCrmEventTask$outboundSchema,
|
|
58
58
|
} from "./propertycrmeventtask.js";
|
|
59
59
|
|
|
60
|
+
export type CrmEventRaw = {};
|
|
61
|
+
|
|
60
62
|
export const CrmEventType = {
|
|
61
63
|
Note: "NOTE",
|
|
62
64
|
Email: "EMAIL",
|
|
@@ -107,10 +109,7 @@ export type CrmEvent = {
|
|
|
107
109
|
*/
|
|
108
110
|
note?: PropertyCrmEventNote | undefined;
|
|
109
111
|
pageView?: PropertyCrmEventPageView | undefined;
|
|
110
|
-
|
|
111
|
-
* The raw data returned by the integration for this event.
|
|
112
|
-
*/
|
|
113
|
-
raw?: { [k: string]: any } | undefined;
|
|
112
|
+
raw?: CrmEventRaw | undefined;
|
|
114
113
|
/**
|
|
115
114
|
* The task object, when type = task
|
|
116
115
|
*/
|
|
@@ -120,6 +119,50 @@ export type CrmEvent = {
|
|
|
120
119
|
userId?: string | undefined;
|
|
121
120
|
};
|
|
122
121
|
|
|
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
|
+
|
|
123
166
|
/** @internal */
|
|
124
167
|
export const CrmEventType$inboundSchema: z.ZodNativeEnum<typeof CrmEventType> =
|
|
125
168
|
z.nativeEnum(CrmEventType);
|
|
@@ -159,7 +202,7 @@ export const CrmEvent$inboundSchema: z.ZodType<
|
|
|
159
202
|
meeting: PropertyCrmEventMeeting$inboundSchema.optional(),
|
|
160
203
|
note: PropertyCrmEventNote$inboundSchema.optional(),
|
|
161
204
|
page_view: PropertyCrmEventPageView$inboundSchema.optional(),
|
|
162
|
-
raw: z.
|
|
205
|
+
raw: z.lazy(() => CrmEventRaw$inboundSchema).optional(),
|
|
163
206
|
task: PropertyCrmEventTask$inboundSchema.optional(),
|
|
164
207
|
type: CrmEventType$inboundSchema.optional(),
|
|
165
208
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -194,7 +237,7 @@ export type CrmEvent$Outbound = {
|
|
|
194
237
|
meeting?: PropertyCrmEventMeeting$Outbound | undefined;
|
|
195
238
|
note?: PropertyCrmEventNote$Outbound | undefined;
|
|
196
239
|
page_view?: PropertyCrmEventPageView$Outbound | undefined;
|
|
197
|
-
raw?:
|
|
240
|
+
raw?: CrmEventRaw$Outbound | undefined;
|
|
198
241
|
task?: PropertyCrmEventTask$Outbound | undefined;
|
|
199
242
|
type?: string | undefined;
|
|
200
243
|
updated_at?: string | undefined;
|
|
@@ -220,7 +263,7 @@ export const CrmEvent$outboundSchema: z.ZodType<
|
|
|
220
263
|
meeting: PropertyCrmEventMeeting$outboundSchema.optional(),
|
|
221
264
|
note: PropertyCrmEventNote$outboundSchema.optional(),
|
|
222
265
|
pageView: PropertyCrmEventPageView$outboundSchema.optional(),
|
|
223
|
-
raw: z.
|
|
266
|
+
raw: z.lazy(() => CrmEventRaw$outboundSchema).optional(),
|
|
224
267
|
task: PropertyCrmEventTask$outboundSchema.optional(),
|
|
225
268
|
type: CrmEventType$outboundSchema.optional(),
|
|
226
269
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -26,6 +26,8 @@ import {
|
|
|
26
26
|
PropertyCrmLeadAddress$outboundSchema,
|
|
27
27
|
} from "./propertycrmleadaddress.js";
|
|
28
28
|
|
|
29
|
+
export type CrmLeadRaw = {};
|
|
30
|
+
|
|
29
31
|
export type CrmLead = {
|
|
30
32
|
address?: PropertyCrmLeadAddress | undefined;
|
|
31
33
|
companyId?: string | undefined;
|
|
@@ -38,7 +40,7 @@ export type CrmLead = {
|
|
|
38
40
|
isActive?: boolean | undefined;
|
|
39
41
|
linkUrls?: Array<string> | undefined;
|
|
40
42
|
name?: string | undefined;
|
|
41
|
-
raw?:
|
|
43
|
+
raw?: CrmLeadRaw | undefined;
|
|
42
44
|
source?: string | undefined;
|
|
43
45
|
status?: string | undefined;
|
|
44
46
|
telephones?: Array<CrmTelephone> | undefined;
|
|
@@ -46,6 +48,50 @@ export type CrmLead = {
|
|
|
46
48
|
userId?: string | undefined;
|
|
47
49
|
};
|
|
48
50
|
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const CrmLeadRaw$inboundSchema: z.ZodType<
|
|
53
|
+
CrmLeadRaw,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
unknown
|
|
56
|
+
> = z.object({});
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type CrmLeadRaw$Outbound = {};
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const CrmLeadRaw$outboundSchema: z.ZodType<
|
|
63
|
+
CrmLeadRaw$Outbound,
|
|
64
|
+
z.ZodTypeDef,
|
|
65
|
+
CrmLeadRaw
|
|
66
|
+
> = z.object({});
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
71
|
+
*/
|
|
72
|
+
export namespace CrmLeadRaw$ {
|
|
73
|
+
/** @deprecated use `CrmLeadRaw$inboundSchema` instead. */
|
|
74
|
+
export const inboundSchema = CrmLeadRaw$inboundSchema;
|
|
75
|
+
/** @deprecated use `CrmLeadRaw$outboundSchema` instead. */
|
|
76
|
+
export const outboundSchema = CrmLeadRaw$outboundSchema;
|
|
77
|
+
/** @deprecated use `CrmLeadRaw$Outbound` instead. */
|
|
78
|
+
export type Outbound = CrmLeadRaw$Outbound;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function crmLeadRawToJSON(crmLeadRaw: CrmLeadRaw): string {
|
|
82
|
+
return JSON.stringify(CrmLeadRaw$outboundSchema.parse(crmLeadRaw));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function crmLeadRawFromJSON(
|
|
86
|
+
jsonString: string,
|
|
87
|
+
): SafeParseResult<CrmLeadRaw, SDKValidationError> {
|
|
88
|
+
return safeParse(
|
|
89
|
+
jsonString,
|
|
90
|
+
(x) => CrmLeadRaw$inboundSchema.parse(JSON.parse(x)),
|
|
91
|
+
`Failed to parse 'CrmLeadRaw' from JSON`,
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
49
95
|
/** @internal */
|
|
50
96
|
export const CrmLead$inboundSchema: z.ZodType<CrmLead, z.ZodTypeDef, unknown> =
|
|
51
97
|
z.object({
|
|
@@ -62,7 +108,7 @@ export const CrmLead$inboundSchema: z.ZodType<CrmLead, z.ZodTypeDef, unknown> =
|
|
|
62
108
|
is_active: z.boolean().optional(),
|
|
63
109
|
link_urls: z.array(z.string()).optional(),
|
|
64
110
|
name: z.string().optional(),
|
|
65
|
-
raw: z.
|
|
111
|
+
raw: z.lazy(() => CrmLeadRaw$inboundSchema).optional(),
|
|
66
112
|
source: z.string().optional(),
|
|
67
113
|
status: z.string().optional(),
|
|
68
114
|
telephones: z.array(CrmTelephone$inboundSchema).optional(),
|
|
@@ -97,7 +143,7 @@ export type CrmLead$Outbound = {
|
|
|
97
143
|
is_active?: boolean | undefined;
|
|
98
144
|
link_urls?: Array<string> | undefined;
|
|
99
145
|
name?: string | undefined;
|
|
100
|
-
raw?:
|
|
146
|
+
raw?: CrmLeadRaw$Outbound | undefined;
|
|
101
147
|
source?: string | undefined;
|
|
102
148
|
status?: string | undefined;
|
|
103
149
|
telephones?: Array<CrmTelephone$Outbound> | undefined;
|
|
@@ -122,7 +168,7 @@ export const CrmLead$outboundSchema: z.ZodType<
|
|
|
122
168
|
isActive: z.boolean().optional(),
|
|
123
169
|
linkUrls: z.array(z.string()).optional(),
|
|
124
170
|
name: z.string().optional(),
|
|
125
|
-
raw: z.
|
|
171
|
+
raw: z.lazy(() => CrmLeadRaw$outboundSchema).optional(),
|
|
126
172
|
source: z.string().optional(),
|
|
127
173
|
status: z.string().optional(),
|
|
128
174
|
telephones: z.array(CrmTelephone$outboundSchema).optional(),
|
|
@@ -14,6 +14,8 @@ import {
|
|
|
14
14
|
CrmStage$outboundSchema,
|
|
15
15
|
} from "./crmstage.js";
|
|
16
16
|
|
|
17
|
+
export type CrmPipelineRaw = {};
|
|
18
|
+
|
|
17
19
|
export type CrmPipeline = {
|
|
18
20
|
createdAt?: Date | undefined;
|
|
19
21
|
dealProbability?: number | undefined;
|
|
@@ -21,11 +23,55 @@ export type CrmPipeline = {
|
|
|
21
23
|
id?: string | undefined;
|
|
22
24
|
isActive?: boolean | undefined;
|
|
23
25
|
name?: string | undefined;
|
|
24
|
-
raw?:
|
|
26
|
+
raw?: CrmPipelineRaw | undefined;
|
|
25
27
|
stages?: Array<CrmStage> | undefined;
|
|
26
28
|
updatedAt?: Date | undefined;
|
|
27
29
|
};
|
|
28
30
|
|
|
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
|
+
|
|
29
75
|
/** @internal */
|
|
30
76
|
export const CrmPipeline$inboundSchema: z.ZodType<
|
|
31
77
|
CrmPipeline,
|
|
@@ -39,7 +85,7 @@ export const CrmPipeline$inboundSchema: z.ZodType<
|
|
|
39
85
|
id: z.string().optional(),
|
|
40
86
|
is_active: z.boolean().optional(),
|
|
41
87
|
name: z.string().optional(),
|
|
42
|
-
raw: z.
|
|
88
|
+
raw: z.lazy(() => CrmPipelineRaw$inboundSchema).optional(),
|
|
43
89
|
stages: z.array(CrmStage$inboundSchema).optional(),
|
|
44
90
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
45
91
|
.optional(),
|
|
@@ -61,7 +107,7 @@ export type CrmPipeline$Outbound = {
|
|
|
61
107
|
id?: string | undefined;
|
|
62
108
|
is_active?: boolean | undefined;
|
|
63
109
|
name?: string | undefined;
|
|
64
|
-
raw?:
|
|
110
|
+
raw?: CrmPipelineRaw$Outbound | undefined;
|
|
65
111
|
stages?: Array<CrmStage$Outbound> | undefined;
|
|
66
112
|
updated_at?: string | undefined;
|
|
67
113
|
};
|
|
@@ -78,7 +124,7 @@ export const CrmPipeline$outboundSchema: z.ZodType<
|
|
|
78
124
|
id: z.string().optional(),
|
|
79
125
|
isActive: z.boolean().optional(),
|
|
80
126
|
name: z.string().optional(),
|
|
81
|
-
raw: z.
|
|
127
|
+
raw: z.lazy(() => CrmPipelineRaw$outboundSchema).optional(),
|
|
82
128
|
stages: z.array(CrmStage$outboundSchema).optional(),
|
|
83
129
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
84
130
|
}).transform((v) => {
|
|
@@ -14,16 +14,62 @@ import {
|
|
|
14
14
|
PropertyHrisCompanyAddress$outboundSchema,
|
|
15
15
|
} from "./propertyhriscompanyaddress.js";
|
|
16
16
|
|
|
17
|
+
export type HrisCompanyRaw = {};
|
|
18
|
+
|
|
17
19
|
export type HrisCompany = {
|
|
18
20
|
address?: PropertyHrisCompanyAddress | undefined;
|
|
19
21
|
createdAt?: Date | undefined;
|
|
20
22
|
id?: string | undefined;
|
|
21
23
|
legalName?: string | undefined;
|
|
22
24
|
name?: string | undefined;
|
|
23
|
-
raw?:
|
|
25
|
+
raw?: HrisCompanyRaw | undefined;
|
|
24
26
|
updatedAt?: Date | undefined;
|
|
25
27
|
};
|
|
26
28
|
|
|
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
|
+
|
|
27
73
|
/** @internal */
|
|
28
74
|
export const HrisCompany$inboundSchema: z.ZodType<
|
|
29
75
|
HrisCompany,
|
|
@@ -36,7 +82,7 @@ export const HrisCompany$inboundSchema: z.ZodType<
|
|
|
36
82
|
id: z.string().optional(),
|
|
37
83
|
legal_name: z.string().optional(),
|
|
38
84
|
name: z.string().optional(),
|
|
39
|
-
raw: z.
|
|
85
|
+
raw: z.lazy(() => HrisCompanyRaw$inboundSchema).optional(),
|
|
40
86
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
41
87
|
.optional(),
|
|
42
88
|
}).transform((v) => {
|
|
@@ -54,7 +100,7 @@ export type HrisCompany$Outbound = {
|
|
|
54
100
|
id?: string | undefined;
|
|
55
101
|
legal_name?: string | undefined;
|
|
56
102
|
name?: string | undefined;
|
|
57
|
-
raw?:
|
|
103
|
+
raw?: HrisCompanyRaw$Outbound | undefined;
|
|
58
104
|
updated_at?: string | undefined;
|
|
59
105
|
};
|
|
60
106
|
|
|
@@ -69,7 +115,7 @@ export const HrisCompany$outboundSchema: z.ZodType<
|
|
|
69
115
|
id: z.string().optional(),
|
|
70
116
|
legalName: z.string().optional(),
|
|
71
117
|
name: z.string().optional(),
|
|
72
|
-
raw: z.
|
|
118
|
+
raw: z.lazy(() => HrisCompanyRaw$outboundSchema).optional(),
|
|
73
119
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
74
120
|
}).transform((v) => {
|
|
75
121
|
return remap$(v, {
|