@doist/todoist-sdk 10.5.0 → 11.0.0

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.
Files changed (60) hide show
  1. package/dist/cjs/consts/endpoints.js +1 -6
  2. package/dist/cjs/test-utils/test-defaults.js +2 -26
  3. package/dist/cjs/test-utils/transport-seam.js +17 -0
  4. package/dist/cjs/test-utils/webhook-fixtures.js +1 -1
  5. package/dist/cjs/todoist-api.js +0 -101
  6. package/dist/cjs/transport/fetch-with-retry.js +19 -7
  7. package/dist/cjs/transport/http-dispatcher.js +60 -15
  8. package/dist/cjs/types/index.js +0 -1
  9. package/dist/cjs/types/sync/commands/index.js +0 -2
  10. package/dist/cjs/types/sync/resource-types.js +0 -2
  11. package/dist/cjs/types/sync/resources/index.js +0 -1
  12. package/dist/cjs/types/sync/response.js +10 -13
  13. package/dist/cjs/utils/validators.js +50 -54
  14. package/dist/esm/consts/endpoints.js +0 -5
  15. package/dist/esm/test-utils/test-defaults.js +0 -24
  16. package/dist/esm/test-utils/transport-seam.js +15 -0
  17. package/dist/esm/test-utils/webhook-fixtures.js +1 -1
  18. package/dist/esm/todoist-api.js +0 -101
  19. package/dist/esm/transport/fetch-with-retry.js +20 -8
  20. package/dist/esm/transport/http-dispatcher.js +58 -15
  21. package/dist/esm/types/index.js +0 -1
  22. package/dist/esm/types/sync/commands/index.js +0 -2
  23. package/dist/esm/types/sync/resource-types.js +0 -2
  24. package/dist/esm/types/sync/resources/index.js +0 -1
  25. package/dist/esm/types/sync/response.js +1 -4
  26. package/dist/esm/utils/validators.js +1 -4
  27. package/dist/types/consts/endpoints.d.ts +0 -5
  28. package/dist/types/test-utils/test-defaults.d.ts +1 -4
  29. package/dist/types/todoist-api.d.ts +0 -80
  30. package/dist/types/transport/http-dispatcher.d.ts +36 -0
  31. package/dist/types/types/index.d.ts +0 -1
  32. package/dist/types/types/sync/commands/index.d.ts +0 -16
  33. package/dist/types/types/sync/resource-types.d.ts +1 -1
  34. package/dist/types/types/sync/resources/index.d.ts +0 -1
  35. package/dist/types/types/sync/resources/view-options.d.ts +6 -6
  36. package/dist/types/types/sync/response.d.ts +4 -45
  37. package/dist/types/types/tasks/requests.d.ts +0 -1
  38. package/dist/types/utils/validators.d.ts +8 -90
  39. package/package.json +1 -1
  40. package/dist/cjs/clients/goals-client.js +0 -144
  41. package/dist/cjs/types/goals/index.js +0 -18
  42. package/dist/cjs/types/goals/requests.js +0 -2
  43. package/dist/cjs/types/goals/types.js +0 -56
  44. package/dist/cjs/types/sync/commands/goals.js +0 -2
  45. package/dist/cjs/types/sync/commands/workspace-goals.js +0 -2
  46. package/dist/cjs/types/sync/resources/workspace-goals.js +0 -26
  47. package/dist/esm/clients/goals-client.js +0 -140
  48. package/dist/esm/types/goals/index.js +0 -2
  49. package/dist/esm/types/goals/types.js +0 -53
  50. package/dist/esm/types/sync/commands/goals.js +0 -1
  51. package/dist/esm/types/sync/commands/workspace-goals.js +0 -1
  52. package/dist/esm/types/sync/resources/workspace-goals.js +0 -23
  53. package/dist/types/clients/goals-client.d.ts +0 -20
  54. package/dist/types/types/goals/index.d.ts +0 -2
  55. package/dist/types/types/goals/requests.d.ts +0 -33
  56. package/dist/types/types/goals/types.d.ts +0 -51
  57. package/dist/types/types/sync/commands/goals.d.ts +0 -33
  58. package/dist/types/types/sync/commands/workspace-goals.d.ts +0 -24
  59. package/dist/types/types/sync/resources/workspace-goals.d.ts +0 -29
  60. /package/dist/{esm/types/goals/requests.js → types/test-utils/transport-seam.d.ts} +0 -0
@@ -1,29 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const WorkspaceGoalMilestoneSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- title: z.ZodString;
5
- isCompleted: z.ZodBoolean;
6
- }, z.core.$loose>;
7
- export type WorkspaceGoalMilestone = z.infer<typeof WorkspaceGoalMilestoneSchema>;
8
- export declare const WorkspaceGoalProgressSchema: z.ZodObject<{
9
- completedItems: z.ZodNumber;
10
- totalItems: z.ZodNumber;
11
- }, z.core.$loose>;
12
- export type WorkspaceGoalProgress = z.infer<typeof WorkspaceGoalProgressSchema>;
13
- export declare const WorkspaceGoalSchema: z.ZodObject<{
14
- id: z.ZodString;
15
- workspaceId: z.ZodString;
16
- title: z.ZodString;
17
- description: z.ZodNullable<z.ZodString>;
18
- deadline: z.ZodNullable<z.ZodString>;
19
- isDeleted: z.ZodBoolean;
20
- projectIds: z.ZodArray<z.ZodString>;
21
- progress: z.ZodNullable<z.ZodObject<{
22
- completedItems: z.ZodNumber;
23
- totalItems: z.ZodNumber;
24
- }, z.core.$loose>>;
25
- creatorUid: z.ZodString;
26
- createdAt: z.ZodCoercedDate<unknown>;
27
- updatedAt: z.ZodCoercedDate<unknown>;
28
- }, z.core.$loose>;
29
- export type WorkspaceGoal = z.infer<typeof WorkspaceGoalSchema>;