@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,29 +0,0 @@
1
- import type { RequestUrlParam, RequestUrlResponse } from 'obsidian';
2
- import type { CustomFetch } from '../types/http.js';
3
- /**
4
- * Creates a CustomFetch adapter for Obsidian's requestUrl API.
5
- *
6
- * This adapter bridges the gap between Obsidian's requestUrl interface and the
7
- * standard fetch-like interface expected by the Todoist API SDK.
8
- *
9
- * Key differences handled by this adapter:
10
- * - Obsidian returns response data as properties (response.json, response.text)
11
- * while the SDK expects methods (response.json(), response.text())
12
- * - Obsidian's requestUrl bypasses CORS restrictions that would block standard fetch
13
- * - Obsidian throws on HTTP errors by default; we set throw: false to handle manually
14
- * - Obsidian doesn't provide statusText; we default to empty string
15
- *
16
- * @example
17
- * ```typescript
18
- * import { requestUrl } from 'obsidian';
19
- * import { createObsidianFetchAdapter } from './obsidian-fetch-adapter.js';
20
- *
21
- * const api = new TodoistApi('your-token', {
22
- * customFetch: createObsidianFetchAdapter(requestUrl)
23
- * });
24
- * ```
25
- *
26
- * @param requestUrl - The Obsidian requestUrl function
27
- * @returns A CustomFetch function compatible with the Todoist API SDK
28
- */
29
- export declare function createObsidianFetchAdapter(requestUrl: (request: RequestUrlParam | string) => Promise<RequestUrlResponse>): CustomFetch;
@@ -1,261 +0,0 @@
1
- import { Label, Section, Task, User, Attachment, Duration, Deadline, RawComment, PersonalProject, Reminder, Folder } from '../types/index.js';
2
- export declare const DEFAULT_TASK_ID = "1234";
3
- export declare const DEFAULT_TASK_CONTENT = "This is a task";
4
- export declare const DEFAULT_TASK_DESCRIPTION = "A description";
5
- export declare const DEFAULT_TASK_PRIORITY = 1;
6
- export declare const DEFAULT_ORDER = 3;
7
- export declare const DEFAULT_PROJECT_ID = "123";
8
- export declare const DEFAULT_PROJECT_NAME = "This is a project";
9
- export declare const DEFAULT_PROJECT_VIEW_STYLE = "list";
10
- export declare const DEFAULT_AUTH_TOKEN = "AToken";
11
- export declare const DEFAULT_REQUEST_ID = "ARequestID";
12
- export declare const INVALID_ENTITY_ID = 1234;
13
- export declare const DEFAULT_DUE_DATE: {
14
- isRecurring: boolean;
15
- string: string;
16
- date: string;
17
- lang: string;
18
- timezone: null;
19
- };
20
- export declare const DEFAULT_DURATION: Duration;
21
- export declare const DEFAULT_DEADLINE: Deadline;
22
- export declare const DEFAULT_TASK: Task;
23
- export declare const INVALID_TASK: {
24
- due: string;
25
- isUncompletable: boolean;
26
- url: string;
27
- id: string;
28
- userId: string;
29
- projectId: string;
30
- sectionId: string | null;
31
- parentId: string | null;
32
- addedByUid: string | null;
33
- assignedByUid: string | null;
34
- responsibleUid: string | null;
35
- labels: string[];
36
- deadline: {
37
- date: string;
38
- lang: string;
39
- } | null;
40
- duration: {
41
- amount: number;
42
- unit: "minute" | "day";
43
- } | null;
44
- checked: boolean;
45
- isDeleted: boolean;
46
- addedAt: string | null;
47
- completedAt: string | null;
48
- updatedAt: string | null;
49
- priority: number;
50
- childOrder: number;
51
- content: string;
52
- description: string;
53
- dayOrder: number;
54
- isCollapsed: boolean;
55
- };
56
- export declare const TASK_WITH_OPTIONALS_AS_NULL: Task;
57
- export declare const DEFAULT_PROJECT: PersonalProject;
58
- export declare const INVALID_PROJECT: {
59
- name: number;
60
- url: string;
61
- id: string;
62
- canAssignTasks: boolean;
63
- childOrder: number;
64
- color: string;
65
- createdAt: string | null;
66
- isArchived: boolean;
67
- isDeleted: boolean;
68
- isFavorite: boolean;
69
- isFrozen: boolean;
70
- updatedAt: string | null;
71
- viewStyle: string;
72
- defaultOrder: number;
73
- description: string;
74
- isCollapsed: boolean;
75
- isShared: boolean;
76
- parentId: string | null;
77
- inboxProject: boolean;
78
- };
79
- export declare const PROJECT_WITH_OPTIONALS_AS_NULL: PersonalProject;
80
- export declare const DEFAULT_SECTION: Section;
81
- export declare const INVALID_SECTION: {
82
- projectId: undefined;
83
- url: string;
84
- id: string;
85
- userId: string;
86
- addedAt: string;
87
- updatedAt: string;
88
- archivedAt: string | null;
89
- name: string;
90
- sectionOrder: number;
91
- isArchived: boolean;
92
- isDeleted: boolean;
93
- isCollapsed: boolean;
94
- };
95
- export declare const DEFAULT_LABEL: Label;
96
- export declare const INVALID_LABEL: {
97
- isFavorite: string;
98
- id: string;
99
- order: number | null;
100
- name: string;
101
- color: string;
102
- };
103
- export declare const DEFAULT_USER: User;
104
- export declare const INVALID_USER: {
105
- email: undefined;
106
- id: string;
107
- name: string;
108
- };
109
- export declare const DEFAULT_ATTACHMENT: Attachment;
110
- export declare const INVALID_ATTACHMENT: {
111
- uploadState: string;
112
- resourceType: string;
113
- fileName?: string | null | undefined;
114
- fileSize?: number | null | undefined;
115
- fileType?: string | null | undefined;
116
- fileUrl?: string | null | undefined;
117
- fileDuration?: number | null | undefined;
118
- image?: string | null | undefined;
119
- imageWidth?: number | null | undefined;
120
- imageHeight?: number | null | undefined;
121
- url?: string | null | undefined;
122
- title?: string | null | undefined;
123
- };
124
- export declare const DEFAULT_RAW_COMMENT: RawComment;
125
- export declare const DEFAULT_COMMENT: {
126
- taskId: string | undefined;
127
- itemId: undefined;
128
- id: string;
129
- content: string;
130
- postedAt: string;
131
- fileAttachment: {
132
- resourceType: string;
133
- fileName?: string | null | undefined;
134
- fileSize?: number | null | undefined;
135
- fileType?: string | null | undefined;
136
- fileUrl?: string | null | undefined;
137
- fileDuration?: number | null | undefined;
138
- uploadState?: "completed" | "pending" | null | undefined;
139
- image?: string | null | undefined;
140
- imageWidth?: number | null | undefined;
141
- imageHeight?: number | null | undefined;
142
- url?: string | null | undefined;
143
- title?: string | null | undefined;
144
- } | null;
145
- postedUid: string;
146
- uidsToNotify: string[] | null;
147
- reactions: Record<string, string[]> | null;
148
- isDeleted: boolean;
149
- projectId?: string | undefined;
150
- };
151
- export declare const DEFAULT_REMINDER_ID = "6XGgmFQrx44wfGHr";
152
- export declare const DEFAULT_RELATIVE_REMINDER: Reminder;
153
- export declare const DEFAULT_ABSOLUTE_REMINDER: Reminder;
154
- export declare const DEFAULT_LOCATION_REMINDER: Reminder;
155
- export declare const INVALID_COMMENT: {
156
- isDeleted: string;
157
- id: string;
158
- content: string;
159
- postedAt: string;
160
- fileAttachment: {
161
- resourceType: string;
162
- fileName?: string | null | undefined;
163
- fileSize?: number | null | undefined;
164
- fileType?: string | null | undefined;
165
- fileUrl?: string | null | undefined;
166
- fileDuration?: number | null | undefined;
167
- uploadState?: "completed" | "pending" | null | undefined;
168
- image?: string | null | undefined;
169
- imageWidth?: number | null | undefined;
170
- imageHeight?: number | null | undefined;
171
- url?: string | null | undefined;
172
- title?: string | null | undefined;
173
- } | null;
174
- postedUid: string;
175
- uidsToNotify: string[] | null;
176
- reactions: Record<string, string[]> | null;
177
- itemId?: string | undefined;
178
- projectId?: string | undefined;
179
- };
180
- export declare const RAW_COMMENT_WITH_OPTIONALS_AS_NULL_TASK: RawComment;
181
- export declare const COMMENT_WITH_OPTIONALS_AS_NULL_TASK: {
182
- taskId: string | undefined;
183
- itemId: undefined;
184
- id: string;
185
- content: string;
186
- postedAt: string;
187
- fileAttachment: {
188
- resourceType: string;
189
- fileName?: string | null | undefined;
190
- fileSize?: number | null | undefined;
191
- fileType?: string | null | undefined;
192
- fileUrl?: string | null | undefined;
193
- fileDuration?: number | null | undefined;
194
- uploadState?: "completed" | "pending" | null | undefined;
195
- image?: string | null | undefined;
196
- imageWidth?: number | null | undefined;
197
- imageHeight?: number | null | undefined;
198
- url?: string | null | undefined;
199
- title?: string | null | undefined;
200
- } | null;
201
- postedUid: string;
202
- uidsToNotify: string[] | null;
203
- reactions: Record<string, string[]> | null;
204
- isDeleted: boolean;
205
- projectId?: string | undefined;
206
- };
207
- export declare const RAW_COMMENT_WITH_ATTACHMENT_WITH_OPTIONALS_AS_NULL: RawComment;
208
- export declare const COMMENT_WITH_ATTACHMENT_WITH_OPTIONALS_AS_NULL: {
209
- taskId: string | undefined;
210
- itemId: undefined;
211
- id: string;
212
- content: string;
213
- postedAt: string;
214
- fileAttachment: {
215
- resourceType: string;
216
- fileName?: string | null | undefined;
217
- fileSize?: number | null | undefined;
218
- fileType?: string | null | undefined;
219
- fileUrl?: string | null | undefined;
220
- fileDuration?: number | null | undefined;
221
- uploadState?: "completed" | "pending" | null | undefined;
222
- image?: string | null | undefined;
223
- imageWidth?: number | null | undefined;
224
- imageHeight?: number | null | undefined;
225
- url?: string | null | undefined;
226
- title?: string | null | undefined;
227
- } | null;
228
- postedUid: string;
229
- uidsToNotify: string[] | null;
230
- reactions: Record<string, string[]> | null;
231
- isDeleted: boolean;
232
- projectId?: string | undefined;
233
- };
234
- export declare const RAW_COMMENT_WITH_OPTIONALS_AS_NULL_PROJECT: RawComment;
235
- export declare const COMMENT_WITH_OPTIONALS_AS_NULL_PROJECT: {
236
- taskId: undefined;
237
- id: string;
238
- content: string;
239
- postedAt: string;
240
- fileAttachment: {
241
- resourceType: string;
242
- fileName?: string | null | undefined;
243
- fileSize?: number | null | undefined;
244
- fileType?: string | null | undefined;
245
- fileUrl?: string | null | undefined;
246
- fileDuration?: number | null | undefined;
247
- uploadState?: "completed" | "pending" | null | undefined;
248
- image?: string | null | undefined;
249
- imageWidth?: number | null | undefined;
250
- imageHeight?: number | null | undefined;
251
- url?: string | null | undefined;
252
- title?: string | null | undefined;
253
- } | null;
254
- postedUid: string;
255
- uidsToNotify: string[] | null;
256
- reactions: Record<string, string[]> | null;
257
- isDeleted: boolean;
258
- itemId?: string | undefined;
259
- projectId?: string | undefined;
260
- };
261
- export declare const DEFAULT_FOLDER: Folder;