@doist/todoist-sdk 15.8.0 → 15.8.1

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.
@@ -1,19 +1,23 @@
1
1
  import type { DateFormat, DayOfWeek, TimeFormat } from '../user-preferences.js';
2
2
  export type UserStatusEffectArgs = {
3
3
  scope?: {
4
- mode: string;
4
+ mode?: string;
5
5
  };
6
6
  };
7
- /** The complete status to set. It replaces any existing status. */
7
+ /** Only supplied fields change. Null removes optional fields and effects. */
8
8
  export type UserStatusArgs = {
9
- message: string;
10
- emoji?: string;
11
- /** Must be in the future; omit it for no expiry. A `Date` is sent as an ISO 8601 string. */
12
- activeUntil?: Date | string;
9
+ /** Required when creating a status; omit to preserve the existing message. */
10
+ message?: string;
11
+ emoji?: string | null;
12
+ /** Must be in the future; null removes expiry, omission preserves it. Dates are sent as ISO strings. */
13
+ activeUntil?: Date | string | null;
14
+ /** Supplied effects are merged; null clears all effects, omission or {} preserves them. */
13
15
  effects?: {
14
- pauseNotifications?: UserStatusEffectArgs;
15
- pauseActivity?: UserStatusEffectArgs;
16
- };
16
+ /** Null removes the effect; {} preserves its configuration or enables it with defaults. */
17
+ pauseNotifications?: UserStatusEffectArgs | null;
18
+ /** Null removes the effect; {} preserves its configuration or enables it with defaults. */
19
+ pauseActivity?: UserStatusEffectArgs | null;
20
+ } | null;
17
21
  };
18
22
  export type UserUpdateArgs = {
19
23
  fullName?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/todoist-sdk",
3
- "version": "15.8.0",
3
+ "version": "15.8.1",
4
4
  "description": "The official TypeScript SDK for the Todoist REST API.",
5
5
  "author": "Doist developers",
6
6
  "repository": "https://github.com/Doist/todoist-sdk-typescript",