@doist/todoist-sdk 9.1.1 → 9.1.3

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.
@@ -27,10 +27,10 @@ exports.SyncWorkspaceSchema = zod_1.z
27
27
  id: common_1.StringOrNumberSchema,
28
28
  name: zod_1.z.string(),
29
29
  description: zod_1.z.string(),
30
- logoBig: zod_1.z.string().optional(),
31
- logoMedium: zod_1.z.string().optional(),
32
- logoSmall: zod_1.z.string().optional(),
33
- logoS640: zod_1.z.string().optional(),
30
+ logoBig: zod_1.z.string().nullish(),
31
+ logoMedium: zod_1.z.string().nullish(),
32
+ logoSmall: zod_1.z.string().nullish(),
33
+ logoS640: zod_1.z.string().nullish(),
34
34
  creatorId: common_1.StringOrNumberSchema,
35
35
  createdAt: zod_1.z.coerce.date().optional(),
36
36
  dateCreated: zod_1.z.coerce.date().optional(),
@@ -53,11 +53,11 @@ exports.SyncWorkspaceSchema = zod_1.z
53
53
  .optional(),
54
54
  currentTemplateCount: zod_1.z.number().nullable(),
55
55
  pendingInvitations: zod_1.z.array(zod_1.z.string()).nullable().optional(),
56
- domainName: zod_1.z.string().optional(),
57
- domainDiscovery: zod_1.z.boolean().optional(),
58
- restrictEmailDomains: zod_1.z.boolean().optional(),
56
+ domainName: zod_1.z.string().nullish(),
57
+ domainDiscovery: zod_1.z.boolean().nullish(),
58
+ restrictEmailDomains: zod_1.z.boolean().nullish(),
59
59
  adminSortingApplied: zod_1.z.boolean(),
60
- projectSortPreference: zod_1.z.string().optional(),
60
+ projectSortPreference: zod_1.z.string().nullish(),
61
61
  defaultCollaborators: zod_1.z
62
62
  .object({
63
63
  predefinedGroupIds: zod_1.z.array(zod_1.z.string()),
@@ -24,10 +24,10 @@ export const SyncWorkspaceSchema = z
24
24
  id: StringOrNumberSchema,
25
25
  name: z.string(),
26
26
  description: z.string(),
27
- logoBig: z.string().optional(),
28
- logoMedium: z.string().optional(),
29
- logoSmall: z.string().optional(),
30
- logoS640: z.string().optional(),
27
+ logoBig: z.string().nullish(),
28
+ logoMedium: z.string().nullish(),
29
+ logoSmall: z.string().nullish(),
30
+ logoS640: z.string().nullish(),
31
31
  creatorId: StringOrNumberSchema,
32
32
  createdAt: z.coerce.date().optional(),
33
33
  dateCreated: z.coerce.date().optional(),
@@ -50,11 +50,11 @@ export const SyncWorkspaceSchema = z
50
50
  .optional(),
51
51
  currentTemplateCount: z.number().nullable(),
52
52
  pendingInvitations: z.array(z.string()).nullable().optional(),
53
- domainName: z.string().optional(),
54
- domainDiscovery: z.boolean().optional(),
55
- restrictEmailDomains: z.boolean().optional(),
53
+ domainName: z.string().nullish(),
54
+ domainDiscovery: z.boolean().nullish(),
55
+ restrictEmailDomains: z.boolean().nullish(),
56
56
  adminSortingApplied: z.boolean(),
57
- projectSortPreference: z.string().optional(),
57
+ projectSortPreference: z.string().nullish(),
58
58
  defaultCollaborators: z
59
59
  .object({
60
60
  predefinedGroupIds: z.array(z.string()),
@@ -18,7 +18,7 @@ export declare function getLastRequest(): CapturedRequest | undefined;
18
18
  export declare function getAllRequests(): CapturedRequest[];
19
19
  export declare function clearCapturedRequests(): void;
20
20
  export declare const handlers: never[];
21
- export declare const server: import("msw/node").SetupServerApi;
21
+ export declare const server: import("msw/node").SetupServer;
22
22
  export declare function mockApiResponse<T extends DefaultBodyType>({ endpoint, data, options, }: {
23
23
  endpoint: string;
24
24
  data: T;
@@ -10,10 +10,10 @@ export declare const SyncWorkspaceSchema: z.ZodPipe<z.ZodObject<{
10
10
  id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
11
11
  name: z.ZodString;
12
12
  description: z.ZodString;
13
- logoBig: z.ZodOptional<z.ZodString>;
14
- logoMedium: z.ZodOptional<z.ZodString>;
15
- logoSmall: z.ZodOptional<z.ZodString>;
16
- logoS640: z.ZodOptional<z.ZodString>;
13
+ logoBig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ logoMedium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ logoSmall: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ logoS640: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  creatorId: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
18
18
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
19
19
  dateCreated: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -44,11 +44,11 @@ export declare const SyncWorkspaceSchema: z.ZodPipe<z.ZodObject<{
44
44
  }, z.core.$strip>>;
45
45
  currentTemplateCount: z.ZodNullable<z.ZodNumber>;
46
46
  pendingInvitations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
47
- domainName: z.ZodOptional<z.ZodString>;
48
- domainDiscovery: z.ZodOptional<z.ZodBoolean>;
49
- restrictEmailDomains: z.ZodOptional<z.ZodBoolean>;
47
+ domainName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ domainDiscovery: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
49
+ restrictEmailDomains: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
50
50
  adminSortingApplied: z.ZodBoolean;
51
- projectSortPreference: z.ZodOptional<z.ZodString>;
51
+ projectSortPreference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
52
  defaultCollaborators: z.ZodOptional<z.ZodObject<{
53
53
  predefinedGroupIds: z.ZodArray<z.ZodString>;
54
54
  userIds: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>;
@@ -67,10 +67,10 @@ export declare const SyncWorkspaceSchema: z.ZodPipe<z.ZodObject<{
67
67
  currentMemberCount: number | null;
68
68
  currentTemplateCount: number | null;
69
69
  adminSortingApplied: boolean;
70
- logoBig?: string | undefined;
71
- logoMedium?: string | undefined;
72
- logoSmall?: string | undefined;
73
- logoS640?: string | undefined;
70
+ logoBig?: string | null | undefined;
71
+ logoMedium?: string | null | undefined;
72
+ logoSmall?: string | null | undefined;
73
+ logoS640?: string | null | undefined;
74
74
  role?: "ADMIN" | "MEMBER" | "GUEST" | undefined;
75
75
  limits?: {
76
76
  [x: string]: any;
@@ -86,10 +86,10 @@ export declare const SyncWorkspaceSchema: z.ZodPipe<z.ZodObject<{
86
86
  memberCount: number;
87
87
  } | undefined;
88
88
  pendingInvitations?: string[] | null | undefined;
89
- domainName?: string | undefined;
90
- domainDiscovery?: boolean | undefined;
91
- restrictEmailDomains?: boolean | undefined;
92
- projectSortPreference?: string | undefined;
89
+ domainName?: string | null | undefined;
90
+ domainDiscovery?: boolean | null | undefined;
91
+ restrictEmailDomains?: boolean | null | undefined;
92
+ projectSortPreference?: string | null | undefined;
93
93
  defaultCollaborators?: {
94
94
  predefinedGroupIds: string[];
95
95
  userIds: string[];
@@ -108,10 +108,10 @@ export declare const SyncWorkspaceSchema: z.ZodPipe<z.ZodObject<{
108
108
  currentMemberCount: number | null;
109
109
  currentTemplateCount: number | null;
110
110
  adminSortingApplied: boolean;
111
- logoBig?: string | undefined;
112
- logoMedium?: string | undefined;
113
- logoSmall?: string | undefined;
114
- logoS640?: string | undefined;
111
+ logoBig?: string | null | undefined;
112
+ logoMedium?: string | null | undefined;
113
+ logoSmall?: string | null | undefined;
114
+ logoS640?: string | null | undefined;
115
115
  createdAt?: Date | undefined;
116
116
  dateCreated?: Date | undefined;
117
117
  role?: "ADMIN" | "MEMBER" | "GUEST" | undefined;
@@ -129,10 +129,10 @@ export declare const SyncWorkspaceSchema: z.ZodPipe<z.ZodObject<{
129
129
  memberCount: number;
130
130
  } | undefined;
131
131
  pendingInvitations?: string[] | null | undefined;
132
- domainName?: string | undefined;
133
- domainDiscovery?: boolean | undefined;
134
- restrictEmailDomains?: boolean | undefined;
135
- projectSortPreference?: string | undefined;
132
+ domainName?: string | null | undefined;
133
+ domainDiscovery?: boolean | null | undefined;
134
+ restrictEmailDomains?: boolean | null | undefined;
135
+ projectSortPreference?: string | null | undefined;
136
136
  defaultCollaborators?: {
137
137
  predefinedGroupIds: string[];
138
138
  userIds: string[];
@@ -574,10 +574,10 @@ export declare const SyncResponseSchema: z.ZodObject<{
574
574
  id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
575
575
  name: z.ZodString;
576
576
  description: z.ZodString;
577
- logoBig: z.ZodOptional<z.ZodString>;
578
- logoMedium: z.ZodOptional<z.ZodString>;
579
- logoSmall: z.ZodOptional<z.ZodString>;
580
- logoS640: z.ZodOptional<z.ZodString>;
577
+ logoBig: z.ZodOptional<z.ZodNullable<z.ZodString>>;
578
+ logoMedium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
579
+ logoSmall: z.ZodOptional<z.ZodNullable<z.ZodString>>;
580
+ logoS640: z.ZodOptional<z.ZodNullable<z.ZodString>>;
581
581
  creatorId: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
582
582
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
583
583
  dateCreated: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -608,11 +608,11 @@ export declare const SyncResponseSchema: z.ZodObject<{
608
608
  }, z.core.$strip>>;
609
609
  currentTemplateCount: z.ZodNullable<z.ZodNumber>;
610
610
  pendingInvitations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
611
- domainName: z.ZodOptional<z.ZodString>;
612
- domainDiscovery: z.ZodOptional<z.ZodBoolean>;
613
- restrictEmailDomains: z.ZodOptional<z.ZodBoolean>;
611
+ domainName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
612
+ domainDiscovery: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
613
+ restrictEmailDomains: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
614
614
  adminSortingApplied: z.ZodBoolean;
615
- projectSortPreference: z.ZodOptional<z.ZodString>;
615
+ projectSortPreference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
616
616
  defaultCollaborators: z.ZodOptional<z.ZodObject<{
617
617
  predefinedGroupIds: z.ZodArray<z.ZodString>;
618
618
  userIds: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>;
@@ -631,10 +631,10 @@ export declare const SyncResponseSchema: z.ZodObject<{
631
631
  currentMemberCount: number | null;
632
632
  currentTemplateCount: number | null;
633
633
  adminSortingApplied: boolean;
634
- logoBig?: string | undefined;
635
- logoMedium?: string | undefined;
636
- logoSmall?: string | undefined;
637
- logoS640?: string | undefined;
634
+ logoBig?: string | null | undefined;
635
+ logoMedium?: string | null | undefined;
636
+ logoSmall?: string | null | undefined;
637
+ logoS640?: string | null | undefined;
638
638
  role?: "ADMIN" | "MEMBER" | "GUEST" | undefined;
639
639
  limits?: {
640
640
  [x: string]: any;
@@ -650,10 +650,10 @@ export declare const SyncResponseSchema: z.ZodObject<{
650
650
  memberCount: number;
651
651
  } | undefined;
652
652
  pendingInvitations?: string[] | null | undefined;
653
- domainName?: string | undefined;
654
- domainDiscovery?: boolean | undefined;
655
- restrictEmailDomains?: boolean | undefined;
656
- projectSortPreference?: string | undefined;
653
+ domainName?: string | null | undefined;
654
+ domainDiscovery?: boolean | null | undefined;
655
+ restrictEmailDomains?: boolean | null | undefined;
656
+ projectSortPreference?: string | null | undefined;
657
657
  defaultCollaborators?: {
658
658
  predefinedGroupIds: string[];
659
659
  userIds: string[];
@@ -672,10 +672,10 @@ export declare const SyncResponseSchema: z.ZodObject<{
672
672
  currentMemberCount: number | null;
673
673
  currentTemplateCount: number | null;
674
674
  adminSortingApplied: boolean;
675
- logoBig?: string | undefined;
676
- logoMedium?: string | undefined;
677
- logoSmall?: string | undefined;
678
- logoS640?: string | undefined;
675
+ logoBig?: string | null | undefined;
676
+ logoMedium?: string | null | undefined;
677
+ logoSmall?: string | null | undefined;
678
+ logoS640?: string | null | undefined;
679
679
  createdAt?: Date | undefined;
680
680
  dateCreated?: Date | undefined;
681
681
  role?: "ADMIN" | "MEMBER" | "GUEST" | undefined;
@@ -693,10 +693,10 @@ export declare const SyncResponseSchema: z.ZodObject<{
693
693
  memberCount: number;
694
694
  } | undefined;
695
695
  pendingInvitations?: string[] | null | undefined;
696
- domainName?: string | undefined;
697
- domainDiscovery?: boolean | undefined;
698
- restrictEmailDomains?: boolean | undefined;
699
- projectSortPreference?: string | undefined;
696
+ domainName?: string | null | undefined;
697
+ domainDiscovery?: boolean | null | undefined;
698
+ restrictEmailDomains?: boolean | null | undefined;
699
+ projectSortPreference?: string | null | undefined;
700
700
  defaultCollaborators?: {
701
701
  predefinedGroupIds: string[];
702
702
  userIds: string[];
@@ -1268,10 +1268,10 @@ export declare const validateSyncWorkspace: (input: unknown) => {
1268
1268
  currentMemberCount: number | null;
1269
1269
  currentTemplateCount: number | null;
1270
1270
  adminSortingApplied: boolean;
1271
- logoBig?: string | undefined;
1272
- logoMedium?: string | undefined;
1273
- logoSmall?: string | undefined;
1274
- logoS640?: string | undefined;
1271
+ logoBig?: string | null | undefined;
1272
+ logoMedium?: string | null | undefined;
1273
+ logoSmall?: string | null | undefined;
1274
+ logoS640?: string | null | undefined;
1275
1275
  role?: "ADMIN" | "MEMBER" | "GUEST" | undefined;
1276
1276
  limits?: {
1277
1277
  [x: string]: any;
@@ -1287,10 +1287,10 @@ export declare const validateSyncWorkspace: (input: unknown) => {
1287
1287
  memberCount: number;
1288
1288
  } | undefined;
1289
1289
  pendingInvitations?: string[] | null | undefined;
1290
- domainName?: string | undefined;
1291
- domainDiscovery?: boolean | undefined;
1292
- restrictEmailDomains?: boolean | undefined;
1293
- projectSortPreference?: string | undefined;
1290
+ domainName?: string | null | undefined;
1291
+ domainDiscovery?: boolean | null | undefined;
1292
+ restrictEmailDomains?: boolean | null | undefined;
1293
+ projectSortPreference?: string | null | undefined;
1294
1294
  defaultCollaborators?: {
1295
1295
  predefinedGroupIds: string[];
1296
1296
  userIds: string[];
@@ -1309,10 +1309,10 @@ export declare const validateSyncWorkspace: (input: unknown) => {
1309
1309
  currentMemberCount: number | null;
1310
1310
  currentTemplateCount: number | null;
1311
1311
  adminSortingApplied: boolean;
1312
- logoBig?: string | undefined;
1313
- logoMedium?: string | undefined;
1314
- logoSmall?: string | undefined;
1315
- logoS640?: string | undefined;
1312
+ logoBig?: string | null | undefined;
1313
+ logoMedium?: string | null | undefined;
1314
+ logoSmall?: string | null | undefined;
1315
+ logoS640?: string | null | undefined;
1316
1316
  role?: "ADMIN" | "MEMBER" | "GUEST" | undefined;
1317
1317
  limits?: {
1318
1318
  [x: string]: any;
@@ -1328,10 +1328,10 @@ export declare const validateSyncWorkspace: (input: unknown) => {
1328
1328
  memberCount: number;
1329
1329
  } | undefined;
1330
1330
  pendingInvitations?: string[] | null | undefined;
1331
- domainName?: string | undefined;
1332
- domainDiscovery?: boolean | undefined;
1333
- restrictEmailDomains?: boolean | undefined;
1334
- projectSortPreference?: string | undefined;
1331
+ domainName?: string | null | undefined;
1332
+ domainDiscovery?: boolean | null | undefined;
1333
+ restrictEmailDomains?: boolean | null | undefined;
1334
+ projectSortPreference?: string | null | undefined;
1335
1335
  defaultCollaborators?: {
1336
1336
  predefinedGroupIds: string[];
1337
1337
  userIds: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/todoist-sdk",
3
- "version": "9.1.1",
3
+ "version": "9.1.3",
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",
@@ -58,11 +58,11 @@
58
58
  "devDependencies": {
59
59
  "@semantic-release/changelog": "6.0.3",
60
60
  "@semantic-release/git": "10.0.1",
61
- "conventional-changelog-conventionalcommits": "9.3.0",
62
- "dotenv": "17.3.1",
61
+ "conventional-changelog-conventionalcommits": "9.3.1",
62
+ "dotenv": "17.4.1",
63
63
  "husky": "9.1.7",
64
- "lint-staged": "16.2.7",
65
- "msw": "2.12.13",
64
+ "lint-staged": "16.4.0",
65
+ "msw": "2.13.2",
66
66
  "npm-run-all2": "8.0.4",
67
67
  "obsidian": "^1.10.2-1",
68
68
  "oxfmt": "0.43.0",
@@ -75,7 +75,7 @@
75
75
  "vitest": "4.0.14"
76
76
  },
77
77
  "peerDependencies": {
78
- "type-fest": "^4.12.0"
78
+ "type-fest": "^4.12.0 || ^5.5.0"
79
79
  },
80
80
  "husky": {
81
81
  "hooks": {