@izak0s/spacebring-api 9.3.0 → 9.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2454,6 +2454,18 @@ function createSupport(client, defaults) {
2454
2454
  async create(activity, options) {
2455
2455
  return unwrapProp(await client.POST("/support/tickets/v1/comment", { body: { activity }, signal: options?.signal }), "activity", "POST /support/tickets/v1/comment");
2456
2456
  },
2457
+ /**
2458
+ * Update a ticket comment
2459
+ *
2460
+ * Update the text of a support ticket comment. Only the comment author can edit it, and only comments without an attachment.
2461
+ *
2462
+ * @param id The id of the ticket activity.
2463
+ * @param activity The `activity` payload.
2464
+ * @param options Request options (abort signal).
2465
+ */
2466
+ async update(id, activity, options) {
2467
+ return unwrapProp(await client.PATCH("/support/tickets/v1/comment/{id}", { params: { path: { id } }, body: { activity }, signal: options?.signal }), "activity", "PATCH /support/tickets/v1/comment/{id}");
2468
+ },
2457
2469
  /**
2458
2470
  * Delete a ticket comment
2459
2471
  *