@unified-api/typescript-sdk 2.79.0 → 2.80.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 (165) hide show
  1. package/examples/package-lock.json +1 -1
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +3 -3
  4. package/lib/config.js +3 -3
  5. package/package.json +1 -1
  6. package/sdk/models/shared/calendareventrecurrence.d.ts +2 -5
  7. package/sdk/models/shared/calendareventrecurrence.d.ts.map +1 -1
  8. package/sdk/models/shared/calendareventrecurrence.js +2 -2
  9. package/sdk/models/shared/calendareventrecurrence.js.map +1 -1
  10. package/sdk/models/shared/index.d.ts +5 -0
  11. package/sdk/models/shared/index.d.ts.map +1 -1
  12. package/sdk/models/shared/index.js +5 -0
  13. package/sdk/models/shared/index.js.map +1 -1
  14. package/sdk/models/shared/integration.d.ts +3 -2
  15. package/sdk/models/shared/integration.d.ts.map +1 -1
  16. package/sdk/models/shared/integration.js +3 -2
  17. package/sdk/models/shared/integration.js.map +1 -1
  18. package/sdk/models/shared/integrationsupport.d.ts +2410 -0
  19. package/sdk/models/shared/integrationsupport.d.ts.map +1 -0
  20. package/sdk/models/shared/integrationsupport.js +3440 -0
  21. package/sdk/models/shared/integrationsupport.js.map +1 -0
  22. package/sdk/models/shared/kmspage.d.ts +2 -0
  23. package/sdk/models/shared/kmspage.d.ts.map +1 -1
  24. package/sdk/models/shared/kmspage.js +4 -0
  25. package/sdk/models/shared/kmspage.js.map +1 -1
  26. package/sdk/models/shared/propertyintegrationsupportwebhookevents.d.ts +36 -0
  27. package/sdk/models/shared/propertyintegrationsupportwebhookevents.d.ts.map +1 -0
  28. package/sdk/models/shared/propertyintegrationsupportwebhookevents.js +79 -0
  29. package/sdk/models/shared/propertyintegrationsupportwebhookevents.js.map +1 -0
  30. package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.d.ts +22 -0
  31. package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.d.ts.map +1 -0
  32. package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.js +68 -0
  33. package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.js.map +1 -0
  34. package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.d.ts +22 -0
  35. package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.d.ts.map +1 -0
  36. package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.js +68 -0
  37. package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.js.map +1 -0
  38. package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.d.ts +22 -0
  39. package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.d.ts.map +1 -0
  40. package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.js +68 -0
  41. package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.js.map +1 -0
  42. package/sdk/models/shared/webhook.d.ts +2 -2
  43. package/sdk/models/shared/webhook.d.ts.map +1 -1
  44. package/sdk/models/shared/webhook.js +2 -2
  45. package/sdk/models/shared/webhook.js.map +1 -1
  46. package/src/lib/config.ts +3 -3
  47. package/src/sdk/models/shared/calendareventrecurrence.ts +4 -7
  48. package/src/sdk/models/shared/index.ts +5 -0
  49. package/src/sdk/models/shared/integration.ts +10 -4
  50. package/src/sdk/models/shared/integrationsupport.ts +4969 -0
  51. package/src/sdk/models/shared/kmspage.ts +6 -0
  52. package/src/sdk/models/shared/propertyintegrationsupportwebhookevents.ts +109 -0
  53. package/src/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.ts +54 -0
  54. package/src/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.ts +54 -0
  55. package/src/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.ts +54 -0
  56. package/src/sdk/models/shared/webhook.ts +4 -4
  57. package/docs/sdks/account/README.md +0 -489
  58. package/docs/sdks/accounting/README.md +0 -7221
  59. package/docs/sdks/activity/README.md +0 -489
  60. package/docs/sdks/apicall/README.md +0 -159
  61. package/docs/sdks/application/README.md +0 -489
  62. package/docs/sdks/applicationstatus/README.md +0 -85
  63. package/docs/sdks/ats/README.md +0 -3953
  64. package/docs/sdks/auth/README.md +0 -167
  65. package/docs/sdks/balancesheet/README.md +0 -165
  66. package/docs/sdks/bill/README.md +0 -489
  67. package/docs/sdks/branch/README.md +0 -507
  68. package/docs/sdks/busy/README.md +0 -85
  69. package/docs/sdks/calendar/README.md +0 -1713
  70. package/docs/sdks/call/README.md +0 -85
  71. package/docs/sdks/candidate/README.md +0 -489
  72. package/docs/sdks/cashflow/README.md +0 -165
  73. package/docs/sdks/category/README.md +0 -971
  74. package/docs/sdks/change/README.md +0 -165
  75. package/docs/sdks/channel/README.md +0 -165
  76. package/docs/sdks/class/README.md +0 -507
  77. package/docs/sdks/collection/README.md +0 -501
  78. package/docs/sdks/comment/README.md +0 -1495
  79. package/docs/sdks/commerce/README.md +0 -2465
  80. package/docs/sdks/commit/README.md +0 -501
  81. package/docs/sdks/company/README.md +0 -1543
  82. package/docs/sdks/connection/README.md +0 -513
  83. package/docs/sdks/contact/README.md +0 -1453
  84. package/docs/sdks/course/README.md +0 -501
  85. package/docs/sdks/creditmemo/README.md +0 -489
  86. package/docs/sdks/crm/README.md +0 -2899
  87. package/docs/sdks/customer/README.md +0 -489
  88. package/docs/sdks/deal/README.md +0 -489
  89. package/docs/sdks/device/README.md +0 -501
  90. package/docs/sdks/document/README.md +0 -489
  91. package/docs/sdks/embedding/README.md +0 -87
  92. package/docs/sdks/employee/README.md +0 -489
  93. package/docs/sdks/enrich/README.md +0 -163
  94. package/docs/sdks/event/README.md +0 -971
  95. package/docs/sdks/expense/README.md +0 -489
  96. package/docs/sdks/file/README.md +0 -489
  97. package/docs/sdks/genai/README.md +0 -325
  98. package/docs/sdks/group/README.md +0 -983
  99. package/docs/sdks/hris/README.md +0 -3251
  100. package/docs/sdks/instructor/README.md +0 -489
  101. package/docs/sdks/integration/README.md +0 -239
  102. package/docs/sdks/interview/README.md +0 -489
  103. package/docs/sdks/inventory/README.md +0 -501
  104. package/docs/sdks/invoice/README.md +0 -489
  105. package/docs/sdks/issue/README.md +0 -159
  106. package/docs/sdks/item/README.md +0 -489
  107. package/docs/sdks/job/README.md +0 -489
  108. package/docs/sdks/journal/README.md +0 -489
  109. package/docs/sdks/kms/README.md +0 -1495
  110. package/docs/sdks/lead/README.md +0 -489
  111. package/docs/sdks/link/README.md +0 -983
  112. package/docs/sdks/list/README.md +0 -489
  113. package/docs/sdks/lms/README.md +0 -1965
  114. package/docs/sdks/location/README.md +0 -983
  115. package/docs/sdks/login/README.md +0 -87
  116. package/docs/sdks/martech/README.md +0 -971
  117. package/docs/sdks/member/README.md +0 -489
  118. package/docs/sdks/message/README.md +0 -489
  119. package/docs/sdks/messaging/README.md +0 -647
  120. package/docs/sdks/metadata/README.md +0 -507
  121. package/docs/sdks/model/README.md +0 -165
  122. package/docs/sdks/note/README.md +0 -489
  123. package/docs/sdks/order/README.md +0 -489
  124. package/docs/sdks/organization/README.md +0 -647
  125. package/docs/sdks/package/README.md +0 -165
  126. package/docs/sdks/page/README.md +0 -507
  127. package/docs/sdks/passthrough/README.md +0 -647
  128. package/docs/sdks/payment/README.md +0 -1769
  129. package/docs/sdks/payout/README.md +0 -165
  130. package/docs/sdks/payslip/README.md +0 -165
  131. package/docs/sdks/person/README.md +0 -85
  132. package/docs/sdks/pipeline/README.md +0 -489
  133. package/docs/sdks/profitloss/README.md +0 -165
  134. package/docs/sdks/project/README.md +0 -489
  135. package/docs/sdks/prompt/README.md +0 -87
  136. package/docs/sdks/pullrequest/README.md +0 -489
  137. package/docs/sdks/purchaseorder/README.md +0 -489
  138. package/docs/sdks/recording/README.md +0 -647
  139. package/docs/sdks/refund/README.md +0 -165
  140. package/docs/sdks/repo/README.md +0 -2459
  141. package/docs/sdks/report/README.md +0 -165
  142. package/docs/sdks/repository/README.md +0 -501
  143. package/docs/sdks/request/README.md +0 -489
  144. package/docs/sdks/review/README.md +0 -501
  145. package/docs/sdks/salesorder/README.md +0 -489
  146. package/docs/sdks/scim/README.md +0 -983
  147. package/docs/sdks/scorecard/README.md +0 -489
  148. package/docs/sdks/space/README.md +0 -501
  149. package/docs/sdks/storage/README.md +0 -489
  150. package/docs/sdks/student/README.md +0 -489
  151. package/docs/sdks/subscription/README.md +0 -489
  152. package/docs/sdks/task/README.md +0 -1629
  153. package/docs/sdks/taxrate/README.md +0 -489
  154. package/docs/sdks/ticket/README.md +0 -489
  155. package/docs/sdks/ticketing/README.md +0 -1935
  156. package/docs/sdks/timeoff/README.md +0 -165
  157. package/docs/sdks/timeshift/README.md +0 -513
  158. package/docs/sdks/transaction/README.md +0 -489
  159. package/docs/sdks/trialbalance/README.md +0 -165
  160. package/docs/sdks/uc/README.md +0 -1543
  161. package/docs/sdks/unified/README.md +0 -1697
  162. package/docs/sdks/user/README.md +0 -489
  163. package/docs/sdks/verification/README.md +0 -647
  164. package/docs/sdks/webhook/README.md +0 -655
  165. package/examples/README.md +0 -31
@@ -1,513 +0,0 @@
1
- # Timeshift
2
- (*timeshift*)
3
-
4
- ## Overview
5
-
6
- ### Available Operations
7
-
8
- * [createHrisTimeshift](#createhristimeshift) - Create a timeshift
9
- * [getHrisTimeshift](#gethristimeshift) - Retrieve a timeshift
10
- * [listHrisTimeshifts](#listhristimeshifts) - List all timeshifts
11
- * [patchHrisTimeshift](#patchhristimeshift) - Update a timeshift
12
- * [removeHrisTimeshift](#removehristimeshift) - Remove a timeshift
13
- * [updateHrisTimeshift](#updatehristimeshift) - Update a timeshift
14
-
15
- ## createHrisTimeshift
16
-
17
- Create a timeshift
18
-
19
- ### Example Usage
20
-
21
- <!-- UsageSnippet language="typescript" operationID="createHrisTimeshift" method="post" path="/hris/{connection_id}/timeshift" -->
22
- ```typescript
23
- import { UnifiedTo } from "@unified-api/typescript-sdk";
24
-
25
- const unifiedTo = new UnifiedTo({
26
- security: {
27
- jwt: "<YOUR_API_KEY_HERE>",
28
- },
29
- });
30
-
31
- async function run() {
32
- const result = await unifiedTo.timeshift.createHrisTimeshift({
33
- hrisTimeshift: {
34
- employeeUserId: "<id>",
35
- endAt: new Date("2025-10-18T00:03:45.822Z"),
36
- startAt: new Date("2024-06-03T05:33:48.715Z"),
37
- },
38
- connectionId: "<id>",
39
- });
40
-
41
- console.log(result);
42
- }
43
-
44
- run();
45
- ```
46
-
47
- ### Standalone function
48
-
49
- The standalone function version of this method:
50
-
51
- ```typescript
52
- import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
53
- import { hrisCreateHrisTimeshift } from "@unified-api/typescript-sdk/funcs/hrisCreateHrisTimeshift.js";
54
-
55
- // Use `UnifiedToCore` for best tree-shaking performance.
56
- // You can create one instance of it to use across an application.
57
- const unifiedTo = new UnifiedToCore({
58
- security: {
59
- jwt: "<YOUR_API_KEY_HERE>",
60
- },
61
- });
62
-
63
- async function run() {
64
- const res = await hrisCreateHrisTimeshift(unifiedTo, {
65
- hrisTimeshift: {
66
- employeeUserId: "<id>",
67
- endAt: new Date("2025-10-18T00:03:45.822Z"),
68
- startAt: new Date("2024-06-03T05:33:48.715Z"),
69
- },
70
- connectionId: "<id>",
71
- });
72
- if (res.ok) {
73
- const { value: result } = res;
74
- console.log(result);
75
- } else {
76
- console.log("hrisCreateHrisTimeshift failed:", res.error);
77
- }
78
- }
79
-
80
- run();
81
- ```
82
-
83
- ### Parameters
84
-
85
- | Parameter | Type | Required | Description |
86
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
87
- | `request` | [operations.CreateHrisTimeshiftRequest](../../sdk/models/operations/createhristimeshiftrequest.md) | :heavy_check_mark: | The request object to use for the request. |
88
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
89
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
90
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
91
-
92
- ### Response
93
-
94
- **Promise\<[shared.HrisTimeshift](../../sdk/models/shared/hristimeshift.md)\>**
95
-
96
- ### Errors
97
-
98
- | Error Type | Status Code | Content Type |
99
- | --------------- | --------------- | --------------- |
100
- | errors.SDKError | 4XX, 5XX | \*/\* |
101
-
102
- ## getHrisTimeshift
103
-
104
- Retrieve a timeshift
105
-
106
- ### Example Usage
107
-
108
- <!-- UsageSnippet language="typescript" operationID="getHrisTimeshift" method="get" path="/hris/{connection_id}/timeshift/{id}" -->
109
- ```typescript
110
- import { UnifiedTo } from "@unified-api/typescript-sdk";
111
-
112
- const unifiedTo = new UnifiedTo({
113
- security: {
114
- jwt: "<YOUR_API_KEY_HERE>",
115
- },
116
- });
117
-
118
- async function run() {
119
- const result = await unifiedTo.timeshift.getHrisTimeshift({
120
- connectionId: "<id>",
121
- id: "<id>",
122
- });
123
-
124
- console.log(result);
125
- }
126
-
127
- run();
128
- ```
129
-
130
- ### Standalone function
131
-
132
- The standalone function version of this method:
133
-
134
- ```typescript
135
- import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
136
- import { hrisGetHrisTimeshift } from "@unified-api/typescript-sdk/funcs/hrisGetHrisTimeshift.js";
137
-
138
- // Use `UnifiedToCore` for best tree-shaking performance.
139
- // You can create one instance of it to use across an application.
140
- const unifiedTo = new UnifiedToCore({
141
- security: {
142
- jwt: "<YOUR_API_KEY_HERE>",
143
- },
144
- });
145
-
146
- async function run() {
147
- const res = await hrisGetHrisTimeshift(unifiedTo, {
148
- connectionId: "<id>",
149
- id: "<id>",
150
- });
151
- if (res.ok) {
152
- const { value: result } = res;
153
- console.log(result);
154
- } else {
155
- console.log("hrisGetHrisTimeshift failed:", res.error);
156
- }
157
- }
158
-
159
- run();
160
- ```
161
-
162
- ### Parameters
163
-
164
- | Parameter | Type | Required | Description |
165
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
166
- | `request` | [operations.GetHrisTimeshiftRequest](../../sdk/models/operations/gethristimeshiftrequest.md) | :heavy_check_mark: | The request object to use for the request. |
167
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
168
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
169
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
170
-
171
- ### Response
172
-
173
- **Promise\<[shared.HrisTimeshift](../../sdk/models/shared/hristimeshift.md)\>**
174
-
175
- ### Errors
176
-
177
- | Error Type | Status Code | Content Type |
178
- | --------------- | --------------- | --------------- |
179
- | errors.SDKError | 4XX, 5XX | \*/\* |
180
-
181
- ## listHrisTimeshifts
182
-
183
- List all timeshifts
184
-
185
- ### Example Usage
186
-
187
- <!-- UsageSnippet language="typescript" operationID="listHrisTimeshifts" method="get" path="/hris/{connection_id}/timeshift" -->
188
- ```typescript
189
- import { UnifiedTo } from "@unified-api/typescript-sdk";
190
-
191
- const unifiedTo = new UnifiedTo({
192
- security: {
193
- jwt: "<YOUR_API_KEY_HERE>",
194
- },
195
- });
196
-
197
- async function run() {
198
- const result = await unifiedTo.timeshift.listHrisTimeshifts({
199
- connectionId: "<id>",
200
- });
201
-
202
- console.log(result);
203
- }
204
-
205
- run();
206
- ```
207
-
208
- ### Standalone function
209
-
210
- The standalone function version of this method:
211
-
212
- ```typescript
213
- import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
214
- import { hrisListHrisTimeshifts } from "@unified-api/typescript-sdk/funcs/hrisListHrisTimeshifts.js";
215
-
216
- // Use `UnifiedToCore` for best tree-shaking performance.
217
- // You can create one instance of it to use across an application.
218
- const unifiedTo = new UnifiedToCore({
219
- security: {
220
- jwt: "<YOUR_API_KEY_HERE>",
221
- },
222
- });
223
-
224
- async function run() {
225
- const res = await hrisListHrisTimeshifts(unifiedTo, {
226
- connectionId: "<id>",
227
- });
228
- if (res.ok) {
229
- const { value: result } = res;
230
- console.log(result);
231
- } else {
232
- console.log("hrisListHrisTimeshifts failed:", res.error);
233
- }
234
- }
235
-
236
- run();
237
- ```
238
-
239
- ### Parameters
240
-
241
- | Parameter | Type | Required | Description |
242
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
243
- | `request` | [operations.ListHrisTimeshiftsRequest](../../sdk/models/operations/listhristimeshiftsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
244
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
245
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
246
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
247
-
248
- ### Response
249
-
250
- **Promise\<[shared.HrisTimeshift[]](../../models/.md)\>**
251
-
252
- ### Errors
253
-
254
- | Error Type | Status Code | Content Type |
255
- | --------------- | --------------- | --------------- |
256
- | errors.SDKError | 4XX, 5XX | \*/\* |
257
-
258
- ## patchHrisTimeshift
259
-
260
- Update a timeshift
261
-
262
- ### Example Usage
263
-
264
- <!-- UsageSnippet language="typescript" operationID="patchHrisTimeshift" method="patch" path="/hris/{connection_id}/timeshift/{id}" -->
265
- ```typescript
266
- import { UnifiedTo } from "@unified-api/typescript-sdk";
267
-
268
- const unifiedTo = new UnifiedTo({
269
- security: {
270
- jwt: "<YOUR_API_KEY_HERE>",
271
- },
272
- });
273
-
274
- async function run() {
275
- const result = await unifiedTo.timeshift.patchHrisTimeshift({
276
- hrisTimeshift: {
277
- employeeUserId: "<id>",
278
- endAt: new Date("2023-11-17T18:53:02.172Z"),
279
- startAt: new Date("2023-01-19T02:48:41.002Z"),
280
- },
281
- connectionId: "<id>",
282
- id: "<id>",
283
- });
284
-
285
- console.log(result);
286
- }
287
-
288
- run();
289
- ```
290
-
291
- ### Standalone function
292
-
293
- The standalone function version of this method:
294
-
295
- ```typescript
296
- import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
297
- import { hrisPatchHrisTimeshift } from "@unified-api/typescript-sdk/funcs/hrisPatchHrisTimeshift.js";
298
-
299
- // Use `UnifiedToCore` for best tree-shaking performance.
300
- // You can create one instance of it to use across an application.
301
- const unifiedTo = new UnifiedToCore({
302
- security: {
303
- jwt: "<YOUR_API_KEY_HERE>",
304
- },
305
- });
306
-
307
- async function run() {
308
- const res = await hrisPatchHrisTimeshift(unifiedTo, {
309
- hrisTimeshift: {
310
- employeeUserId: "<id>",
311
- endAt: new Date("2023-11-17T18:53:02.172Z"),
312
- startAt: new Date("2023-01-19T02:48:41.002Z"),
313
- },
314
- connectionId: "<id>",
315
- id: "<id>",
316
- });
317
- if (res.ok) {
318
- const { value: result } = res;
319
- console.log(result);
320
- } else {
321
- console.log("hrisPatchHrisTimeshift failed:", res.error);
322
- }
323
- }
324
-
325
- run();
326
- ```
327
-
328
- ### Parameters
329
-
330
- | Parameter | Type | Required | Description |
331
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
332
- | `request` | [operations.PatchHrisTimeshiftRequest](../../sdk/models/operations/patchhristimeshiftrequest.md) | :heavy_check_mark: | The request object to use for the request. |
333
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
334
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
335
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
336
-
337
- ### Response
338
-
339
- **Promise\<[shared.HrisTimeshift](../../sdk/models/shared/hristimeshift.md)\>**
340
-
341
- ### Errors
342
-
343
- | Error Type | Status Code | Content Type |
344
- | --------------- | --------------- | --------------- |
345
- | errors.SDKError | 4XX, 5XX | \*/\* |
346
-
347
- ## removeHrisTimeshift
348
-
349
- Remove a timeshift
350
-
351
- ### Example Usage
352
-
353
- <!-- UsageSnippet language="typescript" operationID="removeHrisTimeshift" method="delete" path="/hris/{connection_id}/timeshift/{id}" -->
354
- ```typescript
355
- import { UnifiedTo } from "@unified-api/typescript-sdk";
356
-
357
- const unifiedTo = new UnifiedTo({
358
- security: {
359
- jwt: "<YOUR_API_KEY_HERE>",
360
- },
361
- });
362
-
363
- async function run() {
364
- const result = await unifiedTo.timeshift.removeHrisTimeshift({
365
- connectionId: "<id>",
366
- id: "<id>",
367
- });
368
-
369
- console.log(result);
370
- }
371
-
372
- run();
373
- ```
374
-
375
- ### Standalone function
376
-
377
- The standalone function version of this method:
378
-
379
- ```typescript
380
- import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
381
- import { hrisRemoveHrisTimeshift } from "@unified-api/typescript-sdk/funcs/hrisRemoveHrisTimeshift.js";
382
-
383
- // Use `UnifiedToCore` for best tree-shaking performance.
384
- // You can create one instance of it to use across an application.
385
- const unifiedTo = new UnifiedToCore({
386
- security: {
387
- jwt: "<YOUR_API_KEY_HERE>",
388
- },
389
- });
390
-
391
- async function run() {
392
- const res = await hrisRemoveHrisTimeshift(unifiedTo, {
393
- connectionId: "<id>",
394
- id: "<id>",
395
- });
396
- if (res.ok) {
397
- const { value: result } = res;
398
- console.log(result);
399
- } else {
400
- console.log("hrisRemoveHrisTimeshift failed:", res.error);
401
- }
402
- }
403
-
404
- run();
405
- ```
406
-
407
- ### Parameters
408
-
409
- | Parameter | Type | Required | Description |
410
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
411
- | `request` | [operations.RemoveHrisTimeshiftRequest](../../sdk/models/operations/removehristimeshiftrequest.md) | :heavy_check_mark: | The request object to use for the request. |
412
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
413
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
414
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
415
-
416
- ### Response
417
-
418
- **Promise\<[operations.RemoveHrisTimeshiftResponse](../../sdk/models/operations/removehristimeshiftresponse.md)\>**
419
-
420
- ### Errors
421
-
422
- | Error Type | Status Code | Content Type |
423
- | --------------- | --------------- | --------------- |
424
- | errors.SDKError | 4XX, 5XX | \*/\* |
425
-
426
- ## updateHrisTimeshift
427
-
428
- Update a timeshift
429
-
430
- ### Example Usage
431
-
432
- <!-- UsageSnippet language="typescript" operationID="updateHrisTimeshift" method="put" path="/hris/{connection_id}/timeshift/{id}" -->
433
- ```typescript
434
- import { UnifiedTo } from "@unified-api/typescript-sdk";
435
-
436
- const unifiedTo = new UnifiedTo({
437
- security: {
438
- jwt: "<YOUR_API_KEY_HERE>",
439
- },
440
- });
441
-
442
- async function run() {
443
- const result = await unifiedTo.timeshift.updateHrisTimeshift({
444
- hrisTimeshift: {
445
- employeeUserId: "<id>",
446
- endAt: new Date("2025-03-03T22:04:09.340Z"),
447
- startAt: new Date("2024-05-30T21:19:58.772Z"),
448
- },
449
- connectionId: "<id>",
450
- id: "<id>",
451
- });
452
-
453
- console.log(result);
454
- }
455
-
456
- run();
457
- ```
458
-
459
- ### Standalone function
460
-
461
- The standalone function version of this method:
462
-
463
- ```typescript
464
- import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
465
- import { hrisUpdateHrisTimeshift } from "@unified-api/typescript-sdk/funcs/hrisUpdateHrisTimeshift.js";
466
-
467
- // Use `UnifiedToCore` for best tree-shaking performance.
468
- // You can create one instance of it to use across an application.
469
- const unifiedTo = new UnifiedToCore({
470
- security: {
471
- jwt: "<YOUR_API_KEY_HERE>",
472
- },
473
- });
474
-
475
- async function run() {
476
- const res = await hrisUpdateHrisTimeshift(unifiedTo, {
477
- hrisTimeshift: {
478
- employeeUserId: "<id>",
479
- endAt: new Date("2025-03-03T22:04:09.340Z"),
480
- startAt: new Date("2024-05-30T21:19:58.772Z"),
481
- },
482
- connectionId: "<id>",
483
- id: "<id>",
484
- });
485
- if (res.ok) {
486
- const { value: result } = res;
487
- console.log(result);
488
- } else {
489
- console.log("hrisUpdateHrisTimeshift failed:", res.error);
490
- }
491
- }
492
-
493
- run();
494
- ```
495
-
496
- ### Parameters
497
-
498
- | Parameter | Type | Required | Description |
499
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
500
- | `request` | [operations.UpdateHrisTimeshiftRequest](../../sdk/models/operations/updatehristimeshiftrequest.md) | :heavy_check_mark: | The request object to use for the request. |
501
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
502
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
503
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
504
-
505
- ### Response
506
-
507
- **Promise\<[shared.HrisTimeshift](../../sdk/models/shared/hristimeshift.md)\>**
508
-
509
- ### Errors
510
-
511
- | Error Type | Status Code | Content Type |
512
- | --------------- | --------------- | --------------- |
513
- | errors.SDKError | 4XX, 5XX | \*/\* |