@doist/todoist-api-typescript 6.1.6 → 6.1.8

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.
@@ -540,7 +540,8 @@ class TodoistApi {
540
540
  /**
541
541
  * Retrieves all sections within a specific project or matching criteria.
542
542
  *
543
- * @param args - Filter parameters such as project ID.
543
+ * @param args - Filter parameters such as project ID. If no projectId is provided,
544
+ * all sections are returned.
544
545
  * @returns A promise that resolves to an array of sections.
545
546
  */
546
547
  async getSections(args) {
@@ -537,7 +537,8 @@ export class TodoistApi {
537
537
  /**
538
538
  * Retrieves all sections within a specific project or matching criteria.
539
539
  *
540
- * @param args - Filter parameters such as project ID.
540
+ * @param args - Filter parameters such as project ID. If no projectId is provided,
541
+ * all sections are returned.
541
542
  * @returns A promise that resolves to an array of sections.
542
543
  */
543
544
  async getSections(args) {
@@ -233,10 +233,11 @@ export declare class TodoistApi {
233
233
  /**
234
234
  * Retrieves all sections within a specific project or matching criteria.
235
235
  *
236
- * @param args - Filter parameters such as project ID.
236
+ * @param args - Filter parameters such as project ID. If no projectId is provided,
237
+ * all sections are returned.
237
238
  * @returns A promise that resolves to an array of sections.
238
239
  */
239
- getSections(args: GetSectionsArgs): Promise<GetSectionsResponse>;
240
+ getSections(args?: GetSectionsArgs): Promise<GetSectionsResponse>;
240
241
  /**
241
242
  * Retrieves a single section by its ID.
242
243
  *
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@doist/todoist-api-typescript",
3
- "version": "6.1.6",
3
+ "version": "6.1.8",
4
4
  "description": "A typescript wrapper for the Todoist REST API.",
5
5
  "author": "Doist developers",
6
- "repository": "git@github.com:doist/todoist-api-typescript.git",
6
+ "repository": "https://github.com/Doist/todoist-api-typescript",
7
7
  "homepage": "https://doist.github.io/todoist-api-typescript/",
8
8
  "license": "MIT",
9
9
  "type": "module",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "sideEffects": false,
21
21
  "engines": {
22
- "node": ">=20.0.0"
22
+ "node": ">=22.0.0"
23
23
  },
24
24
  "scripts": {
25
25
  "clean": "rimraf dist",