@unified-api/typescript-sdk 2.40.0 → 2.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/README.md +2 -1
  2. package/docs/sdks/connection/README.md +4 -4
  3. package/docs/sdks/unified/README.md +4 -4
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.d.ts.map +1 -1
  7. package/lib/config.js +6 -2
  8. package/lib/config.js.map +1 -1
  9. package/package.json +1 -1
  10. package/sdk/models/shared/accountingaccount.d.ts +6 -23
  11. package/sdk/models/shared/accountingaccount.d.ts.map +1 -1
  12. package/sdk/models/shared/accountingaccount.js +3 -28
  13. package/sdk/models/shared/accountingaccount.js.map +1 -1
  14. package/sdk/models/shared/accountingcontact.d.ts +6 -23
  15. package/sdk/models/shared/accountingcontact.d.ts.map +1 -1
  16. package/sdk/models/shared/accountingcontact.js +3 -26
  17. package/sdk/models/shared/accountingcontact.js.map +1 -1
  18. package/sdk/models/shared/accountinginvoice.d.ts +6 -23
  19. package/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
  20. package/sdk/models/shared/accountinginvoice.js +3 -26
  21. package/sdk/models/shared/accountinginvoice.js.map +1 -1
  22. package/sdk/models/shared/accountingjournal.d.ts +6 -23
  23. package/sdk/models/shared/accountingjournal.d.ts.map +1 -1
  24. package/sdk/models/shared/accountingjournal.js +3 -26
  25. package/sdk/models/shared/accountingjournal.js.map +1 -1
  26. package/sdk/models/shared/accountingorder.d.ts +6 -23
  27. package/sdk/models/shared/accountingorder.d.ts.map +1 -1
  28. package/sdk/models/shared/accountingorder.js +3 -26
  29. package/sdk/models/shared/accountingorder.js.map +1 -1
  30. package/sdk/models/shared/accountingorganization.d.ts +6 -23
  31. package/sdk/models/shared/accountingorganization.d.ts.map +1 -1
  32. package/sdk/models/shared/accountingorganization.js +3 -26
  33. package/sdk/models/shared/accountingorganization.js.map +1 -1
  34. package/sdk/models/shared/accountingreport.d.ts +6 -23
  35. package/sdk/models/shared/accountingreport.d.ts.map +1 -1
  36. package/sdk/models/shared/accountingreport.js +3 -26
  37. package/sdk/models/shared/accountingreport.js.map +1 -1
  38. package/sdk/models/shared/accountingtaxrate.d.ts +6 -23
  39. package/sdk/models/shared/accountingtaxrate.d.ts.map +1 -1
  40. package/sdk/models/shared/accountingtaxrate.js +3 -26
  41. package/sdk/models/shared/accountingtaxrate.js.map +1 -1
  42. package/sdk/models/shared/accountingtransaction.d.ts +6 -23
  43. package/sdk/models/shared/accountingtransaction.d.ts.map +1 -1
  44. package/sdk/models/shared/accountingtransaction.js +3 -26
  45. package/sdk/models/shared/accountingtransaction.js.map +1 -1
  46. package/sdk/models/shared/atsactivity.d.ts +6 -23
  47. package/sdk/models/shared/atsactivity.d.ts.map +1 -1
  48. package/sdk/models/shared/atsactivity.js +3 -26
  49. package/sdk/models/shared/atsactivity.js.map +1 -1
  50. package/sdk/models/shared/atsapplication.d.ts +6 -23
  51. package/sdk/models/shared/atsapplication.d.ts.map +1 -1
  52. package/sdk/models/shared/atsapplication.js +3 -26
  53. package/sdk/models/shared/atsapplication.js.map +1 -1
  54. package/sdk/models/shared/atscandidate.d.ts +6 -23
  55. package/sdk/models/shared/atscandidate.d.ts.map +1 -1
  56. package/sdk/models/shared/atscandidate.js +3 -26
  57. package/sdk/models/shared/atscandidate.js.map +1 -1
  58. package/sdk/models/shared/atscompany.d.ts +6 -23
  59. package/sdk/models/shared/atscompany.d.ts.map +1 -1
  60. package/sdk/models/shared/atscompany.js +3 -26
  61. package/sdk/models/shared/atscompany.js.map +1 -1
  62. package/sdk/models/shared/atsdocument.d.ts +6 -23
  63. package/sdk/models/shared/atsdocument.d.ts.map +1 -1
  64. package/sdk/models/shared/atsdocument.js +3 -26
  65. package/sdk/models/shared/atsdocument.js.map +1 -1
  66. package/sdk/models/shared/atsinterview.d.ts +6 -23
  67. package/sdk/models/shared/atsinterview.d.ts.map +1 -1
  68. package/sdk/models/shared/atsinterview.js +3 -26
  69. package/sdk/models/shared/atsinterview.js.map +1 -1
  70. package/sdk/models/shared/atsjob.d.ts +6 -23
  71. package/sdk/models/shared/atsjob.d.ts.map +1 -1
  72. package/sdk/models/shared/atsjob.js +3 -26
  73. package/sdk/models/shared/atsjob.js.map +1 -1
  74. package/sdk/models/shared/atsoffer.d.ts +6 -23
  75. package/sdk/models/shared/atsoffer.d.ts.map +1 -1
  76. package/sdk/models/shared/atsoffer.js +3 -26
  77. package/sdk/models/shared/atsoffer.js.map +1 -1
  78. package/sdk/models/shared/atsscorecard.d.ts +6 -23
  79. package/sdk/models/shared/atsscorecard.d.ts.map +1 -1
  80. package/sdk/models/shared/atsscorecard.js +3 -26
  81. package/sdk/models/shared/atsscorecard.js.map +1 -1
  82. package/sdk/models/shared/atsstatus.d.ts +6 -23
  83. package/sdk/models/shared/atsstatus.d.ts.map +1 -1
  84. package/sdk/models/shared/atsstatus.js +3 -26
  85. package/sdk/models/shared/atsstatus.js.map +1 -1
  86. package/sdk/models/shared/calendarbusy.d.ts +6 -23
  87. package/sdk/models/shared/calendarbusy.d.ts.map +1 -1
  88. package/sdk/models/shared/calendarbusy.js +3 -26
  89. package/sdk/models/shared/calendarbusy.js.map +1 -1
  90. package/sdk/models/shared/calendarcalendar.d.ts +6 -23
  91. package/sdk/models/shared/calendarcalendar.d.ts.map +1 -1
  92. package/sdk/models/shared/calendarcalendar.js +3 -26
  93. package/sdk/models/shared/calendarcalendar.js.map +1 -1
  94. package/sdk/models/shared/calendarevent.d.ts +6 -23
  95. package/sdk/models/shared/calendarevent.d.ts.map +1 -1
  96. package/sdk/models/shared/calendarevent.js +3 -26
  97. package/sdk/models/shared/calendarevent.js.map +1 -1
  98. package/sdk/models/shared/calendarlink.d.ts +6 -23
  99. package/sdk/models/shared/calendarlink.d.ts.map +1 -1
  100. package/sdk/models/shared/calendarlink.js +3 -26
  101. package/sdk/models/shared/calendarlink.js.map +1 -1
  102. package/sdk/models/shared/calendarrecording.d.ts +6 -23
  103. package/sdk/models/shared/calendarrecording.d.ts.map +1 -1
  104. package/sdk/models/shared/calendarrecording.js +3 -26
  105. package/sdk/models/shared/calendarrecording.js.map +1 -1
  106. package/sdk/models/shared/commercecollection.d.ts +6 -23
  107. package/sdk/models/shared/commercecollection.d.ts.map +1 -1
  108. package/sdk/models/shared/commercecollection.js +3 -26
  109. package/sdk/models/shared/commercecollection.js.map +1 -1
  110. package/sdk/models/shared/commerceinventory.d.ts +6 -23
  111. package/sdk/models/shared/commerceinventory.d.ts.map +1 -1
  112. package/sdk/models/shared/commerceinventory.js +3 -26
  113. package/sdk/models/shared/commerceinventory.js.map +1 -1
  114. package/sdk/models/shared/commerceitem.d.ts +6 -23
  115. package/sdk/models/shared/commerceitem.d.ts.map +1 -1
  116. package/sdk/models/shared/commerceitem.js +3 -26
  117. package/sdk/models/shared/commerceitem.js.map +1 -1
  118. package/sdk/models/shared/commercelocation.d.ts +6 -23
  119. package/sdk/models/shared/commercelocation.d.ts.map +1 -1
  120. package/sdk/models/shared/commercelocation.js +3 -26
  121. package/sdk/models/shared/commercelocation.js.map +1 -1
  122. package/sdk/models/shared/crmcompany.d.ts +6 -23
  123. package/sdk/models/shared/crmcompany.d.ts.map +1 -1
  124. package/sdk/models/shared/crmcompany.js +3 -26
  125. package/sdk/models/shared/crmcompany.js.map +1 -1
  126. package/sdk/models/shared/crmcontact.d.ts +6 -23
  127. package/sdk/models/shared/crmcontact.d.ts.map +1 -1
  128. package/sdk/models/shared/crmcontact.js +3 -26
  129. package/sdk/models/shared/crmcontact.js.map +1 -1
  130. package/sdk/models/shared/crmdeal.d.ts +6 -23
  131. package/sdk/models/shared/crmdeal.d.ts.map +1 -1
  132. package/sdk/models/shared/crmdeal.js +3 -26
  133. package/sdk/models/shared/crmdeal.js.map +1 -1
  134. package/sdk/models/shared/crmevent.d.ts +6 -23
  135. package/sdk/models/shared/crmevent.d.ts.map +1 -1
  136. package/sdk/models/shared/crmevent.js +3 -26
  137. package/sdk/models/shared/crmevent.js.map +1 -1
  138. package/sdk/models/shared/crmlead.d.ts +6 -23
  139. package/sdk/models/shared/crmlead.d.ts.map +1 -1
  140. package/sdk/models/shared/crmlead.js +3 -26
  141. package/sdk/models/shared/crmlead.js.map +1 -1
  142. package/sdk/models/shared/crmpipeline.d.ts +6 -23
  143. package/sdk/models/shared/crmpipeline.d.ts.map +1 -1
  144. package/sdk/models/shared/crmpipeline.js +3 -26
  145. package/sdk/models/shared/crmpipeline.js.map +1 -1
  146. package/sdk/models/shared/hriscompany.d.ts +6 -23
  147. package/sdk/models/shared/hriscompany.d.ts.map +1 -1
  148. package/sdk/models/shared/hriscompany.js +3 -26
  149. package/sdk/models/shared/hriscompany.js.map +1 -1
  150. package/sdk/models/shared/hrisemployee.d.ts +6 -23
  151. package/sdk/models/shared/hrisemployee.d.ts.map +1 -1
  152. package/sdk/models/shared/hrisemployee.js +3 -26
  153. package/sdk/models/shared/hrisemployee.js.map +1 -1
  154. package/sdk/models/shared/hrisgroup.d.ts +6 -23
  155. package/sdk/models/shared/hrisgroup.d.ts.map +1 -1
  156. package/sdk/models/shared/hrisgroup.js +3 -26
  157. package/sdk/models/shared/hrisgroup.js.map +1 -1
  158. package/sdk/models/shared/hrislocation.d.ts +6 -23
  159. package/sdk/models/shared/hrislocation.d.ts.map +1 -1
  160. package/sdk/models/shared/hrislocation.js +3 -26
  161. package/sdk/models/shared/hrislocation.js.map +1 -1
  162. package/sdk/models/shared/hrispayslip.d.ts +6 -23
  163. package/sdk/models/shared/hrispayslip.d.ts.map +1 -1
  164. package/sdk/models/shared/hrispayslip.js +3 -26
  165. package/sdk/models/shared/hrispayslip.js.map +1 -1
  166. package/sdk/models/shared/hristimeoff.d.ts +6 -23
  167. package/sdk/models/shared/hristimeoff.d.ts.map +1 -1
  168. package/sdk/models/shared/hristimeoff.js +3 -26
  169. package/sdk/models/shared/hristimeoff.js.map +1 -1
  170. package/sdk/models/shared/metadatametadata.d.ts +6 -23
  171. package/sdk/models/shared/metadatametadata.d.ts.map +1 -1
  172. package/sdk/models/shared/metadatametadata.js +3 -26
  173. package/sdk/models/shared/metadatametadata.js.map +1 -1
  174. package/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -0
  175. package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  176. package/sdk/models/shared/propertyconnectionpermissions.js +2 -0
  177. package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  178. package/src/lib/config.ts +6 -2
  179. package/src/sdk/models/shared/accountingaccount.ts +4 -44
  180. package/src/sdk/models/shared/accountingcontact.ts +4 -54
  181. package/src/sdk/models/shared/accountinginvoice.ts +4 -54
  182. package/src/sdk/models/shared/accountingjournal.ts +4 -54
  183. package/src/sdk/models/shared/accountingorder.ts +4 -54
  184. package/src/sdk/models/shared/accountingorganization.ts +4 -54
  185. package/src/sdk/models/shared/accountingreport.ts +4 -54
  186. package/src/sdk/models/shared/accountingtaxrate.ts +4 -54
  187. package/src/sdk/models/shared/accountingtransaction.ts +4 -54
  188. package/src/sdk/models/shared/atsactivity.ts +4 -50
  189. package/src/sdk/models/shared/atsapplication.ts +4 -54
  190. package/src/sdk/models/shared/atscandidate.ts +4 -52
  191. package/src/sdk/models/shared/atscompany.ts +4 -50
  192. package/src/sdk/models/shared/atsdocument.ts +4 -50
  193. package/src/sdk/models/shared/atsinterview.ts +4 -52
  194. package/src/sdk/models/shared/atsjob.ts +4 -50
  195. package/src/sdk/models/shared/atsoffer.ts +4 -50
  196. package/src/sdk/models/shared/atsscorecard.ts +4 -52
  197. package/src/sdk/models/shared/atsstatus.ts +4 -50
  198. package/src/sdk/models/shared/calendarbusy.ts +4 -52
  199. package/src/sdk/models/shared/calendarcalendar.ts +4 -54
  200. package/src/sdk/models/shared/calendarevent.ts +4 -54
  201. package/src/sdk/models/shared/calendarlink.ts +4 -52
  202. package/src/sdk/models/shared/calendarrecording.ts +4 -54
  203. package/src/sdk/models/shared/commercecollection.ts +4 -54
  204. package/src/sdk/models/shared/commerceinventory.ts +4 -54
  205. package/src/sdk/models/shared/commerceitem.ts +4 -52
  206. package/src/sdk/models/shared/commercelocation.ts +4 -54
  207. package/src/sdk/models/shared/crmcompany.ts +4 -50
  208. package/src/sdk/models/shared/crmcontact.ts +4 -50
  209. package/src/sdk/models/shared/crmdeal.ts +4 -50
  210. package/src/sdk/models/shared/crmevent.ts +4 -50
  211. package/src/sdk/models/shared/crmlead.ts +4 -50
  212. package/src/sdk/models/shared/crmpipeline.ts +4 -50
  213. package/src/sdk/models/shared/hriscompany.ts +4 -50
  214. package/src/sdk/models/shared/hrisemployee.ts +4 -52
  215. package/src/sdk/models/shared/hrisgroup.ts +4 -50
  216. package/src/sdk/models/shared/hrislocation.ts +4 -52
  217. package/src/sdk/models/shared/hrispayslip.ts +4 -50
  218. package/src/sdk/models/shared/hristimeoff.ts +4 -50
  219. package/src/sdk/models/shared/metadatametadata.ts +4 -54
  220. package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
@@ -23,8 +23,6 @@ export type PaymentCollectionMethod = ClosedEnum<
23
23
  typeof PaymentCollectionMethod
24
24
  >;
25
25
 
26
- export type AccountingInvoiceRaw = {};
27
-
28
26
  export const AccountingInvoiceStatus = {
29
27
  Draft: "DRAFT",
30
28
  Voided: "VOIDED",
@@ -62,7 +60,7 @@ export type AccountingInvoice = {
62
60
  paidAt?: Date | undefined;
63
61
  paymentCollectionMethod?: PaymentCollectionMethod | undefined;
64
62
  postedAt?: Date | undefined;
65
- raw?: AccountingInvoiceRaw | undefined;
63
+ raw?: { [k: string]: any } | undefined;
66
64
  refundAmount?: number | undefined;
67
65
  refundReason?: string | undefined;
68
66
  refundedAt?: Date | undefined;
@@ -95,54 +93,6 @@ export namespace PaymentCollectionMethod$ {
95
93
  export const outboundSchema = PaymentCollectionMethod$outboundSchema;
96
94
  }
97
95
 
98
- /** @internal */
99
- export const AccountingInvoiceRaw$inboundSchema: z.ZodType<
100
- AccountingInvoiceRaw,
101
- z.ZodTypeDef,
102
- unknown
103
- > = z.object({});
104
-
105
- /** @internal */
106
- export type AccountingInvoiceRaw$Outbound = {};
107
-
108
- /** @internal */
109
- export const AccountingInvoiceRaw$outboundSchema: z.ZodType<
110
- AccountingInvoiceRaw$Outbound,
111
- z.ZodTypeDef,
112
- AccountingInvoiceRaw
113
- > = z.object({});
114
-
115
- /**
116
- * @internal
117
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
118
- */
119
- export namespace AccountingInvoiceRaw$ {
120
- /** @deprecated use `AccountingInvoiceRaw$inboundSchema` instead. */
121
- export const inboundSchema = AccountingInvoiceRaw$inboundSchema;
122
- /** @deprecated use `AccountingInvoiceRaw$outboundSchema` instead. */
123
- export const outboundSchema = AccountingInvoiceRaw$outboundSchema;
124
- /** @deprecated use `AccountingInvoiceRaw$Outbound` instead. */
125
- export type Outbound = AccountingInvoiceRaw$Outbound;
126
- }
127
-
128
- export function accountingInvoiceRawToJSON(
129
- accountingInvoiceRaw: AccountingInvoiceRaw,
130
- ): string {
131
- return JSON.stringify(
132
- AccountingInvoiceRaw$outboundSchema.parse(accountingInvoiceRaw),
133
- );
134
- }
135
-
136
- export function accountingInvoiceRawFromJSON(
137
- jsonString: string,
138
- ): SafeParseResult<AccountingInvoiceRaw, SDKValidationError> {
139
- return safeParse(
140
- jsonString,
141
- (x) => AccountingInvoiceRaw$inboundSchema.parse(JSON.parse(x)),
142
- `Failed to parse 'AccountingInvoiceRaw' from JSON`,
143
- );
144
- }
145
-
146
96
  /** @internal */
147
97
  export const AccountingInvoiceStatus$inboundSchema: z.ZodNativeEnum<
148
98
  typeof AccountingInvoiceStatus
@@ -214,7 +164,7 @@ export const AccountingInvoice$inboundSchema: z.ZodType<
214
164
  payment_collection_method: PaymentCollectionMethod$inboundSchema.optional(),
215
165
  posted_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
216
166
  .optional(),
217
- raw: z.lazy(() => AccountingInvoiceRaw$inboundSchema).optional(),
167
+ raw: z.record(z.any()).optional(),
218
168
  refund_amount: z.number().optional(),
219
169
  refund_reason: z.string().optional(),
220
170
  refunded_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
@@ -267,7 +217,7 @@ export type AccountingInvoice$Outbound = {
267
217
  paid_at?: string | undefined;
268
218
  payment_collection_method?: string | undefined;
269
219
  posted_at?: string | undefined;
270
- raw?: AccountingInvoiceRaw$Outbound | undefined;
220
+ raw?: { [k: string]: any } | undefined;
271
221
  refund_amount?: number | undefined;
272
222
  refund_reason?: string | undefined;
273
223
  refunded_at?: string | undefined;
@@ -301,7 +251,7 @@ export const AccountingInvoice$outboundSchema: z.ZodType<
301
251
  paidAt: z.date().transform(v => v.toISOString()).optional(),
302
252
  paymentCollectionMethod: PaymentCollectionMethod$outboundSchema.optional(),
303
253
  postedAt: z.date().transform(v => v.toISOString()).optional(),
304
- raw: z.lazy(() => AccountingInvoiceRaw$outboundSchema).optional(),
254
+ raw: z.record(z.any()).optional(),
305
255
  refundAmount: z.number().optional(),
306
256
  refundReason: z.string().optional(),
307
257
  refundedAt: z.date().transform(v => v.toISOString()).optional(),
@@ -14,8 +14,6 @@ import {
14
14
  AccountingJournalLineitem$outboundSchema,
15
15
  } from "./accountingjournallineitem.js";
16
16
 
17
- export type AccountingJournalRaw = {};
18
-
19
17
  export type AccountingJournal = {
20
18
  createdAt?: Date | undefined;
21
19
  currency?: string | undefined;
@@ -26,61 +24,13 @@ export type AccountingJournal = {
26
24
  */
27
25
  lineitems?: Array<AccountingJournalLineitem> | undefined;
28
26
  postedAt?: Date | undefined;
29
- raw?: AccountingJournalRaw | undefined;
27
+ raw?: { [k: string]: any } | undefined;
30
28
  reference?: string | undefined;
31
29
  taxAmount?: number | undefined;
32
30
  taxrateId?: string | undefined;
33
31
  updatedAt?: Date | undefined;
34
32
  };
35
33
 
36
- /** @internal */
37
- export const AccountingJournalRaw$inboundSchema: z.ZodType<
38
- AccountingJournalRaw,
39
- z.ZodTypeDef,
40
- unknown
41
- > = z.object({});
42
-
43
- /** @internal */
44
- export type AccountingJournalRaw$Outbound = {};
45
-
46
- /** @internal */
47
- export const AccountingJournalRaw$outboundSchema: z.ZodType<
48
- AccountingJournalRaw$Outbound,
49
- z.ZodTypeDef,
50
- AccountingJournalRaw
51
- > = z.object({});
52
-
53
- /**
54
- * @internal
55
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
- */
57
- export namespace AccountingJournalRaw$ {
58
- /** @deprecated use `AccountingJournalRaw$inboundSchema` instead. */
59
- export const inboundSchema = AccountingJournalRaw$inboundSchema;
60
- /** @deprecated use `AccountingJournalRaw$outboundSchema` instead. */
61
- export const outboundSchema = AccountingJournalRaw$outboundSchema;
62
- /** @deprecated use `AccountingJournalRaw$Outbound` instead. */
63
- export type Outbound = AccountingJournalRaw$Outbound;
64
- }
65
-
66
- export function accountingJournalRawToJSON(
67
- accountingJournalRaw: AccountingJournalRaw,
68
- ): string {
69
- return JSON.stringify(
70
- AccountingJournalRaw$outboundSchema.parse(accountingJournalRaw),
71
- );
72
- }
73
-
74
- export function accountingJournalRawFromJSON(
75
- jsonString: string,
76
- ): SafeParseResult<AccountingJournalRaw, SDKValidationError> {
77
- return safeParse(
78
- jsonString,
79
- (x) => AccountingJournalRaw$inboundSchema.parse(JSON.parse(x)),
80
- `Failed to parse 'AccountingJournalRaw' from JSON`,
81
- );
82
- }
83
-
84
34
  /** @internal */
85
35
  export const AccountingJournal$inboundSchema: z.ZodType<
86
36
  AccountingJournal,
@@ -95,7 +45,7 @@ export const AccountingJournal$inboundSchema: z.ZodType<
95
45
  lineitems: z.array(AccountingJournalLineitem$inboundSchema).optional(),
96
46
  posted_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
97
47
  .optional(),
98
- raw: z.lazy(() => AccountingJournalRaw$inboundSchema).optional(),
48
+ raw: z.record(z.any()).optional(),
99
49
  reference: z.string().optional(),
100
50
  tax_amount: z.number().optional(),
101
51
  taxrate_id: z.string().optional(),
@@ -119,7 +69,7 @@ export type AccountingJournal$Outbound = {
119
69
  id?: string | undefined;
120
70
  lineitems?: Array<AccountingJournalLineitem$Outbound> | undefined;
121
71
  posted_at?: string | undefined;
122
- raw?: AccountingJournalRaw$Outbound | undefined;
72
+ raw?: { [k: string]: any } | undefined;
123
73
  reference?: string | undefined;
124
74
  tax_amount?: number | undefined;
125
75
  taxrate_id?: string | undefined;
@@ -138,7 +88,7 @@ export const AccountingJournal$outboundSchema: z.ZodType<
138
88
  id: z.string().optional(),
139
89
  lineitems: z.array(AccountingJournalLineitem$outboundSchema).optional(),
140
90
  postedAt: z.date().transform(v => v.toISOString()).optional(),
141
- raw: z.lazy(() => AccountingJournalRaw$outboundSchema).optional(),
91
+ raw: z.record(z.any()).optional(),
142
92
  reference: z.string().optional(),
143
93
  taxAmount: z.number().optional(),
144
94
  taxrateId: z.string().optional(),
@@ -27,8 +27,6 @@ import {
27
27
  PropertyAccountingOrderShippingAddress$outboundSchema,
28
28
  } from "./propertyaccountingordershippingaddress.js";
29
29
 
30
- export type AccountingOrderRaw = {};
31
-
32
30
  export const AccountingOrderStatus = {
33
31
  Draft: "DRAFT",
34
32
  Voided: "VOIDED",
@@ -54,7 +52,7 @@ export type AccountingOrder = {
54
52
  currency?: string | undefined;
55
53
  id?: string | undefined;
56
54
  lineitems?: Array<AccountingLineitem> | undefined;
57
- raw?: AccountingOrderRaw | undefined;
55
+ raw?: { [k: string]: any } | undefined;
58
56
  shippingAddress?: PropertyAccountingOrderShippingAddress | undefined;
59
57
  status?: AccountingOrderStatus | undefined;
60
58
  totalAmount?: number | undefined;
@@ -62,54 +60,6 @@ export type AccountingOrder = {
62
60
  updatedAt?: Date | undefined;
63
61
  };
64
62
 
65
- /** @internal */
66
- export const AccountingOrderRaw$inboundSchema: z.ZodType<
67
- AccountingOrderRaw,
68
- z.ZodTypeDef,
69
- unknown
70
- > = z.object({});
71
-
72
- /** @internal */
73
- export type AccountingOrderRaw$Outbound = {};
74
-
75
- /** @internal */
76
- export const AccountingOrderRaw$outboundSchema: z.ZodType<
77
- AccountingOrderRaw$Outbound,
78
- z.ZodTypeDef,
79
- AccountingOrderRaw
80
- > = z.object({});
81
-
82
- /**
83
- * @internal
84
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
85
- */
86
- export namespace AccountingOrderRaw$ {
87
- /** @deprecated use `AccountingOrderRaw$inboundSchema` instead. */
88
- export const inboundSchema = AccountingOrderRaw$inboundSchema;
89
- /** @deprecated use `AccountingOrderRaw$outboundSchema` instead. */
90
- export const outboundSchema = AccountingOrderRaw$outboundSchema;
91
- /** @deprecated use `AccountingOrderRaw$Outbound` instead. */
92
- export type Outbound = AccountingOrderRaw$Outbound;
93
- }
94
-
95
- export function accountingOrderRawToJSON(
96
- accountingOrderRaw: AccountingOrderRaw,
97
- ): string {
98
- return JSON.stringify(
99
- AccountingOrderRaw$outboundSchema.parse(accountingOrderRaw),
100
- );
101
- }
102
-
103
- export function accountingOrderRawFromJSON(
104
- jsonString: string,
105
- ): SafeParseResult<AccountingOrderRaw, SDKValidationError> {
106
- return safeParse(
107
- jsonString,
108
- (x) => AccountingOrderRaw$inboundSchema.parse(JSON.parse(x)),
109
- `Failed to parse 'AccountingOrderRaw' from JSON`,
110
- );
111
- }
112
-
113
63
  /** @internal */
114
64
  export const AccountingOrderStatus$inboundSchema: z.ZodNativeEnum<
115
65
  typeof AccountingOrderStatus
@@ -167,7 +117,7 @@ export const AccountingOrder$inboundSchema: z.ZodType<
167
117
  currency: z.string().optional(),
168
118
  id: z.string().optional(),
169
119
  lineitems: z.array(AccountingLineitem$inboundSchema).optional(),
170
- raw: z.lazy(() => AccountingOrderRaw$inboundSchema).optional(),
120
+ raw: z.record(z.any()).optional(),
171
121
  shipping_address: PropertyAccountingOrderShippingAddress$inboundSchema
172
122
  .optional(),
173
123
  status: AccountingOrderStatus$inboundSchema.optional(),
@@ -196,7 +146,7 @@ export type AccountingOrder$Outbound = {
196
146
  currency?: string | undefined;
197
147
  id?: string | undefined;
198
148
  lineitems?: Array<AccountingLineitem$Outbound> | undefined;
199
- raw?: AccountingOrderRaw$Outbound | undefined;
149
+ raw?: { [k: string]: any } | undefined;
200
150
  shipping_address?:
201
151
  | PropertyAccountingOrderShippingAddress$Outbound
202
152
  | undefined;
@@ -220,7 +170,7 @@ export const AccountingOrder$outboundSchema: z.ZodType<
220
170
  currency: z.string().optional(),
221
171
  id: z.string().optional(),
222
172
  lineitems: z.array(AccountingLineitem$outboundSchema).optional(),
223
- raw: z.lazy(() => AccountingOrderRaw$outboundSchema).optional(),
173
+ raw: z.record(z.any()).optional(),
224
174
  shippingAddress: PropertyAccountingOrderShippingAddress$outboundSchema
225
175
  .optional(),
226
176
  status: AccountingOrderStatus$outboundSchema.optional(),
@@ -14,8 +14,6 @@ import {
14
14
  PropertyAccountingOrganizationAddress$outboundSchema,
15
15
  } from "./propertyaccountingorganizationaddress.js";
16
16
 
17
- export type AccountingOrganizationRaw = {};
18
-
19
17
  export type AccountingOrganization = {
20
18
  address?: PropertyAccountingOrganizationAddress | undefined;
21
19
  createdAt?: Date | undefined;
@@ -25,61 +23,13 @@ export type AccountingOrganization = {
25
23
  legalName?: string | undefined;
26
24
  name: string;
27
25
  organizationCode?: string | undefined;
28
- raw?: AccountingOrganizationRaw | undefined;
26
+ raw?: { [k: string]: any } | undefined;
29
27
  taxNumber?: string | undefined;
30
28
  timezone?: string | undefined;
31
29
  updatedAt?: Date | undefined;
32
30
  website?: string | undefined;
33
31
  };
34
32
 
35
- /** @internal */
36
- export const AccountingOrganizationRaw$inboundSchema: z.ZodType<
37
- AccountingOrganizationRaw,
38
- z.ZodTypeDef,
39
- unknown
40
- > = z.object({});
41
-
42
- /** @internal */
43
- export type AccountingOrganizationRaw$Outbound = {};
44
-
45
- /** @internal */
46
- export const AccountingOrganizationRaw$outboundSchema: z.ZodType<
47
- AccountingOrganizationRaw$Outbound,
48
- z.ZodTypeDef,
49
- AccountingOrganizationRaw
50
- > = z.object({});
51
-
52
- /**
53
- * @internal
54
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
55
- */
56
- export namespace AccountingOrganizationRaw$ {
57
- /** @deprecated use `AccountingOrganizationRaw$inboundSchema` instead. */
58
- export const inboundSchema = AccountingOrganizationRaw$inboundSchema;
59
- /** @deprecated use `AccountingOrganizationRaw$outboundSchema` instead. */
60
- export const outboundSchema = AccountingOrganizationRaw$outboundSchema;
61
- /** @deprecated use `AccountingOrganizationRaw$Outbound` instead. */
62
- export type Outbound = AccountingOrganizationRaw$Outbound;
63
- }
64
-
65
- export function accountingOrganizationRawToJSON(
66
- accountingOrganizationRaw: AccountingOrganizationRaw,
67
- ): string {
68
- return JSON.stringify(
69
- AccountingOrganizationRaw$outboundSchema.parse(accountingOrganizationRaw),
70
- );
71
- }
72
-
73
- export function accountingOrganizationRawFromJSON(
74
- jsonString: string,
75
- ): SafeParseResult<AccountingOrganizationRaw, SDKValidationError> {
76
- return safeParse(
77
- jsonString,
78
- (x) => AccountingOrganizationRaw$inboundSchema.parse(JSON.parse(x)),
79
- `Failed to parse 'AccountingOrganizationRaw' from JSON`,
80
- );
81
- }
82
-
83
33
  /** @internal */
84
34
  export const AccountingOrganization$inboundSchema: z.ZodType<
85
35
  AccountingOrganization,
@@ -95,7 +45,7 @@ export const AccountingOrganization$inboundSchema: z.ZodType<
95
45
  legal_name: z.string().optional(),
96
46
  name: z.string(),
97
47
  organization_code: z.string().optional(),
98
- raw: z.lazy(() => AccountingOrganizationRaw$inboundSchema).optional(),
48
+ raw: z.record(z.any()).optional(),
99
49
  tax_number: z.string().optional(),
100
50
  timezone: z.string().optional(),
101
51
  updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
@@ -122,7 +72,7 @@ export type AccountingOrganization$Outbound = {
122
72
  legal_name?: string | undefined;
123
73
  name: string;
124
74
  organization_code?: string | undefined;
125
- raw?: AccountingOrganizationRaw$Outbound | undefined;
75
+ raw?: { [k: string]: any } | undefined;
126
76
  tax_number?: string | undefined;
127
77
  timezone?: string | undefined;
128
78
  updated_at?: string | undefined;
@@ -143,7 +93,7 @@ export const AccountingOrganization$outboundSchema: z.ZodType<
143
93
  legalName: z.string().optional(),
144
94
  name: z.string(),
145
95
  organizationCode: z.string().optional(),
146
- raw: z.lazy(() => AccountingOrganizationRaw$outboundSchema).optional(),
96
+ raw: z.record(z.any()).optional(),
147
97
  taxNumber: z.string().optional(),
148
98
  timezone: z.string().optional(),
149
99
  updatedAt: z.date().transform(v => v.toISOString()).optional(),
@@ -9,8 +9,6 @@ import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export type AccountingReportRaw = {};
13
-
14
12
  export const AccountingReportType = {
15
13
  TrialBalance: "TRIAL_BALANCE",
16
14
  BalanceSheet: "BALANCE_SHEET",
@@ -25,60 +23,12 @@ export type AccountingReport = {
25
23
  createdAt?: Date | undefined;
26
24
  group?: string | undefined;
27
25
  id?: string | undefined;
28
- raw?: AccountingReportRaw | undefined;
26
+ raw?: { [k: string]: any } | undefined;
29
27
  subgroup?: string | undefined;
30
28
  type?: AccountingReportType | undefined;
31
29
  updatedAt?: Date | undefined;
32
30
  };
33
31
 
34
- /** @internal */
35
- export const AccountingReportRaw$inboundSchema: z.ZodType<
36
- AccountingReportRaw,
37
- z.ZodTypeDef,
38
- unknown
39
- > = z.object({});
40
-
41
- /** @internal */
42
- export type AccountingReportRaw$Outbound = {};
43
-
44
- /** @internal */
45
- export const AccountingReportRaw$outboundSchema: z.ZodType<
46
- AccountingReportRaw$Outbound,
47
- z.ZodTypeDef,
48
- AccountingReportRaw
49
- > = z.object({});
50
-
51
- /**
52
- * @internal
53
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
- */
55
- export namespace AccountingReportRaw$ {
56
- /** @deprecated use `AccountingReportRaw$inboundSchema` instead. */
57
- export const inboundSchema = AccountingReportRaw$inboundSchema;
58
- /** @deprecated use `AccountingReportRaw$outboundSchema` instead. */
59
- export const outboundSchema = AccountingReportRaw$outboundSchema;
60
- /** @deprecated use `AccountingReportRaw$Outbound` instead. */
61
- export type Outbound = AccountingReportRaw$Outbound;
62
- }
63
-
64
- export function accountingReportRawToJSON(
65
- accountingReportRaw: AccountingReportRaw,
66
- ): string {
67
- return JSON.stringify(
68
- AccountingReportRaw$outboundSchema.parse(accountingReportRaw),
69
- );
70
- }
71
-
72
- export function accountingReportRawFromJSON(
73
- jsonString: string,
74
- ): SafeParseResult<AccountingReportRaw, SDKValidationError> {
75
- return safeParse(
76
- jsonString,
77
- (x) => AccountingReportRaw$inboundSchema.parse(JSON.parse(x)),
78
- `Failed to parse 'AccountingReportRaw' from JSON`,
79
- );
80
- }
81
-
82
32
  /** @internal */
83
33
  export const AccountingReportType$inboundSchema: z.ZodNativeEnum<
84
34
  typeof AccountingReportType
@@ -113,7 +63,7 @@ export const AccountingReport$inboundSchema: z.ZodType<
113
63
  .optional(),
114
64
  group: z.string().optional(),
115
65
  id: z.string().optional(),
116
- raw: z.lazy(() => AccountingReportRaw$inboundSchema).optional(),
66
+ raw: z.record(z.any()).optional(),
117
67
  subgroup: z.string().optional(),
118
68
  type: AccountingReportType$inboundSchema.optional(),
119
69
  updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
@@ -135,7 +85,7 @@ export type AccountingReport$Outbound = {
135
85
  created_at?: string | undefined;
136
86
  group?: string | undefined;
137
87
  id?: string | undefined;
138
- raw?: AccountingReportRaw$Outbound | undefined;
88
+ raw?: { [k: string]: any } | undefined;
139
89
  subgroup?: string | undefined;
140
90
  type?: string | undefined;
141
91
  updated_at?: string | undefined;
@@ -153,7 +103,7 @@ export const AccountingReport$outboundSchema: z.ZodType<
153
103
  createdAt: z.date().transform(v => v.toISOString()).optional(),
154
104
  group: z.string().optional(),
155
105
  id: z.string().optional(),
156
- raw: z.lazy(() => AccountingReportRaw$outboundSchema).optional(),
106
+ raw: z.record(z.any()).optional(),
157
107
  subgroup: z.string().optional(),
158
108
  type: AccountingReportType$outboundSchema.optional(),
159
109
  updatedAt: z.date().transform(v => v.toISOString()).optional(),
@@ -8,8 +8,6 @@ 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 AccountingTaxrateRaw = {};
12
-
13
11
  export type AccountingTaxrate = {
14
12
  createdAt?: Date | undefined;
15
13
  description?: string | undefined;
@@ -17,58 +15,10 @@ export type AccountingTaxrate = {
17
15
  isActive?: boolean | undefined;
18
16
  name?: string | undefined;
19
17
  rate?: number | undefined;
20
- raw?: AccountingTaxrateRaw | undefined;
18
+ raw?: { [k: string]: any } | undefined;
21
19
  updatedAt?: Date | undefined;
22
20
  };
23
21
 
24
- /** @internal */
25
- export const AccountingTaxrateRaw$inboundSchema: z.ZodType<
26
- AccountingTaxrateRaw,
27
- z.ZodTypeDef,
28
- unknown
29
- > = z.object({});
30
-
31
- /** @internal */
32
- export type AccountingTaxrateRaw$Outbound = {};
33
-
34
- /** @internal */
35
- export const AccountingTaxrateRaw$outboundSchema: z.ZodType<
36
- AccountingTaxrateRaw$Outbound,
37
- z.ZodTypeDef,
38
- AccountingTaxrateRaw
39
- > = z.object({});
40
-
41
- /**
42
- * @internal
43
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
44
- */
45
- export namespace AccountingTaxrateRaw$ {
46
- /** @deprecated use `AccountingTaxrateRaw$inboundSchema` instead. */
47
- export const inboundSchema = AccountingTaxrateRaw$inboundSchema;
48
- /** @deprecated use `AccountingTaxrateRaw$outboundSchema` instead. */
49
- export const outboundSchema = AccountingTaxrateRaw$outboundSchema;
50
- /** @deprecated use `AccountingTaxrateRaw$Outbound` instead. */
51
- export type Outbound = AccountingTaxrateRaw$Outbound;
52
- }
53
-
54
- export function accountingTaxrateRawToJSON(
55
- accountingTaxrateRaw: AccountingTaxrateRaw,
56
- ): string {
57
- return JSON.stringify(
58
- AccountingTaxrateRaw$outboundSchema.parse(accountingTaxrateRaw),
59
- );
60
- }
61
-
62
- export function accountingTaxrateRawFromJSON(
63
- jsonString: string,
64
- ): SafeParseResult<AccountingTaxrateRaw, SDKValidationError> {
65
- return safeParse(
66
- jsonString,
67
- (x) => AccountingTaxrateRaw$inboundSchema.parse(JSON.parse(x)),
68
- `Failed to parse 'AccountingTaxrateRaw' from JSON`,
69
- );
70
- }
71
-
72
22
  /** @internal */
73
23
  export const AccountingTaxrate$inboundSchema: z.ZodType<
74
24
  AccountingTaxrate,
@@ -82,7 +32,7 @@ export const AccountingTaxrate$inboundSchema: z.ZodType<
82
32
  is_active: z.boolean().optional(),
83
33
  name: z.string().optional(),
84
34
  rate: z.number().optional(),
85
- raw: z.lazy(() => AccountingTaxrateRaw$inboundSchema).optional(),
35
+ raw: z.record(z.any()).optional(),
86
36
  updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
87
37
  .optional(),
88
38
  }).transform((v) => {
@@ -101,7 +51,7 @@ export type AccountingTaxrate$Outbound = {
101
51
  is_active?: boolean | undefined;
102
52
  name?: string | undefined;
103
53
  rate?: number | undefined;
104
- raw?: AccountingTaxrateRaw$Outbound | undefined;
54
+ raw?: { [k: string]: any } | undefined;
105
55
  updated_at?: string | undefined;
106
56
  };
107
57
 
@@ -117,7 +67,7 @@ export const AccountingTaxrate$outboundSchema: z.ZodType<
117
67
  isActive: z.boolean().optional(),
118
68
  name: z.string().optional(),
119
69
  rate: z.number().optional(),
120
- raw: z.lazy(() => AccountingTaxrateRaw$outboundSchema).optional(),
70
+ raw: z.record(z.any()).optional(),
121
71
  updatedAt: z.date().transform(v => v.toISOString()).optional(),
122
72
  }).transform((v) => {
123
73
  return remap$(v, {
@@ -20,8 +20,6 @@ import {
20
20
  AccountingTransactionLineItem$outboundSchema,
21
21
  } from "./accountingtransactionlineitem.js";
22
22
 
23
- export type AccountingTransactionRaw = {};
24
-
25
23
  export type AccountingTransaction = {
26
24
  accountId?: string | undefined;
27
25
  contactId?: string | undefined;
@@ -34,7 +32,7 @@ export type AccountingTransaction = {
34
32
  memo?: string | undefined;
35
33
  paymentMethod?: string | undefined;
36
34
  paymentTerms?: string | undefined;
37
- raw?: AccountingTransactionRaw | undefined;
35
+ raw?: { [k: string]: any } | undefined;
38
36
  reference?: string | undefined;
39
37
  splitAccountId?: string | undefined;
40
38
  subTotalAmount?: number | undefined;
@@ -44,54 +42,6 @@ export type AccountingTransaction = {
44
42
  updatedAt?: Date | undefined;
45
43
  };
46
44
 
47
- /** @internal */
48
- export const AccountingTransactionRaw$inboundSchema: z.ZodType<
49
- AccountingTransactionRaw,
50
- z.ZodTypeDef,
51
- unknown
52
- > = z.object({});
53
-
54
- /** @internal */
55
- export type AccountingTransactionRaw$Outbound = {};
56
-
57
- /** @internal */
58
- export const AccountingTransactionRaw$outboundSchema: z.ZodType<
59
- AccountingTransactionRaw$Outbound,
60
- z.ZodTypeDef,
61
- AccountingTransactionRaw
62
- > = z.object({});
63
-
64
- /**
65
- * @internal
66
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
67
- */
68
- export namespace AccountingTransactionRaw$ {
69
- /** @deprecated use `AccountingTransactionRaw$inboundSchema` instead. */
70
- export const inboundSchema = AccountingTransactionRaw$inboundSchema;
71
- /** @deprecated use `AccountingTransactionRaw$outboundSchema` instead. */
72
- export const outboundSchema = AccountingTransactionRaw$outboundSchema;
73
- /** @deprecated use `AccountingTransactionRaw$Outbound` instead. */
74
- export type Outbound = AccountingTransactionRaw$Outbound;
75
- }
76
-
77
- export function accountingTransactionRawToJSON(
78
- accountingTransactionRaw: AccountingTransactionRaw,
79
- ): string {
80
- return JSON.stringify(
81
- AccountingTransactionRaw$outboundSchema.parse(accountingTransactionRaw),
82
- );
83
- }
84
-
85
- export function accountingTransactionRawFromJSON(
86
- jsonString: string,
87
- ): SafeParseResult<AccountingTransactionRaw, SDKValidationError> {
88
- return safeParse(
89
- jsonString,
90
- (x) => AccountingTransactionRaw$inboundSchema.parse(JSON.parse(x)),
91
- `Failed to parse 'AccountingTransactionRaw' from JSON`,
92
- );
93
- }
94
-
95
45
  /** @internal */
96
46
  export const AccountingTransaction$inboundSchema: z.ZodType<
97
47
  AccountingTransaction,
@@ -110,7 +60,7 @@ export const AccountingTransaction$inboundSchema: z.ZodType<
110
60
  memo: z.string().optional(),
111
61
  payment_method: z.string().optional(),
112
62
  payment_terms: z.string().optional(),
113
- raw: z.lazy(() => AccountingTransactionRaw$inboundSchema).optional(),
63
+ raw: z.record(z.any()).optional(),
114
64
  reference: z.string().optional(),
115
65
  split_account_id: z.string().optional(),
116
66
  sub_total_amount: z.number().optional(),
@@ -148,7 +98,7 @@ export type AccountingTransaction$Outbound = {
148
98
  memo?: string | undefined;
149
99
  payment_method?: string | undefined;
150
100
  payment_terms?: string | undefined;
151
- raw?: AccountingTransactionRaw$Outbound | undefined;
101
+ raw?: { [k: string]: any } | undefined;
152
102
  reference?: string | undefined;
153
103
  split_account_id?: string | undefined;
154
104
  sub_total_amount?: number | undefined;
@@ -175,7 +125,7 @@ export const AccountingTransaction$outboundSchema: z.ZodType<
175
125
  memo: z.string().optional(),
176
126
  paymentMethod: z.string().optional(),
177
127
  paymentTerms: z.string().optional(),
178
- raw: z.lazy(() => AccountingTransactionRaw$outboundSchema).optional(),
128
+ raw: z.record(z.any()).optional(),
179
129
  reference: z.string().optional(),
180
130
  splitAccountId: z.string().optional(),
181
131
  subTotalAmount: z.number().optional(),