@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
@@ -3,7 +3,9 @@
3
3
  */
4
4
 
5
5
  export * from "./accountingaccount.js";
6
+ export * from "./accountingassociatedcontact.js";
6
7
  export * from "./accountingattachment.js";
8
+ export * from "./accountingbalancesheetitem.js";
7
9
  export * from "./accountingcontact.js";
8
10
  export * from "./accountingcontactpaymentmethod.js";
9
11
  export * from "./accountingemail.js";
@@ -13,12 +15,15 @@ export * from "./accountingjournallineitem.js";
13
15
  export * from "./accountinglineitem.js";
14
16
  export * from "./accountingorder.js";
15
17
  export * from "./accountingorganization.js";
18
+ export * from "./accountingprofitandlosscategory.js";
19
+ export * from "./accountingprofitandlosssubcategory.js";
16
20
  export * from "./accountingreport.js";
17
21
  export * from "./accountingtaxrate.js";
18
22
  export * from "./accountingtelephone.js";
19
23
  export * from "./accountingtransaction.js";
20
24
  export * from "./accountingtransactioncontact.js";
21
25
  export * from "./accountingtransactionlineitem.js";
26
+ export * from "./accountingtrialbalancesubitem.js";
22
27
  export * from "./apicall.js";
23
28
  export * from "./atsactivity.js";
24
29
  export * from "./atsaddress.js";
@@ -34,6 +39,7 @@ export * from "./atsemail.js";
34
39
  export * from "./atsgroup.js";
35
40
  export * from "./atsinterview.js";
36
41
  export * from "./atsjob.js";
42
+ export * from "./atsjobopening.js";
37
43
  export * from "./atsjobposting.js";
38
44
  export * from "./atsjobquestion.js";
39
45
  export * from "./atsmetadata.js";
@@ -82,6 +88,7 @@ export * from "./genaimodel.js";
82
88
  export * from "./genaiprompt.js";
83
89
  export * from "./hriscompany.js";
84
90
  export * from "./hriscompensation.js";
91
+ export * from "./hrisdevice.js";
85
92
  export * from "./hrisemail.js";
86
93
  export * from "./hrisemployee.js";
87
94
  export * from "./hrisgroup.js";
@@ -119,11 +126,15 @@ export * from "./paymentpayment.js";
119
126
  export * from "./paymentpayout.js";
120
127
  export * from "./paymentrefund.js";
121
128
  export * from "./paymentsubscription.js";
129
+ export * from "./propertyaccountingbalancesheetitemsubitems.js";
122
130
  export * from "./propertyaccountingcontactbillingaddress.js";
123
131
  export * from "./propertyaccountingcontactshippingaddress.js";
124
132
  export * from "./propertyaccountingorderbillingaddress.js";
125
133
  export * from "./propertyaccountingordershippingaddress.js";
126
134
  export * from "./propertyaccountingorganizationaddress.js";
135
+ export * from "./propertyaccountingreportbalancesheet.js";
136
+ export * from "./propertyaccountingreportprofitandloss.js";
137
+ export * from "./propertyaccountingreporttrialbalance.js";
127
138
  export * from "./propertyatsactivityfrom.js";
128
139
  export * from "./propertyatscandidateaddress.js";
129
140
  export * from "./propertyatscompanyaddress.js";
@@ -0,0 +1,68 @@
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
+
10
+ export type PropertyAccountingBalanceSheetItemSubItems = {};
11
+
12
+ /** @internal */
13
+ export const PropertyAccountingBalanceSheetItemSubItems$inboundSchema:
14
+ z.ZodType<PropertyAccountingBalanceSheetItemSubItems, z.ZodTypeDef, unknown> =
15
+ z.object({});
16
+
17
+ /** @internal */
18
+ export type PropertyAccountingBalanceSheetItemSubItems$Outbound = {};
19
+
20
+ /** @internal */
21
+ export const PropertyAccountingBalanceSheetItemSubItems$outboundSchema:
22
+ z.ZodType<
23
+ PropertyAccountingBalanceSheetItemSubItems$Outbound,
24
+ z.ZodTypeDef,
25
+ PropertyAccountingBalanceSheetItemSubItems
26
+ > = z.object({});
27
+
28
+ /**
29
+ * @internal
30
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
31
+ */
32
+ export namespace PropertyAccountingBalanceSheetItemSubItems$ {
33
+ /** @deprecated use `PropertyAccountingBalanceSheetItemSubItems$inboundSchema` instead. */
34
+ export const inboundSchema =
35
+ PropertyAccountingBalanceSheetItemSubItems$inboundSchema;
36
+ /** @deprecated use `PropertyAccountingBalanceSheetItemSubItems$outboundSchema` instead. */
37
+ export const outboundSchema =
38
+ PropertyAccountingBalanceSheetItemSubItems$outboundSchema;
39
+ /** @deprecated use `PropertyAccountingBalanceSheetItemSubItems$Outbound` instead. */
40
+ export type Outbound = PropertyAccountingBalanceSheetItemSubItems$Outbound;
41
+ }
42
+
43
+ export function propertyAccountingBalanceSheetItemSubItemsToJSON(
44
+ propertyAccountingBalanceSheetItemSubItems:
45
+ PropertyAccountingBalanceSheetItemSubItems,
46
+ ): string {
47
+ return JSON.stringify(
48
+ PropertyAccountingBalanceSheetItemSubItems$outboundSchema.parse(
49
+ propertyAccountingBalanceSheetItemSubItems,
50
+ ),
51
+ );
52
+ }
53
+
54
+ export function propertyAccountingBalanceSheetItemSubItemsFromJSON(
55
+ jsonString: string,
56
+ ): SafeParseResult<
57
+ PropertyAccountingBalanceSheetItemSubItems,
58
+ SDKValidationError
59
+ > {
60
+ return safeParse(
61
+ jsonString,
62
+ (x) =>
63
+ PropertyAccountingBalanceSheetItemSubItems$inboundSchema.parse(
64
+ JSON.parse(x),
65
+ ),
66
+ `Failed to parse 'PropertyAccountingBalanceSheetItemSubItems' from JSON`,
67
+ );
68
+ }
@@ -0,0 +1,98 @@
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
+ AccountingBalanceSheetItem,
12
+ AccountingBalanceSheetItem$inboundSchema,
13
+ AccountingBalanceSheetItem$Outbound,
14
+ AccountingBalanceSheetItem$outboundSchema,
15
+ } from "./accountingbalancesheetitem.js";
16
+
17
+ export type PropertyAccountingReportBalanceSheet = {
18
+ assets?: Array<AccountingBalanceSheetItem> | undefined;
19
+ equity?: Array<AccountingBalanceSheetItem> | undefined;
20
+ liabilities?: Array<AccountingBalanceSheetItem> | undefined;
21
+ netAssetsAmount?: number | undefined;
22
+ };
23
+
24
+ /** @internal */
25
+ export const PropertyAccountingReportBalanceSheet$inboundSchema: z.ZodType<
26
+ PropertyAccountingReportBalanceSheet,
27
+ z.ZodTypeDef,
28
+ unknown
29
+ > = z.object({
30
+ assets: z.array(AccountingBalanceSheetItem$inboundSchema).optional(),
31
+ equity: z.array(AccountingBalanceSheetItem$inboundSchema).optional(),
32
+ liabilities: z.array(AccountingBalanceSheetItem$inboundSchema).optional(),
33
+ net_assets_amount: z.number().optional(),
34
+ }).transform((v) => {
35
+ return remap$(v, {
36
+ "net_assets_amount": "netAssetsAmount",
37
+ });
38
+ });
39
+
40
+ /** @internal */
41
+ export type PropertyAccountingReportBalanceSheet$Outbound = {
42
+ assets?: Array<AccountingBalanceSheetItem$Outbound> | undefined;
43
+ equity?: Array<AccountingBalanceSheetItem$Outbound> | undefined;
44
+ liabilities?: Array<AccountingBalanceSheetItem$Outbound> | undefined;
45
+ net_assets_amount?: number | undefined;
46
+ };
47
+
48
+ /** @internal */
49
+ export const PropertyAccountingReportBalanceSheet$outboundSchema: z.ZodType<
50
+ PropertyAccountingReportBalanceSheet$Outbound,
51
+ z.ZodTypeDef,
52
+ PropertyAccountingReportBalanceSheet
53
+ > = z.object({
54
+ assets: z.array(AccountingBalanceSheetItem$outboundSchema).optional(),
55
+ equity: z.array(AccountingBalanceSheetItem$outboundSchema).optional(),
56
+ liabilities: z.array(AccountingBalanceSheetItem$outboundSchema).optional(),
57
+ netAssetsAmount: z.number().optional(),
58
+ }).transform((v) => {
59
+ return remap$(v, {
60
+ netAssetsAmount: "net_assets_amount",
61
+ });
62
+ });
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 PropertyAccountingReportBalanceSheet$ {
69
+ /** @deprecated use `PropertyAccountingReportBalanceSheet$inboundSchema` instead. */
70
+ export const inboundSchema =
71
+ PropertyAccountingReportBalanceSheet$inboundSchema;
72
+ /** @deprecated use `PropertyAccountingReportBalanceSheet$outboundSchema` instead. */
73
+ export const outboundSchema =
74
+ PropertyAccountingReportBalanceSheet$outboundSchema;
75
+ /** @deprecated use `PropertyAccountingReportBalanceSheet$Outbound` instead. */
76
+ export type Outbound = PropertyAccountingReportBalanceSheet$Outbound;
77
+ }
78
+
79
+ export function propertyAccountingReportBalanceSheetToJSON(
80
+ propertyAccountingReportBalanceSheet: PropertyAccountingReportBalanceSheet,
81
+ ): string {
82
+ return JSON.stringify(
83
+ PropertyAccountingReportBalanceSheet$outboundSchema.parse(
84
+ propertyAccountingReportBalanceSheet,
85
+ ),
86
+ );
87
+ }
88
+
89
+ export function propertyAccountingReportBalanceSheetFromJSON(
90
+ jsonString: string,
91
+ ): SafeParseResult<PropertyAccountingReportBalanceSheet, SDKValidationError> {
92
+ return safeParse(
93
+ jsonString,
94
+ (x) =>
95
+ PropertyAccountingReportBalanceSheet$inboundSchema.parse(JSON.parse(x)),
96
+ `Failed to parse 'PropertyAccountingReportBalanceSheet' from JSON`,
97
+ );
98
+ }
@@ -0,0 +1,110 @@
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
+ AccountingProfitAndLossCategory,
12
+ AccountingProfitAndLossCategory$inboundSchema,
13
+ AccountingProfitAndLossCategory$Outbound,
14
+ AccountingProfitAndLossCategory$outboundSchema,
15
+ } from "./accountingprofitandlosscategory.js";
16
+
17
+ export type PropertyAccountingReportProfitAndLoss = {
18
+ costOfGoodsSold?: Array<AccountingProfitAndLossCategory> | undefined;
19
+ expenses?: Array<AccountingProfitAndLossCategory> | undefined;
20
+ grossProfitAmount?: number | undefined;
21
+ income?: Array<AccountingProfitAndLossCategory> | undefined;
22
+ netProfitAmount?: number | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const PropertyAccountingReportProfitAndLoss$inboundSchema: z.ZodType<
27
+ PropertyAccountingReportProfitAndLoss,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ cost_of_goods_sold: z.array(AccountingProfitAndLossCategory$inboundSchema)
32
+ .optional(),
33
+ expenses: z.array(AccountingProfitAndLossCategory$inboundSchema).optional(),
34
+ gross_profit_amount: z.number().optional(),
35
+ income: z.array(AccountingProfitAndLossCategory$inboundSchema).optional(),
36
+ net_profit_amount: z.number().optional(),
37
+ }).transform((v) => {
38
+ return remap$(v, {
39
+ "cost_of_goods_sold": "costOfGoodsSold",
40
+ "gross_profit_amount": "grossProfitAmount",
41
+ "net_profit_amount": "netProfitAmount",
42
+ });
43
+ });
44
+
45
+ /** @internal */
46
+ export type PropertyAccountingReportProfitAndLoss$Outbound = {
47
+ cost_of_goods_sold?:
48
+ | Array<AccountingProfitAndLossCategory$Outbound>
49
+ | undefined;
50
+ expenses?: Array<AccountingProfitAndLossCategory$Outbound> | undefined;
51
+ gross_profit_amount?: number | undefined;
52
+ income?: Array<AccountingProfitAndLossCategory$Outbound> | undefined;
53
+ net_profit_amount?: number | undefined;
54
+ };
55
+
56
+ /** @internal */
57
+ export const PropertyAccountingReportProfitAndLoss$outboundSchema: z.ZodType<
58
+ PropertyAccountingReportProfitAndLoss$Outbound,
59
+ z.ZodTypeDef,
60
+ PropertyAccountingReportProfitAndLoss
61
+ > = z.object({
62
+ costOfGoodsSold: z.array(AccountingProfitAndLossCategory$outboundSchema)
63
+ .optional(),
64
+ expenses: z.array(AccountingProfitAndLossCategory$outboundSchema).optional(),
65
+ grossProfitAmount: z.number().optional(),
66
+ income: z.array(AccountingProfitAndLossCategory$outboundSchema).optional(),
67
+ netProfitAmount: z.number().optional(),
68
+ }).transform((v) => {
69
+ return remap$(v, {
70
+ costOfGoodsSold: "cost_of_goods_sold",
71
+ grossProfitAmount: "gross_profit_amount",
72
+ netProfitAmount: "net_profit_amount",
73
+ });
74
+ });
75
+
76
+ /**
77
+ * @internal
78
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
79
+ */
80
+ export namespace PropertyAccountingReportProfitAndLoss$ {
81
+ /** @deprecated use `PropertyAccountingReportProfitAndLoss$inboundSchema` instead. */
82
+ export const inboundSchema =
83
+ PropertyAccountingReportProfitAndLoss$inboundSchema;
84
+ /** @deprecated use `PropertyAccountingReportProfitAndLoss$outboundSchema` instead. */
85
+ export const outboundSchema =
86
+ PropertyAccountingReportProfitAndLoss$outboundSchema;
87
+ /** @deprecated use `PropertyAccountingReportProfitAndLoss$Outbound` instead. */
88
+ export type Outbound = PropertyAccountingReportProfitAndLoss$Outbound;
89
+ }
90
+
91
+ export function propertyAccountingReportProfitAndLossToJSON(
92
+ propertyAccountingReportProfitAndLoss: PropertyAccountingReportProfitAndLoss,
93
+ ): string {
94
+ return JSON.stringify(
95
+ PropertyAccountingReportProfitAndLoss$outboundSchema.parse(
96
+ propertyAccountingReportProfitAndLoss,
97
+ ),
98
+ );
99
+ }
100
+
101
+ export function propertyAccountingReportProfitAndLossFromJSON(
102
+ jsonString: string,
103
+ ): SafeParseResult<PropertyAccountingReportProfitAndLoss, SDKValidationError> {
104
+ return safeParse(
105
+ jsonString,
106
+ (x) =>
107
+ PropertyAccountingReportProfitAndLoss$inboundSchema.parse(JSON.parse(x)),
108
+ `Failed to parse 'PropertyAccountingReportProfitAndLoss' from JSON`,
109
+ );
110
+ }
@@ -0,0 +1,98 @@
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
+ AccountingTrialBalanceSubItem,
12
+ AccountingTrialBalanceSubItem$inboundSchema,
13
+ AccountingTrialBalanceSubItem$Outbound,
14
+ AccountingTrialBalanceSubItem$outboundSchema,
15
+ } from "./accountingtrialbalancesubitem.js";
16
+
17
+ export type PropertyAccountingReportTrialBalance = {
18
+ subItems?: Array<AccountingTrialBalanceSubItem> | undefined;
19
+ totalCreditAmount?: number | undefined;
20
+ totalDebitAmount?: number | undefined;
21
+ };
22
+
23
+ /** @internal */
24
+ export const PropertyAccountingReportTrialBalance$inboundSchema: z.ZodType<
25
+ PropertyAccountingReportTrialBalance,
26
+ z.ZodTypeDef,
27
+ unknown
28
+ > = z.object({
29
+ sub_items: z.array(AccountingTrialBalanceSubItem$inboundSchema).optional(),
30
+ total_credit_amount: z.number().optional(),
31
+ total_debit_amount: z.number().optional(),
32
+ }).transform((v) => {
33
+ return remap$(v, {
34
+ "sub_items": "subItems",
35
+ "total_credit_amount": "totalCreditAmount",
36
+ "total_debit_amount": "totalDebitAmount",
37
+ });
38
+ });
39
+
40
+ /** @internal */
41
+ export type PropertyAccountingReportTrialBalance$Outbound = {
42
+ sub_items?: Array<AccountingTrialBalanceSubItem$Outbound> | undefined;
43
+ total_credit_amount?: number | undefined;
44
+ total_debit_amount?: number | undefined;
45
+ };
46
+
47
+ /** @internal */
48
+ export const PropertyAccountingReportTrialBalance$outboundSchema: z.ZodType<
49
+ PropertyAccountingReportTrialBalance$Outbound,
50
+ z.ZodTypeDef,
51
+ PropertyAccountingReportTrialBalance
52
+ > = z.object({
53
+ subItems: z.array(AccountingTrialBalanceSubItem$outboundSchema).optional(),
54
+ totalCreditAmount: z.number().optional(),
55
+ totalDebitAmount: z.number().optional(),
56
+ }).transform((v) => {
57
+ return remap$(v, {
58
+ subItems: "sub_items",
59
+ totalCreditAmount: "total_credit_amount",
60
+ totalDebitAmount: "total_debit_amount",
61
+ });
62
+ });
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 PropertyAccountingReportTrialBalance$ {
69
+ /** @deprecated use `PropertyAccountingReportTrialBalance$inboundSchema` instead. */
70
+ export const inboundSchema =
71
+ PropertyAccountingReportTrialBalance$inboundSchema;
72
+ /** @deprecated use `PropertyAccountingReportTrialBalance$outboundSchema` instead. */
73
+ export const outboundSchema =
74
+ PropertyAccountingReportTrialBalance$outboundSchema;
75
+ /** @deprecated use `PropertyAccountingReportTrialBalance$Outbound` instead. */
76
+ export type Outbound = PropertyAccountingReportTrialBalance$Outbound;
77
+ }
78
+
79
+ export function propertyAccountingReportTrialBalanceToJSON(
80
+ propertyAccountingReportTrialBalance: PropertyAccountingReportTrialBalance,
81
+ ): string {
82
+ return JSON.stringify(
83
+ PropertyAccountingReportTrialBalance$outboundSchema.parse(
84
+ propertyAccountingReportTrialBalance,
85
+ ),
86
+ );
87
+ }
88
+
89
+ export function propertyAccountingReportTrialBalanceFromJSON(
90
+ jsonString: string,
91
+ ): SafeParseResult<PropertyAccountingReportTrialBalance, SDKValidationError> {
92
+ return safeParse(
93
+ jsonString,
94
+ (x) =>
95
+ PropertyAccountingReportTrialBalance$inboundSchema.parse(JSON.parse(x)),
96
+ `Failed to parse 'PropertyAccountingReportTrialBalance' from JSON`,
97
+ );
98
+ }
@@ -90,6 +90,8 @@ export const PropertyConnectionPermissions = {
90
90
  HrisCompanyWrite: "hris_company_write",
91
91
  HrisLocationRead: "hris_location_read",
92
92
  HrisLocationWrite: "hris_location_write",
93
+ HrisDeviceRead: "hris_device_read",
94
+ HrisDeviceWrite: "hris_device_write",
93
95
  UcCallRead: "uc_call_read",
94
96
  UcContactRead: "uc_contact_read",
95
97
  UcContactWrite: "uc_contact_write",
@@ -65,6 +65,7 @@ export const ObjectType = {
65
65
  HrisTimeoff: "hris_timeoff",
66
66
  HrisCompany: "hris_company",
67
67
  HrisLocation: "hris_location",
68
+ HrisDevice: "hris_device",
68
69
  MartechList: "martech_list",
69
70
  MartechMember: "martech_member",
70
71
  Passthrough: "passthrough",
package/src/sdk/sdk.ts CHANGED
@@ -29,6 +29,7 @@ import { Course } from "./course.js";
29
29
  import { Crm } from "./crm.js";
30
30
  import { Customer } from "./customer.js";
31
31
  import { Deal } from "./deal.js";
32
+ import { Device } from "./device.js";
32
33
  import { Document } from "./document.js";
33
34
  import { Employee } from "./employee.js";
34
35
  import { Enrich } from "./enrich.js";
@@ -295,6 +296,11 @@ export class UnifiedTo extends ClientSDK {
295
296
  return (this._hris ??= new Hris(this._options));
296
297
  }
297
298
 
299
+ private _device?: Device;
300
+ get device(): Device {
301
+ return (this._device ??= new Device(this._options));
302
+ }
303
+
298
304
  private _employee?: Employee;
299
305
  get employee(): Employee {
300
306
  return (this._employee ??= new Employee(this._options));