@unified-api/typescript-sdk 2.10.0 → 2.10.2

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 (130) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/package.json +1 -1
  5. package/sdk/models/shared/accountingaccount.d.ts +23 -9
  6. package/sdk/models/shared/accountingaccount.d.ts.map +1 -1
  7. package/sdk/models/shared/accountingaccount.js +28 -3
  8. package/sdk/models/shared/accountingaccount.js.map +1 -1
  9. package/sdk/models/shared/accountingcontact.d.ts +23 -6
  10. package/sdk/models/shared/accountingcontact.d.ts.map +1 -1
  11. package/sdk/models/shared/accountingcontact.js +26 -3
  12. package/sdk/models/shared/accountingcontact.js.map +1 -1
  13. package/sdk/models/shared/accountinginvoice.d.ts +23 -6
  14. package/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
  15. package/sdk/models/shared/accountinginvoice.js +26 -3
  16. package/sdk/models/shared/accountinginvoice.js.map +1 -1
  17. package/sdk/models/shared/accountingjournal.d.ts +23 -6
  18. package/sdk/models/shared/accountingjournal.d.ts.map +1 -1
  19. package/sdk/models/shared/accountingjournal.js +26 -3
  20. package/sdk/models/shared/accountingjournal.js.map +1 -1
  21. package/sdk/models/shared/accountingorder.d.ts +23 -6
  22. package/sdk/models/shared/accountingorder.d.ts.map +1 -1
  23. package/sdk/models/shared/accountingorder.js +26 -3
  24. package/sdk/models/shared/accountingorder.js.map +1 -1
  25. package/sdk/models/shared/accountingorganization.d.ts +23 -6
  26. package/sdk/models/shared/accountingorganization.d.ts.map +1 -1
  27. package/sdk/models/shared/accountingorganization.js +26 -3
  28. package/sdk/models/shared/accountingorganization.js.map +1 -1
  29. package/sdk/models/shared/accountingtaxrate.d.ts +23 -6
  30. package/sdk/models/shared/accountingtaxrate.d.ts.map +1 -1
  31. package/sdk/models/shared/accountingtaxrate.js +26 -3
  32. package/sdk/models/shared/accountingtaxrate.js.map +1 -1
  33. package/sdk/models/shared/accountingtransaction.d.ts +23 -6
  34. package/sdk/models/shared/accountingtransaction.d.ts.map +1 -1
  35. package/sdk/models/shared/accountingtransaction.js +26 -3
  36. package/sdk/models/shared/accountingtransaction.js.map +1 -1
  37. package/sdk/models/shared/accountingtransactioncontact.d.ts +10 -2
  38. package/sdk/models/shared/accountingtransactioncontact.d.ts.map +1 -1
  39. package/sdk/models/shared/accountingtransactioncontact.js +21 -2
  40. package/sdk/models/shared/accountingtransactioncontact.js.map +1 -1
  41. package/sdk/models/shared/atsactivity.d.ts +15 -15
  42. package/sdk/models/shared/atsactivity.d.ts.map +1 -1
  43. package/sdk/models/shared/atsactivity.js +18 -20
  44. package/sdk/models/shared/atsactivity.js.map +1 -1
  45. package/sdk/models/shared/atsoffer.d.ts +85 -2
  46. package/sdk/models/shared/atsoffer.d.ts.map +1 -1
  47. package/sdk/models/shared/atsoffer.js +103 -3
  48. package/sdk/models/shared/atsoffer.js.map +1 -1
  49. package/sdk/models/shared/crmcompany.d.ts +26 -9
  50. package/sdk/models/shared/crmcompany.d.ts.map +1 -1
  51. package/sdk/models/shared/crmcompany.js +26 -3
  52. package/sdk/models/shared/crmcompany.js.map +1 -1
  53. package/sdk/models/shared/crmcontact.d.ts +26 -9
  54. package/sdk/models/shared/crmcontact.d.ts.map +1 -1
  55. package/sdk/models/shared/crmcontact.js +26 -3
  56. package/sdk/models/shared/crmcontact.js.map +1 -1
  57. package/sdk/models/shared/crmdeal.d.ts +27 -9
  58. package/sdk/models/shared/crmdeal.d.ts.map +1 -1
  59. package/sdk/models/shared/crmdeal.js +34 -3
  60. package/sdk/models/shared/crmdeal.js.map +1 -1
  61. package/sdk/models/shared/crmevent.d.ts +23 -9
  62. package/sdk/models/shared/crmevent.d.ts.map +1 -1
  63. package/sdk/models/shared/crmevent.js +26 -3
  64. package/sdk/models/shared/crmevent.js.map +1 -1
  65. package/sdk/models/shared/crmeventformfield.d.ts +3 -0
  66. package/sdk/models/shared/crmeventformfield.d.ts.map +1 -1
  67. package/sdk/models/shared/crmeventformfield.js +1 -0
  68. package/sdk/models/shared/crmeventformfield.js.map +1 -1
  69. package/sdk/models/shared/crmlead.d.ts +23 -6
  70. package/sdk/models/shared/crmlead.d.ts.map +1 -1
  71. package/sdk/models/shared/crmlead.js +26 -3
  72. package/sdk/models/shared/crmlead.js.map +1 -1
  73. package/sdk/models/shared/crmpipeline.d.ts +23 -6
  74. package/sdk/models/shared/crmpipeline.d.ts.map +1 -1
  75. package/sdk/models/shared/crmpipeline.js +26 -3
  76. package/sdk/models/shared/crmpipeline.js.map +1 -1
  77. package/sdk/models/shared/hriscompany.d.ts +23 -6
  78. package/sdk/models/shared/hriscompany.d.ts.map +1 -1
  79. package/sdk/models/shared/hriscompany.js +26 -3
  80. package/sdk/models/shared/hriscompany.js.map +1 -1
  81. package/sdk/models/shared/hrisemployee.d.ts +23 -6
  82. package/sdk/models/shared/hrisemployee.d.ts.map +1 -1
  83. package/sdk/models/shared/hrisemployee.js +26 -3
  84. package/sdk/models/shared/hrisemployee.js.map +1 -1
  85. package/sdk/models/shared/hrisgroup.d.ts +23 -6
  86. package/sdk/models/shared/hrisgroup.d.ts.map +1 -1
  87. package/sdk/models/shared/hrisgroup.js +26 -3
  88. package/sdk/models/shared/hrisgroup.js.map +1 -1
  89. package/sdk/models/shared/hrislocation.d.ts +23 -6
  90. package/sdk/models/shared/hrislocation.d.ts.map +1 -1
  91. package/sdk/models/shared/hrislocation.js +26 -3
  92. package/sdk/models/shared/hrislocation.js.map +1 -1
  93. package/sdk/models/shared/hrispayslip.d.ts +27 -8
  94. package/sdk/models/shared/hrispayslip.d.ts.map +1 -1
  95. package/sdk/models/shared/hrispayslip.js +32 -5
  96. package/sdk/models/shared/hrispayslip.js.map +1 -1
  97. package/sdk/models/shared/hristimeoff.d.ts +27 -8
  98. package/sdk/models/shared/hristimeoff.d.ts.map +1 -1
  99. package/sdk/models/shared/hristimeoff.js +32 -5
  100. package/sdk/models/shared/hristimeoff.js.map +1 -1
  101. package/sdk/models/shared/webhook.d.ts +42 -2
  102. package/sdk/models/shared/webhook.d.ts.map +1 -1
  103. package/sdk/models/shared/webhook.js +38 -3
  104. package/sdk/models/shared/webhook.js.map +1 -1
  105. package/src/lib/config.ts +2 -2
  106. package/src/sdk/models/shared/accountingaccount.ts +44 -7
  107. package/src/sdk/models/shared/accountingcontact.ts +54 -4
  108. package/src/sdk/models/shared/accountinginvoice.ts +54 -4
  109. package/src/sdk/models/shared/accountingjournal.ts +54 -4
  110. package/src/sdk/models/shared/accountingorder.ts +54 -4
  111. package/src/sdk/models/shared/accountingorganization.ts +54 -4
  112. package/src/sdk/models/shared/accountingtaxrate.ts +54 -4
  113. package/src/sdk/models/shared/accountingtransaction.ts +54 -4
  114. package/src/sdk/models/shared/accountingtransactioncontact.ts +31 -4
  115. package/src/sdk/models/shared/atsactivity.ts +29 -23
  116. package/src/sdk/models/shared/atsoffer.ts +170 -4
  117. package/src/sdk/models/shared/crmcompany.ts +53 -7
  118. package/src/sdk/models/shared/crmcontact.ts +53 -7
  119. package/src/sdk/models/shared/crmdeal.ts +62 -7
  120. package/src/sdk/models/shared/crmevent.ts +50 -7
  121. package/src/sdk/models/shared/crmeventformfield.ts +1 -0
  122. package/src/sdk/models/shared/crmlead.ts +50 -4
  123. package/src/sdk/models/shared/crmpipeline.ts +50 -4
  124. package/src/sdk/models/shared/hriscompany.ts +50 -4
  125. package/src/sdk/models/shared/hrisemployee.ts +52 -4
  126. package/src/sdk/models/shared/hrisgroup.ts +50 -4
  127. package/src/sdk/models/shared/hrislocation.ts +52 -4
  128. package/src/sdk/models/shared/hrispayslip.ts +60 -8
  129. package/src/sdk/models/shared/hristimeoff.ts +60 -8
  130. package/src/sdk/models/shared/webhook.ts +50 -4
@@ -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.record(z.any()).optional(),
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?: { [k: string]: any } | undefined;
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.record(z.any()).optional(),
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(),
@@ -22,6 +22,7 @@ export const CrmEventFormFieldType = {
22
22
  MultipleChoice: "MULTIPLE_CHOICE",
23
23
  File: "FILE",
24
24
  Textarea: "TEXTAREA",
25
+ SingleSelect: "SINGLE_SELECT",
25
26
  MultipleSelect: "MULTIPLE_SELECT",
26
27
  Email: "EMAIL",
27
28
  Phone: "PHONE",
@@ -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?: { [k: string]: any } | undefined;
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.record(z.any()).optional(),
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?: { [k: string]: any } | undefined;
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.record(z.any()).optional(),
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?: { [k: string]: any } | undefined;
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.record(z.any()).optional(),
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?: { [k: string]: any } | undefined;
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.record(z.any()).optional(),
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?: { [k: string]: any } | undefined;
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.record(z.any()).optional(),
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?: { [k: string]: any } | undefined;
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.record(z.any()).optional(),
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, {
@@ -87,6 +87,8 @@ export const MaritalStatus = {
87
87
  } as const;
88
88
  export type MaritalStatus = ClosedEnum<typeof MaritalStatus>;
89
89
 
90
+ export type HrisEmployeeRaw = {};
91
+
90
92
  export type HrisEmployee = {
91
93
  address?: PropertyHrisEmployeeAddress | undefined;
92
94
  bio?: string | undefined;
@@ -117,7 +119,7 @@ export type HrisEmployee = {
117
119
  maritalStatus?: MaritalStatus | undefined;
118
120
  name?: string | undefined;
119
121
  pronouns?: string | undefined;
120
- raw?: { [k: string]: any } | undefined;
122
+ raw?: HrisEmployeeRaw | undefined;
121
123
  salutation?: string | undefined;
122
124
  ssnSin?: string | undefined;
123
125
  telephones?: Array<HrisTelephone> | undefined;
@@ -211,6 +213,52 @@ export namespace MaritalStatus$ {
211
213
  export const outboundSchema = MaritalStatus$outboundSchema;
212
214
  }
213
215
 
216
+ /** @internal */
217
+ export const HrisEmployeeRaw$inboundSchema: z.ZodType<
218
+ HrisEmployeeRaw,
219
+ z.ZodTypeDef,
220
+ unknown
221
+ > = z.object({});
222
+
223
+ /** @internal */
224
+ export type HrisEmployeeRaw$Outbound = {};
225
+
226
+ /** @internal */
227
+ export const HrisEmployeeRaw$outboundSchema: z.ZodType<
228
+ HrisEmployeeRaw$Outbound,
229
+ z.ZodTypeDef,
230
+ HrisEmployeeRaw
231
+ > = z.object({});
232
+
233
+ /**
234
+ * @internal
235
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
236
+ */
237
+ export namespace HrisEmployeeRaw$ {
238
+ /** @deprecated use `HrisEmployeeRaw$inboundSchema` instead. */
239
+ export const inboundSchema = HrisEmployeeRaw$inboundSchema;
240
+ /** @deprecated use `HrisEmployeeRaw$outboundSchema` instead. */
241
+ export const outboundSchema = HrisEmployeeRaw$outboundSchema;
242
+ /** @deprecated use `HrisEmployeeRaw$Outbound` instead. */
243
+ export type Outbound = HrisEmployeeRaw$Outbound;
244
+ }
245
+
246
+ export function hrisEmployeeRawToJSON(
247
+ hrisEmployeeRaw: HrisEmployeeRaw,
248
+ ): string {
249
+ return JSON.stringify(HrisEmployeeRaw$outboundSchema.parse(hrisEmployeeRaw));
250
+ }
251
+
252
+ export function hrisEmployeeRawFromJSON(
253
+ jsonString: string,
254
+ ): SafeParseResult<HrisEmployeeRaw, SDKValidationError> {
255
+ return safeParse(
256
+ jsonString,
257
+ (x) => HrisEmployeeRaw$inboundSchema.parse(JSON.parse(x)),
258
+ `Failed to parse 'HrisEmployeeRaw' from JSON`,
259
+ );
260
+ }
261
+
214
262
  /** @internal */
215
263
  export const HrisEmployee$inboundSchema: z.ZodType<
216
264
  HrisEmployee,
@@ -248,7 +296,7 @@ export const HrisEmployee$inboundSchema: z.ZodType<
248
296
  marital_status: MaritalStatus$inboundSchema.optional(),
249
297
  name: z.string().optional(),
250
298
  pronouns: z.string().optional(),
251
- raw: z.record(z.any()).optional(),
299
+ raw: z.lazy(() => HrisEmployeeRaw$inboundSchema).optional(),
252
300
  salutation: z.string().optional(),
253
301
  ssn_sin: z.string().optional(),
254
302
  telephones: z.array(HrisTelephone$inboundSchema).optional(),
@@ -307,7 +355,7 @@ export type HrisEmployee$Outbound = {
307
355
  marital_status?: string | undefined;
308
356
  name?: string | undefined;
309
357
  pronouns?: string | undefined;
310
- raw?: { [k: string]: any } | undefined;
358
+ raw?: HrisEmployeeRaw$Outbound | undefined;
311
359
  salutation?: string | undefined;
312
360
  ssn_sin?: string | undefined;
313
361
  telephones?: Array<HrisTelephone$Outbound> | undefined;
@@ -350,7 +398,7 @@ export const HrisEmployee$outboundSchema: z.ZodType<
350
398
  maritalStatus: MaritalStatus$outboundSchema.optional(),
351
399
  name: z.string().optional(),
352
400
  pronouns: z.string().optional(),
353
- raw: z.record(z.any()).optional(),
401
+ raw: z.lazy(() => HrisEmployeeRaw$outboundSchema).optional(),
354
402
  salutation: z.string().optional(),
355
403
  ssnSin: z.string().optional(),
356
404
  telephones: z.array(HrisTelephone$outboundSchema).optional(),
@@ -9,6 +9,8 @@ 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
+
12
14
  export const HrisGroupType = {
13
15
  Team: "TEAM",
14
16
  Group: "GROUP",
@@ -29,12 +31,56 @@ export type HrisGroup = {
29
31
  managerIds?: Array<string> | undefined;
30
32
  name?: string | undefined;
31
33
  parentId?: string | undefined;
32
- raw?: { [k: string]: any } | undefined;
34
+ raw?: HrisGroupRaw | undefined;
33
35
  type?: HrisGroupType | undefined;
34
36
  updatedAt?: Date | undefined;
35
37
  userIds?: Array<string> | undefined;
36
38
  };
37
39
 
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
+
38
84
  /** @internal */
39
85
  export const HrisGroupType$inboundSchema: z.ZodNativeEnum<
40
86
  typeof HrisGroupType
@@ -71,7 +117,7 @@ export const HrisGroup$inboundSchema: z.ZodType<
71
117
  manager_ids: z.array(z.string()).optional(),
72
118
  name: z.string().optional(),
73
119
  parent_id: z.string().optional(),
74
- raw: z.record(z.any()).optional(),
120
+ raw: z.lazy(() => HrisGroupRaw$inboundSchema).optional(),
75
121
  type: HrisGroupType$inboundSchema.optional(),
76
122
  updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
77
123
  .optional(),
@@ -98,7 +144,7 @@ export type HrisGroup$Outbound = {
98
144
  manager_ids?: Array<string> | undefined;
99
145
  name?: string | undefined;
100
146
  parent_id?: string | undefined;
101
- raw?: { [k: string]: any } | undefined;
147
+ raw?: HrisGroupRaw$Outbound | undefined;
102
148
  type?: string | undefined;
103
149
  updated_at?: string | undefined;
104
150
  user_ids?: Array<string> | undefined;
@@ -118,7 +164,7 @@ export const HrisGroup$outboundSchema: z.ZodType<
118
164
  managerIds: z.array(z.string()).optional(),
119
165
  name: z.string().optional(),
120
166
  parentId: z.string().optional(),
121
- raw: z.record(z.any()).optional(),
167
+ raw: z.lazy(() => HrisGroupRaw$outboundSchema).optional(),
122
168
  type: HrisGroupType$outboundSchema.optional(),
123
169
  updatedAt: z.date().transform(v => v.toISOString()).optional(),
124
170
  userIds: z.array(z.string()).optional(),
@@ -20,6 +20,8 @@ import {
20
20
  PropertyHrisLocationAddress$outboundSchema,
21
21
  } from "./propertyhrislocationaddress.js";
22
22
 
23
+ export type HrisLocationRaw = {};
24
+
23
25
  export type HrisLocation = {
24
26
  address?: PropertyHrisLocationAddress | undefined;
25
27
  createdAt?: Date | undefined;
@@ -32,12 +34,58 @@ export type HrisLocation = {
32
34
  languageLocale?: string | undefined;
33
35
  name?: string | undefined;
34
36
  parentId?: string | undefined;
35
- raw?: { [k: string]: any } | undefined;
37
+ raw?: HrisLocationRaw | undefined;
36
38
  telephones?: Array<HrisTelephone> | undefined;
37
39
  timezone?: string | undefined;
38
40
  updatedAt?: Date | undefined;
39
41
  };
40
42
 
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
+
41
89
  /** @internal */
42
90
  export const HrisLocation$inboundSchema: z.ZodType<
43
91
  HrisLocation,
@@ -56,7 +104,7 @@ export const HrisLocation$inboundSchema: z.ZodType<
56
104
  language_locale: z.string().optional(),
57
105
  name: z.string().optional(),
58
106
  parent_id: z.string().optional(),
59
- raw: z.record(z.any()).optional(),
107
+ raw: z.lazy(() => HrisLocationRaw$inboundSchema).optional(),
60
108
  telephones: z.array(HrisTelephone$inboundSchema).optional(),
61
109
  timezone: z.string().optional(),
62
110
  updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
@@ -86,7 +134,7 @@ export type HrisLocation$Outbound = {
86
134
  language_locale?: string | undefined;
87
135
  name?: string | undefined;
88
136
  parent_id?: string | undefined;
89
- raw?: { [k: string]: any } | undefined;
137
+ raw?: HrisLocationRaw$Outbound | undefined;
90
138
  telephones?: Array<HrisTelephone$Outbound> | undefined;
91
139
  timezone?: string | undefined;
92
140
  updated_at?: string | undefined;
@@ -109,7 +157,7 @@ export const HrisLocation$outboundSchema: z.ZodType<
109
157
  languageLocale: z.string().optional(),
110
158
  name: z.string().optional(),
111
159
  parentId: z.string().optional(),
112
- raw: z.record(z.any()).optional(),
160
+ raw: z.lazy(() => HrisLocationRaw$outboundSchema).optional(),
113
161
  telephones: z.array(HrisTelephone$outboundSchema).optional(),
114
162
  timezone: z.string().optional(),
115
163
  updatedAt: z.date().transform(v => v.toISOString()).optional(),