@hipnation-truth/sdk 0.25.1 → 0.25.2
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.d.mts +23 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +16 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -4
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.ts +23 -0
- package/dist/react.js +16 -4
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -333,10 +333,22 @@ var ConversationTasksSubresource = class {
|
|
|
333
333
|
return __async(this, null, function* () {
|
|
334
334
|
return this.post(
|
|
335
335
|
`/conversations/tasks/${encodeURIComponent(input.taskId)}/status`,
|
|
336
|
-
__spreadValues({
|
|
336
|
+
__spreadValues(__spreadValues({
|
|
337
337
|
id: input.taskId,
|
|
338
338
|
status: input.status
|
|
339
|
-
}, input.resolvedBy ? { resolvedBy: input.resolvedBy } : {})
|
|
339
|
+
}, input.resolvedBy ? { resolvedBy: input.resolvedBy } : {}), input.actor ? { actor: input.actor } : {})
|
|
340
|
+
);
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
/** Archive or un-archive a task (hides it from My Tasks without deleting). */
|
|
344
|
+
setArchived(input) {
|
|
345
|
+
return __async(this, null, function* () {
|
|
346
|
+
return this.post(
|
|
347
|
+
`/conversations/tasks/${encodeURIComponent(input.taskId)}/archive`,
|
|
348
|
+
__spreadValues({
|
|
349
|
+
id: input.taskId,
|
|
350
|
+
archived: input.archived
|
|
351
|
+
}, input.actor ? { actor: input.actor } : {})
|
|
340
352
|
);
|
|
341
353
|
});
|
|
342
354
|
}
|
|
@@ -349,12 +361,12 @@ var ConversationTasksSubresource = class {
|
|
|
349
361
|
return __async(this, null, function* () {
|
|
350
362
|
return this.patch(
|
|
351
363
|
`/conversations/tasks/${encodeURIComponent(input.taskId)}`,
|
|
352
|
-
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
364
|
+
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
353
365
|
id: input.taskId,
|
|
354
366
|
conversationId: input.conversationId,
|
|
355
367
|
author: input.author,
|
|
356
368
|
description: input.description
|
|
357
|
-
}, 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 } : {})
|
|
369
|
+
}, 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 } : {})
|
|
358
370
|
);
|
|
359
371
|
});
|
|
360
372
|
}
|