@unified-api/typescript-sdk 2.52.0 → 2.56.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 (230) hide show
  1. package/README.md +12 -0
  2. package/docs/sdks/device/README.md +519 -0
  3. package/docs/sdks/hris/README.md +512 -0
  4. package/funcs/accountingListAccountingReports.js +2 -0
  5. package/funcs/accountingListAccountingReports.js.map +1 -1
  6. package/funcs/deviceCreateHrisDevice.d.ts +14 -0
  7. package/funcs/deviceCreateHrisDevice.d.ts.map +1 -0
  8. package/funcs/deviceCreateHrisDevice.js +109 -0
  9. package/funcs/deviceCreateHrisDevice.js.map +1 -0
  10. package/funcs/deviceGetHrisDevice.d.ts +14 -0
  11. package/funcs/deviceGetHrisDevice.d.ts.map +1 -0
  12. package/funcs/deviceGetHrisDevice.js +112 -0
  13. package/funcs/deviceGetHrisDevice.js.map +1 -0
  14. package/funcs/deviceListHrisDevices.d.ts +14 -0
  15. package/funcs/deviceListHrisDevices.d.ts.map +1 -0
  16. package/funcs/deviceListHrisDevices.js +116 -0
  17. package/funcs/deviceListHrisDevices.js.map +1 -0
  18. package/funcs/devicePatchHrisDevice.d.ts +14 -0
  19. package/funcs/devicePatchHrisDevice.d.ts.map +1 -0
  20. package/funcs/devicePatchHrisDevice.js +113 -0
  21. package/funcs/devicePatchHrisDevice.js.map +1 -0
  22. package/funcs/deviceRemoveHrisDevice.d.ts +13 -0
  23. package/funcs/deviceRemoveHrisDevice.d.ts.map +1 -0
  24. package/funcs/deviceRemoveHrisDevice.js +110 -0
  25. package/funcs/deviceRemoveHrisDevice.js.map +1 -0
  26. package/funcs/deviceUpdateHrisDevice.d.ts +14 -0
  27. package/funcs/deviceUpdateHrisDevice.d.ts.map +1 -0
  28. package/funcs/deviceUpdateHrisDevice.js +113 -0
  29. package/funcs/deviceUpdateHrisDevice.js.map +1 -0
  30. package/funcs/fileListStorageFiles.js +1 -0
  31. package/funcs/fileListStorageFiles.js.map +1 -1
  32. package/funcs/hrisCreateHrisDevice.d.ts +14 -0
  33. package/funcs/hrisCreateHrisDevice.d.ts.map +1 -0
  34. package/funcs/hrisCreateHrisDevice.js +109 -0
  35. package/funcs/hrisCreateHrisDevice.js.map +1 -0
  36. package/funcs/hrisGetHrisDevice.d.ts +14 -0
  37. package/funcs/hrisGetHrisDevice.d.ts.map +1 -0
  38. package/funcs/hrisGetHrisDevice.js +112 -0
  39. package/funcs/hrisGetHrisDevice.js.map +1 -0
  40. package/funcs/hrisListHrisDevices.d.ts +14 -0
  41. package/funcs/hrisListHrisDevices.d.ts.map +1 -0
  42. package/funcs/hrisListHrisDevices.js +116 -0
  43. package/funcs/hrisListHrisDevices.js.map +1 -0
  44. package/funcs/hrisPatchHrisDevice.d.ts +14 -0
  45. package/funcs/hrisPatchHrisDevice.d.ts.map +1 -0
  46. package/funcs/hrisPatchHrisDevice.js +113 -0
  47. package/funcs/hrisPatchHrisDevice.js.map +1 -0
  48. package/funcs/hrisRemoveHrisDevice.d.ts +13 -0
  49. package/funcs/hrisRemoveHrisDevice.d.ts.map +1 -0
  50. package/funcs/hrisRemoveHrisDevice.js +110 -0
  51. package/funcs/hrisRemoveHrisDevice.js.map +1 -0
  52. package/funcs/hrisUpdateHrisDevice.d.ts +14 -0
  53. package/funcs/hrisUpdateHrisDevice.d.ts.map +1 -0
  54. package/funcs/hrisUpdateHrisDevice.js +113 -0
  55. package/funcs/hrisUpdateHrisDevice.js.map +1 -0
  56. package/funcs/reportListAccountingReports.js +2 -0
  57. package/funcs/reportListAccountingReports.js.map +1 -1
  58. package/funcs/storageListStorageFiles.js +1 -0
  59. package/funcs/storageListStorageFiles.js.map +1 -1
  60. package/jsr.json +1 -1
  61. package/lib/config.d.ts +2 -2
  62. package/lib/config.js +2 -2
  63. package/package.json +1 -1
  64. package/sdk/device.d.ts +30 -0
  65. package/sdk/device.d.ts.map +1 -0
  66. package/sdk/device.js +54 -0
  67. package/sdk/device.js.map +1 -0
  68. package/sdk/hris.d.ts +24 -0
  69. package/sdk/hris.d.ts.map +1 -1
  70. package/sdk/hris.js +42 -0
  71. package/sdk/hris.js.map +1 -1
  72. package/sdk/models/operations/createhrisdevice.d.ts +40 -0
  73. package/sdk/models/operations/createhrisdevice.d.ts.map +1 -0
  74. package/sdk/models/operations/createhrisdevice.js +75 -0
  75. package/sdk/models/operations/createhrisdevice.js.map +1 -0
  76. package/sdk/models/operations/gethrisdevice.d.ts +42 -0
  77. package/sdk/models/operations/gethrisdevice.d.ts.map +1 -0
  78. package/sdk/models/operations/gethrisdevice.js +72 -0
  79. package/sdk/models/operations/gethrisdevice.js.map +1 -0
  80. package/sdk/models/operations/index.d.ts +6 -0
  81. package/sdk/models/operations/index.d.ts.map +1 -1
  82. package/sdk/models/operations/index.js +6 -0
  83. package/sdk/models/operations/index.js.map +1 -1
  84. package/sdk/models/operations/listaccountingreports.d.ts +4 -0
  85. package/sdk/models/operations/listaccountingreports.d.ts.map +1 -1
  86. package/sdk/models/operations/listaccountingreports.js +8 -0
  87. package/sdk/models/operations/listaccountingreports.js.map +1 -1
  88. package/sdk/models/operations/listhrisdevices.d.ts +57 -0
  89. package/sdk/models/operations/listhrisdevices.d.ts.map +1 -0
  90. package/sdk/models/operations/listhrisdevices.js +89 -0
  91. package/sdk/models/operations/listhrisdevices.js.map +1 -0
  92. package/sdk/models/operations/liststoragefiles.d.ts +2 -0
  93. package/sdk/models/operations/liststoragefiles.d.ts.map +1 -1
  94. package/sdk/models/operations/liststoragefiles.js +2 -0
  95. package/sdk/models/operations/liststoragefiles.js.map +1 -1
  96. package/sdk/models/operations/patchhrisdevice.d.ts +45 -0
  97. package/sdk/models/operations/patchhrisdevice.d.ts.map +1 -0
  98. package/sdk/models/operations/patchhrisdevice.js +77 -0
  99. package/sdk/models/operations/patchhrisdevice.js.map +1 -0
  100. package/sdk/models/operations/removehrisdevice.d.ts +66 -0
  101. package/sdk/models/operations/removehrisdevice.d.ts.map +1 -0
  102. package/sdk/models/operations/removehrisdevice.js +105 -0
  103. package/sdk/models/operations/removehrisdevice.js.map +1 -0
  104. package/sdk/models/operations/updatehrisdevice.d.ts +45 -0
  105. package/sdk/models/operations/updatehrisdevice.d.ts.map +1 -0
  106. package/sdk/models/operations/updatehrisdevice.js +77 -0
  107. package/sdk/models/operations/updatehrisdevice.js.map +1 -0
  108. package/sdk/models/shared/accountingassociatedcontact.d.ts +34 -0
  109. package/sdk/models/shared/accountingassociatedcontact.d.ts.map +1 -0
  110. package/sdk/models/shared/accountingassociatedcontact.js +64 -0
  111. package/sdk/models/shared/accountingassociatedcontact.js.map +1 -0
  112. package/sdk/models/shared/accountingbalancesheetitem.d.ts +36 -0
  113. package/sdk/models/shared/accountingbalancesheetitem.d.ts.map +1 -0
  114. package/sdk/models/shared/accountingbalancesheetitem.js +79 -0
  115. package/sdk/models/shared/accountingbalancesheetitem.js.map +1 -0
  116. package/sdk/models/shared/accountingcontact.d.ts +3 -0
  117. package/sdk/models/shared/accountingcontact.d.ts.map +1 -1
  118. package/sdk/models/shared/accountingcontact.js +7 -0
  119. package/sdk/models/shared/accountingcontact.js.map +1 -1
  120. package/sdk/models/shared/accountinginvoice.d.ts +2 -0
  121. package/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
  122. package/sdk/models/shared/accountinginvoice.js +2 -0
  123. package/sdk/models/shared/accountinginvoice.js.map +1 -1
  124. package/sdk/models/shared/accountingprofitandlosscategory.d.ts +34 -0
  125. package/sdk/models/shared/accountingprofitandlosscategory.d.ts.map +1 -0
  126. package/sdk/models/shared/accountingprofitandlosscategory.js +75 -0
  127. package/sdk/models/shared/accountingprofitandlosscategory.js.map +1 -0
  128. package/sdk/models/shared/accountingprofitandlosssubcategory.d.ts +33 -0
  129. package/sdk/models/shared/accountingprofitandlosssubcategory.d.ts.map +1 -0
  130. package/sdk/models/shared/accountingprofitandlosssubcategory.js +72 -0
  131. package/sdk/models/shared/accountingprofitandlosssubcategory.js.map +1 -0
  132. package/sdk/models/shared/accountingreport.d.ts +17 -10
  133. package/sdk/models/shared/accountingreport.d.ts.map +1 -1
  134. package/sdk/models/shared/accountingreport.js +31 -14
  135. package/sdk/models/shared/accountingreport.js.map +1 -1
  136. package/sdk/models/shared/accountingtrialbalancesubitem.d.ts +33 -0
  137. package/sdk/models/shared/accountingtrialbalancesubitem.d.ts.map +1 -0
  138. package/sdk/models/shared/accountingtrialbalancesubitem.js +74 -0
  139. package/sdk/models/shared/accountingtrialbalancesubitem.js.map +1 -0
  140. package/sdk/models/shared/atsjob.d.ts +3 -0
  141. package/sdk/models/shared/atsjob.d.ts.map +1 -1
  142. package/sdk/models/shared/atsjob.js +3 -0
  143. package/sdk/models/shared/atsjob.js.map +1 -1
  144. package/sdk/models/shared/atsjobopening.d.ts +63 -0
  145. package/sdk/models/shared/atsjobopening.d.ts.map +1 -0
  146. package/sdk/models/shared/atsjobopening.js +103 -0
  147. package/sdk/models/shared/atsjobopening.js.map +1 -0
  148. package/sdk/models/shared/hrisdevice.d.ts +74 -0
  149. package/sdk/models/shared/hrisdevice.d.ts.map +1 -0
  150. package/sdk/models/shared/hrisdevice.js +132 -0
  151. package/sdk/models/shared/hrisdevice.js.map +1 -0
  152. package/sdk/models/shared/index.d.ts +11 -0
  153. package/sdk/models/shared/index.d.ts.map +1 -1
  154. package/sdk/models/shared/index.js +11 -0
  155. package/sdk/models/shared/index.js.map +1 -1
  156. package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.d.ts +25 -0
  157. package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.d.ts.map +1 -0
  158. package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.js +55 -0
  159. package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.js.map +1 -0
  160. package/sdk/models/shared/propertyaccountingreportbalancesheet.d.ts +36 -0
  161. package/sdk/models/shared/propertyaccountingreportbalancesheet.d.ts.map +1 -0
  162. package/sdk/models/shared/propertyaccountingreportbalancesheet.js +75 -0
  163. package/sdk/models/shared/propertyaccountingreportbalancesheet.js.map +1 -0
  164. package/sdk/models/shared/propertyaccountingreportprofitandloss.d.ts +38 -0
  165. package/sdk/models/shared/propertyaccountingreportprofitandloss.d.ts.map +1 -0
  166. package/sdk/models/shared/propertyaccountingreportprofitandloss.js +83 -0
  167. package/sdk/models/shared/propertyaccountingreportprofitandloss.js.map +1 -0
  168. package/sdk/models/shared/propertyaccountingreporttrialbalance.d.ts +34 -0
  169. package/sdk/models/shared/propertyaccountingreporttrialbalance.d.ts.map +1 -0
  170. package/sdk/models/shared/propertyaccountingreporttrialbalance.js +77 -0
  171. package/sdk/models/shared/propertyaccountingreporttrialbalance.js.map +1 -0
  172. package/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -0
  173. package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  174. package/sdk/models/shared/propertyconnectionpermissions.js +2 -0
  175. package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  176. package/sdk/models/shared/webhook.d.ts +3 -0
  177. package/sdk/models/shared/webhook.d.ts.map +1 -1
  178. package/sdk/models/shared/webhook.js +1 -0
  179. package/sdk/models/shared/webhook.js.map +1 -1
  180. package/sdk/sdk.d.ts +3 -0
  181. package/sdk/sdk.d.ts.map +1 -1
  182. package/sdk/sdk.js +4 -0
  183. package/sdk/sdk.js.map +1 -1
  184. package/src/funcs/accountingListAccountingReports.ts +2 -0
  185. package/src/funcs/deviceCreateHrisDevice.ts +163 -0
  186. package/src/funcs/deviceGetHrisDevice.ts +166 -0
  187. package/src/funcs/deviceListHrisDevices.ts +170 -0
  188. package/src/funcs/devicePatchHrisDevice.ts +167 -0
  189. package/src/funcs/deviceRemoveHrisDevice.ts +169 -0
  190. package/src/funcs/deviceUpdateHrisDevice.ts +167 -0
  191. package/src/funcs/fileListStorageFiles.ts +1 -0
  192. package/src/funcs/hrisCreateHrisDevice.ts +163 -0
  193. package/src/funcs/hrisGetHrisDevice.ts +166 -0
  194. package/src/funcs/hrisListHrisDevices.ts +170 -0
  195. package/src/funcs/hrisPatchHrisDevice.ts +167 -0
  196. package/src/funcs/hrisRemoveHrisDevice.ts +169 -0
  197. package/src/funcs/hrisUpdateHrisDevice.ts +167 -0
  198. package/src/funcs/reportListAccountingReports.ts +2 -0
  199. package/src/funcs/storageListStorageFiles.ts +1 -0
  200. package/src/lib/config.ts +2 -2
  201. package/src/sdk/device.ts +100 -0
  202. package/src/sdk/hris.ts +90 -0
  203. package/src/sdk/models/operations/createhrisdevice.ts +92 -0
  204. package/src/sdk/models/operations/gethrisdevice.ts +92 -0
  205. package/src/sdk/models/operations/index.ts +6 -0
  206. package/src/sdk/models/operations/listaccountingreports.ts +12 -0
  207. package/src/sdk/models/operations/listhrisdevices.ts +124 -0
  208. package/src/sdk/models/operations/liststoragefiles.ts +4 -0
  209. package/src/sdk/models/operations/patchhrisdevice.ts +99 -0
  210. package/src/sdk/models/operations/removehrisdevice.ts +151 -0
  211. package/src/sdk/models/operations/updatehrisdevice.ts +99 -0
  212. package/src/sdk/models/shared/accountingassociatedcontact.ts +82 -0
  213. package/src/sdk/models/shared/accountingbalancesheetitem.ts +99 -0
  214. package/src/sdk/models/shared/accountingcontact.ts +14 -0
  215. package/src/sdk/models/shared/accountinginvoice.ts +4 -0
  216. package/src/sdk/models/shared/accountingprofitandlosscategory.ts +93 -0
  217. package/src/sdk/models/shared/accountingprofitandlosssubcategory.ts +87 -0
  218. package/src/sdk/models/shared/accountingreport.ts +60 -24
  219. package/src/sdk/models/shared/accountingtrialbalancesubitem.ts +87 -0
  220. package/src/sdk/models/shared/atsjob.ts +10 -0
  221. package/src/sdk/models/shared/atsjobopening.ts +123 -0
  222. package/src/sdk/models/shared/hrisdevice.ts +176 -0
  223. package/src/sdk/models/shared/index.ts +11 -0
  224. package/src/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.ts +68 -0
  225. package/src/sdk/models/shared/propertyaccountingreportbalancesheet.ts +98 -0
  226. package/src/sdk/models/shared/propertyaccountingreportprofitandloss.ts +110 -0
  227. package/src/sdk/models/shared/propertyaccountingreporttrialbalance.ts +98 -0
  228. package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
  229. package/src/sdk/models/shared/webhook.ts +1 -0
  230. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,151 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
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 RemoveHrisDeviceRequest = {
12
+ /**
13
+ * ID of the connection
14
+ */
15
+ connectionId: string;
16
+ /**
17
+ * ID of the Device
18
+ */
19
+ id: string;
20
+ };
21
+
22
+ export type RemoveHrisDeviceResponse = {
23
+ headers: { [k: string]: Array<string> };
24
+ };
25
+
26
+ /** @internal */
27
+ export const RemoveHrisDeviceRequest$inboundSchema: z.ZodType<
28
+ RemoveHrisDeviceRequest,
29
+ z.ZodTypeDef,
30
+ unknown
31
+ > = z.object({
32
+ connection_id: z.string(),
33
+ id: z.string(),
34
+ }).transform((v) => {
35
+ return remap$(v, {
36
+ "connection_id": "connectionId",
37
+ });
38
+ });
39
+
40
+ /** @internal */
41
+ export type RemoveHrisDeviceRequest$Outbound = {
42
+ connection_id: string;
43
+ id: string;
44
+ };
45
+
46
+ /** @internal */
47
+ export const RemoveHrisDeviceRequest$outboundSchema: z.ZodType<
48
+ RemoveHrisDeviceRequest$Outbound,
49
+ z.ZodTypeDef,
50
+ RemoveHrisDeviceRequest
51
+ > = z.object({
52
+ connectionId: z.string(),
53
+ id: z.string(),
54
+ }).transform((v) => {
55
+ return remap$(v, {
56
+ connectionId: "connection_id",
57
+ });
58
+ });
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 RemoveHrisDeviceRequest$ {
65
+ /** @deprecated use `RemoveHrisDeviceRequest$inboundSchema` instead. */
66
+ export const inboundSchema = RemoveHrisDeviceRequest$inboundSchema;
67
+ /** @deprecated use `RemoveHrisDeviceRequest$outboundSchema` instead. */
68
+ export const outboundSchema = RemoveHrisDeviceRequest$outboundSchema;
69
+ /** @deprecated use `RemoveHrisDeviceRequest$Outbound` instead. */
70
+ export type Outbound = RemoveHrisDeviceRequest$Outbound;
71
+ }
72
+
73
+ export function removeHrisDeviceRequestToJSON(
74
+ removeHrisDeviceRequest: RemoveHrisDeviceRequest,
75
+ ): string {
76
+ return JSON.stringify(
77
+ RemoveHrisDeviceRequest$outboundSchema.parse(removeHrisDeviceRequest),
78
+ );
79
+ }
80
+
81
+ export function removeHrisDeviceRequestFromJSON(
82
+ jsonString: string,
83
+ ): SafeParseResult<RemoveHrisDeviceRequest, SDKValidationError> {
84
+ return safeParse(
85
+ jsonString,
86
+ (x) => RemoveHrisDeviceRequest$inboundSchema.parse(JSON.parse(x)),
87
+ `Failed to parse 'RemoveHrisDeviceRequest' from JSON`,
88
+ );
89
+ }
90
+
91
+ /** @internal */
92
+ export const RemoveHrisDeviceResponse$inboundSchema: z.ZodType<
93
+ RemoveHrisDeviceResponse,
94
+ z.ZodTypeDef,
95
+ unknown
96
+ > = z.object({
97
+ Headers: z.record(z.array(z.string())),
98
+ }).transform((v) => {
99
+ return remap$(v, {
100
+ "Headers": "headers",
101
+ });
102
+ });
103
+
104
+ /** @internal */
105
+ export type RemoveHrisDeviceResponse$Outbound = {
106
+ Headers: { [k: string]: Array<string> };
107
+ };
108
+
109
+ /** @internal */
110
+ export const RemoveHrisDeviceResponse$outboundSchema: z.ZodType<
111
+ RemoveHrisDeviceResponse$Outbound,
112
+ z.ZodTypeDef,
113
+ RemoveHrisDeviceResponse
114
+ > = z.object({
115
+ headers: z.record(z.array(z.string())),
116
+ }).transform((v) => {
117
+ return remap$(v, {
118
+ headers: "Headers",
119
+ });
120
+ });
121
+
122
+ /**
123
+ * @internal
124
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
125
+ */
126
+ export namespace RemoveHrisDeviceResponse$ {
127
+ /** @deprecated use `RemoveHrisDeviceResponse$inboundSchema` instead. */
128
+ export const inboundSchema = RemoveHrisDeviceResponse$inboundSchema;
129
+ /** @deprecated use `RemoveHrisDeviceResponse$outboundSchema` instead. */
130
+ export const outboundSchema = RemoveHrisDeviceResponse$outboundSchema;
131
+ /** @deprecated use `RemoveHrisDeviceResponse$Outbound` instead. */
132
+ export type Outbound = RemoveHrisDeviceResponse$Outbound;
133
+ }
134
+
135
+ export function removeHrisDeviceResponseToJSON(
136
+ removeHrisDeviceResponse: RemoveHrisDeviceResponse,
137
+ ): string {
138
+ return JSON.stringify(
139
+ RemoveHrisDeviceResponse$outboundSchema.parse(removeHrisDeviceResponse),
140
+ );
141
+ }
142
+
143
+ export function removeHrisDeviceResponseFromJSON(
144
+ jsonString: string,
145
+ ): SafeParseResult<RemoveHrisDeviceResponse, SDKValidationError> {
146
+ return safeParse(
147
+ jsonString,
148
+ (x) => RemoveHrisDeviceResponse$inboundSchema.parse(JSON.parse(x)),
149
+ `Failed to parse 'RemoveHrisDeviceResponse' from JSON`,
150
+ );
151
+ }
@@ -0,0 +1,99 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
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
+ import * as shared from "../shared/index.js";
11
+
12
+ export type UpdateHrisDeviceRequest = {
13
+ hrisDevice: shared.HrisDevice;
14
+ /**
15
+ * ID of the connection
16
+ */
17
+ connectionId: string;
18
+ /**
19
+ * Comma-delimited fields to return
20
+ */
21
+ fields?: Array<string> | undefined;
22
+ /**
23
+ * ID of the Device
24
+ */
25
+ id: string;
26
+ };
27
+
28
+ /** @internal */
29
+ export const UpdateHrisDeviceRequest$inboundSchema: z.ZodType<
30
+ UpdateHrisDeviceRequest,
31
+ z.ZodTypeDef,
32
+ unknown
33
+ > = z.object({
34
+ HrisDevice: shared.HrisDevice$inboundSchema,
35
+ connection_id: z.string(),
36
+ fields: z.array(z.string()).optional(),
37
+ id: z.string(),
38
+ }).transform((v) => {
39
+ return remap$(v, {
40
+ "HrisDevice": "hrisDevice",
41
+ "connection_id": "connectionId",
42
+ });
43
+ });
44
+
45
+ /** @internal */
46
+ export type UpdateHrisDeviceRequest$Outbound = {
47
+ HrisDevice: shared.HrisDevice$Outbound;
48
+ connection_id: string;
49
+ fields?: Array<string> | undefined;
50
+ id: string;
51
+ };
52
+
53
+ /** @internal */
54
+ export const UpdateHrisDeviceRequest$outboundSchema: z.ZodType<
55
+ UpdateHrisDeviceRequest$Outbound,
56
+ z.ZodTypeDef,
57
+ UpdateHrisDeviceRequest
58
+ > = z.object({
59
+ hrisDevice: shared.HrisDevice$outboundSchema,
60
+ connectionId: z.string(),
61
+ fields: z.array(z.string()).optional(),
62
+ id: z.string(),
63
+ }).transform((v) => {
64
+ return remap$(v, {
65
+ hrisDevice: "HrisDevice",
66
+ connectionId: "connection_id",
67
+ });
68
+ });
69
+
70
+ /**
71
+ * @internal
72
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
73
+ */
74
+ export namespace UpdateHrisDeviceRequest$ {
75
+ /** @deprecated use `UpdateHrisDeviceRequest$inboundSchema` instead. */
76
+ export const inboundSchema = UpdateHrisDeviceRequest$inboundSchema;
77
+ /** @deprecated use `UpdateHrisDeviceRequest$outboundSchema` instead. */
78
+ export const outboundSchema = UpdateHrisDeviceRequest$outboundSchema;
79
+ /** @deprecated use `UpdateHrisDeviceRequest$Outbound` instead. */
80
+ export type Outbound = UpdateHrisDeviceRequest$Outbound;
81
+ }
82
+
83
+ export function updateHrisDeviceRequestToJSON(
84
+ updateHrisDeviceRequest: UpdateHrisDeviceRequest,
85
+ ): string {
86
+ return JSON.stringify(
87
+ UpdateHrisDeviceRequest$outboundSchema.parse(updateHrisDeviceRequest),
88
+ );
89
+ }
90
+
91
+ export function updateHrisDeviceRequestFromJSON(
92
+ jsonString: string,
93
+ ): SafeParseResult<UpdateHrisDeviceRequest, SDKValidationError> {
94
+ return safeParse(
95
+ jsonString,
96
+ (x) => UpdateHrisDeviceRequest$inboundSchema.parse(JSON.parse(x)),
97
+ `Failed to parse 'UpdateHrisDeviceRequest' from JSON`,
98
+ );
99
+ }
@@ -0,0 +1,82 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ AccountingEmail,
11
+ AccountingEmail$inboundSchema,
12
+ AccountingEmail$Outbound,
13
+ AccountingEmail$outboundSchema,
14
+ } from "./accountingemail.js";
15
+
16
+ export type AccountingAssociatedContact = {
17
+ emails?: Array<AccountingEmail> | undefined;
18
+ id?: string | undefined;
19
+ name?: string | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const AccountingAssociatedContact$inboundSchema: z.ZodType<
24
+ AccountingAssociatedContact,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ emails: z.array(AccountingEmail$inboundSchema).optional(),
29
+ id: z.string().optional(),
30
+ name: z.string().optional(),
31
+ });
32
+
33
+ /** @internal */
34
+ export type AccountingAssociatedContact$Outbound = {
35
+ emails?: Array<AccountingEmail$Outbound> | undefined;
36
+ id?: string | undefined;
37
+ name?: string | undefined;
38
+ };
39
+
40
+ /** @internal */
41
+ export const AccountingAssociatedContact$outboundSchema: z.ZodType<
42
+ AccountingAssociatedContact$Outbound,
43
+ z.ZodTypeDef,
44
+ AccountingAssociatedContact
45
+ > = z.object({
46
+ emails: z.array(AccountingEmail$outboundSchema).optional(),
47
+ id: z.string().optional(),
48
+ name: z.string().optional(),
49
+ });
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 AccountingAssociatedContact$ {
56
+ /** @deprecated use `AccountingAssociatedContact$inboundSchema` instead. */
57
+ export const inboundSchema = AccountingAssociatedContact$inboundSchema;
58
+ /** @deprecated use `AccountingAssociatedContact$outboundSchema` instead. */
59
+ export const outboundSchema = AccountingAssociatedContact$outboundSchema;
60
+ /** @deprecated use `AccountingAssociatedContact$Outbound` instead. */
61
+ export type Outbound = AccountingAssociatedContact$Outbound;
62
+ }
63
+
64
+ export function accountingAssociatedContactToJSON(
65
+ accountingAssociatedContact: AccountingAssociatedContact,
66
+ ): string {
67
+ return JSON.stringify(
68
+ AccountingAssociatedContact$outboundSchema.parse(
69
+ accountingAssociatedContact,
70
+ ),
71
+ );
72
+ }
73
+
74
+ export function accountingAssociatedContactFromJSON(
75
+ jsonString: string,
76
+ ): SafeParseResult<AccountingAssociatedContact, SDKValidationError> {
77
+ return safeParse(
78
+ jsonString,
79
+ (x) => AccountingAssociatedContact$inboundSchema.parse(JSON.parse(x)),
80
+ `Failed to parse 'AccountingAssociatedContact' from JSON`,
81
+ );
82
+ }
@@ -0,0 +1,99 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
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
+ import {
11
+ PropertyAccountingBalanceSheetItemSubItems,
12
+ PropertyAccountingBalanceSheetItemSubItems$inboundSchema,
13
+ PropertyAccountingBalanceSheetItemSubItems$Outbound,
14
+ PropertyAccountingBalanceSheetItemSubItems$outboundSchema,
15
+ } from "./propertyaccountingbalancesheetitemsubitems.js";
16
+
17
+ export type AccountingBalanceSheetItem = {
18
+ accountId?: string | undefined;
19
+ amount?: number | undefined;
20
+ name?: string | undefined;
21
+ subItems?: Array<PropertyAccountingBalanceSheetItemSubItems> | undefined;
22
+ };
23
+
24
+ /** @internal */
25
+ export const AccountingBalanceSheetItem$inboundSchema: z.ZodType<
26
+ AccountingBalanceSheetItem,
27
+ z.ZodTypeDef,
28
+ unknown
29
+ > = z.object({
30
+ account_id: z.string().optional(),
31
+ amount: z.number().optional(),
32
+ name: z.string().optional(),
33
+ sub_items: z.array(PropertyAccountingBalanceSheetItemSubItems$inboundSchema)
34
+ .optional(),
35
+ }).transform((v) => {
36
+ return remap$(v, {
37
+ "account_id": "accountId",
38
+ "sub_items": "subItems",
39
+ });
40
+ });
41
+
42
+ /** @internal */
43
+ export type AccountingBalanceSheetItem$Outbound = {
44
+ account_id?: string | undefined;
45
+ amount?: number | undefined;
46
+ name?: string | undefined;
47
+ sub_items?:
48
+ | Array<PropertyAccountingBalanceSheetItemSubItems$Outbound>
49
+ | undefined;
50
+ };
51
+
52
+ /** @internal */
53
+ export const AccountingBalanceSheetItem$outboundSchema: z.ZodType<
54
+ AccountingBalanceSheetItem$Outbound,
55
+ z.ZodTypeDef,
56
+ AccountingBalanceSheetItem
57
+ > = z.object({
58
+ accountId: z.string().optional(),
59
+ amount: z.number().optional(),
60
+ name: z.string().optional(),
61
+ subItems: z.array(PropertyAccountingBalanceSheetItemSubItems$outboundSchema)
62
+ .optional(),
63
+ }).transform((v) => {
64
+ return remap$(v, {
65
+ accountId: "account_id",
66
+ subItems: "sub_items",
67
+ });
68
+ });
69
+
70
+ /**
71
+ * @internal
72
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
73
+ */
74
+ export namespace AccountingBalanceSheetItem$ {
75
+ /** @deprecated use `AccountingBalanceSheetItem$inboundSchema` instead. */
76
+ export const inboundSchema = AccountingBalanceSheetItem$inboundSchema;
77
+ /** @deprecated use `AccountingBalanceSheetItem$outboundSchema` instead. */
78
+ export const outboundSchema = AccountingBalanceSheetItem$outboundSchema;
79
+ /** @deprecated use `AccountingBalanceSheetItem$Outbound` instead. */
80
+ export type Outbound = AccountingBalanceSheetItem$Outbound;
81
+ }
82
+
83
+ export function accountingBalanceSheetItemToJSON(
84
+ accountingBalanceSheetItem: AccountingBalanceSheetItem,
85
+ ): string {
86
+ return JSON.stringify(
87
+ AccountingBalanceSheetItem$outboundSchema.parse(accountingBalanceSheetItem),
88
+ );
89
+ }
90
+
91
+ export function accountingBalanceSheetItemFromJSON(
92
+ jsonString: string,
93
+ ): SafeParseResult<AccountingBalanceSheetItem, SDKValidationError> {
94
+ return safeParse(
95
+ jsonString,
96
+ (x) => AccountingBalanceSheetItem$inboundSchema.parse(JSON.parse(x)),
97
+ `Failed to parse 'AccountingBalanceSheetItem' from JSON`,
98
+ );
99
+ }
@@ -8,6 +8,12 @@ import { safeParse } from "../../../lib/schemas.js";
8
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
+ import {
12
+ AccountingAssociatedContact,
13
+ AccountingAssociatedContact$inboundSchema,
14
+ AccountingAssociatedContact$Outbound,
15
+ AccountingAssociatedContact$outboundSchema,
16
+ } from "./accountingassociatedcontact.js";
11
17
  import {
12
18
  AccountingContactPaymentMethod,
13
19
  AccountingContactPaymentMethod$inboundSchema,
@@ -55,6 +61,7 @@ export const TaxExemption = {
55
61
  export type TaxExemption = ClosedEnum<typeof TaxExemption>;
56
62
 
57
63
  export type AccountingContact = {
64
+ associatedContacts?: Array<AccountingAssociatedContact> | undefined;
58
65
  billingAddress?: PropertyAccountingContactBillingAddress | undefined;
59
66
  companyName?: string | undefined;
60
67
  createdAt?: Date | undefined;
@@ -101,6 +108,8 @@ export const AccountingContact$inboundSchema: z.ZodType<
101
108
  z.ZodTypeDef,
102
109
  unknown
103
110
  > = z.object({
111
+ associated_contacts: z.array(AccountingAssociatedContact$inboundSchema)
112
+ .optional(),
104
113
  billing_address: PropertyAccountingContactBillingAddress$inboundSchema
105
114
  .optional(),
106
115
  company_name: z.string().optional(),
@@ -127,6 +136,7 @@ export const AccountingContact$inboundSchema: z.ZodType<
127
136
  .optional(),
128
137
  }).transform((v) => {
129
138
  return remap$(v, {
139
+ "associated_contacts": "associatedContacts",
130
140
  "billing_address": "billingAddress",
131
141
  "company_name": "companyName",
132
142
  "created_at": "createdAt",
@@ -144,6 +154,7 @@ export const AccountingContact$inboundSchema: z.ZodType<
144
154
 
145
155
  /** @internal */
146
156
  export type AccountingContact$Outbound = {
157
+ associated_contacts?: Array<AccountingAssociatedContact$Outbound> | undefined;
147
158
  billing_address?:
148
159
  | PropertyAccountingContactBillingAddress$Outbound
149
160
  | undefined;
@@ -175,6 +186,8 @@ export const AccountingContact$outboundSchema: z.ZodType<
175
186
  z.ZodTypeDef,
176
187
  AccountingContact
177
188
  > = z.object({
189
+ associatedContacts: z.array(AccountingAssociatedContact$outboundSchema)
190
+ .optional(),
178
191
  billingAddress: PropertyAccountingContactBillingAddress$outboundSchema
179
192
  .optional(),
180
193
  companyName: z.string().optional(),
@@ -199,6 +212,7 @@ export const AccountingContact$outboundSchema: z.ZodType<
199
212
  updatedAt: z.date().transform(v => v.toISOString()).optional(),
200
213
  }).transform((v) => {
201
214
  return remap$(v, {
215
+ associatedContacts: "associated_contacts",
202
216
  billingAddress: "billing_address",
203
217
  companyName: "company_name",
204
218
  createdAt: "created_at",
@@ -71,6 +71,7 @@ export type AccountingInvoice = {
71
71
  refundAmount?: number | undefined;
72
72
  refundReason?: string | undefined;
73
73
  refundedAt?: Date | undefined;
74
+ send?: boolean | undefined;
74
75
  status?: AccountingInvoiceStatus | undefined;
75
76
  taxAmount?: number | undefined;
76
77
  totalAmount?: number | undefined;
@@ -177,6 +178,7 @@ export const AccountingInvoice$inboundSchema: z.ZodType<
177
178
  refund_reason: z.string().optional(),
178
179
  refunded_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
179
180
  .optional(),
181
+ send: z.boolean().optional(),
180
182
  status: AccountingInvoiceStatus$inboundSchema.optional(),
181
183
  tax_amount: z.number().optional(),
182
184
  total_amount: z.number().optional(),
@@ -230,6 +232,7 @@ export type AccountingInvoice$Outbound = {
230
232
  refund_amount?: number | undefined;
231
233
  refund_reason?: string | undefined;
232
234
  refunded_at?: string | undefined;
235
+ send?: boolean | undefined;
233
236
  status?: string | undefined;
234
237
  tax_amount?: number | undefined;
235
238
  total_amount?: number | undefined;
@@ -265,6 +268,7 @@ export const AccountingInvoice$outboundSchema: z.ZodType<
265
268
  refundAmount: z.number().optional(),
266
269
  refundReason: z.string().optional(),
267
270
  refundedAt: z.date().transform(v => v.toISOString()).optional(),
271
+ send: z.boolean().optional(),
268
272
  status: AccountingInvoiceStatus$outboundSchema.optional(),
269
273
  taxAmount: z.number().optional(),
270
274
  totalAmount: z.number().optional(),
@@ -0,0 +1,93 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
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
+ import {
11
+ AccountingProfitAndLossSubcategory,
12
+ AccountingProfitAndLossSubcategory$inboundSchema,
13
+ AccountingProfitAndLossSubcategory$Outbound,
14
+ AccountingProfitAndLossSubcategory$outboundSchema,
15
+ } from "./accountingprofitandlosssubcategory.js";
16
+
17
+ export type AccountingProfitAndLossCategory = {
18
+ amount?: number | undefined;
19
+ name?: string | undefined;
20
+ subItems?: Array<AccountingProfitAndLossSubcategory> | undefined;
21
+ };
22
+
23
+ /** @internal */
24
+ export const AccountingProfitAndLossCategory$inboundSchema: z.ZodType<
25
+ AccountingProfitAndLossCategory,
26
+ z.ZodTypeDef,
27
+ unknown
28
+ > = z.object({
29
+ amount: z.number().optional(),
30
+ name: z.string().optional(),
31
+ sub_items: z.array(AccountingProfitAndLossSubcategory$inboundSchema)
32
+ .optional(),
33
+ }).transform((v) => {
34
+ return remap$(v, {
35
+ "sub_items": "subItems",
36
+ });
37
+ });
38
+
39
+ /** @internal */
40
+ export type AccountingProfitAndLossCategory$Outbound = {
41
+ amount?: number | undefined;
42
+ name?: string | undefined;
43
+ sub_items?: Array<AccountingProfitAndLossSubcategory$Outbound> | undefined;
44
+ };
45
+
46
+ /** @internal */
47
+ export const AccountingProfitAndLossCategory$outboundSchema: z.ZodType<
48
+ AccountingProfitAndLossCategory$Outbound,
49
+ z.ZodTypeDef,
50
+ AccountingProfitAndLossCategory
51
+ > = z.object({
52
+ amount: z.number().optional(),
53
+ name: z.string().optional(),
54
+ subItems: z.array(AccountingProfitAndLossSubcategory$outboundSchema)
55
+ .optional(),
56
+ }).transform((v) => {
57
+ return remap$(v, {
58
+ subItems: "sub_items",
59
+ });
60
+ });
61
+
62
+ /**
63
+ * @internal
64
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
65
+ */
66
+ export namespace AccountingProfitAndLossCategory$ {
67
+ /** @deprecated use `AccountingProfitAndLossCategory$inboundSchema` instead. */
68
+ export const inboundSchema = AccountingProfitAndLossCategory$inboundSchema;
69
+ /** @deprecated use `AccountingProfitAndLossCategory$outboundSchema` instead. */
70
+ export const outboundSchema = AccountingProfitAndLossCategory$outboundSchema;
71
+ /** @deprecated use `AccountingProfitAndLossCategory$Outbound` instead. */
72
+ export type Outbound = AccountingProfitAndLossCategory$Outbound;
73
+ }
74
+
75
+ export function accountingProfitAndLossCategoryToJSON(
76
+ accountingProfitAndLossCategory: AccountingProfitAndLossCategory,
77
+ ): string {
78
+ return JSON.stringify(
79
+ AccountingProfitAndLossCategory$outboundSchema.parse(
80
+ accountingProfitAndLossCategory,
81
+ ),
82
+ );
83
+ }
84
+
85
+ export function accountingProfitAndLossCategoryFromJSON(
86
+ jsonString: string,
87
+ ): SafeParseResult<AccountingProfitAndLossCategory, SDKValidationError> {
88
+ return safeParse(
89
+ jsonString,
90
+ (x) => AccountingProfitAndLossCategory$inboundSchema.parse(JSON.parse(x)),
91
+ `Failed to parse 'AccountingProfitAndLossCategory' from JSON`,
92
+ );
93
+ }