@unified-api/typescript-sdk 2.71.0 → 2.71.1

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 (207) hide show
  1. package/README.md +12 -0
  2. package/bin/mcp-server.js +5326 -3650
  3. package/bin/mcp-server.js.map +42 -11
  4. package/docs/sdks/hris/README.md +500 -0
  5. package/docs/sdks/timeshift/README.md +507 -0
  6. package/funcs/hrisCreateHrisTimeshift.d.ts +14 -0
  7. package/funcs/hrisCreateHrisTimeshift.d.ts.map +1 -0
  8. package/funcs/hrisCreateHrisTimeshift.js +110 -0
  9. package/funcs/hrisCreateHrisTimeshift.js.map +1 -0
  10. package/funcs/hrisGetHrisTimeshift.d.ts +14 -0
  11. package/funcs/hrisGetHrisTimeshift.d.ts.map +1 -0
  12. package/funcs/hrisGetHrisTimeshift.js +113 -0
  13. package/funcs/hrisGetHrisTimeshift.js.map +1 -0
  14. package/funcs/hrisListHrisTimeoffs.js +2 -0
  15. package/funcs/hrisListHrisTimeoffs.js.map +1 -1
  16. package/funcs/hrisListHrisTimeshifts.d.ts +14 -0
  17. package/funcs/hrisListHrisTimeshifts.d.ts.map +1 -0
  18. package/funcs/hrisListHrisTimeshifts.js +121 -0
  19. package/funcs/hrisListHrisTimeshifts.js.map +1 -0
  20. package/funcs/hrisPatchHrisTimeshift.d.ts +14 -0
  21. package/funcs/hrisPatchHrisTimeshift.d.ts.map +1 -0
  22. package/funcs/hrisPatchHrisTimeshift.js +114 -0
  23. package/funcs/hrisPatchHrisTimeshift.js.map +1 -0
  24. package/funcs/hrisRemoveHrisTimeshift.d.ts +13 -0
  25. package/funcs/hrisRemoveHrisTimeshift.d.ts.map +1 -0
  26. package/funcs/hrisRemoveHrisTimeshift.js +110 -0
  27. package/funcs/hrisRemoveHrisTimeshift.js.map +1 -0
  28. package/funcs/hrisUpdateHrisTimeshift.d.ts +14 -0
  29. package/funcs/hrisUpdateHrisTimeshift.d.ts.map +1 -0
  30. package/funcs/hrisUpdateHrisTimeshift.js +114 -0
  31. package/funcs/hrisUpdateHrisTimeshift.js.map +1 -0
  32. package/funcs/timeoffListHrisTimeoffs.js +2 -0
  33. package/funcs/timeoffListHrisTimeoffs.js.map +1 -1
  34. package/funcs/timeshiftCreateHrisTimeshift.d.ts +14 -0
  35. package/funcs/timeshiftCreateHrisTimeshift.d.ts.map +1 -0
  36. package/funcs/timeshiftCreateHrisTimeshift.js +110 -0
  37. package/funcs/timeshiftCreateHrisTimeshift.js.map +1 -0
  38. package/funcs/timeshiftGetHrisTimeshift.d.ts +14 -0
  39. package/funcs/timeshiftGetHrisTimeshift.d.ts.map +1 -0
  40. package/funcs/timeshiftGetHrisTimeshift.js +113 -0
  41. package/funcs/timeshiftGetHrisTimeshift.js.map +1 -0
  42. package/funcs/timeshiftListHrisTimeshifts.d.ts +14 -0
  43. package/funcs/timeshiftListHrisTimeshifts.d.ts.map +1 -0
  44. package/funcs/timeshiftListHrisTimeshifts.js +121 -0
  45. package/funcs/timeshiftListHrisTimeshifts.js.map +1 -0
  46. package/funcs/timeshiftPatchHrisTimeshift.d.ts +14 -0
  47. package/funcs/timeshiftPatchHrisTimeshift.d.ts.map +1 -0
  48. package/funcs/timeshiftPatchHrisTimeshift.js +114 -0
  49. package/funcs/timeshiftPatchHrisTimeshift.js.map +1 -0
  50. package/funcs/timeshiftRemoveHrisTimeshift.d.ts +13 -0
  51. package/funcs/timeshiftRemoveHrisTimeshift.d.ts.map +1 -0
  52. package/funcs/timeshiftRemoveHrisTimeshift.js +110 -0
  53. package/funcs/timeshiftRemoveHrisTimeshift.js.map +1 -0
  54. package/funcs/timeshiftUpdateHrisTimeshift.d.ts +14 -0
  55. package/funcs/timeshiftUpdateHrisTimeshift.d.ts.map +1 -0
  56. package/funcs/timeshiftUpdateHrisTimeshift.js +114 -0
  57. package/funcs/timeshiftUpdateHrisTimeshift.js.map +1 -0
  58. package/jsr.json +1 -1
  59. package/lib/config.d.ts +2 -2
  60. package/lib/config.js +2 -2
  61. package/mcp-server/mcp-server.js +1 -1
  62. package/mcp-server/server.d.ts.map +1 -1
  63. package/mcp-server/server.js +25 -1
  64. package/mcp-server/server.js.map +1 -1
  65. package/mcp-server/tools/hrisCreateHrisTimeshift.d.ts +8 -0
  66. package/mcp-server/tools/hrisCreateHrisTimeshift.d.ts.map +1 -0
  67. package/mcp-server/tools/hrisCreateHrisTimeshift.js +52 -0
  68. package/mcp-server/tools/hrisCreateHrisTimeshift.js.map +1 -0
  69. package/mcp-server/tools/hrisGetHrisTimeshift.d.ts +8 -0
  70. package/mcp-server/tools/hrisGetHrisTimeshift.d.ts.map +1 -0
  71. package/mcp-server/tools/hrisGetHrisTimeshift.js +52 -0
  72. package/mcp-server/tools/hrisGetHrisTimeshift.js.map +1 -0
  73. package/mcp-server/tools/hrisListHrisTimeshifts.d.ts +8 -0
  74. package/mcp-server/tools/hrisListHrisTimeshifts.d.ts.map +1 -0
  75. package/mcp-server/tools/hrisListHrisTimeshifts.js +52 -0
  76. package/mcp-server/tools/hrisListHrisTimeshifts.js.map +1 -0
  77. package/mcp-server/tools/hrisPatchHrisTimeshift.d.ts +8 -0
  78. package/mcp-server/tools/hrisPatchHrisTimeshift.d.ts.map +1 -0
  79. package/mcp-server/tools/hrisPatchHrisTimeshift.js +52 -0
  80. package/mcp-server/tools/hrisPatchHrisTimeshift.js.map +1 -0
  81. package/mcp-server/tools/hrisRemoveHrisTimeshift.d.ts +8 -0
  82. package/mcp-server/tools/hrisRemoveHrisTimeshift.d.ts.map +1 -0
  83. package/mcp-server/tools/hrisRemoveHrisTimeshift.js +51 -0
  84. package/mcp-server/tools/hrisRemoveHrisTimeshift.js.map +1 -0
  85. package/mcp-server/tools/hrisUpdateHrisTimeshift.d.ts +8 -0
  86. package/mcp-server/tools/hrisUpdateHrisTimeshift.d.ts.map +1 -0
  87. package/mcp-server/tools/hrisUpdateHrisTimeshift.js +52 -0
  88. package/mcp-server/tools/hrisUpdateHrisTimeshift.js.map +1 -0
  89. package/mcp-server/tools/timeshiftCreateHrisTimeshift.d.ts +8 -0
  90. package/mcp-server/tools/timeshiftCreateHrisTimeshift.d.ts.map +1 -0
  91. package/mcp-server/tools/timeshiftCreateHrisTimeshift.js +52 -0
  92. package/mcp-server/tools/timeshiftCreateHrisTimeshift.js.map +1 -0
  93. package/mcp-server/tools/timeshiftGetHrisTimeshift.d.ts +8 -0
  94. package/mcp-server/tools/timeshiftGetHrisTimeshift.d.ts.map +1 -0
  95. package/mcp-server/tools/timeshiftGetHrisTimeshift.js +52 -0
  96. package/mcp-server/tools/timeshiftGetHrisTimeshift.js.map +1 -0
  97. package/mcp-server/tools/timeshiftListHrisTimeshifts.d.ts +8 -0
  98. package/mcp-server/tools/timeshiftListHrisTimeshifts.d.ts.map +1 -0
  99. package/mcp-server/tools/timeshiftListHrisTimeshifts.js +52 -0
  100. package/mcp-server/tools/timeshiftListHrisTimeshifts.js.map +1 -0
  101. package/mcp-server/tools/timeshiftPatchHrisTimeshift.d.ts +8 -0
  102. package/mcp-server/tools/timeshiftPatchHrisTimeshift.d.ts.map +1 -0
  103. package/mcp-server/tools/timeshiftPatchHrisTimeshift.js +52 -0
  104. package/mcp-server/tools/timeshiftPatchHrisTimeshift.js.map +1 -0
  105. package/mcp-server/tools/timeshiftRemoveHrisTimeshift.d.ts +8 -0
  106. package/mcp-server/tools/timeshiftRemoveHrisTimeshift.d.ts.map +1 -0
  107. package/mcp-server/tools/timeshiftRemoveHrisTimeshift.js +51 -0
  108. package/mcp-server/tools/timeshiftRemoveHrisTimeshift.js.map +1 -0
  109. package/mcp-server/tools/timeshiftUpdateHrisTimeshift.d.ts +8 -0
  110. package/mcp-server/tools/timeshiftUpdateHrisTimeshift.d.ts.map +1 -0
  111. package/mcp-server/tools/timeshiftUpdateHrisTimeshift.js +52 -0
  112. package/mcp-server/tools/timeshiftUpdateHrisTimeshift.js.map +1 -0
  113. package/package.json +1 -1
  114. package/sdk/hris.d.ts +24 -0
  115. package/sdk/hris.d.ts.map +1 -1
  116. package/sdk/hris.js +42 -0
  117. package/sdk/hris.js.map +1 -1
  118. package/sdk/models/operations/createhristimeshift.d.ts +45 -0
  119. package/sdk/models/operations/createhristimeshift.d.ts.map +1 -0
  120. package/sdk/models/operations/createhristimeshift.js +77 -0
  121. package/sdk/models/operations/createhristimeshift.js.map +1 -0
  122. package/sdk/models/operations/gethristimeshift.d.ts +47 -0
  123. package/sdk/models/operations/gethristimeshift.d.ts.map +1 -0
  124. package/sdk/models/operations/gethristimeshift.js +74 -0
  125. package/sdk/models/operations/gethristimeshift.js.map +1 -0
  126. package/sdk/models/operations/index.d.ts +6 -0
  127. package/sdk/models/operations/index.d.ts.map +1 -1
  128. package/sdk/models/operations/index.js +6 -0
  129. package/sdk/models/operations/index.js.map +1 -1
  130. package/sdk/models/operations/listhristimeoffs.d.ts +10 -0
  131. package/sdk/models/operations/listhristimeoffs.d.ts.map +1 -1
  132. package/sdk/models/operations/listhristimeoffs.js +8 -0
  133. package/sdk/models/operations/listhristimeoffs.js.map +1 -1
  134. package/sdk/models/operations/listhristimeshifts.d.ts +85 -0
  135. package/sdk/models/operations/listhristimeshifts.d.ts.map +1 -0
  136. package/sdk/models/operations/listhristimeshifts.js +106 -0
  137. package/sdk/models/operations/listhristimeshifts.js.map +1 -0
  138. package/sdk/models/operations/patchhristimeshift.d.ts +50 -0
  139. package/sdk/models/operations/patchhristimeshift.d.ts.map +1 -0
  140. package/sdk/models/operations/patchhristimeshift.js +79 -0
  141. package/sdk/models/operations/patchhristimeshift.js.map +1 -0
  142. package/sdk/models/operations/removehristimeshift.d.ts +66 -0
  143. package/sdk/models/operations/removehristimeshift.d.ts.map +1 -0
  144. package/sdk/models/operations/removehristimeshift.js +105 -0
  145. package/sdk/models/operations/removehristimeshift.js.map +1 -0
  146. package/sdk/models/operations/updatehristimeshift.d.ts +50 -0
  147. package/sdk/models/operations/updatehristimeshift.d.ts.map +1 -0
  148. package/sdk/models/operations/updatehristimeshift.js +79 -0
  149. package/sdk/models/operations/updatehristimeshift.js.map +1 -0
  150. package/sdk/models/shared/hristimeshift.d.ts +62 -0
  151. package/sdk/models/shared/hristimeshift.d.ts.map +1 -0
  152. package/sdk/models/shared/hristimeshift.js +122 -0
  153. package/sdk/models/shared/hristimeshift.js.map +1 -0
  154. package/sdk/models/shared/index.d.ts +1 -0
  155. package/sdk/models/shared/index.d.ts.map +1 -1
  156. package/sdk/models/shared/index.js +1 -0
  157. package/sdk/models/shared/index.js.map +1 -1
  158. package/sdk/sdk.d.ts +3 -0
  159. package/sdk/sdk.d.ts.map +1 -1
  160. package/sdk/sdk.js +4 -0
  161. package/sdk/sdk.js.map +1 -1
  162. package/sdk/timeshift.d.ts +30 -0
  163. package/sdk/timeshift.d.ts.map +1 -0
  164. package/sdk/timeshift.js +54 -0
  165. package/sdk/timeshift.js.map +1 -0
  166. package/src/funcs/hrisCreateHrisTimeshift.ts +165 -0
  167. package/src/funcs/hrisGetHrisTimeshift.ts +167 -0
  168. package/src/funcs/hrisListHrisTimeoffs.ts +2 -0
  169. package/src/funcs/hrisListHrisTimeshifts.ts +175 -0
  170. package/src/funcs/hrisPatchHrisTimeshift.ts +168 -0
  171. package/src/funcs/hrisRemoveHrisTimeshift.ts +170 -0
  172. package/src/funcs/hrisUpdateHrisTimeshift.ts +169 -0
  173. package/src/funcs/timeoffListHrisTimeoffs.ts +2 -0
  174. package/src/funcs/timeshiftCreateHrisTimeshift.ts +165 -0
  175. package/src/funcs/timeshiftGetHrisTimeshift.ts +167 -0
  176. package/src/funcs/timeshiftListHrisTimeshifts.ts +175 -0
  177. package/src/funcs/timeshiftPatchHrisTimeshift.ts +168 -0
  178. package/src/funcs/timeshiftRemoveHrisTimeshift.ts +170 -0
  179. package/src/funcs/timeshiftUpdateHrisTimeshift.ts +169 -0
  180. package/src/lib/config.ts +2 -2
  181. package/src/mcp-server/mcp-server.ts +1 -1
  182. package/src/mcp-server/server.ts +25 -1
  183. package/src/mcp-server/tools/hrisCreateHrisTimeshift.ts +35 -0
  184. package/src/mcp-server/tools/hrisGetHrisTimeshift.ts +35 -0
  185. package/src/mcp-server/tools/hrisListHrisTimeshifts.ts +35 -0
  186. package/src/mcp-server/tools/hrisPatchHrisTimeshift.ts +35 -0
  187. package/src/mcp-server/tools/hrisRemoveHrisTimeshift.ts +33 -0
  188. package/src/mcp-server/tools/hrisUpdateHrisTimeshift.ts +35 -0
  189. package/src/mcp-server/tools/timeshiftCreateHrisTimeshift.ts +35 -0
  190. package/src/mcp-server/tools/timeshiftGetHrisTimeshift.ts +35 -0
  191. package/src/mcp-server/tools/timeshiftListHrisTimeshifts.ts +35 -0
  192. package/src/mcp-server/tools/timeshiftPatchHrisTimeshift.ts +35 -0
  193. package/src/mcp-server/tools/timeshiftRemoveHrisTimeshift.ts +33 -0
  194. package/src/mcp-server/tools/timeshiftUpdateHrisTimeshift.ts +35 -0
  195. package/src/sdk/hris.ts +90 -0
  196. package/src/sdk/models/operations/createhristimeshift.ts +99 -0
  197. package/src/sdk/models/operations/gethristimeshift.ts +99 -0
  198. package/src/sdk/models/operations/index.ts +6 -0
  199. package/src/sdk/models/operations/listhristimeoffs.ts +18 -0
  200. package/src/sdk/models/operations/listhristimeshifts.ts +169 -0
  201. package/src/sdk/models/operations/patchhristimeshift.ts +106 -0
  202. package/src/sdk/models/operations/removehristimeshift.ts +153 -0
  203. package/src/sdk/models/operations/updatehristimeshift.ts +106 -0
  204. package/src/sdk/models/shared/hristimeshift.ts +158 -0
  205. package/src/sdk/models/shared/index.ts +1 -0
  206. package/src/sdk/sdk.ts +6 -0
  207. package/src/sdk/timeshift.ts +100 -0
package/src/sdk/hris.ts CHANGED
@@ -7,6 +7,7 @@ import { hrisCreateHrisDevice } from "../funcs/hrisCreateHrisDevice.js";
7
7
  import { hrisCreateHrisEmployee } from "../funcs/hrisCreateHrisEmployee.js";
8
8
  import { hrisCreateHrisGroup } from "../funcs/hrisCreateHrisGroup.js";
9
9
  import { hrisCreateHrisLocation } from "../funcs/hrisCreateHrisLocation.js";
10
+ import { hrisCreateHrisTimeshift } from "../funcs/hrisCreateHrisTimeshift.js";
10
11
  import { hrisGetHrisCompany } from "../funcs/hrisGetHrisCompany.js";
11
12
  import { hrisGetHrisDevice } from "../funcs/hrisGetHrisDevice.js";
12
13
  import { hrisGetHrisEmployee } from "../funcs/hrisGetHrisEmployee.js";
@@ -14,6 +15,7 @@ import { hrisGetHrisGroup } from "../funcs/hrisGetHrisGroup.js";
14
15
  import { hrisGetHrisLocation } from "../funcs/hrisGetHrisLocation.js";
15
16
  import { hrisGetHrisPayslip } from "../funcs/hrisGetHrisPayslip.js";
16
17
  import { hrisGetHrisTimeoff } from "../funcs/hrisGetHrisTimeoff.js";
18
+ import { hrisGetHrisTimeshift } from "../funcs/hrisGetHrisTimeshift.js";
17
19
  import { hrisListHrisCompanies } from "../funcs/hrisListHrisCompanies.js";
18
20
  import { hrisListHrisDevices } from "../funcs/hrisListHrisDevices.js";
19
21
  import { hrisListHrisEmployees } from "../funcs/hrisListHrisEmployees.js";
@@ -21,21 +23,25 @@ import { hrisListHrisGroups } from "../funcs/hrisListHrisGroups.js";
21
23
  import { hrisListHrisLocations } from "../funcs/hrisListHrisLocations.js";
22
24
  import { hrisListHrisPayslips } from "../funcs/hrisListHrisPayslips.js";
23
25
  import { hrisListHrisTimeoffs } from "../funcs/hrisListHrisTimeoffs.js";
26
+ import { hrisListHrisTimeshifts } from "../funcs/hrisListHrisTimeshifts.js";
24
27
  import { hrisPatchHrisCompany } from "../funcs/hrisPatchHrisCompany.js";
25
28
  import { hrisPatchHrisDevice } from "../funcs/hrisPatchHrisDevice.js";
26
29
  import { hrisPatchHrisEmployee } from "../funcs/hrisPatchHrisEmployee.js";
27
30
  import { hrisPatchHrisGroup } from "../funcs/hrisPatchHrisGroup.js";
28
31
  import { hrisPatchHrisLocation } from "../funcs/hrisPatchHrisLocation.js";
32
+ import { hrisPatchHrisTimeshift } from "../funcs/hrisPatchHrisTimeshift.js";
29
33
  import { hrisRemoveHrisCompany } from "../funcs/hrisRemoveHrisCompany.js";
30
34
  import { hrisRemoveHrisDevice } from "../funcs/hrisRemoveHrisDevice.js";
31
35
  import { hrisRemoveHrisEmployee } from "../funcs/hrisRemoveHrisEmployee.js";
32
36
  import { hrisRemoveHrisGroup } from "../funcs/hrisRemoveHrisGroup.js";
33
37
  import { hrisRemoveHrisLocation } from "../funcs/hrisRemoveHrisLocation.js";
38
+ import { hrisRemoveHrisTimeshift } from "../funcs/hrisRemoveHrisTimeshift.js";
34
39
  import { hrisUpdateHrisCompany } from "../funcs/hrisUpdateHrisCompany.js";
35
40
  import { hrisUpdateHrisDevice } from "../funcs/hrisUpdateHrisDevice.js";
36
41
  import { hrisUpdateHrisEmployee } from "../funcs/hrisUpdateHrisEmployee.js";
37
42
  import { hrisUpdateHrisGroup } from "../funcs/hrisUpdateHrisGroup.js";
38
43
  import { hrisUpdateHrisLocation } from "../funcs/hrisUpdateHrisLocation.js";
44
+ import { hrisUpdateHrisTimeshift } from "../funcs/hrisUpdateHrisTimeshift.js";
39
45
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
40
46
  import * as operations from "./models/operations/index.js";
41
47
  import * as shared from "./models/shared/index.js";
@@ -112,6 +118,20 @@ export class Hris extends ClientSDK {
112
118
  ));
113
119
  }
114
120
 
121
+ /**
122
+ * Create a timeshift
123
+ */
124
+ async createHrisTimeshift(
125
+ request: operations.CreateHrisTimeshiftRequest,
126
+ options?: RequestOptions,
127
+ ): Promise<shared.HrisTimeshift> {
128
+ return unwrapAsync(hrisCreateHrisTimeshift(
129
+ this,
130
+ request,
131
+ options,
132
+ ));
133
+ }
134
+
115
135
  /**
116
136
  * Retrieve a company
117
137
  */
@@ -210,6 +230,20 @@ export class Hris extends ClientSDK {
210
230
  ));
211
231
  }
212
232
 
233
+ /**
234
+ * Retrieve a timeshift
235
+ */
236
+ async getHrisTimeshift(
237
+ request: operations.GetHrisTimeshiftRequest,
238
+ options?: RequestOptions,
239
+ ): Promise<shared.HrisTimeshift> {
240
+ return unwrapAsync(hrisGetHrisTimeshift(
241
+ this,
242
+ request,
243
+ options,
244
+ ));
245
+ }
246
+
213
247
  /**
214
248
  * List all companies
215
249
  */
@@ -308,6 +342,20 @@ export class Hris extends ClientSDK {
308
342
  ));
309
343
  }
310
344
 
345
+ /**
346
+ * List all timeshifts
347
+ */
348
+ async listHrisTimeshifts(
349
+ request: operations.ListHrisTimeshiftsRequest,
350
+ options?: RequestOptions,
351
+ ): Promise<Array<shared.HrisTimeshift>> {
352
+ return unwrapAsync(hrisListHrisTimeshifts(
353
+ this,
354
+ request,
355
+ options,
356
+ ));
357
+ }
358
+
311
359
  /**
312
360
  * Update a company
313
361
  */
@@ -378,6 +426,20 @@ export class Hris extends ClientSDK {
378
426
  ));
379
427
  }
380
428
 
429
+ /**
430
+ * Update a timeshift
431
+ */
432
+ async patchHrisTimeshift(
433
+ request: operations.PatchHrisTimeshiftRequest,
434
+ options?: RequestOptions,
435
+ ): Promise<shared.HrisTimeshift> {
436
+ return unwrapAsync(hrisPatchHrisTimeshift(
437
+ this,
438
+ request,
439
+ options,
440
+ ));
441
+ }
442
+
381
443
  /**
382
444
  * Remove a company
383
445
  */
@@ -448,6 +510,20 @@ export class Hris extends ClientSDK {
448
510
  ));
449
511
  }
450
512
 
513
+ /**
514
+ * Remove a timeshift
515
+ */
516
+ async removeHrisTimeshift(
517
+ request: operations.RemoveHrisTimeshiftRequest,
518
+ options?: RequestOptions,
519
+ ): Promise<operations.RemoveHrisTimeshiftResponse | undefined> {
520
+ return unwrapAsync(hrisRemoveHrisTimeshift(
521
+ this,
522
+ request,
523
+ options,
524
+ ));
525
+ }
526
+
451
527
  /**
452
528
  * Update a company
453
529
  */
@@ -517,4 +593,18 @@ export class Hris extends ClientSDK {
517
593
  options,
518
594
  ));
519
595
  }
596
+
597
+ /**
598
+ * Update a timeshift
599
+ */
600
+ async updateHrisTimeshift(
601
+ request: operations.UpdateHrisTimeshiftRequest,
602
+ options?: RequestOptions,
603
+ ): Promise<shared.HrisTimeshift> {
604
+ return unwrapAsync(hrisUpdateHrisTimeshift(
605
+ this,
606
+ request,
607
+ options,
608
+ ));
609
+ }
520
610
  }
@@ -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 CreateHrisTimeshiftRequest = {
13
+ hrisTimeshift: shared.HrisTimeshift;
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
+ * 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
24
+ */
25
+ raw?: string | undefined;
26
+ };
27
+
28
+ /** @internal */
29
+ export const CreateHrisTimeshiftRequest$inboundSchema: z.ZodType<
30
+ CreateHrisTimeshiftRequest,
31
+ z.ZodTypeDef,
32
+ unknown
33
+ > = z.object({
34
+ HrisTimeshift: shared.HrisTimeshift$inboundSchema,
35
+ connection_id: z.string(),
36
+ fields: z.array(z.string()).optional(),
37
+ raw: z.string().optional(),
38
+ }).transform((v) => {
39
+ return remap$(v, {
40
+ "HrisTimeshift": "hrisTimeshift",
41
+ "connection_id": "connectionId",
42
+ });
43
+ });
44
+
45
+ /** @internal */
46
+ export type CreateHrisTimeshiftRequest$Outbound = {
47
+ HrisTimeshift: shared.HrisTimeshift$Outbound;
48
+ connection_id: string;
49
+ fields?: Array<string> | undefined;
50
+ raw?: string | undefined;
51
+ };
52
+
53
+ /** @internal */
54
+ export const CreateHrisTimeshiftRequest$outboundSchema: z.ZodType<
55
+ CreateHrisTimeshiftRequest$Outbound,
56
+ z.ZodTypeDef,
57
+ CreateHrisTimeshiftRequest
58
+ > = z.object({
59
+ hrisTimeshift: shared.HrisTimeshift$outboundSchema,
60
+ connectionId: z.string(),
61
+ fields: z.array(z.string()).optional(),
62
+ raw: z.string().optional(),
63
+ }).transform((v) => {
64
+ return remap$(v, {
65
+ hrisTimeshift: "HrisTimeshift",
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 CreateHrisTimeshiftRequest$ {
75
+ /** @deprecated use `CreateHrisTimeshiftRequest$inboundSchema` instead. */
76
+ export const inboundSchema = CreateHrisTimeshiftRequest$inboundSchema;
77
+ /** @deprecated use `CreateHrisTimeshiftRequest$outboundSchema` instead. */
78
+ export const outboundSchema = CreateHrisTimeshiftRequest$outboundSchema;
79
+ /** @deprecated use `CreateHrisTimeshiftRequest$Outbound` instead. */
80
+ export type Outbound = CreateHrisTimeshiftRequest$Outbound;
81
+ }
82
+
83
+ export function createHrisTimeshiftRequestToJSON(
84
+ createHrisTimeshiftRequest: CreateHrisTimeshiftRequest,
85
+ ): string {
86
+ return JSON.stringify(
87
+ CreateHrisTimeshiftRequest$outboundSchema.parse(createHrisTimeshiftRequest),
88
+ );
89
+ }
90
+
91
+ export function createHrisTimeshiftRequestFromJSON(
92
+ jsonString: string,
93
+ ): SafeParseResult<CreateHrisTimeshiftRequest, SDKValidationError> {
94
+ return safeParse(
95
+ jsonString,
96
+ (x) => CreateHrisTimeshiftRequest$inboundSchema.parse(JSON.parse(x)),
97
+ `Failed to parse 'CreateHrisTimeshiftRequest' from JSON`,
98
+ );
99
+ }
@@ -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
+
11
+ export type GetHrisTimeshiftRequest = {
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 Timeshift
22
+ */
23
+ id: string;
24
+ /**
25
+ * 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
26
+ */
27
+ raw?: string | undefined;
28
+ };
29
+
30
+ /** @internal */
31
+ export const GetHrisTimeshiftRequest$inboundSchema: z.ZodType<
32
+ GetHrisTimeshiftRequest,
33
+ z.ZodTypeDef,
34
+ unknown
35
+ > = z.object({
36
+ connection_id: z.string(),
37
+ fields: z.array(z.string()).optional(),
38
+ id: z.string(),
39
+ raw: z.string().optional(),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ "connection_id": "connectionId",
43
+ });
44
+ });
45
+
46
+ /** @internal */
47
+ export type GetHrisTimeshiftRequest$Outbound = {
48
+ connection_id: string;
49
+ fields?: Array<string> | undefined;
50
+ id: string;
51
+ raw?: string | undefined;
52
+ };
53
+
54
+ /** @internal */
55
+ export const GetHrisTimeshiftRequest$outboundSchema: z.ZodType<
56
+ GetHrisTimeshiftRequest$Outbound,
57
+ z.ZodTypeDef,
58
+ GetHrisTimeshiftRequest
59
+ > = z.object({
60
+ connectionId: z.string(),
61
+ fields: z.array(z.string()).optional(),
62
+ id: z.string(),
63
+ raw: z.string().optional(),
64
+ }).transform((v) => {
65
+ return remap$(v, {
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 GetHrisTimeshiftRequest$ {
75
+ /** @deprecated use `GetHrisTimeshiftRequest$inboundSchema` instead. */
76
+ export const inboundSchema = GetHrisTimeshiftRequest$inboundSchema;
77
+ /** @deprecated use `GetHrisTimeshiftRequest$outboundSchema` instead. */
78
+ export const outboundSchema = GetHrisTimeshiftRequest$outboundSchema;
79
+ /** @deprecated use `GetHrisTimeshiftRequest$Outbound` instead. */
80
+ export type Outbound = GetHrisTimeshiftRequest$Outbound;
81
+ }
82
+
83
+ export function getHrisTimeshiftRequestToJSON(
84
+ getHrisTimeshiftRequest: GetHrisTimeshiftRequest,
85
+ ): string {
86
+ return JSON.stringify(
87
+ GetHrisTimeshiftRequest$outboundSchema.parse(getHrisTimeshiftRequest),
88
+ );
89
+ }
90
+
91
+ export function getHrisTimeshiftRequestFromJSON(
92
+ jsonString: string,
93
+ ): SafeParseResult<GetHrisTimeshiftRequest, SDKValidationError> {
94
+ return safeParse(
95
+ jsonString,
96
+ (x) => GetHrisTimeshiftRequest$inboundSchema.parse(JSON.parse(x)),
97
+ `Failed to parse 'GetHrisTimeshiftRequest' from JSON`,
98
+ );
99
+ }
@@ -36,6 +36,7 @@ export * from "./createhrisdevice.js";
36
36
  export * from "./createhrisemployee.js";
37
37
  export * from "./createhrisgroup.js";
38
38
  export * from "./createhrislocation.js";
39
+ export * from "./createhristimeshift.js";
39
40
  export * from "./createkmscomment.js";
40
41
  export * from "./createkmspage.js";
41
42
  export * from "./createkmsspace.js";
@@ -109,6 +110,7 @@ export * from "./gethrisgroup.js";
109
110
  export * from "./gethrislocation.js";
110
111
  export * from "./gethrispayslip.js";
111
112
  export * from "./gethristimeoff.js";
113
+ export * from "./gethristimeshift.js";
112
114
  export * from "./getkmscomment.js";
113
115
  export * from "./getkmspage.js";
114
116
  export * from "./getkmsspace.js";
@@ -192,6 +194,7 @@ export * from "./listhrisgroups.js";
192
194
  export * from "./listhrislocations.js";
193
195
  export * from "./listhrispayslips.js";
194
196
  export * from "./listhristimeoffs.js";
197
+ export * from "./listhristimeshifts.js";
195
198
  export * from "./listkmscomments.js";
196
199
  export * from "./listkmspages.js";
197
200
  export * from "./listkmsspaces.js";
@@ -267,6 +270,7 @@ export * from "./patchhrisdevice.js";
267
270
  export * from "./patchhrisemployee.js";
268
271
  export * from "./patchhrisgroup.js";
269
272
  export * from "./patchhrislocation.js";
273
+ export * from "./patchhristimeshift.js";
270
274
  export * from "./patchkmscomment.js";
271
275
  export * from "./patchkmspage.js";
272
276
  export * from "./patchkmsspace.js";
@@ -336,6 +340,7 @@ export * from "./removehrisdevice.js";
336
340
  export * from "./removehrisemployee.js";
337
341
  export * from "./removehrisgroup.js";
338
342
  export * from "./removehrislocation.js";
343
+ export * from "./removehristimeshift.js";
339
344
  export * from "./removekmscomment.js";
340
345
  export * from "./removekmspage.js";
341
346
  export * from "./removekmsspace.js";
@@ -403,6 +408,7 @@ export * from "./updatehrisdevice.js";
403
408
  export * from "./updatehrisemployee.js";
404
409
  export * from "./updatehrisgroup.js";
405
410
  export * from "./updatehrislocation.js";
411
+ export * from "./updatehristimeshift.js";
406
412
  export * from "./updatekmscomment.js";
407
413
  export * from "./updatekmspage.js";
408
414
  export * from "./updatekmsspace.js";
@@ -17,6 +17,10 @@ export type ListHrisTimeoffsRequest = {
17
17
  * ID of the connection
18
18
  */
19
19
  connectionId: string;
20
+ /**
21
+ * The end date to filter by
22
+ */
23
+ endLe?: string | undefined;
20
24
  /**
21
25
  * Comma-delimited fields to return
22
26
  */
@@ -33,6 +37,10 @@ export type ListHrisTimeoffsRequest = {
33
37
  */
34
38
  raw?: string | undefined;
35
39
  sort?: string | undefined;
40
+ /**
41
+ * The start date to filter by
42
+ */
43
+ startGte?: string | undefined;
36
44
  /**
37
45
  * Return only results whose updated date is equal or greater to this value
38
46
  */
@@ -51,6 +59,7 @@ export const ListHrisTimeoffsRequest$inboundSchema: z.ZodType<
51
59
  > = z.object({
52
60
  company_id: z.string().optional(),
53
61
  connection_id: z.string(),
62
+ end_le: z.string().optional(),
54
63
  fields: z.array(z.string()).optional(),
55
64
  limit: z.number().optional(),
56
65
  offset: z.number().optional(),
@@ -58,12 +67,15 @@ export const ListHrisTimeoffsRequest$inboundSchema: z.ZodType<
58
67
  query: z.string().optional(),
59
68
  raw: z.string().optional(),
60
69
  sort: z.string().optional(),
70
+ start_gte: z.string().optional(),
61
71
  updated_gte: z.string().optional(),
62
72
  user_id: z.string().optional(),
63
73
  }).transform((v) => {
64
74
  return remap$(v, {
65
75
  "company_id": "companyId",
66
76
  "connection_id": "connectionId",
77
+ "end_le": "endLe",
78
+ "start_gte": "startGte",
67
79
  "updated_gte": "updatedGte",
68
80
  "user_id": "userId",
69
81
  });
@@ -73,6 +85,7 @@ export const ListHrisTimeoffsRequest$inboundSchema: z.ZodType<
73
85
  export type ListHrisTimeoffsRequest$Outbound = {
74
86
  company_id?: string | undefined;
75
87
  connection_id: string;
88
+ end_le?: string | undefined;
76
89
  fields?: Array<string> | undefined;
77
90
  limit?: number | undefined;
78
91
  offset?: number | undefined;
@@ -80,6 +93,7 @@ export type ListHrisTimeoffsRequest$Outbound = {
80
93
  query?: string | undefined;
81
94
  raw?: string | undefined;
82
95
  sort?: string | undefined;
96
+ start_gte?: string | undefined;
83
97
  updated_gte?: string | undefined;
84
98
  user_id?: string | undefined;
85
99
  };
@@ -92,6 +106,7 @@ export const ListHrisTimeoffsRequest$outboundSchema: z.ZodType<
92
106
  > = z.object({
93
107
  companyId: z.string().optional(),
94
108
  connectionId: z.string(),
109
+ endLe: z.string().optional(),
95
110
  fields: z.array(z.string()).optional(),
96
111
  limit: z.number().optional(),
97
112
  offset: z.number().optional(),
@@ -99,12 +114,15 @@ export const ListHrisTimeoffsRequest$outboundSchema: z.ZodType<
99
114
  query: z.string().optional(),
100
115
  raw: z.string().optional(),
101
116
  sort: z.string().optional(),
117
+ startGte: z.string().optional(),
102
118
  updatedGte: z.string().optional(),
103
119
  userId: z.string().optional(),
104
120
  }).transform((v) => {
105
121
  return remap$(v, {
106
122
  companyId: "company_id",
107
123
  connectionId: "connection_id",
124
+ endLe: "end_le",
125
+ startGte: "start_gte",
108
126
  updatedGte: "updated_gte",
109
127
  userId: "user_id",
110
128
  });
@@ -0,0 +1,169 @@
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 ListHrisTimeshiftsRequest = {
12
+ /**
13
+ * The company ID to filter by
14
+ */
15
+ companyId?: string | undefined;
16
+ /**
17
+ * ID of the connection
18
+ */
19
+ connectionId: string;
20
+ /**
21
+ * The end date to filter by
22
+ */
23
+ endLe?: string | undefined;
24
+ /**
25
+ * Comma-delimited fields to return
26
+ */
27
+ fields?: Array<string> | undefined;
28
+ limit?: number | undefined;
29
+ /**
30
+ * The location ID to filter by
31
+ */
32
+ locationId?: string | undefined;
33
+ offset?: number | undefined;
34
+ order?: string | undefined;
35
+ /**
36
+ * Query string to search. eg. email address or name
37
+ */
38
+ query?: string | undefined;
39
+ /**
40
+ * 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
41
+ */
42
+ raw?: string | undefined;
43
+ sort?: string | undefined;
44
+ /**
45
+ * The start date to filter by
46
+ */
47
+ startGte?: string | undefined;
48
+ /**
49
+ * Return only results whose updated date is equal or greater to this value
50
+ */
51
+ updatedGte?: string | undefined;
52
+ /**
53
+ * The user/employee ID to filter by
54
+ */
55
+ userId?: string | undefined;
56
+ };
57
+
58
+ /** @internal */
59
+ export const ListHrisTimeshiftsRequest$inboundSchema: z.ZodType<
60
+ ListHrisTimeshiftsRequest,
61
+ z.ZodTypeDef,
62
+ unknown
63
+ > = z.object({
64
+ company_id: z.string().optional(),
65
+ connection_id: z.string(),
66
+ end_le: z.string().optional(),
67
+ fields: z.array(z.string()).optional(),
68
+ limit: z.number().optional(),
69
+ location_id: z.string().optional(),
70
+ offset: z.number().optional(),
71
+ order: z.string().optional(),
72
+ query: z.string().optional(),
73
+ raw: z.string().optional(),
74
+ sort: z.string().optional(),
75
+ start_gte: z.string().optional(),
76
+ updated_gte: z.string().optional(),
77
+ user_id: z.string().optional(),
78
+ }).transform((v) => {
79
+ return remap$(v, {
80
+ "company_id": "companyId",
81
+ "connection_id": "connectionId",
82
+ "end_le": "endLe",
83
+ "location_id": "locationId",
84
+ "start_gte": "startGte",
85
+ "updated_gte": "updatedGte",
86
+ "user_id": "userId",
87
+ });
88
+ });
89
+
90
+ /** @internal */
91
+ export type ListHrisTimeshiftsRequest$Outbound = {
92
+ company_id?: string | undefined;
93
+ connection_id: string;
94
+ end_le?: string | undefined;
95
+ fields?: Array<string> | undefined;
96
+ limit?: number | undefined;
97
+ location_id?: string | undefined;
98
+ offset?: number | undefined;
99
+ order?: string | undefined;
100
+ query?: string | undefined;
101
+ raw?: string | undefined;
102
+ sort?: string | undefined;
103
+ start_gte?: string | undefined;
104
+ updated_gte?: string | undefined;
105
+ user_id?: string | undefined;
106
+ };
107
+
108
+ /** @internal */
109
+ export const ListHrisTimeshiftsRequest$outboundSchema: z.ZodType<
110
+ ListHrisTimeshiftsRequest$Outbound,
111
+ z.ZodTypeDef,
112
+ ListHrisTimeshiftsRequest
113
+ > = z.object({
114
+ companyId: z.string().optional(),
115
+ connectionId: z.string(),
116
+ endLe: z.string().optional(),
117
+ fields: z.array(z.string()).optional(),
118
+ limit: z.number().optional(),
119
+ locationId: z.string().optional(),
120
+ offset: z.number().optional(),
121
+ order: z.string().optional(),
122
+ query: z.string().optional(),
123
+ raw: z.string().optional(),
124
+ sort: z.string().optional(),
125
+ startGte: z.string().optional(),
126
+ updatedGte: z.string().optional(),
127
+ userId: z.string().optional(),
128
+ }).transform((v) => {
129
+ return remap$(v, {
130
+ companyId: "company_id",
131
+ connectionId: "connection_id",
132
+ endLe: "end_le",
133
+ locationId: "location_id",
134
+ startGte: "start_gte",
135
+ updatedGte: "updated_gte",
136
+ userId: "user_id",
137
+ });
138
+ });
139
+
140
+ /**
141
+ * @internal
142
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
143
+ */
144
+ export namespace ListHrisTimeshiftsRequest$ {
145
+ /** @deprecated use `ListHrisTimeshiftsRequest$inboundSchema` instead. */
146
+ export const inboundSchema = ListHrisTimeshiftsRequest$inboundSchema;
147
+ /** @deprecated use `ListHrisTimeshiftsRequest$outboundSchema` instead. */
148
+ export const outboundSchema = ListHrisTimeshiftsRequest$outboundSchema;
149
+ /** @deprecated use `ListHrisTimeshiftsRequest$Outbound` instead. */
150
+ export type Outbound = ListHrisTimeshiftsRequest$Outbound;
151
+ }
152
+
153
+ export function listHrisTimeshiftsRequestToJSON(
154
+ listHrisTimeshiftsRequest: ListHrisTimeshiftsRequest,
155
+ ): string {
156
+ return JSON.stringify(
157
+ ListHrisTimeshiftsRequest$outboundSchema.parse(listHrisTimeshiftsRequest),
158
+ );
159
+ }
160
+
161
+ export function listHrisTimeshiftsRequestFromJSON(
162
+ jsonString: string,
163
+ ): SafeParseResult<ListHrisTimeshiftsRequest, SDKValidationError> {
164
+ return safeParse(
165
+ jsonString,
166
+ (x) => ListHrisTimeshiftsRequest$inboundSchema.parse(JSON.parse(x)),
167
+ `Failed to parse 'ListHrisTimeshiftsRequest' from JSON`,
168
+ );
169
+ }