@doist/twist-sdk 2.1.4 → 2.2.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/cjs/clients/add-comment-helper.js +35 -0
- package/dist/cjs/clients/comments-client.js +2 -15
- package/dist/cjs/clients/threads-client.js +33 -0
- package/dist/cjs/types/requests.js +3 -1
- package/dist/esm/clients/add-comment-helper.js +32 -0
- package/dist/esm/clients/comments-client.js +2 -15
- package/dist/esm/clients/threads-client.js +34 -1
- package/dist/esm/types/requests.js +2 -0
- package/dist/types/clients/add-comment-helper.d.ts +14 -0
- package/dist/types/clients/threads-client.d.ts +57 -2
- package/dist/types/types/requests.d.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.addCommentRequest = addCommentRequest;
|
|
15
|
+
var endpoints_1 = require("../consts/endpoints");
|
|
16
|
+
var http_client_1 = require("../transport/http-client");
|
|
17
|
+
var entities_1 = require("../types/entities");
|
|
18
|
+
function addCommentRequest(context, params, options) {
|
|
19
|
+
var method = 'POST';
|
|
20
|
+
var url = "".concat(endpoints_1.ENDPOINT_COMMENTS, "/add");
|
|
21
|
+
var payload = (options === null || options === void 0 ? void 0 : options.threadAction)
|
|
22
|
+
? __assign(__assign({}, params), { threadAction: options.threadAction }) : params;
|
|
23
|
+
var schema = entities_1.CommentSchema;
|
|
24
|
+
if (options === null || options === void 0 ? void 0 : options.batch) {
|
|
25
|
+
return { method: method, url: url, params: payload, schema: schema };
|
|
26
|
+
}
|
|
27
|
+
return (0, http_client_1.request)({
|
|
28
|
+
httpMethod: method,
|
|
29
|
+
baseUri: context.baseUri,
|
|
30
|
+
relativePath: url,
|
|
31
|
+
apiToken: context.apiToken,
|
|
32
|
+
payload: payload,
|
|
33
|
+
customFetch: context.customFetch,
|
|
34
|
+
}).then(function (response) { return schema.parse(response.data); });
|
|
35
|
+
}
|
|
@@ -20,6 +20,7 @@ var zod_1 = require("zod");
|
|
|
20
20
|
var endpoints_1 = require("../consts/endpoints");
|
|
21
21
|
var http_client_1 = require("../transport/http-client");
|
|
22
22
|
var entities_1 = require("../types/entities");
|
|
23
|
+
var add_comment_helper_1 = require("./add-comment-helper");
|
|
23
24
|
var base_client_1 = require("./base-client");
|
|
24
25
|
/**
|
|
25
26
|
* Client for interacting with Twist comment endpoints.
|
|
@@ -70,21 +71,7 @@ var CommentsClient = /** @class */ (function (_super) {
|
|
|
70
71
|
}).then(function (response) { return wrappedSchema.parse(response.data); });
|
|
71
72
|
};
|
|
72
73
|
CommentsClient.prototype.createComment = function (args, options) {
|
|
73
|
-
|
|
74
|
-
var url = "".concat(endpoints_1.ENDPOINT_COMMENTS, "/add");
|
|
75
|
-
var params = args;
|
|
76
|
-
var schema = entities_1.CommentSchema;
|
|
77
|
-
if (options === null || options === void 0 ? void 0 : options.batch) {
|
|
78
|
-
return { method: method, url: url, params: params, schema: schema };
|
|
79
|
-
}
|
|
80
|
-
return (0, http_client_1.request)({
|
|
81
|
-
httpMethod: method,
|
|
82
|
-
baseUri: this.getBaseUri(),
|
|
83
|
-
relativePath: url,
|
|
84
|
-
apiToken: this.apiToken,
|
|
85
|
-
payload: params,
|
|
86
|
-
customFetch: this.customFetch,
|
|
87
|
-
}).then(function (response) { return schema.parse(response.data); });
|
|
74
|
+
return (0, add_comment_helper_1.addCommentRequest)({ baseUri: this.getBaseUri(), apiToken: this.apiToken, customFetch: this.customFetch }, args, options);
|
|
88
75
|
};
|
|
89
76
|
CommentsClient.prototype.updateComment = function (args, options) {
|
|
90
77
|
var method = 'POST';
|
|
@@ -14,12 +14,35 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
14
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
|
+
var __assign = (this && this.__assign) || function () {
|
|
18
|
+
__assign = Object.assign || function(t) {
|
|
19
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
+
s = arguments[i];
|
|
21
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
+
t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return __assign.apply(this, arguments);
|
|
27
|
+
};
|
|
28
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
+
var t = {};
|
|
30
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
+
t[p] = s[p];
|
|
32
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
17
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
40
|
exports.ThreadsClient = void 0;
|
|
19
41
|
var zod_1 = require("zod");
|
|
20
42
|
var endpoints_1 = require("../consts/endpoints");
|
|
21
43
|
var http_client_1 = require("../transport/http-client");
|
|
22
44
|
var entities_1 = require("../types/entities");
|
|
45
|
+
var add_comment_helper_1 = require("./add-comment-helper");
|
|
23
46
|
var base_client_1 = require("./base-client");
|
|
24
47
|
/**
|
|
25
48
|
* Client for interacting with Twist thread endpoints.
|
|
@@ -361,6 +384,16 @@ var ThreadsClient = /** @class */ (function (_super) {
|
|
|
361
384
|
customFetch: this.customFetch,
|
|
362
385
|
}).then(function (response) { return schema.parse(response.data); });
|
|
363
386
|
};
|
|
387
|
+
ThreadsClient.prototype.closeThread = function (args, options) {
|
|
388
|
+
return this.addCommentWithAction(args, 'close', options);
|
|
389
|
+
};
|
|
390
|
+
ThreadsClient.prototype.reopenThread = function (args, options) {
|
|
391
|
+
return this.addCommentWithAction(args, 'reopen', options);
|
|
392
|
+
};
|
|
393
|
+
ThreadsClient.prototype.addCommentWithAction = function (args, threadAction, options) {
|
|
394
|
+
var id = args.id, rest = __rest(args, ["id"]);
|
|
395
|
+
return (0, add_comment_helper_1.addCommentRequest)({ baseUri: this.getBaseUri(), apiToken: this.apiToken, customFetch: this.customFetch }, __assign({ threadId: id }, rest), __assign(__assign({}, options), { threadAction: threadAction }));
|
|
396
|
+
};
|
|
364
397
|
return ThreadsClient;
|
|
365
398
|
}(base_client_1.BaseClient));
|
|
366
399
|
exports.ThreadsClient = ThreadsClient;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AWAY_MODE_TYPES = exports.GetOrCreateConversationArgsSchema = exports.GetConversationsArgsSchema = exports.GetCommentsArgsSchema = exports.GetThreadsArgsSchema = exports.GetChannelsArgsSchema = exports.CreateMessageArgsSchema = exports.CreateConversationArgsSchema = exports.UpdateCommentArgsSchema = exports.CreateCommentArgsSchema = exports.UpdateThreadArgsSchema = exports.CreateThreadArgsSchema = exports.UpdateChannelArgsSchema = exports.CreateChannelArgsSchema = void 0;
|
|
3
|
+
exports.THREAD_ACTIONS = exports.AWAY_MODE_TYPES = exports.GetOrCreateConversationArgsSchema = exports.GetConversationsArgsSchema = exports.GetCommentsArgsSchema = exports.GetThreadsArgsSchema = exports.GetChannelsArgsSchema = exports.CreateMessageArgsSchema = exports.CreateConversationArgsSchema = exports.UpdateCommentArgsSchema = exports.CreateCommentArgsSchema = exports.UpdateThreadArgsSchema = exports.CreateThreadArgsSchema = exports.UpdateChannelArgsSchema = exports.CreateChannelArgsSchema = void 0;
|
|
4
4
|
var zod_1 = require("zod");
|
|
5
5
|
exports.CreateChannelArgsSchema = zod_1.z.object({
|
|
6
6
|
workspaceId: zod_1.z.number(),
|
|
@@ -91,3 +91,5 @@ exports.GetOrCreateConversationArgsSchema = zod_1.z.object({
|
|
|
91
91
|
userIds: zod_1.z.array(zod_1.z.number()),
|
|
92
92
|
});
|
|
93
93
|
exports.AWAY_MODE_TYPES = ['parental', 'vacation', 'sickleave', 'other'];
|
|
94
|
+
// Threads
|
|
95
|
+
exports.THREAD_ACTIONS = ['close', 'reopen'];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { ENDPOINT_COMMENTS } from '../consts/endpoints.js';
|
|
13
|
+
import { request } from '../transport/http-client.js';
|
|
14
|
+
import { CommentSchema } from '../types/entities.js';
|
|
15
|
+
export function addCommentRequest(context, params, options) {
|
|
16
|
+
var method = 'POST';
|
|
17
|
+
var url = "".concat(ENDPOINT_COMMENTS, "/add");
|
|
18
|
+
var payload = (options === null || options === void 0 ? void 0 : options.threadAction)
|
|
19
|
+
? __assign(__assign({}, params), { threadAction: options.threadAction }) : params;
|
|
20
|
+
var schema = CommentSchema;
|
|
21
|
+
if (options === null || options === void 0 ? void 0 : options.batch) {
|
|
22
|
+
return { method: method, url: url, params: payload, schema: schema };
|
|
23
|
+
}
|
|
24
|
+
return request({
|
|
25
|
+
httpMethod: method,
|
|
26
|
+
baseUri: context.baseUri,
|
|
27
|
+
relativePath: url,
|
|
28
|
+
apiToken: context.apiToken,
|
|
29
|
+
payload: payload,
|
|
30
|
+
customFetch: context.customFetch,
|
|
31
|
+
}).then(function (response) { return schema.parse(response.data); });
|
|
32
|
+
}
|
|
@@ -17,6 +17,7 @@ import { z } from 'zod';
|
|
|
17
17
|
import { ENDPOINT_COMMENTS } from '../consts/endpoints.js';
|
|
18
18
|
import { request } from '../transport/http-client.js';
|
|
19
19
|
import { CommentSchema } from '../types/entities.js';
|
|
20
|
+
import { addCommentRequest } from './add-comment-helper.js';
|
|
20
21
|
import { BaseClient } from './base-client.js';
|
|
21
22
|
/**
|
|
22
23
|
* Client for interacting with Twist comment endpoints.
|
|
@@ -67,21 +68,7 @@ var CommentsClient = /** @class */ (function (_super) {
|
|
|
67
68
|
}).then(function (response) { return wrappedSchema.parse(response.data); });
|
|
68
69
|
};
|
|
69
70
|
CommentsClient.prototype.createComment = function (args, options) {
|
|
70
|
-
|
|
71
|
-
var url = "".concat(ENDPOINT_COMMENTS, "/add");
|
|
72
|
-
var params = args;
|
|
73
|
-
var schema = CommentSchema;
|
|
74
|
-
if (options === null || options === void 0 ? void 0 : options.batch) {
|
|
75
|
-
return { method: method, url: url, params: params, schema: schema };
|
|
76
|
-
}
|
|
77
|
-
return request({
|
|
78
|
-
httpMethod: method,
|
|
79
|
-
baseUri: this.getBaseUri(),
|
|
80
|
-
relativePath: url,
|
|
81
|
-
apiToken: this.apiToken,
|
|
82
|
-
payload: params,
|
|
83
|
-
customFetch: this.customFetch,
|
|
84
|
-
}).then(function (response) { return schema.parse(response.data); });
|
|
71
|
+
return addCommentRequest({ baseUri: this.getBaseUri(), apiToken: this.apiToken, customFetch: this.customFetch }, args, options);
|
|
85
72
|
};
|
|
86
73
|
CommentsClient.prototype.updateComment = function (args, options) {
|
|
87
74
|
var method = 'POST';
|
|
@@ -13,10 +13,33 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
13
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
14
|
};
|
|
15
15
|
})();
|
|
16
|
+
var __assign = (this && this.__assign) || function () {
|
|
17
|
+
__assign = Object.assign || function(t) {
|
|
18
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
+
s = arguments[i];
|
|
20
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
+
t[p] = s[p];
|
|
22
|
+
}
|
|
23
|
+
return t;
|
|
24
|
+
};
|
|
25
|
+
return __assign.apply(this, arguments);
|
|
26
|
+
};
|
|
27
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
28
|
+
var t = {};
|
|
29
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
30
|
+
t[p] = s[p];
|
|
31
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
32
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
33
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
34
|
+
t[p[i]] = s[p[i]];
|
|
35
|
+
}
|
|
36
|
+
return t;
|
|
37
|
+
};
|
|
16
38
|
import { z } from 'zod';
|
|
17
39
|
import { ENDPOINT_THREADS } from '../consts/endpoints.js';
|
|
18
40
|
import { request } from '../transport/http-client.js';
|
|
19
|
-
import { ThreadSchema, UnreadThreadSchema } from '../types/entities.js';
|
|
41
|
+
import { ThreadSchema, UnreadThreadSchema, } from '../types/entities.js';
|
|
42
|
+
import { addCommentRequest } from './add-comment-helper.js';
|
|
20
43
|
import { BaseClient } from './base-client.js';
|
|
21
44
|
/**
|
|
22
45
|
* Client for interacting with Twist thread endpoints.
|
|
@@ -358,6 +381,16 @@ var ThreadsClient = /** @class */ (function (_super) {
|
|
|
358
381
|
customFetch: this.customFetch,
|
|
359
382
|
}).then(function (response) { return schema.parse(response.data); });
|
|
360
383
|
};
|
|
384
|
+
ThreadsClient.prototype.closeThread = function (args, options) {
|
|
385
|
+
return this.addCommentWithAction(args, 'close', options);
|
|
386
|
+
};
|
|
387
|
+
ThreadsClient.prototype.reopenThread = function (args, options) {
|
|
388
|
+
return this.addCommentWithAction(args, 'reopen', options);
|
|
389
|
+
};
|
|
390
|
+
ThreadsClient.prototype.addCommentWithAction = function (args, threadAction, options) {
|
|
391
|
+
var id = args.id, rest = __rest(args, ["id"]);
|
|
392
|
+
return addCommentRequest({ baseUri: this.getBaseUri(), apiToken: this.apiToken, customFetch: this.customFetch }, __assign({ threadId: id }, rest), __assign(__assign({}, options), { threadAction: threadAction }));
|
|
393
|
+
};
|
|
361
394
|
return ThreadsClient;
|
|
362
395
|
}(BaseClient));
|
|
363
396
|
export { ThreadsClient };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BatchRequestDescriptor } from '../types/batch.js';
|
|
2
|
+
import { type Comment } from '../types/entities.js';
|
|
3
|
+
import type { CustomFetch } from '../types/http.js';
|
|
4
|
+
import type { ThreadAction } from '../types/requests.js';
|
|
5
|
+
type ClientContext = {
|
|
6
|
+
baseUri: string;
|
|
7
|
+
apiToken: string;
|
|
8
|
+
customFetch?: CustomFetch;
|
|
9
|
+
};
|
|
10
|
+
export declare function addCommentRequest(context: ClientContext, params: Record<string, unknown>, options?: {
|
|
11
|
+
batch?: boolean;
|
|
12
|
+
threadAction?: ThreadAction;
|
|
13
|
+
}): Promise<Comment> | BatchRequestDescriptor<Comment>;
|
|
14
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BatchRequestDescriptor } from '../types/batch.js';
|
|
2
|
-
import { type Thread, type UnreadThread } from '../types/entities.js';
|
|
3
|
-
import { type CreateThreadArgs, type GetThreadsArgs, type MarkThreadReadArgs, type MarkThreadUnreadArgs, type MarkThreadUnreadForOthersArgs, type MoveThreadToChannelArgs, type MuteThreadArgs, type UpdateThreadArgs } from '../types/requests.js';
|
|
2
|
+
import { type Comment, type Thread, type UnreadThread } from '../types/entities.js';
|
|
3
|
+
import { type CloseThreadArgs, type CreateThreadArgs, type GetThreadsArgs, type MarkThreadReadArgs, type MarkThreadUnreadArgs, type MarkThreadUnreadForOthersArgs, type MoveThreadToChannelArgs, type MuteThreadArgs, type ReopenThreadArgs, type UpdateThreadArgs } from '../types/requests.js';
|
|
4
4
|
import { BaseClient } from './base-client.js';
|
|
5
5
|
/**
|
|
6
6
|
* Client for interacting with Twist thread endpoints.
|
|
@@ -319,4 +319,59 @@ export declare class ThreadsClient extends BaseClient {
|
|
|
319
319
|
unmuteThread(id: number, options?: {
|
|
320
320
|
batch?: false;
|
|
321
321
|
}): Promise<Thread>;
|
|
322
|
+
/**
|
|
323
|
+
* Closes a thread by adding a comment with a close action.
|
|
324
|
+
*
|
|
325
|
+
* @param args - The arguments for closing a thread.
|
|
326
|
+
* @param args.id - The thread ID.
|
|
327
|
+
* @param args.content - The comment content.
|
|
328
|
+
* @param args.tempId - Optional temporary identifier.
|
|
329
|
+
* @param args.attachments - Optional array of attachment objects.
|
|
330
|
+
* @param args.actions - Optional array of action objects.
|
|
331
|
+
* @param args.recipients - Optional array of user IDs to notify.
|
|
332
|
+
* @param options - Optional configuration. Set `batch: true` to return a descriptor for batch requests.
|
|
333
|
+
* @returns The created comment object.
|
|
334
|
+
*
|
|
335
|
+
* @example
|
|
336
|
+
* ```typescript
|
|
337
|
+
* const comment = await api.threads.closeThread({
|
|
338
|
+
* id: 789,
|
|
339
|
+
* content: 'Closing this thread — resolved.'
|
|
340
|
+
* })
|
|
341
|
+
* ```
|
|
342
|
+
*/
|
|
343
|
+
closeThread(args: CloseThreadArgs, options: {
|
|
344
|
+
batch: true;
|
|
345
|
+
}): BatchRequestDescriptor<Comment>;
|
|
346
|
+
closeThread(args: CloseThreadArgs, options?: {
|
|
347
|
+
batch?: false;
|
|
348
|
+
}): Promise<Comment>;
|
|
349
|
+
/**
|
|
350
|
+
* Reopens a thread by adding a comment with a reopen action.
|
|
351
|
+
*
|
|
352
|
+
* @param args - The arguments for reopening a thread.
|
|
353
|
+
* @param args.id - The thread ID.
|
|
354
|
+
* @param args.content - The comment content.
|
|
355
|
+
* @param args.tempId - Optional temporary identifier.
|
|
356
|
+
* @param args.attachments - Optional array of attachment objects.
|
|
357
|
+
* @param args.actions - Optional array of action objects.
|
|
358
|
+
* @param args.recipients - Optional array of user IDs to notify.
|
|
359
|
+
* @param options - Optional configuration. Set `batch: true` to return a descriptor for batch requests.
|
|
360
|
+
* @returns The created comment object.
|
|
361
|
+
*
|
|
362
|
+
* @example
|
|
363
|
+
* ```typescript
|
|
364
|
+
* const comment = await api.threads.reopenThread({
|
|
365
|
+
* id: 789,
|
|
366
|
+
* content: 'Reopening — need further discussion.'
|
|
367
|
+
* })
|
|
368
|
+
* ```
|
|
369
|
+
*/
|
|
370
|
+
reopenThread(args: ReopenThreadArgs, options: {
|
|
371
|
+
batch: true;
|
|
372
|
+
}): BatchRequestDescriptor<Comment>;
|
|
373
|
+
reopenThread(args: ReopenThreadArgs, options?: {
|
|
374
|
+
batch?: false;
|
|
375
|
+
}): Promise<Comment>;
|
|
376
|
+
private addCommentWithAction;
|
|
322
377
|
}
|
|
@@ -202,6 +202,24 @@ export type RemoveChannelUsersArgs = {
|
|
|
202
202
|
id: number;
|
|
203
203
|
userIds: number[];
|
|
204
204
|
};
|
|
205
|
+
export declare const THREAD_ACTIONS: readonly ["close", "reopen"];
|
|
206
|
+
export type ThreadAction = (typeof THREAD_ACTIONS)[number];
|
|
207
|
+
export type CloseThreadArgs = {
|
|
208
|
+
id: number;
|
|
209
|
+
content: string;
|
|
210
|
+
tempId?: number | null;
|
|
211
|
+
attachments?: unknown | null;
|
|
212
|
+
actions?: unknown | null;
|
|
213
|
+
recipients?: number[] | null;
|
|
214
|
+
};
|
|
215
|
+
export type ReopenThreadArgs = {
|
|
216
|
+
id: number;
|
|
217
|
+
content: string;
|
|
218
|
+
tempId?: number | null;
|
|
219
|
+
attachments?: unknown | null;
|
|
220
|
+
actions?: unknown | null;
|
|
221
|
+
recipients?: number[] | null;
|
|
222
|
+
};
|
|
205
223
|
export type MoveThreadToChannelArgs = {
|
|
206
224
|
id: number;
|
|
207
225
|
toChannel: number;
|