@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,92 @@
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 CreateHrisDeviceRequest = {
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
+
24
+ /** @internal */
25
+ export const CreateHrisDeviceRequest$inboundSchema: z.ZodType<
26
+ CreateHrisDeviceRequest,
27
+ z.ZodTypeDef,
28
+ unknown
29
+ > = z.object({
30
+ HrisDevice: shared.HrisDevice$inboundSchema,
31
+ connection_id: z.string(),
32
+ fields: z.array(z.string()).optional(),
33
+ }).transform((v) => {
34
+ return remap$(v, {
35
+ "HrisDevice": "hrisDevice",
36
+ "connection_id": "connectionId",
37
+ });
38
+ });
39
+
40
+ /** @internal */
41
+ export type CreateHrisDeviceRequest$Outbound = {
42
+ HrisDevice: shared.HrisDevice$Outbound;
43
+ connection_id: string;
44
+ fields?: Array<string> | undefined;
45
+ };
46
+
47
+ /** @internal */
48
+ export const CreateHrisDeviceRequest$outboundSchema: z.ZodType<
49
+ CreateHrisDeviceRequest$Outbound,
50
+ z.ZodTypeDef,
51
+ CreateHrisDeviceRequest
52
+ > = z.object({
53
+ hrisDevice: shared.HrisDevice$outboundSchema,
54
+ connectionId: z.string(),
55
+ fields: z.array(z.string()).optional(),
56
+ }).transform((v) => {
57
+ return remap$(v, {
58
+ hrisDevice: "HrisDevice",
59
+ connectionId: "connection_id",
60
+ });
61
+ });
62
+
63
+ /**
64
+ * @internal
65
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
+ */
67
+ export namespace CreateHrisDeviceRequest$ {
68
+ /** @deprecated use `CreateHrisDeviceRequest$inboundSchema` instead. */
69
+ export const inboundSchema = CreateHrisDeviceRequest$inboundSchema;
70
+ /** @deprecated use `CreateHrisDeviceRequest$outboundSchema` instead. */
71
+ export const outboundSchema = CreateHrisDeviceRequest$outboundSchema;
72
+ /** @deprecated use `CreateHrisDeviceRequest$Outbound` instead. */
73
+ export type Outbound = CreateHrisDeviceRequest$Outbound;
74
+ }
75
+
76
+ export function createHrisDeviceRequestToJSON(
77
+ createHrisDeviceRequest: CreateHrisDeviceRequest,
78
+ ): string {
79
+ return JSON.stringify(
80
+ CreateHrisDeviceRequest$outboundSchema.parse(createHrisDeviceRequest),
81
+ );
82
+ }
83
+
84
+ export function createHrisDeviceRequestFromJSON(
85
+ jsonString: string,
86
+ ): SafeParseResult<CreateHrisDeviceRequest, SDKValidationError> {
87
+ return safeParse(
88
+ jsonString,
89
+ (x) => CreateHrisDeviceRequest$inboundSchema.parse(JSON.parse(x)),
90
+ `Failed to parse 'CreateHrisDeviceRequest' from JSON`,
91
+ );
92
+ }
@@ -0,0 +1,92 @@
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 GetHrisDeviceRequest = {
12
+ /**
13
+ * ID of the connection
14
+ */
15
+ connectionId: string;
16
+ /**
17
+ * Comma-delimited fields to return
18
+ */
19
+ fields?: Array<string> | undefined;
20
+ /**
21
+ * ID of the Device
22
+ */
23
+ id: string;
24
+ };
25
+
26
+ /** @internal */
27
+ export const GetHrisDeviceRequest$inboundSchema: z.ZodType<
28
+ GetHrisDeviceRequest,
29
+ z.ZodTypeDef,
30
+ unknown
31
+ > = z.object({
32
+ connection_id: z.string(),
33
+ fields: z.array(z.string()).optional(),
34
+ id: z.string(),
35
+ }).transform((v) => {
36
+ return remap$(v, {
37
+ "connection_id": "connectionId",
38
+ });
39
+ });
40
+
41
+ /** @internal */
42
+ export type GetHrisDeviceRequest$Outbound = {
43
+ connection_id: string;
44
+ fields?: Array<string> | undefined;
45
+ id: string;
46
+ };
47
+
48
+ /** @internal */
49
+ export const GetHrisDeviceRequest$outboundSchema: z.ZodType<
50
+ GetHrisDeviceRequest$Outbound,
51
+ z.ZodTypeDef,
52
+ GetHrisDeviceRequest
53
+ > = z.object({
54
+ connectionId: z.string(),
55
+ fields: z.array(z.string()).optional(),
56
+ id: z.string(),
57
+ }).transform((v) => {
58
+ return remap$(v, {
59
+ connectionId: "connection_id",
60
+ });
61
+ });
62
+
63
+ /**
64
+ * @internal
65
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
+ */
67
+ export namespace GetHrisDeviceRequest$ {
68
+ /** @deprecated use `GetHrisDeviceRequest$inboundSchema` instead. */
69
+ export const inboundSchema = GetHrisDeviceRequest$inboundSchema;
70
+ /** @deprecated use `GetHrisDeviceRequest$outboundSchema` instead. */
71
+ export const outboundSchema = GetHrisDeviceRequest$outboundSchema;
72
+ /** @deprecated use `GetHrisDeviceRequest$Outbound` instead. */
73
+ export type Outbound = GetHrisDeviceRequest$Outbound;
74
+ }
75
+
76
+ export function getHrisDeviceRequestToJSON(
77
+ getHrisDeviceRequest: GetHrisDeviceRequest,
78
+ ): string {
79
+ return JSON.stringify(
80
+ GetHrisDeviceRequest$outboundSchema.parse(getHrisDeviceRequest),
81
+ );
82
+ }
83
+
84
+ export function getHrisDeviceRequestFromJSON(
85
+ jsonString: string,
86
+ ): SafeParseResult<GetHrisDeviceRequest, SDKValidationError> {
87
+ return safeParse(
88
+ jsonString,
89
+ (x) => GetHrisDeviceRequest$inboundSchema.parse(JSON.parse(x)),
90
+ `Failed to parse 'GetHrisDeviceRequest' from JSON`,
91
+ );
92
+ }
@@ -31,6 +31,7 @@ export * from "./createcrmlead.js";
31
31
  export * from "./createcrmpipeline.js";
32
32
  export * from "./creategenaiprompt.js";
33
33
  export * from "./createhriscompany.js";
34
+ export * from "./createhrisdevice.js";
34
35
  export * from "./createhrisemployee.js";
35
36
  export * from "./createhrisgroup.js";
36
37
  export * from "./createhrislocation.js";
@@ -98,6 +99,7 @@ export * from "./getcrmevent.js";
98
99
  export * from "./getcrmlead.js";
99
100
  export * from "./getcrmpipeline.js";
100
101
  export * from "./gethriscompany.js";
102
+ export * from "./gethrisdevice.js";
101
103
  export * from "./gethrisemployee.js";
102
104
  export * from "./gethrisgroup.js";
103
105
  export * from "./gethrislocation.js";
@@ -177,6 +179,7 @@ export * from "./listenrichcompanies.js";
177
179
  export * from "./listenrichpeople.js";
178
180
  export * from "./listgenaimodels.js";
179
181
  export * from "./listhriscompanies.js";
182
+ export * from "./listhrisdevices.js";
180
183
  export * from "./listhrisemployees.js";
181
184
  export * from "./listhrisgroups.js";
182
185
  export * from "./listhrislocations.js";
@@ -250,6 +253,7 @@ export * from "./patchcrmevent.js";
250
253
  export * from "./patchcrmlead.js";
251
254
  export * from "./patchcrmpipeline.js";
252
255
  export * from "./patchhriscompany.js";
256
+ export * from "./patchhrisdevice.js";
253
257
  export * from "./patchhrisemployee.js";
254
258
  export * from "./patchhrisgroup.js";
255
259
  export * from "./patchhrislocation.js";
@@ -315,6 +319,7 @@ export * from "./removecrmevent.js";
315
319
  export * from "./removecrmlead.js";
316
320
  export * from "./removecrmpipeline.js";
317
321
  export * from "./removehriscompany.js";
322
+ export * from "./removehrisdevice.js";
318
323
  export * from "./removehrisemployee.js";
319
324
  export * from "./removehrisgroup.js";
320
325
  export * from "./removehrislocation.js";
@@ -378,6 +383,7 @@ export * from "./updatecrmevent.js";
378
383
  export * from "./updatecrmlead.js";
379
384
  export * from "./updatecrmpipeline.js";
380
385
  export * from "./updatehriscompany.js";
386
+ export * from "./updatehrisdevice.js";
381
387
  export * from "./updatehrisemployee.js";
382
388
  export * from "./updatehrisgroup.js";
383
389
  export * from "./updatehrislocation.js";
@@ -13,6 +13,7 @@ export type ListAccountingReportsRequest = {
13
13
  * ID of the connection
14
14
  */
15
15
  connectionId: string;
16
+ endLe?: string | undefined;
16
17
  /**
17
18
  * Comma-delimited fields to return
18
19
  */
@@ -25,6 +26,7 @@ export type ListAccountingReportsRequest = {
25
26
  */
26
27
  query?: string | undefined;
27
28
  sort?: string | undefined;
29
+ startGte?: string | undefined;
28
30
  type?: string | undefined;
29
31
  /**
30
32
  * Return only results whose updated date is equal or greater to this value
@@ -39,18 +41,22 @@ export const ListAccountingReportsRequest$inboundSchema: z.ZodType<
39
41
  unknown
40
42
  > = z.object({
41
43
  connection_id: z.string(),
44
+ end_le: z.string().optional(),
42
45
  fields: z.array(z.string()).optional(),
43
46
  limit: z.number().optional(),
44
47
  offset: z.number().optional(),
45
48
  order: z.string().optional(),
46
49
  query: z.string().optional(),
47
50
  sort: z.string().optional(),
51
+ start_gte: z.string().optional(),
48
52
  type: z.string().optional(),
49
53
  updated_gte: z.string().datetime({ offset: true }).transform(v => new Date(v))
50
54
  .optional(),
51
55
  }).transform((v) => {
52
56
  return remap$(v, {
53
57
  "connection_id": "connectionId",
58
+ "end_le": "endLe",
59
+ "start_gte": "startGte",
54
60
  "updated_gte": "updatedGte",
55
61
  });
56
62
  });
@@ -58,12 +64,14 @@ export const ListAccountingReportsRequest$inboundSchema: z.ZodType<
58
64
  /** @internal */
59
65
  export type ListAccountingReportsRequest$Outbound = {
60
66
  connection_id: string;
67
+ end_le?: string | undefined;
61
68
  fields?: Array<string> | undefined;
62
69
  limit?: number | undefined;
63
70
  offset?: number | undefined;
64
71
  order?: string | undefined;
65
72
  query?: string | undefined;
66
73
  sort?: string | undefined;
74
+ start_gte?: string | undefined;
67
75
  type?: string | undefined;
68
76
  updated_gte?: string | undefined;
69
77
  };
@@ -75,17 +83,21 @@ export const ListAccountingReportsRequest$outboundSchema: z.ZodType<
75
83
  ListAccountingReportsRequest
76
84
  > = z.object({
77
85
  connectionId: z.string(),
86
+ endLe: z.string().optional(),
78
87
  fields: z.array(z.string()).optional(),
79
88
  limit: z.number().optional(),
80
89
  offset: z.number().optional(),
81
90
  order: z.string().optional(),
82
91
  query: z.string().optional(),
83
92
  sort: z.string().optional(),
93
+ startGte: z.string().optional(),
84
94
  type: z.string().optional(),
85
95
  updatedGte: z.date().transform(v => v.toISOString()).optional(),
86
96
  }).transform((v) => {
87
97
  return remap$(v, {
88
98
  connectionId: "connection_id",
99
+ endLe: "end_le",
100
+ startGte: "start_gte",
89
101
  updatedGte: "updated_gte",
90
102
  });
91
103
  });
@@ -0,0 +1,124 @@
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 ListHrisDevicesRequest = {
12
+ /**
13
+ * ID of the connection
14
+ */
15
+ connectionId: string;
16
+ /**
17
+ * Comma-delimited fields to return
18
+ */
19
+ fields?: Array<string> | undefined;
20
+ limit?: number | undefined;
21
+ offset?: number | undefined;
22
+ order?: string | undefined;
23
+ /**
24
+ * Query string to search. eg. email address or name
25
+ */
26
+ query?: string | undefined;
27
+ sort?: string | undefined;
28
+ /**
29
+ * Return only results whose updated date is equal or greater to this value
30
+ */
31
+ updatedGte?: Date | undefined;
32
+ userId?: string | undefined;
33
+ };
34
+
35
+ /** @internal */
36
+ export const ListHrisDevicesRequest$inboundSchema: z.ZodType<
37
+ ListHrisDevicesRequest,
38
+ z.ZodTypeDef,
39
+ unknown
40
+ > = z.object({
41
+ connection_id: z.string(),
42
+ fields: z.array(z.string()).optional(),
43
+ limit: z.number().optional(),
44
+ offset: z.number().optional(),
45
+ order: z.string().optional(),
46
+ query: z.string().optional(),
47
+ sort: z.string().optional(),
48
+ updated_gte: z.string().datetime({ offset: true }).transform(v => new Date(v))
49
+ .optional(),
50
+ user_id: z.string().optional(),
51
+ }).transform((v) => {
52
+ return remap$(v, {
53
+ "connection_id": "connectionId",
54
+ "updated_gte": "updatedGte",
55
+ "user_id": "userId",
56
+ });
57
+ });
58
+
59
+ /** @internal */
60
+ export type ListHrisDevicesRequest$Outbound = {
61
+ connection_id: string;
62
+ fields?: Array<string> | undefined;
63
+ limit?: number | undefined;
64
+ offset?: number | undefined;
65
+ order?: string | undefined;
66
+ query?: string | undefined;
67
+ sort?: string | undefined;
68
+ updated_gte?: string | undefined;
69
+ user_id?: string | undefined;
70
+ };
71
+
72
+ /** @internal */
73
+ export const ListHrisDevicesRequest$outboundSchema: z.ZodType<
74
+ ListHrisDevicesRequest$Outbound,
75
+ z.ZodTypeDef,
76
+ ListHrisDevicesRequest
77
+ > = z.object({
78
+ connectionId: z.string(),
79
+ fields: z.array(z.string()).optional(),
80
+ limit: z.number().optional(),
81
+ offset: z.number().optional(),
82
+ order: z.string().optional(),
83
+ query: z.string().optional(),
84
+ sort: z.string().optional(),
85
+ updatedGte: z.date().transform(v => v.toISOString()).optional(),
86
+ userId: z.string().optional(),
87
+ }).transform((v) => {
88
+ return remap$(v, {
89
+ connectionId: "connection_id",
90
+ updatedGte: "updated_gte",
91
+ userId: "user_id",
92
+ });
93
+ });
94
+
95
+ /**
96
+ * @internal
97
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
98
+ */
99
+ export namespace ListHrisDevicesRequest$ {
100
+ /** @deprecated use `ListHrisDevicesRequest$inboundSchema` instead. */
101
+ export const inboundSchema = ListHrisDevicesRequest$inboundSchema;
102
+ /** @deprecated use `ListHrisDevicesRequest$outboundSchema` instead. */
103
+ export const outboundSchema = ListHrisDevicesRequest$outboundSchema;
104
+ /** @deprecated use `ListHrisDevicesRequest$Outbound` instead. */
105
+ export type Outbound = ListHrisDevicesRequest$Outbound;
106
+ }
107
+
108
+ export function listHrisDevicesRequestToJSON(
109
+ listHrisDevicesRequest: ListHrisDevicesRequest,
110
+ ): string {
111
+ return JSON.stringify(
112
+ ListHrisDevicesRequest$outboundSchema.parse(listHrisDevicesRequest),
113
+ );
114
+ }
115
+
116
+ export function listHrisDevicesRequestFromJSON(
117
+ jsonString: string,
118
+ ): SafeParseResult<ListHrisDevicesRequest, SDKValidationError> {
119
+ return safeParse(
120
+ jsonString,
121
+ (x) => ListHrisDevicesRequest$inboundSchema.parse(JSON.parse(x)),
122
+ `Failed to parse 'ListHrisDevicesRequest' from JSON`,
123
+ );
124
+ }
@@ -26,6 +26,7 @@ export type ListStorageFilesRequest = {
26
26
  */
27
27
  query?: string | undefined;
28
28
  sort?: string | undefined;
29
+ type?: string | undefined;
29
30
  /**
30
31
  * Return only results whose updated date is equal or greater to this value
31
32
  */
@@ -46,6 +47,7 @@ export const ListStorageFilesRequest$inboundSchema: z.ZodType<
46
47
  parent_id: z.string().optional(),
47
48
  query: z.string().optional(),
48
49
  sort: z.string().optional(),
50
+ type: z.string().optional(),
49
51
  updated_gte: z.string().datetime({ offset: true }).transform(v => new Date(v))
50
52
  .optional(),
51
53
  }).transform((v) => {
@@ -66,6 +68,7 @@ export type ListStorageFilesRequest$Outbound = {
66
68
  parent_id?: string | undefined;
67
69
  query?: string | undefined;
68
70
  sort?: string | undefined;
71
+ type?: string | undefined;
69
72
  updated_gte?: string | undefined;
70
73
  };
71
74
 
@@ -83,6 +86,7 @@ export const ListStorageFilesRequest$outboundSchema: z.ZodType<
83
86
  parentId: z.string().optional(),
84
87
  query: z.string().optional(),
85
88
  sort: z.string().optional(),
89
+ type: z.string().optional(),
86
90
  updatedGte: z.date().transform(v => v.toISOString()).optional(),
87
91
  }).transform((v) => {
88
92
  return remap$(v, {
@@ -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 PatchHrisDeviceRequest = {
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 PatchHrisDeviceRequest$inboundSchema: z.ZodType<
30
+ PatchHrisDeviceRequest,
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 PatchHrisDeviceRequest$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 PatchHrisDeviceRequest$outboundSchema: z.ZodType<
55
+ PatchHrisDeviceRequest$Outbound,
56
+ z.ZodTypeDef,
57
+ PatchHrisDeviceRequest
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 PatchHrisDeviceRequest$ {
75
+ /** @deprecated use `PatchHrisDeviceRequest$inboundSchema` instead. */
76
+ export const inboundSchema = PatchHrisDeviceRequest$inboundSchema;
77
+ /** @deprecated use `PatchHrisDeviceRequest$outboundSchema` instead. */
78
+ export const outboundSchema = PatchHrisDeviceRequest$outboundSchema;
79
+ /** @deprecated use `PatchHrisDeviceRequest$Outbound` instead. */
80
+ export type Outbound = PatchHrisDeviceRequest$Outbound;
81
+ }
82
+
83
+ export function patchHrisDeviceRequestToJSON(
84
+ patchHrisDeviceRequest: PatchHrisDeviceRequest,
85
+ ): string {
86
+ return JSON.stringify(
87
+ PatchHrisDeviceRequest$outboundSchema.parse(patchHrisDeviceRequest),
88
+ );
89
+ }
90
+
91
+ export function patchHrisDeviceRequestFromJSON(
92
+ jsonString: string,
93
+ ): SafeParseResult<PatchHrisDeviceRequest, SDKValidationError> {
94
+ return safeParse(
95
+ jsonString,
96
+ (x) => PatchHrisDeviceRequest$inboundSchema.parse(JSON.parse(x)),
97
+ `Failed to parse 'PatchHrisDeviceRequest' from JSON`,
98
+ );
99
+ }