@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.d.mts
CHANGED
|
@@ -281,6 +281,12 @@ interface SetConversationTaskStatusInput {
|
|
|
281
281
|
taskId: string;
|
|
282
282
|
status: ConversationTaskStatus;
|
|
283
283
|
resolvedBy?: string;
|
|
284
|
+
/**
|
|
285
|
+
* Email of the user performing the action. Truth excludes the actor
|
|
286
|
+
* from the task-action push fan-out (legacy parity) — omit it and the
|
|
287
|
+
* actor notifies themselves.
|
|
288
|
+
*/
|
|
289
|
+
actor?: string;
|
|
284
290
|
}
|
|
285
291
|
interface UpdateConversationTaskInput {
|
|
286
292
|
taskId: string;
|
|
@@ -295,6 +301,18 @@ interface UpdateConversationTaskInput {
|
|
|
295
301
|
status?: ConversationTaskStatus;
|
|
296
302
|
assignee?: string;
|
|
297
303
|
type?: string;
|
|
304
|
+
/**
|
|
305
|
+
* Email of the user performing the action. Truth excludes the actor
|
|
306
|
+
* from the task-action push fan-out (legacy parity) — omit it and the
|
|
307
|
+
* actor notifies themselves.
|
|
308
|
+
*/
|
|
309
|
+
actor?: string;
|
|
310
|
+
}
|
|
311
|
+
interface SetConversationTaskArchivedInput {
|
|
312
|
+
taskId: string;
|
|
313
|
+
archived: boolean;
|
|
314
|
+
/** Email of the acting user — excluded from the archive push fan-out. */
|
|
315
|
+
actor?: string;
|
|
298
316
|
}
|
|
299
317
|
interface SendConversationMessageInput {
|
|
300
318
|
fromNumber: string;
|
|
@@ -331,6 +349,11 @@ declare class ConversationTasksSubresource {
|
|
|
331
349
|
setStatus(input: SetConversationTaskStatusInput): Promise<{
|
|
332
350
|
ok: true;
|
|
333
351
|
}>;
|
|
352
|
+
/** Archive or un-archive a task (hides it from My Tasks without deleting). */
|
|
353
|
+
setArchived(input: SetConversationTaskArchivedInput): Promise<{
|
|
354
|
+
ok: true;
|
|
355
|
+
changed: boolean;
|
|
356
|
+
}>;
|
|
334
357
|
/**
|
|
335
358
|
* Update task fields (priority, assignee, description, type). Wraps
|
|
336
359
|
* `PATCH /api/conversations/tasks/{id}` so CommHub doesn't have to
|
package/dist/index.d.ts
CHANGED
|
@@ -281,6 +281,12 @@ interface SetConversationTaskStatusInput {
|
|
|
281
281
|
taskId: string;
|
|
282
282
|
status: ConversationTaskStatus;
|
|
283
283
|
resolvedBy?: string;
|
|
284
|
+
/**
|
|
285
|
+
* Email of the user performing the action. Truth excludes the actor
|
|
286
|
+
* from the task-action push fan-out (legacy parity) — omit it and the
|
|
287
|
+
* actor notifies themselves.
|
|
288
|
+
*/
|
|
289
|
+
actor?: string;
|
|
284
290
|
}
|
|
285
291
|
interface UpdateConversationTaskInput {
|
|
286
292
|
taskId: string;
|
|
@@ -295,6 +301,18 @@ interface UpdateConversationTaskInput {
|
|
|
295
301
|
status?: ConversationTaskStatus;
|
|
296
302
|
assignee?: string;
|
|
297
303
|
type?: string;
|
|
304
|
+
/**
|
|
305
|
+
* Email of the user performing the action. Truth excludes the actor
|
|
306
|
+
* from the task-action push fan-out (legacy parity) — omit it and the
|
|
307
|
+
* actor notifies themselves.
|
|
308
|
+
*/
|
|
309
|
+
actor?: string;
|
|
310
|
+
}
|
|
311
|
+
interface SetConversationTaskArchivedInput {
|
|
312
|
+
taskId: string;
|
|
313
|
+
archived: boolean;
|
|
314
|
+
/** Email of the acting user — excluded from the archive push fan-out. */
|
|
315
|
+
actor?: string;
|
|
298
316
|
}
|
|
299
317
|
interface SendConversationMessageInput {
|
|
300
318
|
fromNumber: string;
|
|
@@ -331,6 +349,11 @@ declare class ConversationTasksSubresource {
|
|
|
331
349
|
setStatus(input: SetConversationTaskStatusInput): Promise<{
|
|
332
350
|
ok: true;
|
|
333
351
|
}>;
|
|
352
|
+
/** Archive or un-archive a task (hides it from My Tasks without deleting). */
|
|
353
|
+
setArchived(input: SetConversationTaskArchivedInput): Promise<{
|
|
354
|
+
ok: true;
|
|
355
|
+
changed: boolean;
|
|
356
|
+
}>;
|
|
334
357
|
/**
|
|
335
358
|
* Update task fields (priority, assignee, description, type). Wraps
|
|
336
359
|
* `PATCH /api/conversations/tasks/{id}` so CommHub doesn't have to
|
package/dist/index.js
CHANGED
|
@@ -398,10 +398,22 @@ var ConversationTasksSubresource = class {
|
|
|
398
398
|
return __async(this, null, function* () {
|
|
399
399
|
return this.post(
|
|
400
400
|
`/conversations/tasks/${encodeURIComponent(input.taskId)}/status`,
|
|
401
|
-
__spreadValues({
|
|
401
|
+
__spreadValues(__spreadValues({
|
|
402
402
|
id: input.taskId,
|
|
403
403
|
status: input.status
|
|
404
|
-
}, input.resolvedBy ? { resolvedBy: input.resolvedBy } : {})
|
|
404
|
+
}, input.resolvedBy ? { resolvedBy: input.resolvedBy } : {}), input.actor ? { actor: input.actor } : {})
|
|
405
|
+
);
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
/** Archive or un-archive a task (hides it from My Tasks without deleting). */
|
|
409
|
+
setArchived(input) {
|
|
410
|
+
return __async(this, null, function* () {
|
|
411
|
+
return this.post(
|
|
412
|
+
`/conversations/tasks/${encodeURIComponent(input.taskId)}/archive`,
|
|
413
|
+
__spreadValues({
|
|
414
|
+
id: input.taskId,
|
|
415
|
+
archived: input.archived
|
|
416
|
+
}, input.actor ? { actor: input.actor } : {})
|
|
405
417
|
);
|
|
406
418
|
});
|
|
407
419
|
}
|
|
@@ -414,12 +426,12 @@ var ConversationTasksSubresource = class {
|
|
|
414
426
|
return __async(this, null, function* () {
|
|
415
427
|
return this.patch(
|
|
416
428
|
`/conversations/tasks/${encodeURIComponent(input.taskId)}`,
|
|
417
|
-
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
429
|
+
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
418
430
|
id: input.taskId,
|
|
419
431
|
conversationId: input.conversationId,
|
|
420
432
|
author: input.author,
|
|
421
433
|
description: input.description
|
|
422
|
-
}, 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 } : {})
|
|
434
|
+
}, 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 } : {})
|
|
423
435
|
);
|
|
424
436
|
});
|
|
425
437
|
}
|