@doist/todoist-sdk 10.1.0 → 10.1.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.
@@ -16,8 +16,8 @@ exports.QuickAddFeatureSchema = zod_1.z.object({
16
16
  exports.UserSettingsSchema = zod_1.z.looseObject({
17
17
  completedSoundDesktop: zod_1.z.boolean(),
18
18
  completedSoundMobile: zod_1.z.boolean(),
19
- debugLogSendingEnabledUntil: zod_1.z.string().nullable(),
20
- legacyPricing: zod_1.z.boolean(),
19
+ debugLogSendingEnabledUntil: zod_1.z.string().nullish(),
20
+ legacyPricing: zod_1.z.union([zod_1.z.boolean(), zod_1.z.literal(0), zod_1.z.literal(1)]).transform(Boolean),
21
21
  navigation: zod_1.z
22
22
  .object({
23
23
  countsShown: zod_1.z.boolean(),
@@ -53,7 +53,7 @@ exports.SyncUserSchema = zod_1.z.looseObject({
53
53
  businessAccountId: zod_1.z.string().nullable(),
54
54
  dailyGoal: zod_1.z.number().int(),
55
55
  dateFormat: user_preferences_1.DateFormatSchema,
56
- dateistLang: zod_1.z.string().nullable(),
56
+ dateistLang: zod_1.z.string().nullish(),
57
57
  daysOff: zod_1.z.array(zod_1.z.number().int()),
58
58
  featureIdentifier: zod_1.z.string(),
59
59
  features: exports.FeaturesSchema,
@@ -72,8 +72,8 @@ exports.SyncUserSchema = zod_1.z.looseObject({
72
72
  karmaTrend: zod_1.z.string(),
73
73
  lang: zod_1.z.string(),
74
74
  mfaEnabled: zod_1.z.boolean().optional(),
75
- mobileHost: zod_1.z.string().nullable(),
76
- mobileNumber: zod_1.z.string().nullable(),
75
+ mobileHost: zod_1.z.string().nullish(),
76
+ mobileNumber: zod_1.z.string().nullish(),
77
77
  nextWeek: user_preferences_1.DayOfWeekSchema,
78
78
  onboardingLevel: zod_1.z.string().nullable().optional(),
79
79
  onboardingRole: zod_1.z.string().nullable().optional(),
@@ -100,7 +100,7 @@ exports.SyncUserSchema = zod_1.z.looseObject({
100
100
  startPage: zod_1.z.string(),
101
101
  themeId: zod_1.z.string(),
102
102
  timeFormat: user_preferences_1.TimeFormatSchema,
103
- token: zod_1.z.string(),
103
+ token: zod_1.z.string().optional(),
104
104
  tzInfo: exports.TzInfoSchema,
105
105
  uniquePrefix: zod_1.z.number().int(),
106
106
  verificationStatus: zod_1.z.string(),
@@ -13,8 +13,8 @@ export const QuickAddFeatureSchema = z.object({
13
13
  export const UserSettingsSchema = z.looseObject({
14
14
  completedSoundDesktop: z.boolean(),
15
15
  completedSoundMobile: z.boolean(),
16
- debugLogSendingEnabledUntil: z.string().nullable(),
17
- legacyPricing: z.boolean(),
16
+ debugLogSendingEnabledUntil: z.string().nullish(),
17
+ legacyPricing: z.union([z.boolean(), z.literal(0), z.literal(1)]).transform(Boolean),
18
18
  navigation: z
19
19
  .object({
20
20
  countsShown: z.boolean(),
@@ -50,7 +50,7 @@ export const SyncUserSchema = z.looseObject({
50
50
  businessAccountId: z.string().nullable(),
51
51
  dailyGoal: z.number().int(),
52
52
  dateFormat: DateFormatSchema,
53
- dateistLang: z.string().nullable(),
53
+ dateistLang: z.string().nullish(),
54
54
  daysOff: z.array(z.number().int()),
55
55
  featureIdentifier: z.string(),
56
56
  features: FeaturesSchema,
@@ -69,8 +69,8 @@ export const SyncUserSchema = z.looseObject({
69
69
  karmaTrend: z.string(),
70
70
  lang: z.string(),
71
71
  mfaEnabled: z.boolean().optional(),
72
- mobileHost: z.string().nullable(),
73
- mobileNumber: z.string().nullable(),
72
+ mobileHost: z.string().nullish(),
73
+ mobileNumber: z.string().nullish(),
74
74
  nextWeek: DayOfWeekSchema,
75
75
  onboardingLevel: z.string().nullable().optional(),
76
76
  onboardingRole: z.string().nullable().optional(),
@@ -97,7 +97,7 @@ export const SyncUserSchema = z.looseObject({
97
97
  startPage: z.string(),
98
98
  themeId: z.string(),
99
99
  timeFormat: TimeFormatSchema,
100
- token: z.string(),
100
+ token: z.string().optional(),
101
101
  tzInfo: TzInfoSchema,
102
102
  uniquePrefix: z.number().int(),
103
103
  verificationStatus: z.string(),
@@ -13,8 +13,8 @@ export declare const QuickAddFeatureSchema: z.ZodObject<{
13
13
  export declare const UserSettingsSchema: z.ZodObject<{
14
14
  completedSoundDesktop: z.ZodBoolean;
15
15
  completedSoundMobile: z.ZodBoolean;
16
- debugLogSendingEnabledUntil: z.ZodNullable<z.ZodString>;
17
- legacyPricing: z.ZodBoolean;
16
+ debugLogSendingEnabledUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ legacyPricing: z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, boolean | 0 | 1>>;
18
18
  navigation: z.ZodObject<{
19
19
  countsShown: z.ZodBoolean;
20
20
  features: z.ZodArray<z.ZodObject<{
@@ -48,7 +48,7 @@ export declare const SyncUserSchema: z.ZodObject<{
48
48
  businessAccountId: z.ZodNullable<z.ZodString>;
49
49
  dailyGoal: z.ZodNumber;
50
50
  dateFormat: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<"DD/MM/YYYY" | "MM/DD/YYYY", 0 | 1>>;
51
- dateistLang: z.ZodNullable<z.ZodString>;
51
+ dateistLang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
52
  daysOff: z.ZodArray<z.ZodNumber>;
53
53
  featureIdentifier: z.ZodString;
54
54
  features: z.ZodObject<{
@@ -87,8 +87,8 @@ export declare const SyncUserSchema: z.ZodObject<{
87
87
  karmaTrend: z.ZodString;
88
88
  lang: z.ZodString;
89
89
  mfaEnabled: z.ZodOptional<z.ZodBoolean>;
90
- mobileHost: z.ZodNullable<z.ZodString>;
91
- mobileNumber: z.ZodNullable<z.ZodString>;
90
+ mobileHost: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ mobileNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
92
  nextWeek: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<7>]>, z.ZodTransform<"Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday", 3 | 2 | 1 | 7 | 4 | 5 | 6>>;
93
93
  onboardingLevel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
94
  onboardingRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -117,7 +117,7 @@ export declare const SyncUserSchema: z.ZodObject<{
117
117
  startPage: z.ZodString;
118
118
  themeId: z.ZodString;
119
119
  timeFormat: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<"24h" | "12h", 0 | 1>>;
120
- token: z.ZodString;
120
+ token: z.ZodOptional<z.ZodString>;
121
121
  tzInfo: z.ZodObject<{
122
122
  timezone: z.ZodString;
123
123
  hours: z.ZodNumber;
@@ -376,7 +376,7 @@ export declare const SyncResponseSchema: z.ZodObject<{
376
376
  businessAccountId: z.ZodNullable<z.ZodString>;
377
377
  dailyGoal: z.ZodNumber;
378
378
  dateFormat: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<"DD/MM/YYYY" | "MM/DD/YYYY", 0 | 1>>;
379
- dateistLang: z.ZodNullable<z.ZodString>;
379
+ dateistLang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
380
380
  daysOff: z.ZodArray<z.ZodNumber>;
381
381
  featureIdentifier: z.ZodString;
382
382
  features: z.ZodObject<{
@@ -415,8 +415,8 @@ export declare const SyncResponseSchema: z.ZodObject<{
415
415
  karmaTrend: z.ZodString;
416
416
  lang: z.ZodString;
417
417
  mfaEnabled: z.ZodOptional<z.ZodBoolean>;
418
- mobileHost: z.ZodNullable<z.ZodString>;
419
- mobileNumber: z.ZodNullable<z.ZodString>;
418
+ mobileHost: z.ZodOptional<z.ZodNullable<z.ZodString>>;
419
+ mobileNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
420
420
  nextWeek: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<7>]>, z.ZodTransform<"Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday", 3 | 2 | 1 | 7 | 4 | 5 | 6>>;
421
421
  onboardingLevel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
422
422
  onboardingRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -445,7 +445,7 @@ export declare const SyncResponseSchema: z.ZodObject<{
445
445
  startPage: z.ZodString;
446
446
  themeId: z.ZodString;
447
447
  timeFormat: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<"24h" | "12h", 0 | 1>>;
448
- token: z.ZodString;
448
+ token: z.ZodOptional<z.ZodString>;
449
449
  tzInfo: z.ZodObject<{
450
450
  timezone: z.ZodString;
451
451
  hours: z.ZodNumber;
@@ -505,8 +505,8 @@ export declare const SyncResponseSchema: z.ZodObject<{
505
505
  userSettings: z.ZodOptional<z.ZodObject<{
506
506
  completedSoundDesktop: z.ZodBoolean;
507
507
  completedSoundMobile: z.ZodBoolean;
508
- debugLogSendingEnabledUntil: z.ZodNullable<z.ZodString>;
509
- legacyPricing: z.ZodBoolean;
508
+ debugLogSendingEnabledUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
509
+ legacyPricing: z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, boolean | 0 | 1>>;
510
510
  navigation: z.ZodObject<{
511
511
  countsShown: z.ZodBoolean;
512
512
  features: z.ZodArray<z.ZodObject<{
@@ -1350,7 +1350,6 @@ export declare const validateSyncUser: (input: unknown) => {
1350
1350
  businessAccountId: string | null;
1351
1351
  dailyGoal: number;
1352
1352
  dateFormat: "DD/MM/YYYY" | "MM/DD/YYYY";
1353
- dateistLang: string | null;
1354
1353
  daysOff: number[];
1355
1354
  featureIdentifier: string;
1356
1355
  features: {
@@ -1389,8 +1388,6 @@ export declare const validateSyncUser: (input: unknown) => {
1389
1388
  karma: number;
1390
1389
  karmaTrend: string;
1391
1390
  lang: string;
1392
- mobileHost: string | null;
1393
- mobileNumber: string | null;
1394
1391
  nextWeek: "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday";
1395
1392
  premiumStatus: "not_premium" | "current_personal_plan" | "legacy_personal_plan" | "teams_business_member";
1396
1393
  premiumUntil: Date | null;
@@ -1400,7 +1397,6 @@ export declare const validateSyncUser: (input: unknown) => {
1400
1397
  startPage: string;
1401
1398
  themeId: string;
1402
1399
  timeFormat: "24h" | "12h";
1403
- token: string;
1404
1400
  tzInfo: {
1405
1401
  [x: string]: unknown;
1406
1402
  timezone: string;
@@ -1418,9 +1414,12 @@ export declare const validateSyncUser: (input: unknown) => {
1418
1414
  avatarMedium?: string | undefined;
1419
1415
  avatarS640?: string | undefined;
1420
1416
  avatarSmall?: string | undefined;
1417
+ dateistLang?: string | null | undefined;
1421
1418
  freeTrailExpires?: Date | undefined;
1422
1419
  hasStartedATrial?: boolean | undefined;
1423
1420
  mfaEnabled?: boolean | undefined;
1421
+ mobileHost?: string | null | undefined;
1422
+ mobileNumber?: string | null | undefined;
1424
1423
  onboardingLevel?: string | null | undefined;
1425
1424
  onboardingRole?: string | null | undefined;
1426
1425
  onboardingPersona?: string | null | undefined;
@@ -1435,12 +1434,12 @@ export declare const validateSyncUser: (input: unknown) => {
1435
1434
  remaining: number;
1436
1435
  resetDate: Date;
1437
1436
  } | null | undefined;
1437
+ token?: string | undefined;
1438
1438
  };
1439
1439
  export declare const validateUserSettings: (input: unknown) => {
1440
1440
  [x: string]: unknown;
1441
1441
  completedSoundDesktop: boolean;
1442
1442
  completedSoundMobile: boolean;
1443
- debugLogSendingEnabledUntil: string | null;
1444
1443
  legacyPricing: boolean;
1445
1444
  navigation: {
1446
1445
  [x: string]: unknown;
@@ -1463,6 +1462,7 @@ export declare const validateUserSettings: (input: unknown) => {
1463
1462
  shown: boolean;
1464
1463
  }[];
1465
1464
  };
1465
+ debugLogSendingEnabledUntil?: string | null | undefined;
1466
1466
  theme?: string | null | undefined;
1467
1467
  syncTheme?: boolean | undefined;
1468
1468
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/todoist-sdk",
3
- "version": "10.1.0",
3
+ "version": "10.1.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",