@hipnation-truth/sdk 0.23.1 → 0.24.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.mjs CHANGED
@@ -285,10 +285,22 @@ var ConversationTasksSubresource = class {
285
285
  return __async(this, null, function* () {
286
286
  return this.post(
287
287
  `/conversations/tasks/${encodeURIComponent(input.taskId)}/status`,
288
- __spreadValues({
288
+ __spreadValues(__spreadValues({
289
289
  id: input.taskId,
290
290
  status: input.status
291
- }, input.resolvedBy ? { resolvedBy: input.resolvedBy } : {})
291
+ }, input.resolvedBy ? { resolvedBy: input.resolvedBy } : {}), input.actor ? { actor: input.actor } : {})
292
+ );
293
+ });
294
+ }
295
+ /** Archive or un-archive a task (hides it from My Tasks without deleting). */
296
+ setArchived(input) {
297
+ return __async(this, null, function* () {
298
+ return this.post(
299
+ `/conversations/tasks/${encodeURIComponent(input.taskId)}/archive`,
300
+ __spreadValues({
301
+ id: input.taskId,
302
+ archived: input.archived
303
+ }, input.actor ? { actor: input.actor } : {})
292
304
  );
293
305
  });
294
306
  }
@@ -301,12 +313,12 @@ var ConversationTasksSubresource = class {
301
313
  return __async(this, null, function* () {
302
314
  return this.patch(
303
315
  `/conversations/tasks/${encodeURIComponent(input.taskId)}`,
304
- __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
316
+ __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
305
317
  id: input.taskId,
306
318
  conversationId: input.conversationId,
307
319
  author: input.author,
308
320
  description: input.description
309
- }, input.title !== void 0 ? { title: input.title } : {}), input.priority ? { priority: input.priority } : {}), input.status ? { status: input.status } : {}), input.assignee !== void 0 ? { assignee: input.assignee } : {}), input.type !== void 0 ? { type: input.type } : {})
321
+ }, input.title !== void 0 ? { title: input.title } : {}), input.priority ? { priority: input.priority } : {}), input.status ? { status: input.status } : {}), input.assignee !== void 0 ? { assignee: input.assignee } : {}), input.type !== void 0 ? { type: input.type } : {}), input.actor ? { actor: input.actor } : {})
310
322
  );
311
323
  });
312
324
  }