@doist/todoist-sdk 15.0.1 → 15.0.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/esm/types/sync/resources/user.js +1 -1
- package/dist/esm/types/users/types.js +1 -0
- package/dist/types/types/sync/resources/user.d.ts +2 -2
- package/dist/types/types/sync/response.d.ts +1 -1
- package/dist/types/types/users/types.d.ts +1 -0
- package/dist/types/utils/validators.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { PREMIUM_STATUSES } from '../../users/types.js';
|
|
3
3
|
import { BooleanFromZeroOneSchema, DateFormatSchema, DayOfWeekSchema, TimeFormatSchema, } from '../user-preferences.js';
|
|
4
4
|
export const FeaturesSchema = z.looseObject({
|
|
5
|
-
karmaDisabled: z.boolean(),
|
|
5
|
+
karmaDisabled: z.union([z.boolean(), BooleanFromZeroOneSchema]),
|
|
6
6
|
restriction: z.number().int(),
|
|
7
7
|
karmaVacation: z.boolean(),
|
|
8
8
|
dateistLang: z.any(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const FeaturesSchema: z.ZodObject<{
|
|
3
|
-
karmaDisabled: z.ZodBoolean
|
|
3
|
+
karmaDisabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>]>;
|
|
4
4
|
restriction: z.ZodNumber;
|
|
5
5
|
karmaVacation: z.ZodBoolean;
|
|
6
6
|
dateistLang: z.ZodAny;
|
|
@@ -52,7 +52,7 @@ export declare const SyncUserSchema: z.ZodObject<{
|
|
|
52
52
|
daysOff: z.ZodArray<z.ZodNumber>;
|
|
53
53
|
featureIdentifier: z.ZodString;
|
|
54
54
|
features: z.ZodObject<{
|
|
55
|
-
karmaDisabled: z.ZodBoolean
|
|
55
|
+
karmaDisabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>]>;
|
|
56
56
|
restriction: z.ZodNumber;
|
|
57
57
|
karmaVacation: z.ZodBoolean;
|
|
58
58
|
dateistLang: z.ZodAny;
|
|
@@ -384,7 +384,7 @@ export declare const SyncResponseSchema: z.ZodObject<{
|
|
|
384
384
|
daysOff: z.ZodArray<z.ZodNumber>;
|
|
385
385
|
featureIdentifier: z.ZodString;
|
|
386
386
|
features: z.ZodObject<{
|
|
387
|
-
karmaDisabled: z.ZodBoolean
|
|
387
|
+
karmaDisabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>]>;
|
|
388
388
|
restriction: z.ZodNumber;
|
|
389
389
|
karmaVacation: z.ZodBoolean;
|
|
390
390
|
dateistLang: z.ZodAny;
|
|
@@ -58,6 +58,7 @@ export declare const CurrentUserSchema: z.ZodObject<{
|
|
|
58
58
|
inboxProjectId: z.ZodString;
|
|
59
59
|
daysOff: z.ZodArray<z.ZodNumber>;
|
|
60
60
|
weekendStartDay: z.ZodNumber;
|
|
61
|
+
websocketUrl: z.ZodOptional<z.ZodString>;
|
|
61
62
|
}, z.core.$strip>;
|
|
62
63
|
/**
|
|
63
64
|
* Represents the current authenticated user with detailed information.
|
|
@@ -447,6 +447,7 @@ export declare const validateCurrentUser: (input: unknown) => {
|
|
|
447
447
|
avatarMedium?: string | null | undefined;
|
|
448
448
|
avatarS640?: string | null | undefined;
|
|
449
449
|
avatarSmall?: string | null | undefined;
|
|
450
|
+
websocketUrl?: string | undefined;
|
|
450
451
|
};
|
|
451
452
|
export declare const validateActivityEvent: (input: unknown) => {
|
|
452
453
|
[x: string]: any;
|
package/package.json
CHANGED