@doist/todoist-api-typescript 7.6.1 → 7.7.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.
@@ -1340,13 +1340,14 @@ class TodoistApi {
1340
1340
  * @returns A promise that resolves to the created comment.
1341
1341
  */
1342
1342
  async addComment(args, requestId) {
1343
+ const { uidsToNotify } = args, rest = __rest(args, ["uidsToNotify"]);
1343
1344
  const response = await (0, http_client_1.request)({
1344
1345
  httpMethod: 'POST',
1345
1346
  baseUri: this.syncApiBase,
1346
1347
  relativePath: endpoints_1.ENDPOINT_REST_COMMENTS,
1347
1348
  apiToken: this.authToken,
1348
1349
  customFetch: this.customFetch,
1349
- payload: args,
1350
+ payload: Object.assign(Object.assign({}, rest), (uidsToNotify ? { uidsToNotify: uidsToNotify.join(',') } : {})),
1350
1351
  requestId: requestId,
1351
1352
  });
1352
1353
  return (0, validators_1.validateComment)(response.data);
@@ -1337,13 +1337,14 @@ export class TodoistApi {
1337
1337
  * @returns A promise that resolves to the created comment.
1338
1338
  */
1339
1339
  async addComment(args, requestId) {
1340
+ const { uidsToNotify } = args, rest = __rest(args, ["uidsToNotify"]);
1340
1341
  const response = await request({
1341
1342
  httpMethod: 'POST',
1342
1343
  baseUri: this.syncApiBase,
1343
1344
  relativePath: ENDPOINT_REST_COMMENTS,
1344
1345
  apiToken: this.authToken,
1345
1346
  customFetch: this.customFetch,
1346
- payload: args,
1347
+ payload: Object.assign(Object.assign({}, rest), (uidsToNotify ? { uidsToNotify: uidsToNotify.join(',') } : {})),
1347
1348
  requestId: requestId,
1348
1349
  });
1349
1350
  return validateComment(response.data);
@@ -50,6 +50,7 @@ export type AddCommentArgs = {
50
50
  fileType?: string;
51
51
  resourceType?: string;
52
52
  } | null;
53
+ uidsToNotify?: string[];
53
54
  } & RequireExactlyOne<{
54
55
  taskId?: string;
55
56
  projectId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/todoist-api-typescript",
3
- "version": "7.6.1",
3
+ "version": "7.7.0",
4
4
  "description": "A typescript wrapper for the Todoist REST API.",
5
5
  "author": "Doist developers",
6
6
  "repository": "https://github.com/Doist/todoist-api-typescript",
@@ -12,9 +12,9 @@
12
12
  "types": "dist/types/index.d.ts",
13
13
  "exports": {
14
14
  ".": {
15
+ "types": "./dist/types/index.d.ts",
15
16
  "import": "./dist/esm/index.js",
16
- "require": "./dist/cjs/index.js",
17
- "types": "./dist/types/index.d.ts"
17
+ "require": "./dist/cjs/index.js"
18
18
  }
19
19
  },
20
20
  "sideEffects": false,