@doist/todoist-api-typescript 7.9.1 → 7.10.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 (343) hide show
  1. package/README.md +5 -204
  2. package/index.d.ts +1 -0
  3. package/index.js +1 -0
  4. package/index.mjs +1 -0
  5. package/package.json +12 -92
  6. package/LICENSE +0 -21
  7. package/dist/cjs/authentication.js +0 -204
  8. package/dist/cjs/consts/endpoints.js +0 -141
  9. package/dist/cjs/index.js +0 -20
  10. package/dist/cjs/package.json +0 -1
  11. package/dist/cjs/test-utils/asserts.js +0 -11
  12. package/dist/cjs/test-utils/msw-setup.js +0 -97
  13. package/dist/cjs/test-utils/obsidian-fetch-adapter.js +0 -53
  14. package/dist/cjs/test-utils/test-defaults.js +0 -240
  15. package/dist/cjs/todoist-api.js +0 -2623
  16. package/dist/cjs/transport/fetch-with-retry.js +0 -206
  17. package/dist/cjs/transport/http-client.js +0 -133
  18. package/dist/cjs/transport/http-dispatcher.js +0 -72
  19. package/dist/cjs/types/activity/index.js +0 -18
  20. package/dist/cjs/types/activity/requests.js +0 -2
  21. package/dist/cjs/types/activity/types.js +0 -28
  22. package/dist/cjs/types/backups/index.js +0 -18
  23. package/dist/cjs/types/backups/requests.js +0 -2
  24. package/dist/cjs/types/backups/types.js +0 -8
  25. package/dist/cjs/types/comments/index.js +0 -18
  26. package/dist/cjs/types/comments/requests.js +0 -2
  27. package/dist/cjs/types/comments/types.js +0 -60
  28. package/dist/cjs/types/common.js +0 -10
  29. package/dist/cjs/types/emails/index.js +0 -17
  30. package/dist/cjs/types/emails/requests.js +0 -5
  31. package/dist/cjs/types/errors.js +0 -29
  32. package/dist/cjs/types/folders/index.js +0 -17
  33. package/dist/cjs/types/folders/requests.js +0 -2
  34. package/dist/cjs/types/http.js +0 -24
  35. package/dist/cjs/types/id-mappings/index.js +0 -18
  36. package/dist/cjs/types/id-mappings/requests.js +0 -20
  37. package/dist/cjs/types/id-mappings/types.js +0 -12
  38. package/dist/cjs/types/index.js +0 -36
  39. package/dist/cjs/types/insights/index.js +0 -18
  40. package/dist/cjs/types/insights/requests.js +0 -2
  41. package/dist/cjs/types/insights/types.js +0 -84
  42. package/dist/cjs/types/labels/index.js +0 -18
  43. package/dist/cjs/types/labels/requests.js +0 -2
  44. package/dist/cjs/types/labels/types.js +0 -11
  45. package/dist/cjs/types/productivity/index.js +0 -17
  46. package/dist/cjs/types/productivity/types.js +0 -67
  47. package/dist/cjs/types/projects/index.js +0 -18
  48. package/dist/cjs/types/projects/requests.js +0 -2
  49. package/dist/cjs/types/projects/types.js +0 -56
  50. package/dist/cjs/types/reminders/index.js +0 -17
  51. package/dist/cjs/types/reminders/requests.js +0 -95
  52. package/dist/cjs/types/sections/index.js +0 -18
  53. package/dist/cjs/types/sections/requests.js +0 -2
  54. package/dist/cjs/types/sections/types.js +0 -22
  55. package/dist/cjs/types/sync/commands/calendars.js +0 -2
  56. package/dist/cjs/types/sync/commands/filters.js +0 -2
  57. package/dist/cjs/types/sync/commands/folders.js +0 -2
  58. package/dist/cjs/types/sync/commands/index.js +0 -35
  59. package/dist/cjs/types/sync/commands/labels.js +0 -5
  60. package/dist/cjs/types/sync/commands/notes.js +0 -2
  61. package/dist/cjs/types/sync/commands/notifications.js +0 -2
  62. package/dist/cjs/types/sync/commands/others.js +0 -2
  63. package/dist/cjs/types/sync/commands/project-view-options.js +0 -2
  64. package/dist/cjs/types/sync/commands/projects.js +0 -2
  65. package/dist/cjs/types/sync/commands/reminders.js +0 -2
  66. package/dist/cjs/types/sync/commands/sections.js +0 -2
  67. package/dist/cjs/types/sync/commands/shared.js +0 -20
  68. package/dist/cjs/types/sync/commands/sharing.js +0 -2
  69. package/dist/cjs/types/sync/commands/tasks.js +0 -2
  70. package/dist/cjs/types/sync/commands/view-options.js +0 -2
  71. package/dist/cjs/types/sync/commands/workspace-filters.js +0 -2
  72. package/dist/cjs/types/sync/commands/workspace-goals.js +0 -2
  73. package/dist/cjs/types/sync/commands/workspaces.js +0 -2
  74. package/dist/cjs/types/sync/index.js +0 -22
  75. package/dist/cjs/types/sync/request.js +0 -2
  76. package/dist/cjs/types/sync/resource-types.js +0 -40
  77. package/dist/cjs/types/sync/resources/calendars.js +0 -31
  78. package/dist/cjs/types/sync/resources/collaborators.js +0 -25
  79. package/dist/cjs/types/sync/resources/completed-info.js +0 -30
  80. package/dist/cjs/types/sync/resources/filters.js +0 -16
  81. package/dist/cjs/types/sync/resources/folders.js +0 -14
  82. package/dist/cjs/types/sync/resources/index.js +0 -33
  83. package/dist/cjs/types/sync/resources/live-notifications.js +0 -39
  84. package/dist/cjs/types/sync/resources/notes.js +0 -23
  85. package/dist/cjs/types/sync/resources/reminders.js +0 -50
  86. package/dist/cjs/types/sync/resources/suggestions.js +0 -42
  87. package/dist/cjs/types/sync/resources/tooltips.js +0 -10
  88. package/dist/cjs/types/sync/resources/user-plan-limits.js +0 -24
  89. package/dist/cjs/types/sync/resources/user-settings.js +0 -42
  90. package/dist/cjs/types/sync/resources/user.js +0 -120
  91. package/dist/cjs/types/sync/resources/view-options.js +0 -83
  92. package/dist/cjs/types/sync/resources/workspace-filters.js +0 -21
  93. package/dist/cjs/types/sync/resources/workspace-goals.js +0 -32
  94. package/dist/cjs/types/sync/resources/workspaces.js +0 -73
  95. package/dist/cjs/types/sync/response.js +0 -2
  96. package/dist/cjs/types/sync/user-preferences.js +0 -71
  97. package/dist/cjs/types/tasks/index.js +0 -18
  98. package/dist/cjs/types/tasks/requests.js +0 -2
  99. package/dist/cjs/types/tasks/types.js +0 -59
  100. package/dist/cjs/types/templates/index.js +0 -17
  101. package/dist/cjs/types/templates/requests.js +0 -2
  102. package/dist/cjs/types/uploads/index.js +0 -17
  103. package/dist/cjs/types/uploads/requests.js +0 -2
  104. package/dist/cjs/types/users/index.js +0 -17
  105. package/dist/cjs/types/users/types.js +0 -51
  106. package/dist/cjs/types/workspaces/index.js +0 -18
  107. package/dist/cjs/types/workspaces/requests.js +0 -2
  108. package/dist/cjs/types/workspaces/types.js +0 -155
  109. package/dist/cjs/utils/activity-helpers.js +0 -58
  110. package/dist/cjs/utils/case-conversion.js +0 -69
  111. package/dist/cjs/utils/colors.js +0 -143
  112. package/dist/cjs/utils/index.js +0 -25
  113. package/dist/cjs/utils/multipart-upload.js +0 -178
  114. package/dist/cjs/utils/processing-helpers.js +0 -18
  115. package/dist/cjs/utils/sanitization.js +0 -116
  116. package/dist/cjs/utils/sync-helpers.js +0 -22
  117. package/dist/cjs/utils/uncompletable-helpers.js +0 -60
  118. package/dist/cjs/utils/url-helpers.js +0 -74
  119. package/dist/cjs/utils/validators.js +0 -141
  120. package/dist/esm/authentication.js +0 -196
  121. package/dist/esm/consts/endpoints.js +0 -122
  122. package/dist/esm/index.js +0 -4
  123. package/dist/esm/test-utils/asserts.js +0 -8
  124. package/dist/esm/test-utils/msw-setup.js +0 -88
  125. package/dist/esm/test-utils/obsidian-fetch-adapter.js +0 -50
  126. package/dist/esm/test-utils/test-defaults.js +0 -237
  127. package/dist/esm/todoist-api.js +0 -2619
  128. package/dist/esm/transport/fetch-with-retry.js +0 -203
  129. package/dist/esm/transport/http-client.js +0 -128
  130. package/dist/esm/transport/http-dispatcher.js +0 -35
  131. package/dist/esm/types/activity/index.js +0 -2
  132. package/dist/esm/types/activity/requests.js +0 -1
  133. package/dist/esm/types/activity/types.js +0 -25
  134. package/dist/esm/types/backups/index.js +0 -2
  135. package/dist/esm/types/backups/requests.js +0 -1
  136. package/dist/esm/types/backups/types.js +0 -5
  137. package/dist/esm/types/comments/index.js +0 -2
  138. package/dist/esm/types/comments/requests.js +0 -1
  139. package/dist/esm/types/comments/types.js +0 -57
  140. package/dist/esm/types/common.js +0 -7
  141. package/dist/esm/types/emails/index.js +0 -1
  142. package/dist/esm/types/emails/requests.js +0 -2
  143. package/dist/esm/types/errors.js +0 -24
  144. package/dist/esm/types/folders/index.js +0 -1
  145. package/dist/esm/types/folders/requests.js +0 -1
  146. package/dist/esm/types/http.js +0 -20
  147. package/dist/esm/types/id-mappings/index.js +0 -2
  148. package/dist/esm/types/id-mappings/requests.js +0 -17
  149. package/dist/esm/types/id-mappings/types.js +0 -9
  150. package/dist/esm/types/index.js +0 -20
  151. package/dist/esm/types/insights/index.js +0 -2
  152. package/dist/esm/types/insights/requests.js +0 -1
  153. package/dist/esm/types/insights/types.js +0 -81
  154. package/dist/esm/types/labels/index.js +0 -2
  155. package/dist/esm/types/labels/requests.js +0 -1
  156. package/dist/esm/types/labels/types.js +0 -8
  157. package/dist/esm/types/productivity/index.js +0 -1
  158. package/dist/esm/types/productivity/types.js +0 -64
  159. package/dist/esm/types/projects/index.js +0 -2
  160. package/dist/esm/types/projects/requests.js +0 -1
  161. package/dist/esm/types/projects/types.js +0 -53
  162. package/dist/esm/types/reminders/index.js +0 -1
  163. package/dist/esm/types/reminders/requests.js +0 -92
  164. package/dist/esm/types/sections/index.js +0 -2
  165. package/dist/esm/types/sections/requests.js +0 -1
  166. package/dist/esm/types/sections/types.js +0 -19
  167. package/dist/esm/types/sync/commands/calendars.js +0 -1
  168. package/dist/esm/types/sync/commands/filters.js +0 -1
  169. package/dist/esm/types/sync/commands/folders.js +0 -1
  170. package/dist/esm/types/sync/commands/index.js +0 -19
  171. package/dist/esm/types/sync/commands/labels.js +0 -2
  172. package/dist/esm/types/sync/commands/notes.js +0 -1
  173. package/dist/esm/types/sync/commands/notifications.js +0 -1
  174. package/dist/esm/types/sync/commands/others.js +0 -1
  175. package/dist/esm/types/sync/commands/project-view-options.js +0 -1
  176. package/dist/esm/types/sync/commands/projects.js +0 -1
  177. package/dist/esm/types/sync/commands/reminders.js +0 -1
  178. package/dist/esm/types/sync/commands/sections.js +0 -1
  179. package/dist/esm/types/sync/commands/shared.js +0 -16
  180. package/dist/esm/types/sync/commands/sharing.js +0 -1
  181. package/dist/esm/types/sync/commands/tasks.js +0 -1
  182. package/dist/esm/types/sync/commands/view-options.js +0 -1
  183. package/dist/esm/types/sync/commands/workspace-filters.js +0 -1
  184. package/dist/esm/types/sync/commands/workspace-goals.js +0 -1
  185. package/dist/esm/types/sync/commands/workspaces.js +0 -1
  186. package/dist/esm/types/sync/index.js +0 -6
  187. package/dist/esm/types/sync/request.js +0 -1
  188. package/dist/esm/types/sync/resource-types.js +0 -37
  189. package/dist/esm/types/sync/resources/calendars.js +0 -28
  190. package/dist/esm/types/sync/resources/collaborators.js +0 -22
  191. package/dist/esm/types/sync/resources/completed-info.js +0 -27
  192. package/dist/esm/types/sync/resources/filters.js +0 -13
  193. package/dist/esm/types/sync/resources/folders.js +0 -11
  194. package/dist/esm/types/sync/resources/index.js +0 -17
  195. package/dist/esm/types/sync/resources/live-notifications.js +0 -36
  196. package/dist/esm/types/sync/resources/notes.js +0 -20
  197. package/dist/esm/types/sync/resources/reminders.js +0 -47
  198. package/dist/esm/types/sync/resources/suggestions.js +0 -39
  199. package/dist/esm/types/sync/resources/tooltips.js +0 -7
  200. package/dist/esm/types/sync/resources/user-plan-limits.js +0 -21
  201. package/dist/esm/types/sync/resources/user-settings.js +0 -39
  202. package/dist/esm/types/sync/resources/user.js +0 -117
  203. package/dist/esm/types/sync/resources/view-options.js +0 -80
  204. package/dist/esm/types/sync/resources/workspace-filters.js +0 -18
  205. package/dist/esm/types/sync/resources/workspace-goals.js +0 -29
  206. package/dist/esm/types/sync/resources/workspaces.js +0 -70
  207. package/dist/esm/types/sync/response.js +0 -1
  208. package/dist/esm/types/sync/user-preferences.js +0 -68
  209. package/dist/esm/types/tasks/index.js +0 -2
  210. package/dist/esm/types/tasks/requests.js +0 -1
  211. package/dist/esm/types/tasks/types.js +0 -56
  212. package/dist/esm/types/templates/index.js +0 -1
  213. package/dist/esm/types/templates/requests.js +0 -1
  214. package/dist/esm/types/uploads/index.js +0 -1
  215. package/dist/esm/types/uploads/requests.js +0 -1
  216. package/dist/esm/types/users/index.js +0 -1
  217. package/dist/esm/types/users/types.js +0 -48
  218. package/dist/esm/types/workspaces/index.js +0 -2
  219. package/dist/esm/types/workspaces/requests.js +0 -1
  220. package/dist/esm/types/workspaces/types.js +0 -152
  221. package/dist/esm/utils/activity-helpers.js +0 -53
  222. package/dist/esm/utils/case-conversion.js +0 -61
  223. package/dist/esm/utils/colors.js +0 -139
  224. package/dist/esm/utils/index.js +0 -4
  225. package/dist/esm/utils/multipart-upload.js +0 -142
  226. package/dist/esm/utils/processing-helpers.js +0 -12
  227. package/dist/esm/utils/sanitization.js +0 -112
  228. package/dist/esm/utils/sync-helpers.js +0 -19
  229. package/dist/esm/utils/uncompletable-helpers.js +0 -54
  230. package/dist/esm/utils/url-helpers.js +0 -68
  231. package/dist/esm/utils/validators.js +0 -132
  232. package/dist/types/authentication.d.ts +0 -158
  233. package/dist/types/consts/endpoints.d.ts +0 -81
  234. package/dist/types/index.d.ts +0 -4
  235. package/dist/types/test-utils/asserts.d.ts +0 -1
  236. package/dist/types/test-utils/msw-setup.d.ts +0 -33
  237. package/dist/types/test-utils/obsidian-fetch-adapter.d.ts +0 -29
  238. package/dist/types/test-utils/test-defaults.d.ts +0 -261
  239. package/dist/types/todoist-api.d.ts +0 -1018
  240. package/dist/types/transport/fetch-with-retry.d.ts +0 -12
  241. package/dist/types/transport/http-client.d.ts +0 -16
  242. package/dist/types/transport/http-dispatcher.d.ts +0 -3
  243. package/dist/types/types/activity/index.d.ts +0 -2
  244. package/dist/types/types/activity/requests.d.ts +0 -85
  245. package/dist/types/types/activity/types.d.ts +0 -49
  246. package/dist/types/types/backups/index.d.ts +0 -2
  247. package/dist/types/types/backups/requests.d.ts +0 -16
  248. package/dist/types/types/backups/types.d.ts +0 -7
  249. package/dist/types/types/comments/index.d.ts +0 -2
  250. package/dist/types/types/comments/requests.d.ts +0 -64
  251. package/dist/types/types/comments/types.d.ts +0 -141
  252. package/dist/types/types/common.d.ts +0 -13
  253. package/dist/types/types/emails/index.d.ts +0 -1
  254. package/dist/types/types/emails/requests.d.ts +0 -30
  255. package/dist/types/types/errors.d.ts +0 -12
  256. package/dist/types/types/folders/index.d.ts +0 -1
  257. package/dist/types/types/folders/requests.d.ts +0 -20
  258. package/dist/types/types/http.d.ts +0 -85
  259. package/dist/types/types/id-mappings/index.d.ts +0 -2
  260. package/dist/types/types/id-mappings/requests.d.ts +0 -28
  261. package/dist/types/types/id-mappings/types.d.ts +0 -13
  262. package/dist/types/types/index.d.ts +0 -20
  263. package/dist/types/types/insights/index.d.ts +0 -2
  264. package/dist/types/types/insights/requests.d.ts +0 -26
  265. package/dist/types/types/insights/types.d.ts +0 -186
  266. package/dist/types/types/labels/index.d.ts +0 -2
  267. package/dist/types/types/labels/requests.d.ts +0 -75
  268. package/dist/types/types/labels/types.d.ts +0 -13
  269. package/dist/types/types/productivity/index.d.ts +0 -1
  270. package/dist/types/types/productivity/types.d.ts +0 -115
  271. package/dist/types/types/projects/index.d.ts +0 -2
  272. package/dist/types/types/projects/requests.d.ts +0 -169
  273. package/dist/types/types/projects/types.d.ts +0 -201
  274. package/dist/types/types/reminders/index.d.ts +0 -1
  275. package/dist/types/types/reminders/requests.d.ts +0 -205
  276. package/dist/types/types/sections/index.d.ts +0 -2
  277. package/dist/types/types/sections/requests.d.ts +0 -41
  278. package/dist/types/types/sections/types.d.ts +0 -44
  279. package/dist/types/types/sync/commands/calendars.d.ts +0 -14
  280. package/dist/types/types/sync/commands/filters.d.ts +0 -22
  281. package/dist/types/types/sync/commands/folders.d.ts +0 -18
  282. package/dist/types/types/sync/commands/index.d.ts +0 -171
  283. package/dist/types/types/sync/commands/labels.d.ts +0 -32
  284. package/dist/types/types/sync/commands/notes.d.ts +0 -27
  285. package/dist/types/types/sync/commands/notifications.d.ts +0 -10
  286. package/dist/types/types/sync/commands/others.d.ts +0 -39
  287. package/dist/types/types/sync/commands/project-view-options.d.ts +0 -14
  288. package/dist/types/types/sync/commands/projects.d.ts +0 -90
  289. package/dist/types/types/sync/commands/reminders.d.ts +0 -51
  290. package/dist/types/types/sync/commands/sections.d.ts +0 -31
  291. package/dist/types/types/sync/commands/shared.d.ts +0 -51
  292. package/dist/types/types/sync/commands/sharing.d.ts +0 -16
  293. package/dist/types/types/sync/commands/tasks.d.ts +0 -78
  294. package/dist/types/types/sync/commands/view-options.d.ts +0 -15
  295. package/dist/types/types/sync/commands/workspace-filters.d.ts +0 -23
  296. package/dist/types/types/sync/commands/workspace-goals.d.ts +0 -24
  297. package/dist/types/types/sync/commands/workspaces.d.ts +0 -79
  298. package/dist/types/types/sync/index.d.ts +0 -6
  299. package/dist/types/types/sync/request.d.ts +0 -7
  300. package/dist/types/types/sync/resource-types.d.ts +0 -5
  301. package/dist/types/types/sync/resources/calendars.d.ts +0 -38
  302. package/dist/types/types/sync/resources/collaborators.d.ts +0 -28
  303. package/dist/types/types/sync/resources/completed-info.d.ts +0 -33
  304. package/dist/types/types/sync/resources/filters.d.ts +0 -12
  305. package/dist/types/types/sync/resources/folders.d.ts +0 -10
  306. package/dist/types/types/sync/resources/index.d.ts +0 -17
  307. package/dist/types/types/sync/resources/live-notifications.d.ts +0 -32
  308. package/dist/types/types/sync/resources/notes.d.ts +0 -34
  309. package/dist/types/types/sync/resources/reminders.d.ts +0 -126
  310. package/dist/types/types/sync/resources/suggestions.d.ts +0 -96
  311. package/dist/types/types/sync/resources/tooltips.d.ts +0 -6
  312. package/dist/types/types/sync/resources/user-plan-limits.d.ts +0 -41
  313. package/dist/types/types/sync/resources/user-settings.d.ts +0 -40
  314. package/dist/types/types/sync/resources/user.d.ts +0 -134
  315. package/dist/types/types/sync/resources/view-options.d.ts +0 -169
  316. package/dist/types/types/sync/resources/workspace-filters.d.ts +0 -17
  317. package/dist/types/types/sync/resources/workspace-goals.d.ts +0 -29
  318. package/dist/types/types/sync/resources/workspaces.d.ts +0 -142
  319. package/dist/types/types/sync/response.d.ts +0 -51
  320. package/dist/types/types/sync/user-preferences.d.ts +0 -39
  321. package/dist/types/types/tasks/index.d.ts +0 -2
  322. package/dist/types/types/tasks/requests.d.ts +0 -197
  323. package/dist/types/types/tasks/types.d.ts +0 -162
  324. package/dist/types/types/templates/index.d.ts +0 -1
  325. package/dist/types/types/templates/requests.d.ts +0 -92
  326. package/dist/types/types/uploads/index.d.ts +0 -1
  327. package/dist/types/types/uploads/requests.d.ts +0 -32
  328. package/dist/types/types/users/index.d.ts +0 -1
  329. package/dist/types/types/users/types.d.ts +0 -66
  330. package/dist/types/types/workspaces/index.d.ts +0 -2
  331. package/dist/types/types/workspaces/requests.d.ts +0 -260
  332. package/dist/types/types/workspaces/types.d.ts +0 -267
  333. package/dist/types/utils/activity-helpers.d.ts +0 -28
  334. package/dist/types/utils/case-conversion.d.ts +0 -12
  335. package/dist/types/utils/colors.d.ts +0 -197
  336. package/dist/types/utils/index.d.ts +0 -4
  337. package/dist/types/utils/multipart-upload.d.ts +0 -54
  338. package/dist/types/utils/processing-helpers.d.ts +0 -1
  339. package/dist/types/utils/sanitization.d.ts +0 -35
  340. package/dist/types/utils/sync-helpers.d.ts +0 -17
  341. package/dist/types/utils/uncompletable-helpers.d.ts +0 -30
  342. package/dist/types/utils/url-helpers.d.ts +0 -32
  343. package/dist/types/utils/validators.d.ts +0 -1404
@@ -1,134 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const FeaturesSchema: z.ZodObject<{
3
- karmaDisabled: z.ZodBoolean;
4
- restriction: z.ZodNumber;
5
- karmaVacation: z.ZodBoolean;
6
- dateistLang: z.ZodAny;
7
- beta: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>;
8
- hasPushReminders: z.ZodBoolean;
9
- dateistInlineDisabled: z.ZodBoolean;
10
- autoInviteDisabled: z.ZodOptional<z.ZodBoolean>;
11
- goldTheme: z.ZodOptional<z.ZodBoolean>;
12
- migratedFromTdb: z.ZodOptional<z.ZodBoolean>;
13
- }, z.core.$loose>;
14
- export declare const TzInfoSchema: z.ZodObject<{
15
- timezone: z.ZodString;
16
- hours: z.ZodNumber;
17
- minutes: z.ZodNumber;
18
- isDst: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>;
19
- gmtString: z.ZodString;
20
- }, z.core.$loose>;
21
- export declare const JoinableWorkspaceSchema: z.ZodObject<{
22
- workspaceId: z.ZodString;
23
- workspaceName: z.ZodString;
24
- memberCount: z.ZodNumber;
25
- }, z.core.$loose>;
26
- export declare const GettingStartedGuideProjectSchema: z.ZodObject<{
27
- onboardingUseCase: z.ZodString;
28
- projectId: z.ZodString;
29
- completed: z.ZodBoolean;
30
- closed: z.ZodBoolean;
31
- }, z.core.$loose>;
32
- /**
33
- * Sync API user resource.
34
- *
35
- * This is a superset of the REST `CurrentUserSchema` — the Sync API returns
36
- * many additional fields for features, onboarding state, and account details.
37
- */
38
- export declare const SyncUserSchema: z.ZodObject<{
39
- id: z.ZodString;
40
- email: z.ZodString;
41
- fullName: z.ZodString;
42
- activatedUser: z.ZodBoolean;
43
- autoReminder: z.ZodNumber;
44
- avatarBig: z.ZodOptional<z.ZodString>;
45
- avatarMedium: z.ZodOptional<z.ZodString>;
46
- avatarS640: z.ZodOptional<z.ZodString>;
47
- avatarSmall: z.ZodOptional<z.ZodString>;
48
- businessAccountId: z.ZodNullable<z.ZodString>;
49
- dailyGoal: z.ZodNumber;
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>;
52
- daysOff: z.ZodArray<z.ZodNumber>;
53
- featureIdentifier: z.ZodString;
54
- features: z.ZodObject<{
55
- karmaDisabled: z.ZodBoolean;
56
- restriction: z.ZodNumber;
57
- karmaVacation: z.ZodBoolean;
58
- dateistLang: z.ZodAny;
59
- beta: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>;
60
- hasPushReminders: z.ZodBoolean;
61
- dateistInlineDisabled: z.ZodBoolean;
62
- autoInviteDisabled: z.ZodOptional<z.ZodBoolean>;
63
- goldTheme: z.ZodOptional<z.ZodBoolean>;
64
- migratedFromTdb: z.ZodOptional<z.ZodBoolean>;
65
- }, z.core.$loose>;
66
- freeTrailExpires: z.ZodOptional<z.ZodString>;
67
- hasMagicNumber: z.ZodBoolean;
68
- hasPassword: z.ZodBoolean;
69
- hasStartedATrial: z.ZodOptional<z.ZodBoolean>;
70
- imageId: z.ZodNullable<z.ZodString>;
71
- inboxProjectId: z.ZodString;
72
- isCelebrationsEnabled: z.ZodBoolean;
73
- isPremium: z.ZodBoolean;
74
- joinableWorkspace: z.ZodNullable<z.ZodObject<{
75
- workspaceId: z.ZodString;
76
- workspaceName: z.ZodString;
77
- memberCount: z.ZodNumber;
78
- }, z.core.$loose>>;
79
- joinedAt: z.ZodString;
80
- gettingStartedGuideProjects: z.ZodNullable<z.ZodArray<z.ZodObject<{
81
- onboardingUseCase: z.ZodString;
82
- projectId: z.ZodString;
83
- completed: z.ZodBoolean;
84
- closed: z.ZodBoolean;
85
- }, z.core.$loose>>>;
86
- karma: z.ZodNumber;
87
- karmaTrend: z.ZodString;
88
- lang: z.ZodString;
89
- mfaEnabled: z.ZodOptional<z.ZodBoolean>;
90
- mobileHost: z.ZodNullable<z.ZodString>;
91
- mobileNumber: z.ZodNullable<z.ZodString>;
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", 2 | 1 | 3 | 4 | 5 | 6 | 7>>;
93
- onboardingLevel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
- onboardingRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
- onboardingPersona: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
- onboardingInitiated: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
97
- onboardingCompleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
98
- onboardingSkipped: z.ZodOptional<z.ZodBoolean>;
99
- onboardingTeamMode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
100
- onboardingUseCases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
101
- premiumStatus: z.ZodEnum<{
102
- not_premium: "not_premium";
103
- current_personal_plan: "current_personal_plan";
104
- legacy_personal_plan: "legacy_personal_plan";
105
- teams_business_member: "teams_business_member";
106
- }>;
107
- premiumUntil: z.ZodNullable<z.ZodString>;
108
- rambleSessionsUsage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
109
- currentCount: z.ZodNumber;
110
- limit: z.ZodNumber;
111
- remaining: z.ZodNumber;
112
- resetDate: z.ZodString;
113
- }, z.core.$strip>>>;
114
- shareLimit: z.ZodNumber;
115
- sortOrder: z.ZodNumber;
116
- startDay: 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", 2 | 1 | 3 | 4 | 5 | 6 | 7>>;
117
- startPage: z.ZodString;
118
- themeId: z.ZodString;
119
- timeFormat: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<"24h" | "12h", 0 | 1>>;
120
- token: z.ZodString;
121
- tzInfo: z.ZodObject<{
122
- timezone: z.ZodString;
123
- hours: z.ZodNumber;
124
- minutes: z.ZodNumber;
125
- isDst: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>;
126
- gmtString: z.ZodString;
127
- }, z.core.$loose>;
128
- uniquePrefix: z.ZodNumber;
129
- verificationStatus: z.ZodString;
130
- websocketUrl: z.ZodString;
131
- weekendStartDay: z.ZodNumber;
132
- weeklyGoal: z.ZodNumber;
133
- }, z.core.$loose>;
134
- export type SyncUser = z.infer<typeof SyncUserSchema>;
@@ -1,169 +0,0 @@
1
- import { z } from 'zod';
2
- /** Available view types. */
3
- export declare const VIEW_TYPES: readonly ["TODAY", "UPCOMING", "PROJECT", "LABEL", "FILTER", "WORKSPACE_FILTER", "SEARCH", "TEMPLATE_PREVIEW", "TASK_DETAIL", "AUTOMATION", "ASSIGNED", "OVERDUE", "WORKSPACE_OVERVIEW"];
4
- /** Type of view in the Todoist UI. */
5
- export type ViewType = (typeof VIEW_TYPES)[number];
6
- export declare const ViewTypeSchema: z.ZodEnum<{
7
- PROJECT: "PROJECT";
8
- TODAY: "TODAY";
9
- UPCOMING: "UPCOMING";
10
- LABEL: "LABEL";
11
- FILTER: "FILTER";
12
- WORKSPACE_FILTER: "WORKSPACE_FILTER";
13
- SEARCH: "SEARCH";
14
- TEMPLATE_PREVIEW: "TEMPLATE_PREVIEW";
15
- TASK_DETAIL: "TASK_DETAIL";
16
- AUTOMATION: "AUTOMATION";
17
- ASSIGNED: "ASSIGNED";
18
- OVERDUE: "OVERDUE";
19
- WORKSPACE_OVERVIEW: "WORKSPACE_OVERVIEW";
20
- }>;
21
- /** Available view modes. */
22
- export declare const VIEW_MODES: readonly ["LIST", "BOARD", "CALENDAR"];
23
- /** Display mode for a view. */
24
- export type ViewMode = (typeof VIEW_MODES)[number];
25
- export declare const ViewModeSchema: z.ZodEnum<{
26
- LIST: "LIST";
27
- BOARD: "BOARD";
28
- CALENDAR: "CALENDAR";
29
- }>;
30
- /** Available grouping options. */
31
- export declare const GROUPED_BY_OPTIONS: readonly ["ASSIGNEE", "ADDED_DATE", "DUE_DATE", "DEADLINE", "LABEL", "PRIORITY", "PROJECT", "WORKSPACE"];
32
- /** Field to group tasks by. */
33
- export type GroupedBy = (typeof GROUPED_BY_OPTIONS)[number];
34
- export declare const GroupedBySchema: z.ZodNullable<z.ZodEnum<{
35
- PROJECT: "PROJECT";
36
- LABEL: "LABEL";
37
- ASSIGNEE: "ASSIGNEE";
38
- ADDED_DATE: "ADDED_DATE";
39
- DUE_DATE: "DUE_DATE";
40
- DEADLINE: "DEADLINE";
41
- PRIORITY: "PRIORITY";
42
- WORKSPACE: "WORKSPACE";
43
- }>>;
44
- /** Available sorting options. */
45
- export declare const SORTED_BY_OPTIONS: readonly ["MANUAL", "ALPHABETICALLY", "ASSIGNEE", "DUE_DATE", "DEADLINE", "ADDED_DATE", "PRIORITY", "PROJECT", "WORKSPACE"];
46
- /** Field to sort tasks by. */
47
- export type SortedBy = (typeof SORTED_BY_OPTIONS)[number];
48
- export declare const SortedBySchema: z.ZodNullable<z.ZodEnum<{
49
- PROJECT: "PROJECT";
50
- MANUAL: "MANUAL";
51
- ASSIGNEE: "ASSIGNEE";
52
- ADDED_DATE: "ADDED_DATE";
53
- DUE_DATE: "DUE_DATE";
54
- DEADLINE: "DEADLINE";
55
- PRIORITY: "PRIORITY";
56
- WORKSPACE: "WORKSPACE";
57
- ALPHABETICALLY: "ALPHABETICALLY";
58
- }>>;
59
- /** Available sort directions. */
60
- export declare const SORT_ORDERS: readonly ["ASC", "DESC"];
61
- /** Sort direction. */
62
- export type SortOrder = (typeof SORT_ORDERS)[number];
63
- export declare const SortOrderSchema: z.ZodNullable<z.ZodEnum<{
64
- ASC: "ASC";
65
- DESC: "DESC";
66
- }>>;
67
- /** Available calendar layout modes. */
68
- export declare const CALENDAR_LAYOUTS: readonly ["WEEK", "MONTH"];
69
- /** Calendar layout mode. */
70
- export type CalendarLayout = (typeof CALENDAR_LAYOUTS)[number];
71
- export declare const CalendarSettingsSchema: z.ZodObject<{
72
- layout: z.ZodOptional<z.ZodEnum<{
73
- WEEK: "WEEK";
74
- MONTH: "MONTH";
75
- }>>;
76
- }, z.core.$loose>;
77
- export declare const ViewOptionsSchema: z.ZodObject<{
78
- viewType: z.ZodEnum<{
79
- PROJECT: "PROJECT";
80
- TODAY: "TODAY";
81
- UPCOMING: "UPCOMING";
82
- LABEL: "LABEL";
83
- FILTER: "FILTER";
84
- WORKSPACE_FILTER: "WORKSPACE_FILTER";
85
- SEARCH: "SEARCH";
86
- TEMPLATE_PREVIEW: "TEMPLATE_PREVIEW";
87
- TASK_DETAIL: "TASK_DETAIL";
88
- AUTOMATION: "AUTOMATION";
89
- ASSIGNED: "ASSIGNED";
90
- OVERDUE: "OVERDUE";
91
- WORKSPACE_OVERVIEW: "WORKSPACE_OVERVIEW";
92
- }>;
93
- objectId: z.ZodOptional<z.ZodString>;
94
- groupedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
95
- PROJECT: "PROJECT";
96
- LABEL: "LABEL";
97
- ASSIGNEE: "ASSIGNEE";
98
- ADDED_DATE: "ADDED_DATE";
99
- DUE_DATE: "DUE_DATE";
100
- DEADLINE: "DEADLINE";
101
- PRIORITY: "PRIORITY";
102
- WORKSPACE: "WORKSPACE";
103
- }>>>;
104
- filteredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
- viewMode: z.ZodOptional<z.ZodEnum<{
106
- LIST: "LIST";
107
- BOARD: "BOARD";
108
- CALENDAR: "CALENDAR";
109
- }>>;
110
- showCompletedTasks: z.ZodOptional<z.ZodBoolean>;
111
- sortedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
112
- PROJECT: "PROJECT";
113
- MANUAL: "MANUAL";
114
- ASSIGNEE: "ASSIGNEE";
115
- ADDED_DATE: "ADDED_DATE";
116
- DUE_DATE: "DUE_DATE";
117
- DEADLINE: "DEADLINE";
118
- PRIORITY: "PRIORITY";
119
- WORKSPACE: "WORKSPACE";
120
- ALPHABETICALLY: "ALPHABETICALLY";
121
- }>>>;
122
- sortOrder: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
123
- ASC: "ASC";
124
- DESC: "DESC";
125
- }>>>;
126
- }, z.core.$loose>;
127
- export type ViewOptions = z.infer<typeof ViewOptionsSchema>;
128
- export declare const ProjectViewOptionsDefaultsSchema: z.ZodObject<{
129
- projectId: z.ZodString;
130
- viewMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
131
- LIST: "LIST";
132
- BOARD: "BOARD";
133
- CALENDAR: "CALENDAR";
134
- }>>>;
135
- groupedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
136
- PROJECT: "PROJECT";
137
- LABEL: "LABEL";
138
- ASSIGNEE: "ASSIGNEE";
139
- ADDED_DATE: "ADDED_DATE";
140
- DUE_DATE: "DUE_DATE";
141
- DEADLINE: "DEADLINE";
142
- PRIORITY: "PRIORITY";
143
- WORKSPACE: "WORKSPACE";
144
- }>>>;
145
- sortedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
146
- PROJECT: "PROJECT";
147
- MANUAL: "MANUAL";
148
- ASSIGNEE: "ASSIGNEE";
149
- ADDED_DATE: "ADDED_DATE";
150
- DUE_DATE: "DUE_DATE";
151
- DEADLINE: "DEADLINE";
152
- PRIORITY: "PRIORITY";
153
- WORKSPACE: "WORKSPACE";
154
- ALPHABETICALLY: "ALPHABETICALLY";
155
- }>>>;
156
- sortOrder: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
157
- ASC: "ASC";
158
- DESC: "DESC";
159
- }>>>;
160
- showCompletedTasks: z.ZodOptional<z.ZodBoolean>;
161
- filteredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
- calendarSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
163
- layout: z.ZodOptional<z.ZodEnum<{
164
- WEEK: "WEEK";
165
- MONTH: "MONTH";
166
- }>>;
167
- }, z.core.$loose>>>;
168
- }, z.core.$loose>;
169
- export type ProjectViewOptionsDefaults = z.infer<typeof ProjectViewOptionsDefaultsSchema>;
@@ -1,17 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const WorkspaceFilterSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- workspaceId: z.ZodString;
5
- name: z.ZodString;
6
- query: z.ZodString;
7
- color: z.ZodString;
8
- itemOrder: z.ZodNumber;
9
- isDeleted: z.ZodBoolean;
10
- isFavorite: z.ZodBoolean;
11
- isFrozen: z.ZodBoolean;
12
- creatorUid: z.ZodString;
13
- updaterUid: z.ZodString;
14
- createdAt: z.ZodString;
15
- updatedAt: z.ZodString;
16
- }, z.core.$loose>;
17
- export type WorkspaceFilter = z.infer<typeof WorkspaceFilterSchema>;
@@ -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.ZodString;
27
- updatedAt: z.ZodString;
28
- }, z.core.$loose>;
29
- export type WorkspaceGoal = z.infer<typeof WorkspaceGoalSchema>;
@@ -1,142 +0,0 @@
1
- import { z } from 'zod';
2
- /**
3
- * Sync API workspace resource.
4
- *
5
- * This is a superset of the REST `WorkspaceSchema` — the Sync API returns
6
- * additional fields like description, isDeleted, isCollapsed, member counts,
7
- * domain settings, and sorting preferences.
8
- */
9
- export declare const SyncWorkspaceSchema: z.ZodPipe<z.ZodObject<{
10
- id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
11
- name: z.ZodString;
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>;
17
- creatorId: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
18
- createdAt: z.ZodOptional<z.ZodString>;
19
- dateCreated: z.ZodOptional<z.ZodString>;
20
- isDeleted: z.ZodBoolean;
21
- isCollapsed: z.ZodBoolean;
22
- role: z.ZodOptional<z.ZodEnum<{
23
- ADMIN: "ADMIN";
24
- MEMBER: "MEMBER";
25
- GUEST: "GUEST";
26
- }>>;
27
- plan: z.ZodEnum<{
28
- STARTER: "STARTER";
29
- BUSINESS: "BUSINESS";
30
- }>;
31
- limits: z.ZodOptional<z.ZodObject<{
32
- current: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
33
- next: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
34
- }, z.core.$catchall<z.ZodAny>>>;
35
- inviteCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
- isLinkSharingEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
37
- isGuestAllowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
38
- currentActiveProjects: z.ZodNullable<z.ZodNumber>;
39
- currentMemberCount: z.ZodNullable<z.ZodNumber>;
40
- memberCountByType: z.ZodOptional<z.ZodObject<{
41
- adminCount: z.ZodNumber;
42
- guestCount: z.ZodNumber;
43
- memberCount: z.ZodNumber;
44
- }, z.core.$strip>>;
45
- currentTemplateCount: z.ZodNullable<z.ZodNumber>;
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>;
50
- adminSortingApplied: z.ZodBoolean;
51
- projectSortPreference: z.ZodOptional<z.ZodString>;
52
- defaultCollaborators: z.ZodOptional<z.ZodObject<{
53
- predefinedGroupIds: z.ZodArray<z.ZodString>;
54
- userIds: z.ZodArray<z.ZodNumber>;
55
- }, z.core.$strip>>;
56
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
57
- }, z.core.$loose>, z.ZodTransform<{
58
- createdAt: string | undefined;
59
- id: string;
60
- name: string;
61
- description: string;
62
- creatorId: string;
63
- isDeleted: boolean;
64
- isCollapsed: boolean;
65
- plan: "STARTER" | "BUSINESS";
66
- currentActiveProjects: number | null;
67
- currentMemberCount: number | null;
68
- currentTemplateCount: number | null;
69
- adminSortingApplied: boolean;
70
- logoBig?: string | undefined;
71
- logoMedium?: string | undefined;
72
- logoSmall?: string | undefined;
73
- logoS640?: string | undefined;
74
- role?: "ADMIN" | "MEMBER" | "GUEST" | undefined;
75
- limits?: {
76
- [x: string]: any;
77
- current: Record<string, any> | null;
78
- next: Record<string, any> | null;
79
- } | undefined;
80
- inviteCode?: string | null | undefined;
81
- isLinkSharingEnabled?: boolean | null | undefined;
82
- isGuestAllowed?: boolean | null | undefined;
83
- memberCountByType?: {
84
- adminCount: number;
85
- guestCount: number;
86
- memberCount: number;
87
- } | undefined;
88
- pendingInvitations?: string[] | null | undefined;
89
- domainName?: string | undefined;
90
- domainDiscovery?: boolean | undefined;
91
- restrictEmailDomains?: boolean | undefined;
92
- projectSortPreference?: string | undefined;
93
- defaultCollaborators?: {
94
- predefinedGroupIds: string[];
95
- userIds: number[];
96
- } | undefined;
97
- properties?: Record<string, unknown> | undefined;
98
- }, {
99
- [x: string]: unknown;
100
- id: string;
101
- name: string;
102
- description: string;
103
- creatorId: string;
104
- isDeleted: boolean;
105
- isCollapsed: boolean;
106
- plan: "STARTER" | "BUSINESS";
107
- currentActiveProjects: number | null;
108
- currentMemberCount: number | null;
109
- currentTemplateCount: number | null;
110
- adminSortingApplied: boolean;
111
- logoBig?: string | undefined;
112
- logoMedium?: string | undefined;
113
- logoSmall?: string | undefined;
114
- logoS640?: string | undefined;
115
- createdAt?: string | undefined;
116
- dateCreated?: string | undefined;
117
- role?: "ADMIN" | "MEMBER" | "GUEST" | undefined;
118
- limits?: {
119
- [x: string]: any;
120
- current: Record<string, any> | null;
121
- next: Record<string, any> | null;
122
- } | undefined;
123
- inviteCode?: string | null | undefined;
124
- isLinkSharingEnabled?: boolean | null | undefined;
125
- isGuestAllowed?: boolean | null | undefined;
126
- memberCountByType?: {
127
- adminCount: number;
128
- guestCount: number;
129
- memberCount: number;
130
- } | undefined;
131
- pendingInvitations?: string[] | null | undefined;
132
- domainName?: string | undefined;
133
- domainDiscovery?: boolean | undefined;
134
- restrictEmailDomains?: boolean | undefined;
135
- projectSortPreference?: string | undefined;
136
- defaultCollaborators?: {
137
- predefinedGroupIds: string[];
138
- userIds: number[];
139
- } | undefined;
140
- properties?: Record<string, unknown> | undefined;
141
- }>>;
142
- export type SyncWorkspace = z.infer<typeof SyncWorkspaceSchema>;
@@ -1,51 +0,0 @@
1
- import type { Task } from '../tasks/types.js';
2
- import type { PersonalProject, WorkspaceProject } from '../projects/types.js';
3
- import type { Section } from '../sections/types.js';
4
- import type { Label } from '../labels/types.js';
5
- import type { WorkspaceUser } from '../workspaces/types.js';
6
- import type { Filter, Collaborator, CollaboratorState, Folder, Note, Tooltips, WorkspaceFilter, WorkspaceGoal, Calendar, CalendarAccount, Reminder, CompletedInfo, ViewOptions, ProjectViewOptionsDefaults, UserPlanLimits, LiveNotification, SyncWorkspace, SyncUser, UserSettings, LocationReminder, Suggestion } from './resources/index.js';
7
- export type SyncError = {
8
- error: string;
9
- errorCode: number;
10
- errorExtra: Record<string, unknown>;
11
- errorTag: string;
12
- httpCode: number;
13
- };
14
- export type SyncResponse = {
15
- syncToken?: string;
16
- fullSync?: boolean;
17
- syncStatus?: Record<string, 'ok' | SyncError>;
18
- tempIdMapping?: Record<string, string>;
19
- items?: Task[];
20
- projects?: (PersonalProject | WorkspaceProject)[];
21
- sections?: Section[];
22
- labels?: Label[];
23
- notes?: Note[];
24
- projectNotes?: Note[];
25
- filters?: Filter[];
26
- reminders?: Reminder[];
27
- remindersLocation?: LocationReminder[];
28
- locations?: Record<string, unknown>[];
29
- user?: SyncUser;
30
- liveNotifications?: LiveNotification[];
31
- collaborators?: Collaborator[];
32
- collaboratorStates?: CollaboratorState[];
33
- userSettings?: UserSettings;
34
- notificationSettings?: Record<string, boolean>;
35
- userPlanLimits?: UserPlanLimits;
36
- completedInfo?: CompletedInfo[];
37
- stats?: Record<string, unknown>;
38
- workspaces?: SyncWorkspace[];
39
- workspaceUsers?: WorkspaceUser[];
40
- workspaceFilters?: WorkspaceFilter[];
41
- viewOptions?: ViewOptions[];
42
- projectViewOptionsDefaults?: ProjectViewOptionsDefaults[];
43
- roleActions?: Record<string, unknown>[];
44
- folders?: Folder[];
45
- workspaceGoals?: WorkspaceGoal[];
46
- dayOrders?: Record<string, number>;
47
- calendars?: Calendar[];
48
- calendarAccounts?: CalendarAccount[];
49
- suggestions?: Suggestion[];
50
- tooltips?: Tooltips;
51
- };
@@ -1,39 +0,0 @@
1
- import { z } from 'zod';
2
- /** Available date format options. */
3
- export declare const DATE_FORMATS: readonly ["DD/MM/YYYY", "MM/DD/YYYY"];
4
- /** User date format preference. */
5
- export type DateFormat = (typeof DATE_FORMATS)[number];
6
- /** Available time format options. */
7
- export declare const TIME_FORMATS: readonly ["24h", "12h"];
8
- /** User time format preference. */
9
- export type TimeFormat = (typeof TIME_FORMATS)[number];
10
- /** Available days of the week. */
11
- export declare const DAYS_OF_WEEK: readonly ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"];
12
- /** Day of the week. */
13
- export type DayOfWeek = (typeof DAYS_OF_WEEK)[number];
14
- export declare const DATE_FORMAT_FROM_API: {
15
- readonly 0: "DD/MM/YYYY";
16
- readonly 1: "MM/DD/YYYY";
17
- };
18
- export declare const TIME_FORMAT_FROM_API: {
19
- readonly 0: "24h";
20
- readonly 1: "12h";
21
- };
22
- export declare const DAY_OF_WEEK_FROM_API: {
23
- readonly 1: "Monday";
24
- readonly 2: "Tuesday";
25
- readonly 3: "Wednesday";
26
- readonly 4: "Thursday";
27
- readonly 5: "Friday";
28
- readonly 6: "Saturday";
29
- readonly 7: "Sunday";
30
- };
31
- export declare const DATE_FORMAT_TO_API: Record<DateFormat, 0 | 1>;
32
- export declare const TIME_FORMAT_TO_API: Record<TimeFormat, 0 | 1>;
33
- export declare const DAY_OF_WEEK_TO_API: Record<DayOfWeek, 1 | 2 | 3 | 4 | 5 | 6 | 7>;
34
- /** Zod read-schema: parse API 0/1 integer, emit boolean */
35
- export declare const BooleanFromZeroOneSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>;
36
- /** Zod read-schemas: parse API numbers, emit descriptive strings */
37
- export declare const DateFormatSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<"DD/MM/YYYY" | "MM/DD/YYYY", 0 | 1>>;
38
- export declare const TimeFormatSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<"24h" | "12h", 0 | 1>>;
39
- export declare const DayOfWeekSchema: 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", 2 | 1 | 3 | 4 | 5 | 6 | 7>>;
@@ -1,2 +0,0 @@
1
- export * from './types.js';
2
- export * from './requests.js';