@unified-api/typescript-sdk 2.73.19 → 2.73.21

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 (223) hide show
  1. package/README.md +16 -0
  2. package/bin/mcp-server.js +4542 -3185
  3. package/bin/mcp-server.js.map +40 -13
  4. package/docs/sdks/category/README.md +482 -0
  5. package/docs/sdks/embedding/README.md +87 -0
  6. package/docs/sdks/genai/README.md +160 -0
  7. package/docs/sdks/hris/README.md +30 -6
  8. package/docs/sdks/model/README.md +80 -0
  9. package/docs/sdks/ticketing/README.md +482 -0
  10. package/docs/sdks/timeshift/README.md +30 -6
  11. package/examples/package-lock.json +1 -1
  12. package/funcs/categoryCreateTicketingCategory.d.ts +15 -0
  13. package/funcs/categoryCreateTicketingCategory.d.ts.map +1 -0
  14. package/funcs/categoryCreateTicketingCategory.js +122 -0
  15. package/funcs/categoryCreateTicketingCategory.js.map +1 -0
  16. package/funcs/categoryGetTicketingCategory.d.ts +15 -0
  17. package/funcs/categoryGetTicketingCategory.d.ts.map +1 -0
  18. package/funcs/categoryGetTicketingCategory.js +125 -0
  19. package/funcs/categoryGetTicketingCategory.js.map +1 -0
  20. package/funcs/categoryListTicketingCategories.d.ts +15 -0
  21. package/funcs/categoryListTicketingCategories.d.ts.map +1 -0
  22. package/funcs/categoryListTicketingCategories.js +129 -0
  23. package/funcs/categoryListTicketingCategories.js.map +1 -0
  24. package/funcs/categoryPatchTicketingCategory.d.ts +15 -0
  25. package/funcs/categoryPatchTicketingCategory.d.ts.map +1 -0
  26. package/funcs/categoryPatchTicketingCategory.js +126 -0
  27. package/funcs/categoryPatchTicketingCategory.js.map +1 -0
  28. package/funcs/categoryRemoveTicketingCategory.d.ts +14 -0
  29. package/funcs/categoryRemoveTicketingCategory.d.ts.map +1 -0
  30. package/funcs/categoryRemoveTicketingCategory.js +122 -0
  31. package/funcs/categoryRemoveTicketingCategory.js.map +1 -0
  32. package/funcs/categoryUpdateTicketingCategory.d.ts +15 -0
  33. package/funcs/categoryUpdateTicketingCategory.d.ts.map +1 -0
  34. package/funcs/categoryUpdateTicketingCategory.js +126 -0
  35. package/funcs/categoryUpdateTicketingCategory.js.map +1 -0
  36. package/funcs/genaiCreateGenaiEmbedding.d.ts +15 -0
  37. package/funcs/genaiCreateGenaiEmbedding.d.ts.map +1 -0
  38. package/funcs/genaiCreateGenaiEmbedding.js +122 -0
  39. package/funcs/genaiCreateGenaiEmbedding.js.map +1 -0
  40. package/funcs/genaiGetGenaiModel.d.ts +15 -0
  41. package/funcs/genaiGetGenaiModel.d.ts.map +1 -0
  42. package/funcs/genaiGetGenaiModel.js +125 -0
  43. package/funcs/genaiGetGenaiModel.js.map +1 -0
  44. package/jsr.json +1 -1
  45. package/lib/config.d.ts +3 -3
  46. package/lib/config.js +3 -3
  47. package/lib/config.js.map +1 -1
  48. package/mcp-server/mcp-server.js +1 -1
  49. package/mcp-server/server.d.ts.map +1 -1
  50. package/mcp-server/server.js +17 -1
  51. package/mcp-server/server.js.map +1 -1
  52. package/mcp-server/tools/categoryCreateTicketingCategory.d.ts +8 -0
  53. package/mcp-server/tools/categoryCreateTicketingCategory.d.ts.map +1 -0
  54. package/mcp-server/tools/categoryCreateTicketingCategory.js +62 -0
  55. package/mcp-server/tools/categoryCreateTicketingCategory.js.map +1 -0
  56. package/mcp-server/tools/categoryGetTicketingCategory.d.ts +8 -0
  57. package/mcp-server/tools/categoryGetTicketingCategory.d.ts.map +1 -0
  58. package/mcp-server/tools/categoryGetTicketingCategory.js +62 -0
  59. package/mcp-server/tools/categoryGetTicketingCategory.js.map +1 -0
  60. package/mcp-server/tools/categoryListTicketingCategories.d.ts +8 -0
  61. package/mcp-server/tools/categoryListTicketingCategories.d.ts.map +1 -0
  62. package/mcp-server/tools/categoryListTicketingCategories.js +62 -0
  63. package/mcp-server/tools/categoryListTicketingCategories.js.map +1 -0
  64. package/mcp-server/tools/categoryPatchTicketingCategory.d.ts +8 -0
  65. package/mcp-server/tools/categoryPatchTicketingCategory.d.ts.map +1 -0
  66. package/mcp-server/tools/categoryPatchTicketingCategory.js +62 -0
  67. package/mcp-server/tools/categoryPatchTicketingCategory.js.map +1 -0
  68. package/mcp-server/tools/categoryRemoveTicketingCategory.d.ts +8 -0
  69. package/mcp-server/tools/categoryRemoveTicketingCategory.d.ts.map +1 -0
  70. package/mcp-server/tools/categoryRemoveTicketingCategory.js +61 -0
  71. package/mcp-server/tools/categoryRemoveTicketingCategory.js.map +1 -0
  72. package/mcp-server/tools/categoryUpdateTicketingCategory.d.ts +8 -0
  73. package/mcp-server/tools/categoryUpdateTicketingCategory.d.ts.map +1 -0
  74. package/mcp-server/tools/categoryUpdateTicketingCategory.js +62 -0
  75. package/mcp-server/tools/categoryUpdateTicketingCategory.js.map +1 -0
  76. package/mcp-server/tools/genaiCreateGenaiEmbedding.d.ts +8 -0
  77. package/mcp-server/tools/genaiCreateGenaiEmbedding.d.ts.map +1 -0
  78. package/mcp-server/tools/genaiCreateGenaiEmbedding.js +62 -0
  79. package/mcp-server/tools/genaiCreateGenaiEmbedding.js.map +1 -0
  80. package/mcp-server/tools/genaiGetGenaiModel.d.ts +8 -0
  81. package/mcp-server/tools/genaiGetGenaiModel.d.ts.map +1 -0
  82. package/mcp-server/tools/genaiGetGenaiModel.js +62 -0
  83. package/mcp-server/tools/genaiGetGenaiModel.js.map +1 -0
  84. package/package.json +1 -1
  85. package/sdk/category.d.ts +24 -0
  86. package/sdk/category.d.ts.map +1 -1
  87. package/sdk/category.js +42 -0
  88. package/sdk/category.js.map +1 -1
  89. package/sdk/embedding.d.ts +10 -0
  90. package/sdk/embedding.d.ts.map +1 -0
  91. package/sdk/embedding.js +19 -0
  92. package/sdk/embedding.js.map +1 -0
  93. package/sdk/genai.d.ts +8 -0
  94. package/sdk/genai.d.ts.map +1 -1
  95. package/sdk/genai.js +14 -0
  96. package/sdk/genai.js.map +1 -1
  97. package/sdk/model.d.ts +4 -0
  98. package/sdk/model.d.ts.map +1 -1
  99. package/sdk/model.js +7 -0
  100. package/sdk/model.js.map +1 -1
  101. package/sdk/models/operations/creategenaiembedding.d.ts +45 -0
  102. package/sdk/models/operations/creategenaiembedding.d.ts.map +1 -0
  103. package/sdk/models/operations/creategenaiembedding.js +87 -0
  104. package/sdk/models/operations/creategenaiembedding.js.map +1 -0
  105. package/sdk/models/operations/createticketingcategory.d.ts +45 -0
  106. package/sdk/models/operations/createticketingcategory.d.ts.map +1 -0
  107. package/sdk/models/operations/createticketingcategory.js +87 -0
  108. package/sdk/models/operations/createticketingcategory.js.map +1 -0
  109. package/sdk/models/operations/getgenaimodel.d.ts +47 -0
  110. package/sdk/models/operations/getgenaimodel.d.ts.map +1 -0
  111. package/sdk/models/operations/getgenaimodel.js +84 -0
  112. package/sdk/models/operations/getgenaimodel.js.map +1 -0
  113. package/sdk/models/operations/getticketingcategory.d.ts +47 -0
  114. package/sdk/models/operations/getticketingcategory.d.ts.map +1 -0
  115. package/sdk/models/operations/getticketingcategory.js +84 -0
  116. package/sdk/models/operations/getticketingcategory.js.map +1 -0
  117. package/sdk/models/operations/index.d.ts +8 -0
  118. package/sdk/models/operations/index.d.ts.map +1 -1
  119. package/sdk/models/operations/index.js +8 -0
  120. package/sdk/models/operations/index.js.map +1 -1
  121. package/sdk/models/operations/listticketingcategories.d.ts +65 -0
  122. package/sdk/models/operations/listticketingcategories.d.ts.map +1 -0
  123. package/sdk/models/operations/listticketingcategories.js +100 -0
  124. package/sdk/models/operations/listticketingcategories.js.map +1 -0
  125. package/sdk/models/operations/patchticketingcategory.d.ts +50 -0
  126. package/sdk/models/operations/patchticketingcategory.d.ts.map +1 -0
  127. package/sdk/models/operations/patchticketingcategory.js +89 -0
  128. package/sdk/models/operations/patchticketingcategory.js.map +1 -0
  129. package/sdk/models/operations/removeticketingcategory.d.ts +66 -0
  130. package/sdk/models/operations/removeticketingcategory.d.ts.map +1 -0
  131. package/sdk/models/operations/removeticketingcategory.js +115 -0
  132. package/sdk/models/operations/removeticketingcategory.js.map +1 -0
  133. package/sdk/models/operations/updateticketingcategory.d.ts +50 -0
  134. package/sdk/models/operations/updateticketingcategory.d.ts.map +1 -0
  135. package/sdk/models/operations/updateticketingcategory.js +89 -0
  136. package/sdk/models/operations/updateticketingcategory.js.map +1 -0
  137. package/sdk/models/shared/genaiembedding.d.ts +76 -0
  138. package/sdk/models/shared/genaiembedding.d.ts.map +1 -0
  139. package/sdk/models/shared/genaiembedding.js +134 -0
  140. package/sdk/models/shared/genaiembedding.js.map +1 -0
  141. package/sdk/models/shared/genaiembeddingcontent.d.ts +29 -0
  142. package/sdk/models/shared/genaiembeddingcontent.d.ts.map +1 -0
  143. package/sdk/models/shared/genaiembeddingcontent.js +69 -0
  144. package/sdk/models/shared/genaiembeddingcontent.js.map +1 -0
  145. package/sdk/models/shared/hriscompensation.d.ts +2 -0
  146. package/sdk/models/shared/hriscompensation.d.ts.map +1 -1
  147. package/sdk/models/shared/hriscompensation.js +11 -0
  148. package/sdk/models/shared/hriscompensation.js.map +1 -1
  149. package/sdk/models/shared/hristimeshift.d.ts +6 -6
  150. package/sdk/models/shared/hristimeshift.d.ts.map +1 -1
  151. package/sdk/models/shared/hristimeshift.js +6 -8
  152. package/sdk/models/shared/hristimeshift.js.map +1 -1
  153. package/sdk/models/shared/index.d.ts +3 -0
  154. package/sdk/models/shared/index.d.ts.map +1 -1
  155. package/sdk/models/shared/index.js +3 -0
  156. package/sdk/models/shared/index.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/ticketingcategory.d.ts +47 -0
  162. package/sdk/models/shared/ticketingcategory.d.ts.map +1 -0
  163. package/sdk/models/shared/ticketingcategory.js +100 -0
  164. package/sdk/models/shared/ticketingcategory.js.map +1 -0
  165. package/sdk/models/shared/ticketingticket.d.ts +2 -0
  166. package/sdk/models/shared/ticketingticket.d.ts.map +1 -1
  167. package/sdk/models/shared/ticketingticket.js +4 -0
  168. package/sdk/models/shared/ticketingticket.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 +3 -0
  174. package/sdk/sdk.d.ts.map +1 -1
  175. package/sdk/sdk.js +4 -0
  176. package/sdk/sdk.js.map +1 -1
  177. package/sdk/ticketing.d.ts +24 -0
  178. package/sdk/ticketing.d.ts.map +1 -1
  179. package/sdk/ticketing.js +42 -0
  180. package/sdk/ticketing.js.map +1 -1
  181. package/src/funcs/categoryCreateTicketingCategory.ts +171 -0
  182. package/src/funcs/categoryGetTicketingCategory.ts +176 -0
  183. package/src/funcs/categoryListTicketingCategories.ts +178 -0
  184. package/src/funcs/categoryPatchTicketingCategory.ts +177 -0
  185. package/src/funcs/categoryRemoveTicketingCategory.ts +181 -0
  186. package/src/funcs/categoryUpdateTicketingCategory.ts +177 -0
  187. package/src/funcs/genaiCreateGenaiEmbedding.ts +171 -0
  188. package/src/funcs/genaiGetGenaiModel.ts +173 -0
  189. package/src/lib/config.ts +3 -3
  190. package/src/mcp-server/mcp-server.ts +1 -1
  191. package/src/mcp-server/server.ts +17 -1
  192. package/src/mcp-server/tools/categoryCreateTicketingCategory.ts +36 -0
  193. package/src/mcp-server/tools/categoryGetTicketingCategory.ts +35 -0
  194. package/src/mcp-server/tools/categoryListTicketingCategories.ts +36 -0
  195. package/src/mcp-server/tools/categoryPatchTicketingCategory.ts +36 -0
  196. package/src/mcp-server/tools/categoryRemoveTicketingCategory.ts +34 -0
  197. package/src/mcp-server/tools/categoryUpdateTicketingCategory.ts +36 -0
  198. package/src/mcp-server/tools/genaiCreateGenaiEmbedding.ts +35 -0
  199. package/src/mcp-server/tools/genaiGetGenaiModel.ts +35 -0
  200. package/src/sdk/category.ts +90 -0
  201. package/src/sdk/embedding.ts +25 -0
  202. package/src/sdk/genai.ts +30 -0
  203. package/src/sdk/model.ts +15 -0
  204. package/src/sdk/models/operations/creategenaiembedding.ts +101 -0
  205. package/src/sdk/models/operations/createticketingcategory.ts +101 -0
  206. package/src/sdk/models/operations/getgenaimodel.ts +99 -0
  207. package/src/sdk/models/operations/getticketingcategory.ts +101 -0
  208. package/src/sdk/models/operations/index.ts +8 -0
  209. package/src/sdk/models/operations/listticketingcategories.ts +135 -0
  210. package/src/sdk/models/operations/patchticketingcategory.ts +108 -0
  211. package/src/sdk/models/operations/removeticketingcategory.ts +155 -0
  212. package/src/sdk/models/operations/updateticketingcategory.ts +108 -0
  213. package/src/sdk/models/shared/genaiembedding.ts +166 -0
  214. package/src/sdk/models/shared/genaiembeddingcontent.ts +66 -0
  215. package/src/sdk/models/shared/hriscompensation.ts +13 -0
  216. package/src/sdk/models/shared/hristimeshift.ts +12 -14
  217. package/src/sdk/models/shared/index.ts +3 -0
  218. package/src/sdk/models/shared/propertyconnectionpermissions.ts +4 -0
  219. package/src/sdk/models/shared/ticketingcategory.ts +111 -0
  220. package/src/sdk/models/shared/ticketingticket.ts +6 -0
  221. package/src/sdk/models/shared/webhook.ts +2 -0
  222. package/src/sdk/sdk.ts +6 -0
  223. package/src/sdk/ticketing.ts +90 -0
@@ -5,25 +5,110 @@
5
5
 
6
6
  ### Available Operations
7
7
 
8
+ * [createTicketingCategory](#createticketingcategory) - Create a category
8
9
  * [createTicketingCustomer](#createticketingcustomer) - Create a customer
9
10
  * [createTicketingNote](#createticketingnote) - Create a note
10
11
  * [createTicketingTicket](#createticketingticket) - Create a ticket
12
+ * [getTicketingCategory](#getticketingcategory) - Retrieve a category
11
13
  * [getTicketingCustomer](#getticketingcustomer) - Retrieve a customer
12
14
  * [getTicketingNote](#getticketingnote) - Retrieve a note
13
15
  * [getTicketingTicket](#getticketingticket) - Retrieve a ticket
16
+ * [listTicketingCategories](#listticketingcategories) - List all categories
14
17
  * [listTicketingCustomers](#listticketingcustomers) - List all customers
15
18
  * [listTicketingNotes](#listticketingnotes) - List all notes
16
19
  * [listTicketingTickets](#listticketingtickets) - List all tickets
20
+ * [patchTicketingCategory](#patchticketingcategory) - Update a category
17
21
  * [patchTicketingCustomer](#patchticketingcustomer) - Update a customer
18
22
  * [patchTicketingNote](#patchticketingnote) - Update a note
19
23
  * [patchTicketingTicket](#patchticketingticket) - Update a ticket
24
+ * [removeTicketingCategory](#removeticketingcategory) - Remove a category
20
25
  * [removeTicketingCustomer](#removeticketingcustomer) - Remove a customer
21
26
  * [removeTicketingNote](#removeticketingnote) - Remove a note
22
27
  * [removeTicketingTicket](#removeticketingticket) - Remove a ticket
28
+ * [updateTicketingCategory](#updateticketingcategory) - Update a category
23
29
  * [updateTicketingCustomer](#updateticketingcustomer) - Update a customer
24
30
  * [updateTicketingNote](#updateticketingnote) - Update a note
25
31
  * [updateTicketingTicket](#updateticketingticket) - Update a ticket
26
32
 
33
+ ## createTicketingCategory
34
+
35
+ Create a category
36
+
37
+ ### Example Usage
38
+
39
+ <!-- UsageSnippet language="typescript" operationID="createTicketingCategory" method="post" path="/ticketing/{connection_id}/category" -->
40
+ ```typescript
41
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
42
+
43
+ const unifiedTo = new UnifiedTo({
44
+ security: {
45
+ jwt: "<YOUR_API_KEY_HERE>",
46
+ },
47
+ });
48
+
49
+ async function run() {
50
+ const result = await unifiedTo.ticketing.createTicketingCategory({
51
+ ticketingCategory: {},
52
+ connectionId: "<id>",
53
+ });
54
+
55
+ console.log(result);
56
+ }
57
+
58
+ run();
59
+ ```
60
+
61
+ ### Standalone function
62
+
63
+ The standalone function version of this method:
64
+
65
+ ```typescript
66
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
67
+ import { categoryCreateTicketingCategory } from "@unified-api/typescript-sdk/funcs/categoryCreateTicketingCategory.js";
68
+
69
+ // Use `UnifiedToCore` for best tree-shaking performance.
70
+ // You can create one instance of it to use across an application.
71
+ const unifiedTo = new UnifiedToCore({
72
+ security: {
73
+ jwt: "<YOUR_API_KEY_HERE>",
74
+ },
75
+ });
76
+
77
+ async function run() {
78
+ const res = await categoryCreateTicketingCategory(unifiedTo, {
79
+ ticketingCategory: {},
80
+ connectionId: "<id>",
81
+ });
82
+ if (res.ok) {
83
+ const { value: result } = res;
84
+ console.log(result);
85
+ } else {
86
+ console.log("categoryCreateTicketingCategory failed:", res.error);
87
+ }
88
+ }
89
+
90
+ run();
91
+ ```
92
+
93
+ ### Parameters
94
+
95
+ | Parameter | Type | Required | Description |
96
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
97
+ | `request` | [operations.CreateTicketingCategoryRequest](../../sdk/models/operations/createticketingcategoryrequest.md) | :heavy_check_mark: | The request object to use for the request. |
98
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
99
+ | `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. |
100
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
101
+
102
+ ### Response
103
+
104
+ **Promise\<[shared.TicketingCategory](../../sdk/models/shared/ticketingcategory.md)\>**
105
+
106
+ ### Errors
107
+
108
+ | Error Type | Status Code | Content Type |
109
+ | --------------- | --------------- | --------------- |
110
+ | errors.SDKError | 4XX, 5XX | \*/\* |
111
+
27
112
  ## createTicketingCustomer
28
113
 
29
114
  Create a customer
@@ -261,6 +346,85 @@ run();
261
346
  | --------------- | --------------- | --------------- |
262
347
  | errors.SDKError | 4XX, 5XX | \*/\* |
263
348
 
349
+ ## getTicketingCategory
350
+
351
+ Retrieve a category
352
+
353
+ ### Example Usage
354
+
355
+ <!-- UsageSnippet language="typescript" operationID="getTicketingCategory" method="get" path="/ticketing/{connection_id}/category/{id}" -->
356
+ ```typescript
357
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
358
+
359
+ const unifiedTo = new UnifiedTo({
360
+ security: {
361
+ jwt: "<YOUR_API_KEY_HERE>",
362
+ },
363
+ });
364
+
365
+ async function run() {
366
+ const result = await unifiedTo.ticketing.getTicketingCategory({
367
+ connectionId: "<id>",
368
+ id: "<id>",
369
+ });
370
+
371
+ console.log(result);
372
+ }
373
+
374
+ run();
375
+ ```
376
+
377
+ ### Standalone function
378
+
379
+ The standalone function version of this method:
380
+
381
+ ```typescript
382
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
383
+ import { categoryGetTicketingCategory } from "@unified-api/typescript-sdk/funcs/categoryGetTicketingCategory.js";
384
+
385
+ // Use `UnifiedToCore` for best tree-shaking performance.
386
+ // You can create one instance of it to use across an application.
387
+ const unifiedTo = new UnifiedToCore({
388
+ security: {
389
+ jwt: "<YOUR_API_KEY_HERE>",
390
+ },
391
+ });
392
+
393
+ async function run() {
394
+ const res = await categoryGetTicketingCategory(unifiedTo, {
395
+ connectionId: "<id>",
396
+ id: "<id>",
397
+ });
398
+ if (res.ok) {
399
+ const { value: result } = res;
400
+ console.log(result);
401
+ } else {
402
+ console.log("categoryGetTicketingCategory failed:", res.error);
403
+ }
404
+ }
405
+
406
+ run();
407
+ ```
408
+
409
+ ### Parameters
410
+
411
+ | Parameter | Type | Required | Description |
412
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
413
+ | `request` | [operations.GetTicketingCategoryRequest](../../sdk/models/operations/getticketingcategoryrequest.md) | :heavy_check_mark: | The request object to use for the request. |
414
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
415
+ | `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. |
416
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
417
+
418
+ ### Response
419
+
420
+ **Promise\<[shared.TicketingCategory](../../sdk/models/shared/ticketingcategory.md)\>**
421
+
422
+ ### Errors
423
+
424
+ | Error Type | Status Code | Content Type |
425
+ | --------------- | --------------- | --------------- |
426
+ | errors.SDKError | 4XX, 5XX | \*/\* |
427
+
264
428
  ## getTicketingCustomer
265
429
 
266
430
  Retrieve a customer
@@ -498,6 +662,83 @@ run();
498
662
  | --------------- | --------------- | --------------- |
499
663
  | errors.SDKError | 4XX, 5XX | \*/\* |
500
664
 
665
+ ## listTicketingCategories
666
+
667
+ List all categories
668
+
669
+ ### Example Usage
670
+
671
+ <!-- UsageSnippet language="typescript" operationID="listTicketingCategories" method="get" path="/ticketing/{connection_id}/category" -->
672
+ ```typescript
673
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
674
+
675
+ const unifiedTo = new UnifiedTo({
676
+ security: {
677
+ jwt: "<YOUR_API_KEY_HERE>",
678
+ },
679
+ });
680
+
681
+ async function run() {
682
+ const result = await unifiedTo.ticketing.listTicketingCategories({
683
+ connectionId: "<id>",
684
+ });
685
+
686
+ console.log(result);
687
+ }
688
+
689
+ run();
690
+ ```
691
+
692
+ ### Standalone function
693
+
694
+ The standalone function version of this method:
695
+
696
+ ```typescript
697
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
698
+ import { categoryListTicketingCategories } from "@unified-api/typescript-sdk/funcs/categoryListTicketingCategories.js";
699
+
700
+ // Use `UnifiedToCore` for best tree-shaking performance.
701
+ // You can create one instance of it to use across an application.
702
+ const unifiedTo = new UnifiedToCore({
703
+ security: {
704
+ jwt: "<YOUR_API_KEY_HERE>",
705
+ },
706
+ });
707
+
708
+ async function run() {
709
+ const res = await categoryListTicketingCategories(unifiedTo, {
710
+ connectionId: "<id>",
711
+ });
712
+ if (res.ok) {
713
+ const { value: result } = res;
714
+ console.log(result);
715
+ } else {
716
+ console.log("categoryListTicketingCategories failed:", res.error);
717
+ }
718
+ }
719
+
720
+ run();
721
+ ```
722
+
723
+ ### Parameters
724
+
725
+ | Parameter | Type | Required | Description |
726
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
727
+ | `request` | [operations.ListTicketingCategoriesRequest](../../sdk/models/operations/listticketingcategoriesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
728
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
729
+ | `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. |
730
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
731
+
732
+ ### Response
733
+
734
+ **Promise\<[shared.TicketingCategory[]](../../models/.md)\>**
735
+
736
+ ### Errors
737
+
738
+ | Error Type | Status Code | Content Type |
739
+ | --------------- | --------------- | --------------- |
740
+ | errors.SDKError | 4XX, 5XX | \*/\* |
741
+
501
742
  ## listTicketingCustomers
502
743
 
503
744
  List all customers
@@ -729,6 +970,87 @@ run();
729
970
  | --------------- | --------------- | --------------- |
730
971
  | errors.SDKError | 4XX, 5XX | \*/\* |
731
972
 
973
+ ## patchTicketingCategory
974
+
975
+ Update a category
976
+
977
+ ### Example Usage
978
+
979
+ <!-- UsageSnippet language="typescript" operationID="patchTicketingCategory" method="patch" path="/ticketing/{connection_id}/category/{id}" -->
980
+ ```typescript
981
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
982
+
983
+ const unifiedTo = new UnifiedTo({
984
+ security: {
985
+ jwt: "<YOUR_API_KEY_HERE>",
986
+ },
987
+ });
988
+
989
+ async function run() {
990
+ const result = await unifiedTo.ticketing.patchTicketingCategory({
991
+ ticketingCategory: {},
992
+ connectionId: "<id>",
993
+ id: "<id>",
994
+ });
995
+
996
+ console.log(result);
997
+ }
998
+
999
+ run();
1000
+ ```
1001
+
1002
+ ### Standalone function
1003
+
1004
+ The standalone function version of this method:
1005
+
1006
+ ```typescript
1007
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
1008
+ import { categoryPatchTicketingCategory } from "@unified-api/typescript-sdk/funcs/categoryPatchTicketingCategory.js";
1009
+
1010
+ // Use `UnifiedToCore` for best tree-shaking performance.
1011
+ // You can create one instance of it to use across an application.
1012
+ const unifiedTo = new UnifiedToCore({
1013
+ security: {
1014
+ jwt: "<YOUR_API_KEY_HERE>",
1015
+ },
1016
+ });
1017
+
1018
+ async function run() {
1019
+ const res = await categoryPatchTicketingCategory(unifiedTo, {
1020
+ ticketingCategory: {},
1021
+ connectionId: "<id>",
1022
+ id: "<id>",
1023
+ });
1024
+ if (res.ok) {
1025
+ const { value: result } = res;
1026
+ console.log(result);
1027
+ } else {
1028
+ console.log("categoryPatchTicketingCategory failed:", res.error);
1029
+ }
1030
+ }
1031
+
1032
+ run();
1033
+ ```
1034
+
1035
+ ### Parameters
1036
+
1037
+ | Parameter | Type | Required | Description |
1038
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1039
+ | `request` | [operations.PatchTicketingCategoryRequest](../../sdk/models/operations/patchticketingcategoryrequest.md) | :heavy_check_mark: | The request object to use for the request. |
1040
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
1041
+ | `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. |
1042
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
1043
+
1044
+ ### Response
1045
+
1046
+ **Promise\<[shared.TicketingCategory](../../sdk/models/shared/ticketingcategory.md)\>**
1047
+
1048
+ ### Errors
1049
+
1050
+ | Error Type | Status Code | Content Type |
1051
+ | --------------- | --------------- | --------------- |
1052
+ | errors.SDKError | 4XX, 5XX | \*/\* |
1053
+
732
1054
  ## patchTicketingCustomer
733
1055
 
734
1056
  Update a customer
@@ -972,6 +1294,85 @@ run();
972
1294
  | --------------- | --------------- | --------------- |
973
1295
  | errors.SDKError | 4XX, 5XX | \*/\* |
974
1296
 
1297
+ ## removeTicketingCategory
1298
+
1299
+ Remove a category
1300
+
1301
+ ### Example Usage
1302
+
1303
+ <!-- UsageSnippet language="typescript" operationID="removeTicketingCategory" method="delete" path="/ticketing/{connection_id}/category/{id}" -->
1304
+ ```typescript
1305
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
1306
+
1307
+ const unifiedTo = new UnifiedTo({
1308
+ security: {
1309
+ jwt: "<YOUR_API_KEY_HERE>",
1310
+ },
1311
+ });
1312
+
1313
+ async function run() {
1314
+ const result = await unifiedTo.ticketing.removeTicketingCategory({
1315
+ connectionId: "<id>",
1316
+ id: "<id>",
1317
+ });
1318
+
1319
+ console.log(result);
1320
+ }
1321
+
1322
+ run();
1323
+ ```
1324
+
1325
+ ### Standalone function
1326
+
1327
+ The standalone function version of this method:
1328
+
1329
+ ```typescript
1330
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
1331
+ import { categoryRemoveTicketingCategory } from "@unified-api/typescript-sdk/funcs/categoryRemoveTicketingCategory.js";
1332
+
1333
+ // Use `UnifiedToCore` for best tree-shaking performance.
1334
+ // You can create one instance of it to use across an application.
1335
+ const unifiedTo = new UnifiedToCore({
1336
+ security: {
1337
+ jwt: "<YOUR_API_KEY_HERE>",
1338
+ },
1339
+ });
1340
+
1341
+ async function run() {
1342
+ const res = await categoryRemoveTicketingCategory(unifiedTo, {
1343
+ connectionId: "<id>",
1344
+ id: "<id>",
1345
+ });
1346
+ if (res.ok) {
1347
+ const { value: result } = res;
1348
+ console.log(result);
1349
+ } else {
1350
+ console.log("categoryRemoveTicketingCategory failed:", res.error);
1351
+ }
1352
+ }
1353
+
1354
+ run();
1355
+ ```
1356
+
1357
+ ### Parameters
1358
+
1359
+ | Parameter | Type | Required | Description |
1360
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1361
+ | `request` | [operations.RemoveTicketingCategoryRequest](../../sdk/models/operations/removeticketingcategoryrequest.md) | :heavy_check_mark: | The request object to use for the request. |
1362
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
1363
+ | `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. |
1364
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
1365
+
1366
+ ### Response
1367
+
1368
+ **Promise\<[operations.RemoveTicketingCategoryResponse](../../sdk/models/operations/removeticketingcategoryresponse.md)\>**
1369
+
1370
+ ### Errors
1371
+
1372
+ | Error Type | Status Code | Content Type |
1373
+ | --------------- | --------------- | --------------- |
1374
+ | errors.SDKError | 4XX, 5XX | \*/\* |
1375
+
975
1376
  ## removeTicketingCustomer
976
1377
 
977
1378
  Remove a customer
@@ -1209,6 +1610,87 @@ run();
1209
1610
  | --------------- | --------------- | --------------- |
1210
1611
  | errors.SDKError | 4XX, 5XX | \*/\* |
1211
1612
 
1613
+ ## updateTicketingCategory
1614
+
1615
+ Update a category
1616
+
1617
+ ### Example Usage
1618
+
1619
+ <!-- UsageSnippet language="typescript" operationID="updateTicketingCategory" method="put" path="/ticketing/{connection_id}/category/{id}" -->
1620
+ ```typescript
1621
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
1622
+
1623
+ const unifiedTo = new UnifiedTo({
1624
+ security: {
1625
+ jwt: "<YOUR_API_KEY_HERE>",
1626
+ },
1627
+ });
1628
+
1629
+ async function run() {
1630
+ const result = await unifiedTo.ticketing.updateTicketingCategory({
1631
+ ticketingCategory: {},
1632
+ connectionId: "<id>",
1633
+ id: "<id>",
1634
+ });
1635
+
1636
+ console.log(result);
1637
+ }
1638
+
1639
+ run();
1640
+ ```
1641
+
1642
+ ### Standalone function
1643
+
1644
+ The standalone function version of this method:
1645
+
1646
+ ```typescript
1647
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
1648
+ import { categoryUpdateTicketingCategory } from "@unified-api/typescript-sdk/funcs/categoryUpdateTicketingCategory.js";
1649
+
1650
+ // Use `UnifiedToCore` for best tree-shaking performance.
1651
+ // You can create one instance of it to use across an application.
1652
+ const unifiedTo = new UnifiedToCore({
1653
+ security: {
1654
+ jwt: "<YOUR_API_KEY_HERE>",
1655
+ },
1656
+ });
1657
+
1658
+ async function run() {
1659
+ const res = await categoryUpdateTicketingCategory(unifiedTo, {
1660
+ ticketingCategory: {},
1661
+ connectionId: "<id>",
1662
+ id: "<id>",
1663
+ });
1664
+ if (res.ok) {
1665
+ const { value: result } = res;
1666
+ console.log(result);
1667
+ } else {
1668
+ console.log("categoryUpdateTicketingCategory failed:", res.error);
1669
+ }
1670
+ }
1671
+
1672
+ run();
1673
+ ```
1674
+
1675
+ ### Parameters
1676
+
1677
+ | Parameter | Type | Required | Description |
1678
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1679
+ | `request` | [operations.UpdateTicketingCategoryRequest](../../sdk/models/operations/updateticketingcategoryrequest.md) | :heavy_check_mark: | The request object to use for the request. |
1680
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
1681
+ | `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. |
1682
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
1683
+
1684
+ ### Response
1685
+
1686
+ **Promise\<[shared.TicketingCategory](../../sdk/models/shared/ticketingcategory.md)\>**
1687
+
1688
+ ### Errors
1689
+
1690
+ | Error Type | Status Code | Content Type |
1691
+ | --------------- | --------------- | --------------- |
1692
+ | errors.SDKError | 4XX, 5XX | \*/\* |
1693
+
1212
1694
  ## updateTicketingCustomer
1213
1695
 
1214
1696
  Update a customer
@@ -30,7 +30,11 @@ const unifiedTo = new UnifiedTo({
30
30
 
31
31
  async function run() {
32
32
  const result = await unifiedTo.timeshift.createHrisTimeshift({
33
- hrisTimeshift: {},
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
+ },
34
38
  connectionId: "<id>",
35
39
  });
36
40
 
@@ -58,7 +62,11 @@ const unifiedTo = new UnifiedToCore({
58
62
 
59
63
  async function run() {
60
64
  const res = await hrisCreateHrisTimeshift(unifiedTo, {
61
- hrisTimeshift: {},
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
+ },
62
70
  connectionId: "<id>",
63
71
  });
64
72
  if (res.ok) {
@@ -265,7 +273,11 @@ const unifiedTo = new UnifiedTo({
265
273
 
266
274
  async function run() {
267
275
  const result = await unifiedTo.timeshift.patchHrisTimeshift({
268
- hrisTimeshift: {},
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
+ },
269
281
  connectionId: "<id>",
270
282
  id: "<id>",
271
283
  });
@@ -294,7 +306,11 @@ const unifiedTo = new UnifiedToCore({
294
306
 
295
307
  async function run() {
296
308
  const res = await hrisPatchHrisTimeshift(unifiedTo, {
297
- hrisTimeshift: {},
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
+ },
298
314
  connectionId: "<id>",
299
315
  id: "<id>",
300
316
  });
@@ -425,7 +441,11 @@ const unifiedTo = new UnifiedTo({
425
441
 
426
442
  async function run() {
427
443
  const result = await unifiedTo.timeshift.updateHrisTimeshift({
428
- hrisTimeshift: {},
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
+ },
429
449
  connectionId: "<id>",
430
450
  id: "<id>",
431
451
  });
@@ -454,7 +474,11 @@ const unifiedTo = new UnifiedToCore({
454
474
 
455
475
  async function run() {
456
476
  const res = await hrisUpdateHrisTimeshift(unifiedTo, {
457
- hrisTimeshift: {},
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
+ },
458
482
  connectionId: "<id>",
459
483
  id: "<id>",
460
484
  });
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "..": {
20
20
  "name": "@unified-api/typescript-sdk",
21
- "version": "2.73.19",
21
+ "version": "2.73.21",
22
22
  "dependencies": {
23
23
  "zod": "^3.20.0"
24
24
  },
@@ -0,0 +1,15 @@
1
+ import { UnifiedToCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/errors/httpclienterrors.js";
4
+ import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
5
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
6
+ import { UnifiedToError } from "../sdk/models/errors/unifiedtoerror.js";
7
+ import * as operations from "../sdk/models/operations/index.js";
8
+ import * as shared from "../sdk/models/shared/index.js";
9
+ import { APIPromise } from "../sdk/types/async.js";
10
+ import { Result } from "../sdk/types/fp.js";
11
+ /**
12
+ * Create a category
13
+ */
14
+ export declare function categoryCreateTicketingCategory(client: UnifiedToCore, request: operations.CreateTicketingCategoryRequest, options?: RequestOptions): APIPromise<Result<shared.TicketingCategory, UnifiedToError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
15
+ //# sourceMappingURL=categoryCreateTicketingCategory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"categoryCreateTicketingCategory.d.ts","sourceRoot":"","sources":["../src/funcs/categoryCreateTicketingCategory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAW,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,iBAAiB,EACtB,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}