@unified-api/typescript-sdk 2.82.2 → 2.82.4

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.
Files changed (53) hide show
  1. package/dist/commonjs/lib/config.d.ts +2 -2
  2. package/dist/commonjs/lib/config.js +2 -2
  3. package/dist/commonjs/sdk/models/shared/hrisemployee.d.ts +6 -0
  4. package/dist/commonjs/sdk/models/shared/hrisemployee.d.ts.map +1 -1
  5. package/dist/commonjs/sdk/models/shared/hrisemployee.js +3 -0
  6. package/dist/commonjs/sdk/models/shared/hrisemployee.js.map +1 -1
  7. package/dist/commonjs/sdk/models/shared/hrisemployeerelationship.d.ts +55 -0
  8. package/dist/commonjs/sdk/models/shared/hrisemployeerelationship.d.ts.map +1 -0
  9. package/dist/commonjs/sdk/models/shared/hrisemployeerelationship.js +116 -0
  10. package/dist/commonjs/sdk/models/shared/hrisemployeerelationship.js.map +1 -0
  11. package/dist/commonjs/sdk/models/shared/hrislocation.d.ts +2 -0
  12. package/dist/commonjs/sdk/models/shared/hrislocation.d.ts.map +1 -1
  13. package/dist/commonjs/sdk/models/shared/hrislocation.js +4 -0
  14. package/dist/commonjs/sdk/models/shared/hrislocation.js.map +1 -1
  15. package/dist/commonjs/sdk/models/shared/index.d.ts +2 -0
  16. package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
  17. package/dist/commonjs/sdk/models/shared/index.js +2 -0
  18. package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
  19. package/dist/commonjs/sdk/models/shared/propertyhrisemployeerelationshipaddress.d.ts +31 -0
  20. package/dist/commonjs/sdk/models/shared/propertyhrisemployeerelationshipaddress.d.ts.map +1 -0
  21. package/dist/commonjs/sdk/models/shared/propertyhrisemployeerelationshipaddress.js +85 -0
  22. package/dist/commonjs/sdk/models/shared/propertyhrisemployeerelationshipaddress.js.map +1 -0
  23. package/dist/esm/lib/config.d.ts +2 -2
  24. package/dist/esm/lib/config.js +2 -2
  25. package/dist/esm/sdk/models/shared/hrisemployee.d.ts +6 -0
  26. package/dist/esm/sdk/models/shared/hrisemployee.d.ts.map +1 -1
  27. package/dist/esm/sdk/models/shared/hrisemployee.js +3 -0
  28. package/dist/esm/sdk/models/shared/hrisemployee.js.map +1 -1
  29. package/dist/esm/sdk/models/shared/hrisemployeerelationship.d.ts +55 -0
  30. package/dist/esm/sdk/models/shared/hrisemployeerelationship.d.ts.map +1 -0
  31. package/dist/esm/sdk/models/shared/hrisemployeerelationship.js +78 -0
  32. package/dist/esm/sdk/models/shared/hrisemployeerelationship.js.map +1 -0
  33. package/dist/esm/sdk/models/shared/hrislocation.d.ts +2 -0
  34. package/dist/esm/sdk/models/shared/hrislocation.d.ts.map +1 -1
  35. package/dist/esm/sdk/models/shared/hrislocation.js +4 -0
  36. package/dist/esm/sdk/models/shared/hrislocation.js.map +1 -1
  37. package/dist/esm/sdk/models/shared/index.d.ts +2 -0
  38. package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
  39. package/dist/esm/sdk/models/shared/index.js +2 -0
  40. package/dist/esm/sdk/models/shared/index.js.map +1 -1
  41. package/dist/esm/sdk/models/shared/propertyhrisemployeerelationshipaddress.d.ts +31 -0
  42. package/dist/esm/sdk/models/shared/propertyhrisemployeerelationshipaddress.d.ts.map +1 -0
  43. package/dist/esm/sdk/models/shared/propertyhrisemployeerelationshipaddress.js +47 -0
  44. package/dist/esm/sdk/models/shared/propertyhrisemployeerelationshipaddress.js.map +1 -0
  45. package/examples/package-lock.json +1 -1
  46. package/jsr.json +1 -1
  47. package/package.json +1 -1
  48. package/src/lib/config.ts +2 -2
  49. package/src/sdk/models/shared/hrisemployee.ts +13 -0
  50. package/src/sdk/models/shared/hrisemployeerelationship.ts +158 -0
  51. package/src/sdk/models/shared/hrislocation.ts +6 -0
  52. package/src/sdk/models/shared/index.ts +2 -0
  53. package/src/sdk/models/shared/propertyhrisemployeerelationshipaddress.ts +101 -0
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v3";
5
+ import { remap as remap$ } from "../../../lib/primitives.js";
6
+ import { safeParse } from "../../../lib/schemas.js";
7
+ /** @internal */
8
+ export const PropertyHrisEmployeerelationshipAddress$inboundSchema = z.object({
9
+ address1: z.string().optional(),
10
+ address2: z.string().optional(),
11
+ city: z.string().optional(),
12
+ country: z.string().optional(),
13
+ country_code: z.string().optional(),
14
+ postal_code: z.string().optional(),
15
+ region: z.string().optional(),
16
+ region_code: z.string().optional(),
17
+ }).transform((v) => {
18
+ return remap$(v, {
19
+ "country_code": "countryCode",
20
+ "postal_code": "postalCode",
21
+ "region_code": "regionCode",
22
+ });
23
+ });
24
+ /** @internal */
25
+ export const PropertyHrisEmployeerelationshipAddress$outboundSchema = z.object({
26
+ address1: z.string().optional(),
27
+ address2: z.string().optional(),
28
+ city: z.string().optional(),
29
+ country: z.string().optional(),
30
+ countryCode: z.string().optional(),
31
+ postalCode: z.string().optional(),
32
+ region: z.string().optional(),
33
+ regionCode: z.string().optional(),
34
+ }).transform((v) => {
35
+ return remap$(v, {
36
+ countryCode: "country_code",
37
+ postalCode: "postal_code",
38
+ regionCode: "region_code",
39
+ });
40
+ });
41
+ export function propertyHrisEmployeerelationshipAddressToJSON(propertyHrisEmployeerelationshipAddress) {
42
+ return JSON.stringify(PropertyHrisEmployeerelationshipAddress$outboundSchema.parse(propertyHrisEmployeerelationshipAddress));
43
+ }
44
+ export function propertyHrisEmployeerelationshipAddressFromJSON(jsonString) {
45
+ return safeParse(jsonString, (x) => PropertyHrisEmployeerelationshipAddress$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PropertyHrisEmployeerelationshipAddress' from JSON`);
46
+ }
47
+ //# sourceMappingURL=propertyhrisemployeerelationshipaddress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"propertyhrisemployeerelationshipaddress.js","sourceRoot":"","sources":["../../../../../src/sdk/models/shared/propertyhrisemployeerelationshipaddress.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAepD,gBAAgB;AAChB,MAAM,CAAC,MAAM,qDAAqD,GAI9D,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,YAAY;QAC3B,aAAa,EAAE,YAAY;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAaH,gBAAgB;AAChB,MAAM,CAAC,MAAM,sDAAsD,GAI/D,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;QAC3B,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,aAAa;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,6CAA6C,CAC3D,uCACyC;IAEzC,OAAO,IAAI,CAAC,SAAS,CACnB,sDAAsD,CAAC,KAAK,CAC1D,uCAAuC,CACxC,CACF,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,+CAA+C,CAC7D,UAAkB;IAKlB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,qDAAqD,CAAC,KAAK,CACzD,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,qEAAqE,CACtE,CAAC;AACJ,CAAC"}
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "..": {
20
20
  "name": "@unified-api/typescript-sdk",
21
- "version": "2.82.2",
21
+ "version": "2.82.4",
22
22
  "dependencies": {
23
23
  "zod": "^3.25.0 || ^4.0.0"
24
24
  },
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@unified-api/typescript-sdk",
5
- "version": "2.82.2",
5
+ "version": "2.82.4",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./sdk/models/errors": "./src/sdk/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unified-api/typescript-sdk",
3
- "version": "2.82.2",
3
+ "version": "2.82.4",
4
4
  "author": "Unified",
5
5
  "type": "module",
6
6
  "tshy": {
package/src/lib/config.ts CHANGED
@@ -73,8 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
73
73
  export const SDK_METADATA = {
74
74
  language: "typescript",
75
75
  openapiDocVersion: "1.0",
76
- sdkVersion: "2.82.2",
76
+ sdkVersion: "2.82.4",
77
77
  genVersion: "2.781.2",
78
78
  userAgent:
79
- "speakeasy-sdk/typescript 2.82.2 2.781.2 1.0 @unified-api/typescript-sdk",
79
+ "speakeasy-sdk/typescript 2.82.4 2.781.2 1.0 @unified-api/typescript-sdk",
80
80
  } as const;
@@ -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
+ }
@@ -22,6 +22,7 @@ import {
22
22
 
23
23
  export type HrisLocation = {
24
24
  address?: PropertyHrisLocationAddress | undefined;
25
+ companyId?: string | undefined;
25
26
  createdAt?: Date | undefined;
26
27
  currency?: string | undefined;
27
28
  description?: string | undefined;
@@ -45,6 +46,7 @@ export const HrisLocation$inboundSchema: z.ZodType<
45
46
  unknown
46
47
  > = z.object({
47
48
  address: PropertyHrisLocationAddress$inboundSchema.optional(),
49
+ company_id: z.string().optional(),
48
50
  created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
49
51
  .optional(),
50
52
  currency: z.string().optional(),
@@ -63,6 +65,7 @@ export const HrisLocation$inboundSchema: z.ZodType<
63
65
  .optional(),
64
66
  }).transform((v) => {
65
67
  return remap$(v, {
68
+ "company_id": "companyId",
66
69
  "created_at": "createdAt",
67
70
  "external_identifier": "externalIdentifier",
68
71
  "is_active": "isActive",
@@ -75,6 +78,7 @@ export const HrisLocation$inboundSchema: z.ZodType<
75
78
  /** @internal */
76
79
  export type HrisLocation$Outbound = {
77
80
  address?: PropertyHrisLocationAddress$Outbound | undefined;
81
+ company_id?: string | undefined;
78
82
  created_at?: string | undefined;
79
83
  currency?: string | undefined;
80
84
  description?: string | undefined;
@@ -98,6 +102,7 @@ export const HrisLocation$outboundSchema: z.ZodType<
98
102
  HrisLocation
99
103
  > = z.object({
100
104
  address: PropertyHrisLocationAddress$outboundSchema.optional(),
105
+ companyId: z.string().optional(),
101
106
  createdAt: z.date().transform(v => v.toISOString()).optional(),
102
107
  currency: z.string().optional(),
103
108
  description: z.string().optional(),
@@ -114,6 +119,7 @@ export const HrisLocation$outboundSchema: z.ZodType<
114
119
  updatedAt: z.date().transform(v => v.toISOString()).optional(),
115
120
  }).transform((v) => {
116
121
  return remap$(v, {
122
+ companyId: "company_id",
117
123
  createdAt: "created_at",
118
124
  externalIdentifier: "external_identifier",
119
125
  isActive: "is_active",
@@ -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
+ }