@unified-api/typescript-sdk 2.82.1 → 2.82.3
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/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/sdk/models/shared/crmstage.d.ts +2 -0
- package/dist/commonjs/sdk/models/shared/crmstage.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/crmstage.js +4 -0
- package/dist/commonjs/sdk/models/shared/crmstage.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/hrisemployee.d.ts +6 -0
- package/dist/commonjs/sdk/models/shared/hrisemployee.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/hrisemployee.js +3 -0
- package/dist/commonjs/sdk/models/shared/hrisemployee.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/hrisemployeerelationship.d.ts +55 -0
- package/dist/commonjs/sdk/models/shared/hrisemployeerelationship.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/hrisemployeerelationship.js +116 -0
- package/dist/commonjs/sdk/models/shared/hrisemployeerelationship.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts +2 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +2 -0
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyhrisemployeerelationshipaddress.d.ts +31 -0
- package/dist/commonjs/sdk/models/shared/propertyhrisemployeerelationshipaddress.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertyhrisemployeerelationshipaddress.js +85 -0
- package/dist/commonjs/sdk/models/shared/propertyhrisemployeerelationshipaddress.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/sdk/models/shared/crmstage.d.ts +2 -0
- package/dist/esm/sdk/models/shared/crmstage.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/crmstage.js +4 -0
- package/dist/esm/sdk/models/shared/crmstage.js.map +1 -1
- package/dist/esm/sdk/models/shared/hrisemployee.d.ts +6 -0
- package/dist/esm/sdk/models/shared/hrisemployee.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/hrisemployee.js +3 -0
- package/dist/esm/sdk/models/shared/hrisemployee.js.map +1 -1
- package/dist/esm/sdk/models/shared/hrisemployeerelationship.d.ts +55 -0
- package/dist/esm/sdk/models/shared/hrisemployeerelationship.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/hrisemployeerelationship.js +78 -0
- package/dist/esm/sdk/models/shared/hrisemployeerelationship.js.map +1 -0
- package/dist/esm/sdk/models/shared/index.d.ts +2 -0
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +2 -0
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyhrisemployeerelationshipaddress.d.ts +31 -0
- package/dist/esm/sdk/models/shared/propertyhrisemployeerelationshipaddress.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/propertyhrisemployeerelationshipaddress.js +47 -0
- package/dist/esm/sdk/models/shared/propertyhrisemployeerelationshipaddress.js.map +1 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/sdk/models/shared/crmstage.ts +6 -0
- package/src/sdk/models/shared/hrisemployee.ts +13 -0
- package/src/sdk/models/shared/hrisemployeerelationship.ts +158 -0
- package/src/sdk/models/shared/index.ts +2 -0
- package/src/sdk/models/shared/propertyhrisemployeerelationshipaddress.ts +101 -0
|
@@ -14,6 +14,7 @@ export type CrmStage = {
|
|
|
14
14
|
dealProbability?: number | undefined;
|
|
15
15
|
displayOrder?: number | undefined;
|
|
16
16
|
id?: string | undefined;
|
|
17
|
+
isClosed?: boolean | undefined;
|
|
17
18
|
name?: string | undefined;
|
|
18
19
|
updatedAt?: Date | undefined;
|
|
19
20
|
};
|
|
@@ -30,6 +31,7 @@ export const CrmStage$inboundSchema: z.ZodType<
|
|
|
30
31
|
deal_probability: z.number().optional(),
|
|
31
32
|
display_order: z.number().optional(),
|
|
32
33
|
id: z.string().optional(),
|
|
34
|
+
is_closed: z.boolean().optional(),
|
|
33
35
|
name: z.string().optional(),
|
|
34
36
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
35
37
|
.optional(),
|
|
@@ -38,6 +40,7 @@ export const CrmStage$inboundSchema: z.ZodType<
|
|
|
38
40
|
"created_at": "createdAt",
|
|
39
41
|
"deal_probability": "dealProbability",
|
|
40
42
|
"display_order": "displayOrder",
|
|
43
|
+
"is_closed": "isClosed",
|
|
41
44
|
"updated_at": "updatedAt",
|
|
42
45
|
});
|
|
43
46
|
});
|
|
@@ -48,6 +51,7 @@ export type CrmStage$Outbound = {
|
|
|
48
51
|
deal_probability?: number | undefined;
|
|
49
52
|
display_order?: number | undefined;
|
|
50
53
|
id?: string | undefined;
|
|
54
|
+
is_closed?: boolean | undefined;
|
|
51
55
|
name?: string | undefined;
|
|
52
56
|
updated_at?: string | undefined;
|
|
53
57
|
};
|
|
@@ -63,6 +67,7 @@ export const CrmStage$outboundSchema: z.ZodType<
|
|
|
63
67
|
dealProbability: z.number().optional(),
|
|
64
68
|
displayOrder: z.number().optional(),
|
|
65
69
|
id: z.string().optional(),
|
|
70
|
+
isClosed: z.boolean().optional(),
|
|
66
71
|
name: z.string().optional(),
|
|
67
72
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
68
73
|
}).transform((v) => {
|
|
@@ -70,6 +75,7 @@ export const CrmStage$outboundSchema: z.ZodType<
|
|
|
70
75
|
createdAt: "created_at",
|
|
71
76
|
dealProbability: "deal_probability",
|
|
72
77
|
displayOrder: "display_order",
|
|
78
|
+
isClosed: "is_closed",
|
|
73
79
|
updatedAt: "updated_at",
|
|
74
80
|
});
|
|
75
81
|
});
|
|
@@ -21,6 +21,12 @@ import {
|
|
|
21
21
|
HrisEmail$Outbound,
|
|
22
22
|
HrisEmail$outboundSchema,
|
|
23
23
|
} from "./hrisemail.js";
|
|
24
|
+
import {
|
|
25
|
+
HrisEmployeerelationship,
|
|
26
|
+
HrisEmployeerelationship$inboundSchema,
|
|
27
|
+
HrisEmployeerelationship$Outbound,
|
|
28
|
+
HrisEmployeerelationship$outboundSchema,
|
|
29
|
+
} from "./hrisemployeerelationship.js";
|
|
24
30
|
import {
|
|
25
31
|
HrisGroup,
|
|
26
32
|
HrisGroup$inboundSchema,
|
|
@@ -128,6 +134,10 @@ export type HrisEmployee = {
|
|
|
128
134
|
name?: string | undefined;
|
|
129
135
|
pronouns?: string | undefined;
|
|
130
136
|
raw?: { [k: string]: any } | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* the employee's personal relationships (eg. emergency contacts, spouse, dependants, ...)
|
|
139
|
+
*/
|
|
140
|
+
relationships?: Array<HrisEmployeerelationship> | undefined;
|
|
131
141
|
salutation?: string | undefined;
|
|
132
142
|
ssnSin?: string | undefined;
|
|
133
143
|
storageQuotaAllocated?: number | undefined;
|
|
@@ -233,6 +243,7 @@ export const HrisEmployee$inboundSchema: z.ZodType<
|
|
|
233
243
|
name: z.string().optional(),
|
|
234
244
|
pronouns: z.string().optional(),
|
|
235
245
|
raw: z.record(z.any()).optional(),
|
|
246
|
+
relationships: z.array(HrisEmployeerelationship$inboundSchema).optional(),
|
|
236
247
|
salutation: z.string().optional(),
|
|
237
248
|
ssn_sin: z.string().optional(),
|
|
238
249
|
storage_quota_allocated: z.number().optional(),
|
|
@@ -302,6 +313,7 @@ export type HrisEmployee$Outbound = {
|
|
|
302
313
|
name?: string | undefined;
|
|
303
314
|
pronouns?: string | undefined;
|
|
304
315
|
raw?: { [k: string]: any } | undefined;
|
|
316
|
+
relationships?: Array<HrisEmployeerelationship$Outbound> | undefined;
|
|
305
317
|
salutation?: string | undefined;
|
|
306
318
|
ssn_sin?: string | undefined;
|
|
307
319
|
storage_quota_allocated?: number | undefined;
|
|
@@ -351,6 +363,7 @@ export const HrisEmployee$outboundSchema: z.ZodType<
|
|
|
351
363
|
name: z.string().optional(),
|
|
352
364
|
pronouns: z.string().optional(),
|
|
353
365
|
raw: z.record(z.any()).optional(),
|
|
366
|
+
relationships: z.array(HrisEmployeerelationship$outboundSchema).optional(),
|
|
354
367
|
salutation: z.string().optional(),
|
|
355
368
|
ssnSin: z.string().optional(),
|
|
356
369
|
storageQuotaAllocated: z.number().optional(),
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
10
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
import {
|
|
13
|
+
HrisEmail,
|
|
14
|
+
HrisEmail$inboundSchema,
|
|
15
|
+
HrisEmail$Outbound,
|
|
16
|
+
HrisEmail$outboundSchema,
|
|
17
|
+
} from "./hrisemail.js";
|
|
18
|
+
import {
|
|
19
|
+
HrisTelephone,
|
|
20
|
+
HrisTelephone$inboundSchema,
|
|
21
|
+
HrisTelephone$Outbound,
|
|
22
|
+
HrisTelephone$outboundSchema,
|
|
23
|
+
} from "./hristelephone.js";
|
|
24
|
+
import {
|
|
25
|
+
PropertyHrisEmployeerelationshipAddress,
|
|
26
|
+
PropertyHrisEmployeerelationshipAddress$inboundSchema,
|
|
27
|
+
PropertyHrisEmployeerelationshipAddress$Outbound,
|
|
28
|
+
PropertyHrisEmployeerelationshipAddress$outboundSchema,
|
|
29
|
+
} from "./propertyhrisemployeerelationshipaddress.js";
|
|
30
|
+
|
|
31
|
+
export const HrisEmployeerelationshipType = {
|
|
32
|
+
Emergency: "EMERGENCY",
|
|
33
|
+
Spouse: "SPOUSE",
|
|
34
|
+
Child: "CHILD",
|
|
35
|
+
Parent: "PARENT",
|
|
36
|
+
Sibling: "SIBLING",
|
|
37
|
+
Friend: "FRIEND",
|
|
38
|
+
Other: "OTHER",
|
|
39
|
+
} as const;
|
|
40
|
+
export type HrisEmployeerelationshipType = OpenEnum<
|
|
41
|
+
typeof HrisEmployeerelationshipType
|
|
42
|
+
>;
|
|
43
|
+
|
|
44
|
+
export type HrisEmployeerelationship = {
|
|
45
|
+
address?: PropertyHrisEmployeerelationshipAddress | undefined;
|
|
46
|
+
emails?: Array<HrisEmail> | undefined;
|
|
47
|
+
endAt?: Date | undefined;
|
|
48
|
+
firstName?: string | undefined;
|
|
49
|
+
isBeneficiary?: boolean | undefined;
|
|
50
|
+
isDependent?: boolean | undefined;
|
|
51
|
+
lastName?: string | undefined;
|
|
52
|
+
name?: string | undefined;
|
|
53
|
+
startAt?: Date | undefined;
|
|
54
|
+
telephones?: Array<HrisTelephone> | undefined;
|
|
55
|
+
type?: HrisEmployeerelationshipType | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const HrisEmployeerelationshipType$inboundSchema: z.ZodType<
|
|
60
|
+
HrisEmployeerelationshipType,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
unknown
|
|
63
|
+
> = openEnums.inboundSchema(HrisEmployeerelationshipType);
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const HrisEmployeerelationshipType$outboundSchema: z.ZodType<
|
|
66
|
+
string,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
HrisEmployeerelationshipType
|
|
69
|
+
> = openEnums.outboundSchema(HrisEmployeerelationshipType);
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const HrisEmployeerelationship$inboundSchema: z.ZodType<
|
|
73
|
+
HrisEmployeerelationship,
|
|
74
|
+
z.ZodTypeDef,
|
|
75
|
+
unknown
|
|
76
|
+
> = z.object({
|
|
77
|
+
address: PropertyHrisEmployeerelationshipAddress$inboundSchema.optional(),
|
|
78
|
+
emails: z.array(HrisEmail$inboundSchema).optional(),
|
|
79
|
+
end_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
80
|
+
.optional(),
|
|
81
|
+
first_name: z.string().optional(),
|
|
82
|
+
is_beneficiary: z.boolean().optional(),
|
|
83
|
+
is_dependent: z.boolean().optional(),
|
|
84
|
+
last_name: z.string().optional(),
|
|
85
|
+
name: z.string().optional(),
|
|
86
|
+
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
87
|
+
.optional(),
|
|
88
|
+
telephones: z.array(HrisTelephone$inboundSchema).optional(),
|
|
89
|
+
type: HrisEmployeerelationshipType$inboundSchema.optional(),
|
|
90
|
+
}).transform((v) => {
|
|
91
|
+
return remap$(v, {
|
|
92
|
+
"end_at": "endAt",
|
|
93
|
+
"first_name": "firstName",
|
|
94
|
+
"is_beneficiary": "isBeneficiary",
|
|
95
|
+
"is_dependent": "isDependent",
|
|
96
|
+
"last_name": "lastName",
|
|
97
|
+
"start_at": "startAt",
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
/** @internal */
|
|
101
|
+
export type HrisEmployeerelationship$Outbound = {
|
|
102
|
+
address?: PropertyHrisEmployeerelationshipAddress$Outbound | undefined;
|
|
103
|
+
emails?: Array<HrisEmail$Outbound> | undefined;
|
|
104
|
+
end_at?: string | undefined;
|
|
105
|
+
first_name?: string | undefined;
|
|
106
|
+
is_beneficiary?: boolean | undefined;
|
|
107
|
+
is_dependent?: boolean | undefined;
|
|
108
|
+
last_name?: string | undefined;
|
|
109
|
+
name?: string | undefined;
|
|
110
|
+
start_at?: string | undefined;
|
|
111
|
+
telephones?: Array<HrisTelephone$Outbound> | undefined;
|
|
112
|
+
type?: string | undefined;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
export const HrisEmployeerelationship$outboundSchema: z.ZodType<
|
|
117
|
+
HrisEmployeerelationship$Outbound,
|
|
118
|
+
z.ZodTypeDef,
|
|
119
|
+
HrisEmployeerelationship
|
|
120
|
+
> = z.object({
|
|
121
|
+
address: PropertyHrisEmployeerelationshipAddress$outboundSchema.optional(),
|
|
122
|
+
emails: z.array(HrisEmail$outboundSchema).optional(),
|
|
123
|
+
endAt: z.date().transform(v => v.toISOString()).optional(),
|
|
124
|
+
firstName: z.string().optional(),
|
|
125
|
+
isBeneficiary: z.boolean().optional(),
|
|
126
|
+
isDependent: z.boolean().optional(),
|
|
127
|
+
lastName: z.string().optional(),
|
|
128
|
+
name: z.string().optional(),
|
|
129
|
+
startAt: z.date().transform(v => v.toISOString()).optional(),
|
|
130
|
+
telephones: z.array(HrisTelephone$outboundSchema).optional(),
|
|
131
|
+
type: HrisEmployeerelationshipType$outboundSchema.optional(),
|
|
132
|
+
}).transform((v) => {
|
|
133
|
+
return remap$(v, {
|
|
134
|
+
endAt: "end_at",
|
|
135
|
+
firstName: "first_name",
|
|
136
|
+
isBeneficiary: "is_beneficiary",
|
|
137
|
+
isDependent: "is_dependent",
|
|
138
|
+
lastName: "last_name",
|
|
139
|
+
startAt: "start_at",
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
export function hrisEmployeerelationshipToJSON(
|
|
144
|
+
hrisEmployeerelationship: HrisEmployeerelationship,
|
|
145
|
+
): string {
|
|
146
|
+
return JSON.stringify(
|
|
147
|
+
HrisEmployeerelationship$outboundSchema.parse(hrisEmployeerelationship),
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
export function hrisEmployeerelationshipFromJSON(
|
|
151
|
+
jsonString: string,
|
|
152
|
+
): SafeParseResult<HrisEmployeerelationship, SDKValidationError> {
|
|
153
|
+
return safeParse(
|
|
154
|
+
jsonString,
|
|
155
|
+
(x) => HrisEmployeerelationship$inboundSchema.parse(JSON.parse(x)),
|
|
156
|
+
`Failed to parse 'HrisEmployeerelationship' from JSON`,
|
|
157
|
+
);
|
|
158
|
+
}
|
|
@@ -117,6 +117,7 @@ export * from "./hrisdeduction.js";
|
|
|
117
117
|
export * from "./hrisdevice.js";
|
|
118
118
|
export * from "./hrisemail.js";
|
|
119
119
|
export * from "./hrisemployee.js";
|
|
120
|
+
export * from "./hrisemployeerelationship.js";
|
|
120
121
|
export * from "./hrisgroup.js";
|
|
121
122
|
export * from "./hrislocation.js";
|
|
122
123
|
export * from "./hrismetadata.js";
|
|
@@ -194,6 +195,7 @@ export * from "./propertyenrichpersonaddress.js";
|
|
|
194
195
|
export * from "./propertyhriscompanyaddress.js";
|
|
195
196
|
export * from "./propertyhrisemployeeaddress.js";
|
|
196
197
|
export * from "./propertyhrisemployeeemployeeroles.js";
|
|
198
|
+
export * from "./propertyhrisemployeerelationshipaddress.js";
|
|
197
199
|
export * from "./propertyhrislocationaddress.js";
|
|
198
200
|
export * from "./propertyhrispayslipdeduction.js";
|
|
199
201
|
export * from "./propertyintegrationcategories.js";
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type PropertyHrisEmployeerelationshipAddress = {
|
|
12
|
+
address1?: string | undefined;
|
|
13
|
+
address2?: string | undefined;
|
|
14
|
+
city?: string | undefined;
|
|
15
|
+
country?: string | undefined;
|
|
16
|
+
countryCode?: string | undefined;
|
|
17
|
+
postalCode?: string | undefined;
|
|
18
|
+
region?: string | undefined;
|
|
19
|
+
regionCode?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const PropertyHrisEmployeerelationshipAddress$inboundSchema: z.ZodType<
|
|
24
|
+
PropertyHrisEmployeerelationshipAddress,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
address1: z.string().optional(),
|
|
29
|
+
address2: z.string().optional(),
|
|
30
|
+
city: z.string().optional(),
|
|
31
|
+
country: z.string().optional(),
|
|
32
|
+
country_code: z.string().optional(),
|
|
33
|
+
postal_code: z.string().optional(),
|
|
34
|
+
region: z.string().optional(),
|
|
35
|
+
region_code: z.string().optional(),
|
|
36
|
+
}).transform((v) => {
|
|
37
|
+
return remap$(v, {
|
|
38
|
+
"country_code": "countryCode",
|
|
39
|
+
"postal_code": "postalCode",
|
|
40
|
+
"region_code": "regionCode",
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type PropertyHrisEmployeerelationshipAddress$Outbound = {
|
|
45
|
+
address1?: string | undefined;
|
|
46
|
+
address2?: string | undefined;
|
|
47
|
+
city?: string | undefined;
|
|
48
|
+
country?: string | undefined;
|
|
49
|
+
country_code?: string | undefined;
|
|
50
|
+
postal_code?: string | undefined;
|
|
51
|
+
region?: string | undefined;
|
|
52
|
+
region_code?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const PropertyHrisEmployeerelationshipAddress$outboundSchema: z.ZodType<
|
|
57
|
+
PropertyHrisEmployeerelationshipAddress$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
PropertyHrisEmployeerelationshipAddress
|
|
60
|
+
> = z.object({
|
|
61
|
+
address1: z.string().optional(),
|
|
62
|
+
address2: z.string().optional(),
|
|
63
|
+
city: z.string().optional(),
|
|
64
|
+
country: z.string().optional(),
|
|
65
|
+
countryCode: z.string().optional(),
|
|
66
|
+
postalCode: z.string().optional(),
|
|
67
|
+
region: z.string().optional(),
|
|
68
|
+
regionCode: z.string().optional(),
|
|
69
|
+
}).transform((v) => {
|
|
70
|
+
return remap$(v, {
|
|
71
|
+
countryCode: "country_code",
|
|
72
|
+
postalCode: "postal_code",
|
|
73
|
+
regionCode: "region_code",
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
export function propertyHrisEmployeerelationshipAddressToJSON(
|
|
78
|
+
propertyHrisEmployeerelationshipAddress:
|
|
79
|
+
PropertyHrisEmployeerelationshipAddress,
|
|
80
|
+
): string {
|
|
81
|
+
return JSON.stringify(
|
|
82
|
+
PropertyHrisEmployeerelationshipAddress$outboundSchema.parse(
|
|
83
|
+
propertyHrisEmployeerelationshipAddress,
|
|
84
|
+
),
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
export function propertyHrisEmployeerelationshipAddressFromJSON(
|
|
88
|
+
jsonString: string,
|
|
89
|
+
): SafeParseResult<
|
|
90
|
+
PropertyHrisEmployeerelationshipAddress,
|
|
91
|
+
SDKValidationError
|
|
92
|
+
> {
|
|
93
|
+
return safeParse(
|
|
94
|
+
jsonString,
|
|
95
|
+
(x) =>
|
|
96
|
+
PropertyHrisEmployeerelationshipAddress$inboundSchema.parse(
|
|
97
|
+
JSON.parse(x),
|
|
98
|
+
),
|
|
99
|
+
`Failed to parse 'PropertyHrisEmployeerelationshipAddress' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|