@unified-api/typescript-sdk 2.80.6 → 2.80.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/README.md +24 -0
  2. package/examples/package-lock.json +1 -1
  3. package/funcs/hrisCreateHrisBenefit.d.ts +15 -0
  4. package/funcs/hrisCreateHrisBenefit.d.ts.map +1 -0
  5. package/funcs/hrisCreateHrisBenefit.js +122 -0
  6. package/funcs/hrisCreateHrisBenefit.js.map +1 -0
  7. package/funcs/hrisCreateHrisDeduction.d.ts +15 -0
  8. package/funcs/hrisCreateHrisDeduction.d.ts.map +1 -0
  9. package/funcs/hrisCreateHrisDeduction.js +122 -0
  10. package/funcs/hrisCreateHrisDeduction.js.map +1 -0
  11. package/funcs/hrisGetHrisBenefit.d.ts +15 -0
  12. package/funcs/hrisGetHrisBenefit.d.ts.map +1 -0
  13. package/funcs/hrisGetHrisBenefit.js +125 -0
  14. package/funcs/hrisGetHrisBenefit.js.map +1 -0
  15. package/funcs/hrisGetHrisDeduction.d.ts +15 -0
  16. package/funcs/hrisGetHrisDeduction.d.ts.map +1 -0
  17. package/funcs/hrisGetHrisDeduction.js +125 -0
  18. package/funcs/hrisGetHrisDeduction.js.map +1 -0
  19. package/funcs/hrisListHrisBenefits.d.ts +15 -0
  20. package/funcs/hrisListHrisBenefits.d.ts.map +1 -0
  21. package/funcs/hrisListHrisBenefits.js +129 -0
  22. package/funcs/hrisListHrisBenefits.js.map +1 -0
  23. package/funcs/hrisListHrisDeductions.d.ts +15 -0
  24. package/funcs/hrisListHrisDeductions.d.ts.map +1 -0
  25. package/funcs/hrisListHrisDeductions.js +132 -0
  26. package/funcs/hrisListHrisDeductions.js.map +1 -0
  27. package/funcs/hrisPatchHrisBenefit.d.ts +15 -0
  28. package/funcs/hrisPatchHrisBenefit.d.ts.map +1 -0
  29. package/funcs/hrisPatchHrisBenefit.js +126 -0
  30. package/funcs/hrisPatchHrisBenefit.js.map +1 -0
  31. package/funcs/hrisPatchHrisDeduction.d.ts +15 -0
  32. package/funcs/hrisPatchHrisDeduction.d.ts.map +1 -0
  33. package/funcs/hrisPatchHrisDeduction.js +126 -0
  34. package/funcs/hrisPatchHrisDeduction.js.map +1 -0
  35. package/funcs/hrisRemoveHrisBenefit.d.ts +14 -0
  36. package/funcs/hrisRemoveHrisBenefit.d.ts.map +1 -0
  37. package/funcs/hrisRemoveHrisBenefit.js +122 -0
  38. package/funcs/hrisRemoveHrisBenefit.js.map +1 -0
  39. package/funcs/hrisRemoveHrisDeduction.d.ts +14 -0
  40. package/funcs/hrisRemoveHrisDeduction.d.ts.map +1 -0
  41. package/funcs/hrisRemoveHrisDeduction.js +122 -0
  42. package/funcs/hrisRemoveHrisDeduction.js.map +1 -0
  43. package/funcs/hrisUpdateHrisBenefit.d.ts +15 -0
  44. package/funcs/hrisUpdateHrisBenefit.d.ts.map +1 -0
  45. package/funcs/hrisUpdateHrisBenefit.js +126 -0
  46. package/funcs/hrisUpdateHrisBenefit.js.map +1 -0
  47. package/funcs/hrisUpdateHrisDeduction.d.ts +15 -0
  48. package/funcs/hrisUpdateHrisDeduction.d.ts.map +1 -0
  49. package/funcs/hrisUpdateHrisDeduction.js +126 -0
  50. package/funcs/hrisUpdateHrisDeduction.js.map +1 -0
  51. package/funcs/messagingListMessagingMessages.js +1 -0
  52. package/funcs/messagingListMessagingMessages.js.map +1 -1
  53. package/jsr.json +1 -1
  54. package/lib/config.d.ts +2 -2
  55. package/lib/config.js +2 -2
  56. package/package.json +1 -1
  57. package/sdk/benefit.d.ts +30 -0
  58. package/sdk/benefit.d.ts.map +1 -0
  59. package/sdk/benefit.js +54 -0
  60. package/sdk/benefit.js.map +1 -0
  61. package/sdk/deduction.d.ts +30 -0
  62. package/sdk/deduction.d.ts.map +1 -0
  63. package/sdk/deduction.js +54 -0
  64. package/sdk/deduction.js.map +1 -0
  65. package/sdk/hris.d.ts +48 -0
  66. package/sdk/hris.d.ts.map +1 -1
  67. package/sdk/hris.js +84 -0
  68. package/sdk/hris.js.map +1 -1
  69. package/sdk/models/operations/createhrisbenefit.d.ts +31 -0
  70. package/sdk/models/operations/createhrisbenefit.d.ts.map +1 -0
  71. package/sdk/models/operations/createhrisbenefit.js +59 -0
  72. package/sdk/models/operations/createhrisbenefit.js.map +1 -0
  73. package/sdk/models/operations/createhrisdeduction.d.ts +31 -0
  74. package/sdk/models/operations/createhrisdeduction.d.ts.map +1 -0
  75. package/sdk/models/operations/createhrisdeduction.js +59 -0
  76. package/sdk/models/operations/createhrisdeduction.js.map +1 -0
  77. package/sdk/models/operations/gethrisbenefit.d.ts +30 -0
  78. package/sdk/models/operations/gethrisbenefit.d.ts.map +1 -0
  79. package/sdk/models/operations/gethrisbenefit.js +57 -0
  80. package/sdk/models/operations/gethrisbenefit.js.map +1 -0
  81. package/sdk/models/operations/gethrisdeduction.d.ts +30 -0
  82. package/sdk/models/operations/gethrisdeduction.d.ts.map +1 -0
  83. package/sdk/models/operations/gethrisdeduction.js +57 -0
  84. package/sdk/models/operations/gethrisdeduction.js.map +1 -0
  85. package/sdk/models/operations/index.d.ts +12 -0
  86. package/sdk/models/operations/index.d.ts.map +1 -1
  87. package/sdk/models/operations/index.js +12 -0
  88. package/sdk/models/operations/index.js.map +1 -1
  89. package/sdk/models/operations/listhrisbenefits.d.ts +48 -0
  90. package/sdk/models/operations/listhrisbenefits.d.ts.map +1 -0
  91. package/sdk/models/operations/listhrisbenefits.js +65 -0
  92. package/sdk/models/operations/listhrisbenefits.js.map +1 -0
  93. package/sdk/models/operations/listhrisdeductions.d.ts +63 -0
  94. package/sdk/models/operations/listhrisdeductions.d.ts.map +1 -0
  95. package/sdk/models/operations/listhrisdeductions.js +71 -0
  96. package/sdk/models/operations/listhrisdeductions.js.map +1 -0
  97. package/sdk/models/operations/listmessagingmessages.d.ts +6 -1
  98. package/sdk/models/operations/listmessagingmessages.d.ts.map +1 -1
  99. package/sdk/models/operations/listmessagingmessages.js +2 -0
  100. package/sdk/models/operations/listmessagingmessages.js.map +1 -1
  101. package/sdk/models/operations/patchhrisbenefit.d.ts +36 -0
  102. package/sdk/models/operations/patchhrisbenefit.d.ts.map +1 -0
  103. package/sdk/models/operations/patchhrisbenefit.js +60 -0
  104. package/sdk/models/operations/patchhrisbenefit.js.map +1 -0
  105. package/sdk/models/operations/patchhrisdeduction.d.ts +36 -0
  106. package/sdk/models/operations/patchhrisdeduction.d.ts.map +1 -0
  107. package/sdk/models/operations/patchhrisdeduction.js +60 -0
  108. package/sdk/models/operations/patchhrisdeduction.js.map +1 -0
  109. package/sdk/models/operations/removehrisbenefit.d.ts +30 -0
  110. package/sdk/models/operations/removehrisbenefit.d.ts.map +1 -0
  111. package/sdk/models/operations/removehrisbenefit.js +68 -0
  112. package/sdk/models/operations/removehrisbenefit.js.map +1 -0
  113. package/sdk/models/operations/removehrisdeduction.d.ts +30 -0
  114. package/sdk/models/operations/removehrisdeduction.d.ts.map +1 -0
  115. package/sdk/models/operations/removehrisdeduction.js +68 -0
  116. package/sdk/models/operations/removehrisdeduction.js.map +1 -0
  117. package/sdk/models/operations/updatehrisbenefit.d.ts +36 -0
  118. package/sdk/models/operations/updatehrisbenefit.d.ts.map +1 -0
  119. package/sdk/models/operations/updatehrisbenefit.js +60 -0
  120. package/sdk/models/operations/updatehrisbenefit.js.map +1 -0
  121. package/sdk/models/operations/updatehrisdeduction.d.ts +36 -0
  122. package/sdk/models/operations/updatehrisdeduction.d.ts.map +1 -0
  123. package/sdk/models/operations/updatehrisdeduction.js +60 -0
  124. package/sdk/models/operations/updatehrisdeduction.js.map +1 -0
  125. package/sdk/models/shared/accountinglineitem.d.ts +3 -0
  126. package/sdk/models/shared/accountinglineitem.d.ts.map +1 -1
  127. package/sdk/models/shared/accountinglineitem.js +3 -0
  128. package/sdk/models/shared/accountinglineitem.js.map +1 -1
  129. package/sdk/models/shared/accountingreference.d.ts +19 -0
  130. package/sdk/models/shared/accountingreference.d.ts.map +1 -0
  131. package/sdk/models/shared/accountingreference.js +60 -0
  132. package/sdk/models/shared/accountingreference.js.map +1 -0
  133. package/sdk/models/shared/hrisbenefit.d.ts +127 -0
  134. package/sdk/models/shared/hrisbenefit.d.ts.map +1 -0
  135. package/sdk/models/shared/hrisbenefit.js +181 -0
  136. package/sdk/models/shared/hrisbenefit.js.map +1 -0
  137. package/sdk/models/shared/hrisdeduction.d.ts +88 -0
  138. package/sdk/models/shared/hrisdeduction.d.ts.map +1 -0
  139. package/sdk/models/shared/hrisdeduction.js +148 -0
  140. package/sdk/models/shared/hrisdeduction.js.map +1 -0
  141. package/sdk/models/shared/hrispayslip.d.ts +5 -0
  142. package/sdk/models/shared/hrispayslip.d.ts.map +1 -1
  143. package/sdk/models/shared/hrispayslip.js +2 -0
  144. package/sdk/models/shared/hrispayslip.js.map +1 -1
  145. package/sdk/models/shared/index.d.ts +4 -0
  146. package/sdk/models/shared/index.d.ts.map +1 -1
  147. package/sdk/models/shared/index.js +4 -0
  148. package/sdk/models/shared/index.js.map +1 -1
  149. package/sdk/models/shared/integrationsupport.d.ts +27 -0
  150. package/sdk/models/shared/integrationsupport.d.ts.map +1 -1
  151. package/sdk/models/shared/integrationsupport.js +33 -5
  152. package/sdk/models/shared/integrationsupport.js.map +1 -1
  153. package/sdk/models/shared/messagingmessage.d.ts +2 -0
  154. package/sdk/models/shared/messagingmessage.d.ts.map +1 -1
  155. package/sdk/models/shared/messagingmessage.js +4 -0
  156. package/sdk/models/shared/messagingmessage.js.map +1 -1
  157. package/sdk/models/shared/propertyconnectionpermissions.d.ts +4 -0
  158. package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  159. package/sdk/models/shared/propertyconnectionpermissions.js +4 -0
  160. package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  161. package/sdk/models/shared/propertyhrispayslipdeduction.d.ts +60 -0
  162. package/sdk/models/shared/propertyhrispayslipdeduction.d.ts.map +1 -0
  163. package/sdk/models/shared/propertyhrispayslipdeduction.js +110 -0
  164. package/sdk/models/shared/propertyhrispayslipdeduction.js.map +1 -0
  165. package/sdk/models/shared/uccall.d.ts +3 -0
  166. package/sdk/models/shared/uccall.d.ts.map +1 -1
  167. package/sdk/models/shared/uccall.js +4 -0
  168. package/sdk/models/shared/uccall.js.map +1 -1
  169. package/sdk/models/shared/webhook.d.ts +2 -0
  170. package/sdk/models/shared/webhook.d.ts.map +1 -1
  171. package/sdk/models/shared/webhook.js +2 -0
  172. package/sdk/models/shared/webhook.js.map +1 -1
  173. package/sdk/sdk.d.ts +6 -0
  174. package/sdk/sdk.d.ts.map +1 -1
  175. package/sdk/sdk.js +8 -0
  176. package/sdk/sdk.js.map +1 -1
  177. package/src/funcs/hrisCreateHrisBenefit.ts +170 -0
  178. package/src/funcs/hrisCreateHrisDeduction.ts +171 -0
  179. package/src/funcs/hrisGetHrisBenefit.ts +173 -0
  180. package/src/funcs/hrisGetHrisDeduction.ts +173 -0
  181. package/src/funcs/hrisListHrisBenefits.ts +177 -0
  182. package/src/funcs/hrisListHrisDeductions.ts +180 -0
  183. package/src/funcs/hrisPatchHrisBenefit.ts +174 -0
  184. package/src/funcs/hrisPatchHrisDeduction.ts +174 -0
  185. package/src/funcs/hrisRemoveHrisBenefit.ts +175 -0
  186. package/src/funcs/hrisRemoveHrisDeduction.ts +176 -0
  187. package/src/funcs/hrisUpdateHrisBenefit.ts +174 -0
  188. package/src/funcs/hrisUpdateHrisDeduction.ts +175 -0
  189. package/src/funcs/messagingListMessagingMessages.ts +1 -0
  190. package/src/lib/config.ts +2 -2
  191. package/src/sdk/benefit.ts +100 -0
  192. package/src/sdk/deduction.ts +100 -0
  193. package/src/sdk/hris.ts +180 -0
  194. package/src/sdk/models/operations/createhrisbenefit.ts +59 -0
  195. package/src/sdk/models/operations/createhrisdeduction.ts +59 -0
  196. package/src/sdk/models/operations/gethrisbenefit.ts +57 -0
  197. package/src/sdk/models/operations/gethrisdeduction.ts +57 -0
  198. package/src/sdk/models/operations/index.ts +12 -0
  199. package/src/sdk/models/operations/listhrisbenefits.ts +83 -0
  200. package/src/sdk/models/operations/listhrisdeductions.ts +104 -0
  201. package/src/sdk/models/operations/listmessagingmessages.ts +8 -1
  202. package/src/sdk/models/operations/patchhrisbenefit.ts +65 -0
  203. package/src/sdk/models/operations/patchhrisdeduction.ts +65 -0
  204. package/src/sdk/models/operations/removehrisbenefit.ts +75 -0
  205. package/src/sdk/models/operations/removehrisdeduction.ts +75 -0
  206. package/src/sdk/models/operations/updatehrisbenefit.ts +65 -0
  207. package/src/sdk/models/operations/updatehrisdeduction.ts +65 -0
  208. package/src/sdk/models/shared/accountinglineitem.ts +10 -0
  209. package/src/sdk/models/shared/accountingreference.ts +55 -0
  210. package/src/sdk/models/shared/hrisbenefit.ts +255 -0
  211. package/src/sdk/models/shared/hrisdeduction.ts +202 -0
  212. package/src/sdk/models/shared/hrispayslip.ts +9 -0
  213. package/src/sdk/models/shared/index.ts +4 -0
  214. package/src/sdk/models/shared/integrationsupport.ts +54 -0
  215. package/src/sdk/models/shared/messagingmessage.ts +6 -0
  216. package/src/sdk/models/shared/propertyconnectionpermissions.ts +4 -0
  217. package/src/sdk/models/shared/propertyhrispayslipdeduction.ts +135 -0
  218. package/src/sdk/models/shared/uccall.ts +6 -0
  219. package/src/sdk/models/shared/webhook.ts +2 -0
  220. package/src/sdk/sdk.ts +12 -0
@@ -0,0 +1,83 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+
8
+ export type ListHrisBenefitsRequest = {
9
+ /**
10
+ * The company ID to filter by
11
+ */
12
+ companyId?: string | undefined;
13
+ /**
14
+ * ID of the connection
15
+ */
16
+ connectionId: string;
17
+ /**
18
+ * Comma-delimited fields to return
19
+ */
20
+ fields?: Array<string> | undefined;
21
+ limit?: number | undefined;
22
+ offset?: number | undefined;
23
+ order?: string | undefined;
24
+ /**
25
+ * Query string to search. eg. email address or name
26
+ */
27
+ query?: string | undefined;
28
+ /**
29
+ * Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
30
+ */
31
+ raw?: string | undefined;
32
+ sort?: string | undefined;
33
+ /**
34
+ * Return only results whose updated date is equal or greater to this value
35
+ */
36
+ updatedGte?: string | undefined;
37
+ };
38
+
39
+ /** @internal */
40
+ export type ListHrisBenefitsRequest$Outbound = {
41
+ company_id?: string | undefined;
42
+ connection_id: string;
43
+ fields?: Array<string> | undefined;
44
+ limit?: number | undefined;
45
+ offset?: number | undefined;
46
+ order?: string | undefined;
47
+ query?: string | undefined;
48
+ raw?: string | undefined;
49
+ sort?: string | undefined;
50
+ updated_gte?: string | undefined;
51
+ };
52
+
53
+ /** @internal */
54
+ export const ListHrisBenefitsRequest$outboundSchema: z.ZodType<
55
+ ListHrisBenefitsRequest$Outbound,
56
+ z.ZodTypeDef,
57
+ ListHrisBenefitsRequest
58
+ > = z.object({
59
+ companyId: z.string().optional(),
60
+ connectionId: z.string(),
61
+ fields: z.array(z.string()).optional(),
62
+ limit: z.number().optional(),
63
+ offset: z.number().optional(),
64
+ order: z.string().optional(),
65
+ query: z.string().optional(),
66
+ raw: z.string().optional(),
67
+ sort: z.string().optional(),
68
+ updatedGte: z.string().optional(),
69
+ }).transform((v) => {
70
+ return remap$(v, {
71
+ companyId: "company_id",
72
+ connectionId: "connection_id",
73
+ updatedGte: "updated_gte",
74
+ });
75
+ });
76
+
77
+ export function listHrisBenefitsRequestToJSON(
78
+ listHrisBenefitsRequest: ListHrisBenefitsRequest,
79
+ ): string {
80
+ return JSON.stringify(
81
+ ListHrisBenefitsRequest$outboundSchema.parse(listHrisBenefitsRequest),
82
+ );
83
+ }
@@ -0,0 +1,104 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+
8
+ export type ListHrisDeductionsRequest = {
9
+ /**
10
+ * The benefit ID to filter by
11
+ */
12
+ benefitId?: string | undefined;
13
+ /**
14
+ * The company ID to filter by
15
+ */
16
+ companyId?: string | undefined;
17
+ /**
18
+ * ID of the connection
19
+ */
20
+ connectionId: string;
21
+ /**
22
+ * Comma-delimited fields to return
23
+ */
24
+ fields?: Array<string> | undefined;
25
+ limit?: number | undefined;
26
+ offset?: number | undefined;
27
+ order?: string | undefined;
28
+ /**
29
+ * The payslip ID to filter by
30
+ */
31
+ payslipId?: string | undefined;
32
+ /**
33
+ * Query string to search. eg. email address or name
34
+ */
35
+ query?: string | undefined;
36
+ /**
37
+ * Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
38
+ */
39
+ raw?: string | undefined;
40
+ sort?: string | undefined;
41
+ /**
42
+ * Return only results whose updated date is equal or greater to this value
43
+ */
44
+ updatedGte?: string | undefined;
45
+ /**
46
+ * The user/employee ID to filter by
47
+ */
48
+ userId?: string | undefined;
49
+ };
50
+
51
+ /** @internal */
52
+ export type ListHrisDeductionsRequest$Outbound = {
53
+ benefit_id?: string | undefined;
54
+ company_id?: string | undefined;
55
+ connection_id: string;
56
+ fields?: Array<string> | undefined;
57
+ limit?: number | undefined;
58
+ offset?: number | undefined;
59
+ order?: string | undefined;
60
+ payslip_id?: string | undefined;
61
+ query?: string | undefined;
62
+ raw?: string | undefined;
63
+ sort?: string | undefined;
64
+ updated_gte?: string | undefined;
65
+ user_id?: string | undefined;
66
+ };
67
+
68
+ /** @internal */
69
+ export const ListHrisDeductionsRequest$outboundSchema: z.ZodType<
70
+ ListHrisDeductionsRequest$Outbound,
71
+ z.ZodTypeDef,
72
+ ListHrisDeductionsRequest
73
+ > = z.object({
74
+ benefitId: z.string().optional(),
75
+ companyId: z.string().optional(),
76
+ connectionId: z.string(),
77
+ fields: z.array(z.string()).optional(),
78
+ limit: z.number().optional(),
79
+ offset: z.number().optional(),
80
+ order: z.string().optional(),
81
+ payslipId: z.string().optional(),
82
+ query: z.string().optional(),
83
+ raw: z.string().optional(),
84
+ sort: z.string().optional(),
85
+ updatedGte: z.string().optional(),
86
+ userId: z.string().optional(),
87
+ }).transform((v) => {
88
+ return remap$(v, {
89
+ benefitId: "benefit_id",
90
+ companyId: "company_id",
91
+ connectionId: "connection_id",
92
+ payslipId: "payslip_id",
93
+ updatedGte: "updated_gte",
94
+ userId: "user_id",
95
+ });
96
+ });
97
+
98
+ export function listHrisDeductionsRequestToJSON(
99
+ listHrisDeductionsRequest: ListHrisDeductionsRequest,
100
+ ): string {
101
+ return JSON.stringify(
102
+ ListHrisDeductionsRequest$outboundSchema.parse(listHrisDeductionsRequest),
103
+ );
104
+ }
@@ -7,7 +7,7 @@ import { remap as remap$ } from "../../../lib/primitives.js";
7
7
 
8
8
  export type ListMessagingMessagesRequest = {
9
9
  /**
10
- * The channel ID to filter by
10
+ * The channel ID to filter by. You can also use these aliases; INBOX, SENT or DRAFT
11
11
  */
12
12
  channelId?: string | undefined;
13
13
  /**
@@ -58,6 +58,10 @@ export type ListMessagingMessagesRequest = {
58
58
  * The user/employee ID to filter by
59
59
  */
60
60
  userId?: string | undefined;
61
+ /**
62
+ * The user/employee ID to filter by
63
+ */
64
+ userMentionedId?: string | undefined;
61
65
  };
62
66
 
63
67
  /** @internal */
@@ -78,6 +82,7 @@ export type ListMessagingMessagesRequest$Outbound = {
78
82
  start_gte?: string | undefined;
79
83
  updated_gte?: string | undefined;
80
84
  user_id?: string | undefined;
85
+ user_mentioned_id?: string | undefined;
81
86
  };
82
87
 
83
88
  /** @internal */
@@ -102,6 +107,7 @@ export const ListMessagingMessagesRequest$outboundSchema: z.ZodType<
102
107
  startGte: z.string().optional(),
103
108
  updatedGte: z.string().optional(),
104
109
  userId: z.string().optional(),
110
+ userMentionedId: z.string().optional(),
105
111
  }).transform((v) => {
106
112
  return remap$(v, {
107
113
  channelId: "channel_id",
@@ -112,6 +118,7 @@ export const ListMessagingMessagesRequest$outboundSchema: z.ZodType<
112
118
  startGte: "start_gte",
113
119
  updatedGte: "updated_gte",
114
120
  userId: "user_id",
121
+ userMentionedId: "user_mentioned_id",
115
122
  });
116
123
  });
117
124
 
@@ -0,0 +1,65 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+ import * as shared from "../shared/index.js";
8
+
9
+ export type PatchHrisBenefitRequest = {
10
+ /**
11
+ * Company-wide benefit plans available to employees.
12
+ */
13
+ hrisBenefit: shared.HrisBenefit;
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 Benefit
24
+ */
25
+ id: string;
26
+ /**
27
+ * Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
28
+ */
29
+ raw?: string | undefined;
30
+ };
31
+
32
+ /** @internal */
33
+ export type PatchHrisBenefitRequest$Outbound = {
34
+ HrisBenefit: shared.HrisBenefit$Outbound;
35
+ connection_id: string;
36
+ fields?: Array<string> | undefined;
37
+ id: string;
38
+ raw?: string | undefined;
39
+ };
40
+
41
+ /** @internal */
42
+ export const PatchHrisBenefitRequest$outboundSchema: z.ZodType<
43
+ PatchHrisBenefitRequest$Outbound,
44
+ z.ZodTypeDef,
45
+ PatchHrisBenefitRequest
46
+ > = z.object({
47
+ hrisBenefit: shared.HrisBenefit$outboundSchema,
48
+ connectionId: z.string(),
49
+ fields: z.array(z.string()).optional(),
50
+ id: z.string(),
51
+ raw: z.string().optional(),
52
+ }).transform((v) => {
53
+ return remap$(v, {
54
+ hrisBenefit: "HrisBenefit",
55
+ connectionId: "connection_id",
56
+ });
57
+ });
58
+
59
+ export function patchHrisBenefitRequestToJSON(
60
+ patchHrisBenefitRequest: PatchHrisBenefitRequest,
61
+ ): string {
62
+ return JSON.stringify(
63
+ PatchHrisBenefitRequest$outboundSchema.parse(patchHrisBenefitRequest),
64
+ );
65
+ }
@@ -0,0 +1,65 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+ import * as shared from "../shared/index.js";
8
+
9
+ export type PatchHrisDeductionRequest = {
10
+ /**
11
+ * Employee-specific deduction/benefit enrolment.
12
+ */
13
+ hrisDeduction: shared.HrisDeduction;
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 Deduction
24
+ */
25
+ id: string;
26
+ /**
27
+ * Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
28
+ */
29
+ raw?: string | undefined;
30
+ };
31
+
32
+ /** @internal */
33
+ export type PatchHrisDeductionRequest$Outbound = {
34
+ HrisDeduction: shared.HrisDeduction$Outbound;
35
+ connection_id: string;
36
+ fields?: Array<string> | undefined;
37
+ id: string;
38
+ raw?: string | undefined;
39
+ };
40
+
41
+ /** @internal */
42
+ export const PatchHrisDeductionRequest$outboundSchema: z.ZodType<
43
+ PatchHrisDeductionRequest$Outbound,
44
+ z.ZodTypeDef,
45
+ PatchHrisDeductionRequest
46
+ > = z.object({
47
+ hrisDeduction: shared.HrisDeduction$outboundSchema,
48
+ connectionId: z.string(),
49
+ fields: z.array(z.string()).optional(),
50
+ id: z.string(),
51
+ raw: z.string().optional(),
52
+ }).transform((v) => {
53
+ return remap$(v, {
54
+ hrisDeduction: "HrisDeduction",
55
+ connectionId: "connection_id",
56
+ });
57
+ });
58
+
59
+ export function patchHrisDeductionRequestToJSON(
60
+ patchHrisDeductionRequest: PatchHrisDeductionRequest,
61
+ ): string {
62
+ return JSON.stringify(
63
+ PatchHrisDeductionRequest$outboundSchema.parse(patchHrisDeductionRequest),
64
+ );
65
+ }
@@ -0,0 +1,75 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 RemoveHrisBenefitRequest = {
12
+ /**
13
+ * ID of the connection
14
+ */
15
+ connectionId: string;
16
+ /**
17
+ * ID of the Benefit
18
+ */
19
+ id: string;
20
+ };
21
+
22
+ export type RemoveHrisBenefitResponse = {
23
+ headers: { [k: string]: Array<string> };
24
+ };
25
+
26
+ /** @internal */
27
+ export type RemoveHrisBenefitRequest$Outbound = {
28
+ connection_id: string;
29
+ id: string;
30
+ };
31
+
32
+ /** @internal */
33
+ export const RemoveHrisBenefitRequest$outboundSchema: z.ZodType<
34
+ RemoveHrisBenefitRequest$Outbound,
35
+ z.ZodTypeDef,
36
+ RemoveHrisBenefitRequest
37
+ > = z.object({
38
+ connectionId: z.string(),
39
+ id: z.string(),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ connectionId: "connection_id",
43
+ });
44
+ });
45
+
46
+ export function removeHrisBenefitRequestToJSON(
47
+ removeHrisBenefitRequest: RemoveHrisBenefitRequest,
48
+ ): string {
49
+ return JSON.stringify(
50
+ RemoveHrisBenefitRequest$outboundSchema.parse(removeHrisBenefitRequest),
51
+ );
52
+ }
53
+
54
+ /** @internal */
55
+ export const RemoveHrisBenefitResponse$inboundSchema: z.ZodType<
56
+ RemoveHrisBenefitResponse,
57
+ z.ZodTypeDef,
58
+ unknown
59
+ > = z.object({
60
+ Headers: z.record(z.array(z.string())).default({}),
61
+ }).transform((v) => {
62
+ return remap$(v, {
63
+ "Headers": "headers",
64
+ });
65
+ });
66
+
67
+ export function removeHrisBenefitResponseFromJSON(
68
+ jsonString: string,
69
+ ): SafeParseResult<RemoveHrisBenefitResponse, SDKValidationError> {
70
+ return safeParse(
71
+ jsonString,
72
+ (x) => RemoveHrisBenefitResponse$inboundSchema.parse(JSON.parse(x)),
73
+ `Failed to parse 'RemoveHrisBenefitResponse' from JSON`,
74
+ );
75
+ }
@@ -0,0 +1,75 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 RemoveHrisDeductionRequest = {
12
+ /**
13
+ * ID of the connection
14
+ */
15
+ connectionId: string;
16
+ /**
17
+ * ID of the Deduction
18
+ */
19
+ id: string;
20
+ };
21
+
22
+ export type RemoveHrisDeductionResponse = {
23
+ headers: { [k: string]: Array<string> };
24
+ };
25
+
26
+ /** @internal */
27
+ export type RemoveHrisDeductionRequest$Outbound = {
28
+ connection_id: string;
29
+ id: string;
30
+ };
31
+
32
+ /** @internal */
33
+ export const RemoveHrisDeductionRequest$outboundSchema: z.ZodType<
34
+ RemoveHrisDeductionRequest$Outbound,
35
+ z.ZodTypeDef,
36
+ RemoveHrisDeductionRequest
37
+ > = z.object({
38
+ connectionId: z.string(),
39
+ id: z.string(),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ connectionId: "connection_id",
43
+ });
44
+ });
45
+
46
+ export function removeHrisDeductionRequestToJSON(
47
+ removeHrisDeductionRequest: RemoveHrisDeductionRequest,
48
+ ): string {
49
+ return JSON.stringify(
50
+ RemoveHrisDeductionRequest$outboundSchema.parse(removeHrisDeductionRequest),
51
+ );
52
+ }
53
+
54
+ /** @internal */
55
+ export const RemoveHrisDeductionResponse$inboundSchema: z.ZodType<
56
+ RemoveHrisDeductionResponse,
57
+ z.ZodTypeDef,
58
+ unknown
59
+ > = z.object({
60
+ Headers: z.record(z.array(z.string())).default({}),
61
+ }).transform((v) => {
62
+ return remap$(v, {
63
+ "Headers": "headers",
64
+ });
65
+ });
66
+
67
+ export function removeHrisDeductionResponseFromJSON(
68
+ jsonString: string,
69
+ ): SafeParseResult<RemoveHrisDeductionResponse, SDKValidationError> {
70
+ return safeParse(
71
+ jsonString,
72
+ (x) => RemoveHrisDeductionResponse$inboundSchema.parse(JSON.parse(x)),
73
+ `Failed to parse 'RemoveHrisDeductionResponse' from JSON`,
74
+ );
75
+ }
@@ -0,0 +1,65 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+ import * as shared from "../shared/index.js";
8
+
9
+ export type UpdateHrisBenefitRequest = {
10
+ /**
11
+ * Company-wide benefit plans available to employees.
12
+ */
13
+ hrisBenefit: shared.HrisBenefit;
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 Benefit
24
+ */
25
+ id: string;
26
+ /**
27
+ * Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
28
+ */
29
+ raw?: string | undefined;
30
+ };
31
+
32
+ /** @internal */
33
+ export type UpdateHrisBenefitRequest$Outbound = {
34
+ HrisBenefit: shared.HrisBenefit$Outbound;
35
+ connection_id: string;
36
+ fields?: Array<string> | undefined;
37
+ id: string;
38
+ raw?: string | undefined;
39
+ };
40
+
41
+ /** @internal */
42
+ export const UpdateHrisBenefitRequest$outboundSchema: z.ZodType<
43
+ UpdateHrisBenefitRequest$Outbound,
44
+ z.ZodTypeDef,
45
+ UpdateHrisBenefitRequest
46
+ > = z.object({
47
+ hrisBenefit: shared.HrisBenefit$outboundSchema,
48
+ connectionId: z.string(),
49
+ fields: z.array(z.string()).optional(),
50
+ id: z.string(),
51
+ raw: z.string().optional(),
52
+ }).transform((v) => {
53
+ return remap$(v, {
54
+ hrisBenefit: "HrisBenefit",
55
+ connectionId: "connection_id",
56
+ });
57
+ });
58
+
59
+ export function updateHrisBenefitRequestToJSON(
60
+ updateHrisBenefitRequest: UpdateHrisBenefitRequest,
61
+ ): string {
62
+ return JSON.stringify(
63
+ UpdateHrisBenefitRequest$outboundSchema.parse(updateHrisBenefitRequest),
64
+ );
65
+ }
@@ -0,0 +1,65 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+ import * as shared from "../shared/index.js";
8
+
9
+ export type UpdateHrisDeductionRequest = {
10
+ /**
11
+ * Employee-specific deduction/benefit enrolment.
12
+ */
13
+ hrisDeduction: shared.HrisDeduction;
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 Deduction
24
+ */
25
+ id: string;
26
+ /**
27
+ * Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
28
+ */
29
+ raw?: string | undefined;
30
+ };
31
+
32
+ /** @internal */
33
+ export type UpdateHrisDeductionRequest$Outbound = {
34
+ HrisDeduction: shared.HrisDeduction$Outbound;
35
+ connection_id: string;
36
+ fields?: Array<string> | undefined;
37
+ id: string;
38
+ raw?: string | undefined;
39
+ };
40
+
41
+ /** @internal */
42
+ export const UpdateHrisDeductionRequest$outboundSchema: z.ZodType<
43
+ UpdateHrisDeductionRequest$Outbound,
44
+ z.ZodTypeDef,
45
+ UpdateHrisDeductionRequest
46
+ > = z.object({
47
+ hrisDeduction: shared.HrisDeduction$outboundSchema,
48
+ connectionId: z.string(),
49
+ fields: z.array(z.string()).optional(),
50
+ id: z.string(),
51
+ raw: z.string().optional(),
52
+ }).transform((v) => {
53
+ return remap$(v, {
54
+ hrisDeduction: "HrisDeduction",
55
+ connectionId: "connection_id",
56
+ });
57
+ });
58
+
59
+ export function updateHrisDeductionRequestToJSON(
60
+ updateHrisDeductionRequest: UpdateHrisDeductionRequest,
61
+ ): string {
62
+ return JSON.stringify(
63
+ UpdateHrisDeductionRequest$outboundSchema.parse(updateHrisDeductionRequest),
64
+ );
65
+ }
@@ -7,6 +7,12 @@ import { remap as remap$ } from "../../../lib/primitives.js";
7
7
  import { safeParse } from "../../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ AccountingReference,
12
+ AccountingReference$inboundSchema,
13
+ AccountingReference$Outbound,
14
+ AccountingReference$outboundSchema,
15
+ } from "./accountingreference.js";
10
16
 
11
17
  export type AccountingLineitem = {
12
18
  accountId?: string | undefined;
@@ -18,6 +24,7 @@ export type AccountingLineitem = {
18
24
  itemId?: string | undefined;
19
25
  itemName?: string | undefined;
20
26
  itemSku?: string | undefined;
27
+ locations?: Array<AccountingReference> | undefined;
21
28
  notes?: string | undefined;
22
29
  refundAmount?: number | undefined;
23
30
  refundedAt?: Date | undefined;
@@ -45,6 +52,7 @@ export const AccountingLineitem$inboundSchema: z.ZodType<
45
52
  item_id: z.string().optional(),
46
53
  item_name: z.string().optional(),
47
54
  item_sku: z.string().optional(),
55
+ locations: z.array(AccountingReference$inboundSchema).optional(),
48
56
  notes: z.string().optional(),
49
57
  refund_amount: z.number().optional(),
50
58
  refunded_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
@@ -87,6 +95,7 @@ export type AccountingLineitem$Outbound = {
87
95
  item_id?: string | undefined;
88
96
  item_name?: string | undefined;
89
97
  item_sku?: string | undefined;
98
+ locations?: Array<AccountingReference$Outbound> | undefined;
90
99
  notes?: string | undefined;
91
100
  refund_amount?: number | undefined;
92
101
  refunded_at?: string | undefined;
@@ -113,6 +122,7 @@ export const AccountingLineitem$outboundSchema: z.ZodType<
113
122
  itemId: z.string().optional(),
114
123
  itemName: z.string().optional(),
115
124
  itemSku: z.string().optional(),
125
+ locations: z.array(AccountingReference$outboundSchema).optional(),
116
126
  notes: z.string().optional(),
117
127
  refundAmount: z.number().optional(),
118
128
  refundedAt: z.date().transform(v => v.toISOString()).optional(),