@todoist/cli 0.0.1 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1393 -0
- package/LICENSE +9 -0
- package/README.md +192 -29
- package/dist/commands/activity.d.ts +3 -0
- package/dist/commands/activity.d.ts.map +1 -0
- package/dist/commands/activity.js +203 -0
- package/dist/commands/activity.js.map +1 -0
- package/dist/commands/add.d.ts +3 -0
- package/dist/commands/add.d.ts.map +1 -0
- package/dist/commands/add.js +18 -0
- package/dist/commands/add.js.map +1 -0
- package/dist/commands/apps/delete.d.ts +6 -0
- package/dist/commands/apps/delete.d.ts.map +1 -0
- package/dist/commands/apps/delete.js +25 -0
- package/dist/commands/apps/delete.js.map +1 -0
- package/dist/commands/apps/helpers.d.ts +15 -0
- package/dist/commands/apps/helpers.d.ts.map +1 -0
- package/dist/commands/apps/helpers.js +122 -0
- package/dist/commands/apps/helpers.js.map +1 -0
- package/dist/commands/apps/index.d.ts +3 -0
- package/dist/commands/apps/index.d.ts.map +1 -0
- package/dist/commands/apps/index.js +89 -0
- package/dist/commands/apps/index.js.map +1 -0
- package/dist/commands/apps/list.d.ts +7 -0
- package/dist/commands/apps/list.d.ts.map +1 -0
- package/dist/commands/apps/list.js +30 -0
- package/dist/commands/apps/list.js.map +1 -0
- package/dist/commands/apps/update.d.ts +14 -0
- package/dist/commands/apps/update.d.ts.map +1 -0
- package/dist/commands/apps/update.js +262 -0
- package/dist/commands/apps/update.js.map +1 -0
- package/dist/commands/apps/view.d.ts +7 -0
- package/dist/commands/apps/view.d.ts.map +1 -0
- package/dist/commands/apps/view.js +125 -0
- package/dist/commands/apps/view.js.map +1 -0
- package/dist/commands/attachment.d.ts +3 -0
- package/dist/commands/attachment.d.ts.map +1 -0
- package/dist/commands/attachment.js +158 -0
- package/dist/commands/attachment.js.map +1 -0
- package/dist/commands/auth/helpers.d.ts +11 -0
- package/dist/commands/auth/helpers.d.ts.map +1 -0
- package/dist/commands/auth/helpers.js +38 -0
- package/dist/commands/auth/helpers.js.map +1 -0
- package/dist/commands/auth/index.d.ts +3 -0
- package/dist/commands/auth/index.d.ts.map +1 -0
- package/dist/commands/auth/index.js +40 -0
- package/dist/commands/auth/index.js.map +1 -0
- package/dist/commands/auth/login.d.ts +14 -0
- package/dist/commands/auth/login.d.ts.map +1 -0
- package/dist/commands/auth/login.js +93 -0
- package/dist/commands/auth/login.js.map +1 -0
- package/dist/commands/auth/logout.d.ts +11 -0
- package/dist/commands/auth/logout.d.ts.map +1 -0
- package/dist/commands/auth/logout.js +21 -0
- package/dist/commands/auth/logout.js.map +1 -0
- package/dist/commands/auth/status.d.ts +18 -0
- package/dist/commands/auth/status.d.ts.map +1 -0
- package/dist/commands/auth/status.js +147 -0
- package/dist/commands/auth/status.js.map +1 -0
- package/dist/commands/auth/store-wrap.d.ts +26 -0
- package/dist/commands/auth/store-wrap.d.ts.map +1 -0
- package/dist/commands/auth/store-wrap.js +49 -0
- package/dist/commands/auth/store-wrap.js.map +1 -0
- package/dist/commands/auth/token.d.ts +5 -0
- package/dist/commands/auth/token.d.ts.map +1 -0
- package/dist/commands/auth/token.js +26 -0
- package/dist/commands/auth/token.js.map +1 -0
- package/dist/commands/backup/download.d.ts +6 -0
- package/dist/commands/backup/download.d.ts.map +1 -0
- package/dist/commands/backup/download.js +28 -0
- package/dist/commands/backup/download.js.map +1 -0
- package/dist/commands/backup/helpers.d.ts +3 -0
- package/dist/commands/backup/helpers.d.ts.map +1 -0
- package/dist/commands/backup/helpers.js +14 -0
- package/dist/commands/backup/helpers.js.map +1 -0
- package/dist/commands/backup/index.d.ts +3 -0
- package/dist/commands/backup/index.d.ts.map +1 -0
- package/dist/commands/backup/index.js +34 -0
- package/dist/commands/backup/index.js.map +1 -0
- package/dist/commands/backup/list.d.ts +7 -0
- package/dist/commands/backup/list.d.ts.map +1 -0
- package/dist/commands/backup/list.js +25 -0
- package/dist/commands/backup/list.js.map +1 -0
- package/dist/commands/billing/format.d.ts +28 -0
- package/dist/commands/billing/format.d.ts.map +1 -0
- package/dist/commands/billing/format.js +89 -0
- package/dist/commands/billing/format.js.map +1 -0
- package/dist/commands/billing/index.d.ts +3 -0
- package/dist/commands/billing/index.d.ts.map +1 -0
- package/dist/commands/billing/index.js +45 -0
- package/dist/commands/billing/index.js.map +1 -0
- package/dist/commands/billing/plan.d.ts +3 -0
- package/dist/commands/billing/plan.d.ts.map +1 -0
- package/dist/commands/billing/plan.js +22 -0
- package/dist/commands/billing/plan.js.map +1 -0
- package/dist/commands/billing/prices.d.ts +3 -0
- package/dist/commands/billing/prices.d.ts.map +1 -0
- package/dist/commands/billing/prices.js +22 -0
- package/dist/commands/billing/prices.js.map +1 -0
- package/dist/commands/billing/pricing.d.ts +7 -0
- package/dist/commands/billing/pricing.d.ts.map +1 -0
- package/dist/commands/billing/pricing.js +43 -0
- package/dist/commands/billing/pricing.js.map +1 -0
- package/dist/commands/billing/subscription.d.ts +3 -0
- package/dist/commands/billing/subscription.d.ts.map +1 -0
- package/dist/commands/billing/subscription.js +37 -0
- package/dist/commands/billing/subscription.js.map +1 -0
- package/dist/commands/changelog.d.ts +3 -0
- package/dist/commands/changelog.d.ts.map +1 -0
- package/dist/commands/changelog.js +13 -0
- package/dist/commands/changelog.js.map +1 -0
- package/dist/commands/comment/add.d.ts +13 -0
- package/dist/commands/comment/add.d.ts.map +1 -0
- package/dist/commands/comment/add.js +149 -0
- package/dist/commands/comment/add.js.map +1 -0
- package/dist/commands/comment/browse.d.ts +2 -0
- package/dist/commands/comment/browse.d.ts.map +1 -0
- package/dist/commands/comment/browse.js +20 -0
- package/dist/commands/comment/browse.js.map +1 -0
- package/dist/commands/comment/delete.d.ts +5 -0
- package/dist/commands/comment/delete.d.ts.map +1 -0
- package/dist/commands/comment/delete.js +24 -0
- package/dist/commands/comment/delete.js.map +1 -0
- package/dist/commands/comment/helpers.d.ts +2 -0
- package/dist/commands/comment/helpers.d.ts.map +1 -0
- package/dist/commands/comment/helpers.js +7 -0
- package/dist/commands/comment/helpers.js.map +1 -0
- package/dist/commands/comment/index.d.ts +3 -0
- package/dist/commands/comment/index.d.ts.map +1 -0
- package/dist/commands/comment/index.js +105 -0
- package/dist/commands/comment/index.js.map +1 -0
- package/dist/commands/comment/list.d.ts +8 -0
- package/dist/commands/comment/list.d.ts.map +1 -0
- package/dist/commands/comment/list.js +69 -0
- package/dist/commands/comment/list.js.map +1 -0
- package/dist/commands/comment/update.d.ts +6 -0
- package/dist/commands/comment/update.d.ts.map +1 -0
- package/dist/commands/comment/update.js +25 -0
- package/dist/commands/comment/update.js.map +1 -0
- package/dist/commands/comment/view.d.ts +3 -0
- package/dist/commands/comment/view.d.ts.map +1 -0
- package/dist/commands/comment/view.js +86 -0
- package/dist/commands/comment/view.js.map +1 -0
- package/dist/commands/completed/index.d.ts +3 -0
- package/dist/commands/completed/index.d.ts.map +1 -0
- package/dist/commands/completed/index.js +29 -0
- package/dist/commands/completed/index.js.map +1 -0
- package/dist/commands/completed/list.d.ts +10 -0
- package/dist/commands/completed/list.d.ts.map +1 -0
- package/dist/commands/completed/list.js +161 -0
- package/dist/commands/completed/list.js.map +1 -0
- package/dist/commands/completion/helpers.d.ts +13 -0
- package/dist/commands/completion/helpers.d.ts.map +1 -0
- package/dist/commands/completion/helpers.js +24 -0
- package/dist/commands/completion/helpers.js.map +1 -0
- package/dist/commands/completion/index.d.ts +3 -0
- package/dist/commands/completion/index.d.ts.map +1 -0
- package/dist/commands/completion/index.js +28 -0
- package/dist/commands/completion/index.js.map +1 -0
- package/dist/commands/completion/install.d.ts +2 -0
- package/dist/commands/completion/install.d.ts.map +1 -0
- package/dist/commands/completion/install.js +16 -0
- package/dist/commands/completion/install.js.map +1 -0
- package/dist/commands/completion/server.d.ts +3 -0
- package/dist/commands/completion/server.d.ts.map +1 -0
- package/dist/commands/completion/server.js +35 -0
- package/dist/commands/completion/server.js.map +1 -0
- package/dist/commands/completion/uninstall.d.ts +2 -0
- package/dist/commands/completion/uninstall.d.ts.map +1 -0
- package/dist/commands/completion/uninstall.js +19 -0
- package/dist/commands/completion/uninstall.js.map +1 -0
- package/dist/commands/config/index.d.ts +3 -0
- package/dist/commands/config/index.d.ts.map +1 -0
- package/dist/commands/config/index.js +16 -0
- package/dist/commands/config/index.js.map +1 -0
- package/dist/commands/config/view.d.ts +6 -0
- package/dist/commands/config/view.d.ts.map +1 -0
- package/dist/commands/config/view.js +180 -0
- package/dist/commands/config/view.js.map +1 -0
- package/dist/commands/doctor.d.ts +16 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +329 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/extension/dispatch.d.ts +22 -0
- package/dist/commands/extension/dispatch.d.ts.map +1 -0
- package/dist/commands/extension/dispatch.js +45 -0
- package/dist/commands/extension/dispatch.js.map +1 -0
- package/dist/commands/extension/doctor.d.ts +10 -0
- package/dist/commands/extension/doctor.d.ts.map +1 -0
- package/dist/commands/extension/doctor.js +110 -0
- package/dist/commands/extension/doctor.js.map +1 -0
- package/dist/commands/extension/index.d.ts +12 -0
- package/dist/commands/extension/index.d.ts.map +1 -0
- package/dist/commands/extension/index.js +80 -0
- package/dist/commands/extension/index.js.map +1 -0
- package/dist/commands/filter/browse.d.ts +2 -0
- package/dist/commands/filter/browse.d.ts.map +1 -0
- package/dist/commands/filter/browse.js +8 -0
- package/dist/commands/filter/browse.js.map +1 -0
- package/dist/commands/filter/create.d.ts +13 -0
- package/dist/commands/filter/create.d.ts.map +1 -0
- package/dist/commands/filter/create.js +77 -0
- package/dist/commands/filter/create.js.map +1 -0
- package/dist/commands/filter/delete.d.ts +5 -0
- package/dist/commands/filter/delete.d.ts.map +1 -0
- package/dist/commands/filter/delete.js +22 -0
- package/dist/commands/filter/delete.js.map +1 -0
- package/dist/commands/filter/helpers.d.ts +8 -0
- package/dist/commands/filter/helpers.d.ts.map +1 -0
- package/dist/commands/filter/helpers.js +42 -0
- package/dist/commands/filter/helpers.js.map +1 -0
- package/dist/commands/filter/index.d.ts +4 -0
- package/dist/commands/filter/index.d.ts.map +1 -0
- package/dist/commands/filter/index.js +104 -0
- package/dist/commands/filter/index.js.map +1 -0
- package/dist/commands/filter/list.d.ts +3 -0
- package/dist/commands/filter/list.d.ts.map +1 -0
- package/dist/commands/filter/list.js +38 -0
- package/dist/commands/filter/list.js.map +1 -0
- package/dist/commands/filter/update.d.ts +13 -0
- package/dist/commands/filter/update.d.ts.map +1 -0
- package/dist/commands/filter/update.js +73 -0
- package/dist/commands/filter/update.js.map +1 -0
- package/dist/commands/filter/view.d.ts +13 -0
- package/dist/commands/filter/view.d.ts.map +1 -0
- package/dist/commands/filter/view.js +293 -0
- package/dist/commands/filter/view.js.map +1 -0
- package/dist/commands/folder/create.d.ts +11 -0
- package/dist/commands/folder/create.d.ts.map +1 -0
- package/dist/commands/folder/create.js +37 -0
- package/dist/commands/folder/create.js.map +1 -0
- package/dist/commands/folder/delete.d.ts +6 -0
- package/dist/commands/folder/delete.d.ts.map +1 -0
- package/dist/commands/folder/delete.js +21 -0
- package/dist/commands/folder/delete.js.map +1 -0
- package/dist/commands/folder/helpers.d.ts +9 -0
- package/dist/commands/folder/helpers.d.ts.map +1 -0
- package/dist/commands/folder/helpers.js +36 -0
- package/dist/commands/folder/helpers.js.map +1 -0
- package/dist/commands/folder/index.d.ts +3 -0
- package/dist/commands/folder/index.d.ts.map +1 -0
- package/dist/commands/folder/index.js +97 -0
- package/dist/commands/folder/index.js.map +1 -0
- package/dist/commands/folder/list.d.ts +3 -0
- package/dist/commands/folder/list.d.ts.map +1 -0
- package/dist/commands/folder/list.js +48 -0
- package/dist/commands/folder/list.js.map +1 -0
- package/dist/commands/folder/update.d.ts +10 -0
- package/dist/commands/folder/update.d.ts.map +1 -0
- package/dist/commands/folder/update.js +33 -0
- package/dist/commands/folder/update.js.map +1 -0
- package/dist/commands/folder/view.d.ts +8 -0
- package/dist/commands/folder/view.d.ts.map +1 -0
- package/dist/commands/folder/view.js +52 -0
- package/dist/commands/folder/view.js.map +1 -0
- package/dist/commands/hc/index.d.ts +3 -0
- package/dist/commands/hc/index.d.ts.map +1 -0
- package/dist/commands/hc/index.js +70 -0
- package/dist/commands/hc/index.js.map +1 -0
- package/dist/commands/hc/locale.d.ts +3 -0
- package/dist/commands/hc/locale.d.ts.map +1 -0
- package/dist/commands/hc/locale.js +39 -0
- package/dist/commands/hc/locale.js.map +1 -0
- package/dist/commands/hc/locales.d.ts +5 -0
- package/dist/commands/hc/locales.d.ts.map +1 -0
- package/dist/commands/hc/locales.js +18 -0
- package/dist/commands/hc/locales.js.map +1 -0
- package/dist/commands/hc/search.d.ts +8 -0
- package/dist/commands/hc/search.d.ts.map +1 -0
- package/dist/commands/hc/search.js +34 -0
- package/dist/commands/hc/search.js.map +1 -0
- package/dist/commands/hc/view.d.ts +8 -0
- package/dist/commands/hc/view.d.ts.map +1 -0
- package/dist/commands/hc/view.js +49 -0
- package/dist/commands/hc/view.js.map +1 -0
- package/dist/commands/inbox.d.ts +3 -0
- package/dist/commands/inbox.d.ts.map +1 -0
- package/dist/commands/inbox.js +27 -0
- package/dist/commands/inbox.js.map +1 -0
- package/dist/commands/label/browse.d.ts +2 -0
- package/dist/commands/label/browse.d.ts.map +1 -0
- package/dist/commands/label/browse.js +8 -0
- package/dist/commands/label/browse.js.map +1 -0
- package/dist/commands/label/create.d.ts +10 -0
- package/dist/commands/label/create.d.ts.map +1 -0
- package/dist/commands/label/create.js +31 -0
- package/dist/commands/label/create.js.map +1 -0
- package/dist/commands/label/delete.d.ts +5 -0
- package/dist/commands/label/delete.d.ts.map +1 -0
- package/dist/commands/label/delete.js +21 -0
- package/dist/commands/label/delete.js.map +1 -0
- package/dist/commands/label/helpers.d.ts +9 -0
- package/dist/commands/label/helpers.d.ts.map +1 -0
- package/dist/commands/label/helpers.js +75 -0
- package/dist/commands/label/helpers.js.map +1 -0
- package/dist/commands/label/index.d.ts +4 -0
- package/dist/commands/label/index.d.ts.map +1 -0
- package/dist/commands/label/index.js +129 -0
- package/dist/commands/label/index.js.map +1 -0
- package/dist/commands/label/list.d.ts +6 -0
- package/dist/commands/label/list.d.ts.map +1 -0
- package/dist/commands/label/list.js +59 -0
- package/dist/commands/label/list.js.map +1 -0
- package/dist/commands/label/remove-shared.d.ts +5 -0
- package/dist/commands/label/remove-shared.d.ts.map +1 -0
- package/dist/commands/label/remove-shared.js +21 -0
- package/dist/commands/label/remove-shared.js.map +1 -0
- package/dist/commands/label/rename-shared.d.ts +5 -0
- package/dist/commands/label/rename-shared.d.ts.map +1 -0
- package/dist/commands/label/rename-shared.js +16 -0
- package/dist/commands/label/rename-shared.js.map +1 -0
- package/dist/commands/label/update.d.ts +10 -0
- package/dist/commands/label/update.d.ts.map +1 -0
- package/dist/commands/label/update.js +38 -0
- package/dist/commands/label/update.js.map +1 -0
- package/dist/commands/label/view.d.ts +3 -0
- package/dist/commands/label/view.d.ts.map +1 -0
- package/dist/commands/label/view.js +76 -0
- package/dist/commands/label/view.js.map +1 -0
- package/dist/commands/notification/accept.d.ts +4 -0
- package/dist/commands/notification/accept.d.ts.map +1 -0
- package/dist/commands/notification/accept.js +25 -0
- package/dist/commands/notification/accept.js.map +1 -0
- package/dist/commands/notification/helpers.d.ts +6 -0
- package/dist/commands/notification/helpers.d.ts.map +1 -0
- package/dist/commands/notification/helpers.js +77 -0
- package/dist/commands/notification/helpers.js.map +1 -0
- package/dist/commands/notification/index.d.ts +3 -0
- package/dist/commands/notification/index.d.ts.map +1 -0
- package/dist/commands/notification/index.js +75 -0
- package/dist/commands/notification/index.js.map +1 -0
- package/dist/commands/notification/list.d.ts +10 -0
- package/dist/commands/notification/list.d.ts.map +1 -0
- package/dist/commands/notification/list.js +71 -0
- package/dist/commands/notification/list.js.map +1 -0
- package/dist/commands/notification/read.d.ts +8 -0
- package/dist/commands/notification/read.d.ts.map +1 -0
- package/dist/commands/notification/read.js +37 -0
- package/dist/commands/notification/read.js.map +1 -0
- package/dist/commands/notification/reject.d.ts +4 -0
- package/dist/commands/notification/reject.d.ts.map +1 -0
- package/dist/commands/notification/reject.js +25 -0
- package/dist/commands/notification/reject.js.map +1 -0
- package/dist/commands/notification/unread.d.ts +4 -0
- package/dist/commands/notification/unread.d.ts.map +1 -0
- package/dist/commands/notification/unread.js +13 -0
- package/dist/commands/notification/unread.js.map +1 -0
- package/dist/commands/notification/view.d.ts +3 -0
- package/dist/commands/notification/view.d.ts.map +1 -0
- package/dist/commands/notification/view.js +30 -0
- package/dist/commands/notification/view.js.map +1 -0
- package/dist/commands/project/activity-stats.d.ts +6 -0
- package/dist/commands/project/activity-stats.d.ts.map +1 -0
- package/dist/commands/project/activity-stats.js +41 -0
- package/dist/commands/project/activity-stats.js.map +1 -0
- package/dist/commands/project/analyze-health.d.ts +5 -0
- package/dist/commands/project/analyze-health.d.ts.map +1 -0
- package/dist/commands/project/analyze-health.js +20 -0
- package/dist/commands/project/analyze-health.js.map +1 -0
- package/dist/commands/project/archive.d.ts +4 -0
- package/dist/commands/project/archive.d.ts.map +1 -0
- package/dist/commands/project/archive.js +20 -0
- package/dist/commands/project/archive.js.map +1 -0
- package/dist/commands/project/archived-count.d.ts +6 -0
- package/dist/commands/project/archived-count.d.ts.map +1 -0
- package/dist/commands/project/archived-count.js +26 -0
- package/dist/commands/project/archived-count.js.map +1 -0
- package/dist/commands/project/archived.d.ts +3 -0
- package/dist/commands/project/archived.d.ts.map +1 -0
- package/dist/commands/project/archived.js +100 -0
- package/dist/commands/project/archived.js.map +1 -0
- package/dist/commands/project/browse.d.ts +2 -0
- package/dist/commands/project/browse.d.ts.map +1 -0
- package/dist/commands/project/browse.js +10 -0
- package/dist/commands/project/browse.js.map +1 -0
- package/dist/commands/project/collaborators.d.ts +3 -0
- package/dist/commands/project/collaborators.d.ts.map +1 -0
- package/dist/commands/project/collaborators.js +109 -0
- package/dist/commands/project/collaborators.js.map +1 -0
- package/dist/commands/project/create.d.ts +14 -0
- package/dist/commands/project/create.d.ts.map +1 -0
- package/dist/commands/project/create.js +57 -0
- package/dist/commands/project/create.js.map +1 -0
- package/dist/commands/project/delete.d.ts +5 -0
- package/dist/commands/project/delete.d.ts.map +1 -0
- package/dist/commands/project/delete.js +30 -0
- package/dist/commands/project/delete.js.map +1 -0
- package/dist/commands/project/health-context.d.ts +4 -0
- package/dist/commands/project/health-context.d.ts.map +1 -0
- package/dist/commands/project/health-context.js +44 -0
- package/dist/commands/project/health-context.js.map +1 -0
- package/dist/commands/project/health.d.ts +4 -0
- package/dist/commands/project/health.d.ts.map +1 -0
- package/dist/commands/project/health.js +32 -0
- package/dist/commands/project/health.js.map +1 -0
- package/dist/commands/project/helpers.d.ts +29 -0
- package/dist/commands/project/helpers.d.ts.map +1 -0
- package/dist/commands/project/helpers.js +79 -0
- package/dist/commands/project/helpers.js.map +1 -0
- package/dist/commands/project/index.d.ts +4 -0
- package/dist/commands/project/index.d.ts.map +1 -0
- package/dist/commands/project/index.js +336 -0
- package/dist/commands/project/index.js.map +1 -0
- package/dist/commands/project/join.d.ts +5 -0
- package/dist/commands/project/join.d.ts.map +1 -0
- package/dist/commands/project/join.js +35 -0
- package/dist/commands/project/join.js.map +1 -0
- package/dist/commands/project/list.d.ts +8 -0
- package/dist/commands/project/list.d.ts.map +1 -0
- package/dist/commands/project/list.js +130 -0
- package/dist/commands/project/list.js.map +1 -0
- package/dist/commands/project/move.d.ts +10 -0
- package/dist/commands/project/move.d.ts.map +1 -0
- package/dist/commands/project/move.js +88 -0
- package/dist/commands/project/move.js.map +1 -0
- package/dist/commands/project/permissions.d.ts +4 -0
- package/dist/commands/project/permissions.d.ts.map +1 -0
- package/dist/commands/project/permissions.js +34 -0
- package/dist/commands/project/permissions.js.map +1 -0
- package/dist/commands/project/progress.d.ts +4 -0
- package/dist/commands/project/progress.d.ts.map +1 -0
- package/dist/commands/project/progress.js +20 -0
- package/dist/commands/project/progress.js.map +1 -0
- package/dist/commands/project/reorder.d.ts +9 -0
- package/dist/commands/project/reorder.d.ts.map +1 -0
- package/dist/commands/project/reorder.js +75 -0
- package/dist/commands/project/reorder.js.map +1 -0
- package/dist/commands/project/share.d.ts +9 -0
- package/dist/commands/project/share.d.ts.map +1 -0
- package/dist/commands/project/share.js +179 -0
- package/dist/commands/project/share.js.map +1 -0
- package/dist/commands/project/unarchive.d.ts +4 -0
- package/dist/commands/project/unarchive.d.ts.map +1 -0
- package/dist/commands/project/unarchive.js +25 -0
- package/dist/commands/project/unarchive.js.map +1 -0
- package/dist/commands/project/update.d.ts +15 -0
- package/dist/commands/project/update.d.ts.map +1 -0
- package/dist/commands/project/update.js +126 -0
- package/dist/commands/project/update.js.map +1 -0
- package/dist/commands/project/view.d.ts +6 -0
- package/dist/commands/project/view.d.ts.map +1 -0
- package/dist/commands/project/view.js +237 -0
- package/dist/commands/project/view.js.map +1 -0
- package/dist/commands/reminder/add.d.ts +10 -0
- package/dist/commands/reminder/add.d.ts.map +1 -0
- package/dist/commands/reminder/add.js +85 -0
- package/dist/commands/reminder/add.js.map +1 -0
- package/dist/commands/reminder/delete.d.ts +7 -0
- package/dist/commands/reminder/delete.d.ts.map +1 -0
- package/dist/commands/reminder/delete.js +28 -0
- package/dist/commands/reminder/delete.js.map +1 -0
- package/dist/commands/reminder/get.d.ts +7 -0
- package/dist/commands/reminder/get.d.ts.map +1 -0
- package/dist/commands/reminder/get.js +20 -0
- package/dist/commands/reminder/get.js.map +1 -0
- package/dist/commands/reminder/helpers.d.ts +24 -0
- package/dist/commands/reminder/helpers.d.ts.map +1 -0
- package/dist/commands/reminder/helpers.js +80 -0
- package/dist/commands/reminder/helpers.js.map +1 -0
- package/dist/commands/reminder/index.d.ts +3 -0
- package/dist/commands/reminder/index.d.ts.map +1 -0
- package/dist/commands/reminder/index.js +99 -0
- package/dist/commands/reminder/index.js.map +1 -0
- package/dist/commands/reminder/list.d.ts +9 -0
- package/dist/commands/reminder/list.d.ts.map +1 -0
- package/dist/commands/reminder/list.js +97 -0
- package/dist/commands/reminder/list.js.map +1 -0
- package/dist/commands/reminder/location/add.d.ts +12 -0
- package/dist/commands/reminder/location/add.d.ts.map +1 -0
- package/dist/commands/reminder/location/add.js +60 -0
- package/dist/commands/reminder/location/add.js.map +1 -0
- package/dist/commands/reminder/location/delete.d.ts +7 -0
- package/dist/commands/reminder/location/delete.d.ts.map +1 -0
- package/dist/commands/reminder/location/delete.js +23 -0
- package/dist/commands/reminder/location/delete.js.map +1 -0
- package/dist/commands/reminder/location/get.d.ts +7 -0
- package/dist/commands/reminder/location/get.d.ts.map +1 -0
- package/dist/commands/reminder/location/get.js +18 -0
- package/dist/commands/reminder/location/get.js.map +1 -0
- package/dist/commands/reminder/location/index.d.ts +3 -0
- package/dist/commands/reminder/location/index.d.ts.map +1 -0
- package/dist/commands/reminder/location/index.js +73 -0
- package/dist/commands/reminder/location/index.js.map +1 -0
- package/dist/commands/reminder/location/update.d.ts +12 -0
- package/dist/commands/reminder/location/update.d.ts.map +1 -0
- package/dist/commands/reminder/location/update.js +45 -0
- package/dist/commands/reminder/location/update.js.map +1 -0
- package/dist/commands/reminder/update.d.ts +10 -0
- package/dist/commands/reminder/update.d.ts.map +1 -0
- package/dist/commands/reminder/update.js +59 -0
- package/dist/commands/reminder/update.js.map +1 -0
- package/dist/commands/section/archive.d.ts +4 -0
- package/dist/commands/section/archive.d.ts.map +1 -0
- package/dist/commands/section/archive.js +21 -0
- package/dist/commands/section/archive.js.map +1 -0
- package/dist/commands/section/browse.d.ts +2 -0
- package/dist/commands/section/browse.d.ts.map +1 -0
- package/dist/commands/section/browse.js +8 -0
- package/dist/commands/section/browse.js.map +1 -0
- package/dist/commands/section/create.d.ts +11 -0
- package/dist/commands/section/create.d.ts.map +1 -0
- package/dist/commands/section/create.js +45 -0
- package/dist/commands/section/create.js.map +1 -0
- package/dist/commands/section/delete.d.ts +5 -0
- package/dist/commands/section/delete.d.ts.map +1 -0
- package/dist/commands/section/delete.js +27 -0
- package/dist/commands/section/delete.js.map +1 -0
- package/dist/commands/section/index.d.ts +3 -0
- package/dist/commands/section/index.d.ts.map +1 -0
- package/dist/commands/section/index.js +140 -0
- package/dist/commands/section/index.js.map +1 -0
- package/dist/commands/section/list.d.ts +8 -0
- package/dist/commands/section/list.d.ts.map +1 -0
- package/dist/commands/section/list.js +53 -0
- package/dist/commands/section/list.js.map +1 -0
- package/dist/commands/section/reorder.d.ts +11 -0
- package/dist/commands/section/reorder.d.ts.map +1 -0
- package/dist/commands/section/reorder.js +99 -0
- package/dist/commands/section/reorder.js.map +1 -0
- package/dist/commands/section/unarchive.d.ts +4 -0
- package/dist/commands/section/unarchive.d.ts.map +1 -0
- package/dist/commands/section/unarchive.js +21 -0
- package/dist/commands/section/unarchive.js.map +1 -0
- package/dist/commands/section/update.d.ts +10 -0
- package/dist/commands/section/update.d.ts.map +1 -0
- package/dist/commands/section/update.js +53 -0
- package/dist/commands/section/update.js.map +1 -0
- package/dist/commands/settings/helpers.d.ts +29 -0
- package/dist/commands/settings/helpers.d.ts.map +1 -0
- package/dist/commands/settings/helpers.js +184 -0
- package/dist/commands/settings/helpers.js.map +1 -0
- package/dist/commands/settings/index.d.ts +4 -0
- package/dist/commands/settings/index.d.ts.map +1 -0
- package/dist/commands/settings/index.js +48 -0
- package/dist/commands/settings/index.js.map +1 -0
- package/dist/commands/settings/update.d.ts +19 -0
- package/dist/commands/settings/update.d.ts.map +1 -0
- package/dist/commands/settings/update.js +57 -0
- package/dist/commands/settings/update.js.map +1 -0
- package/dist/commands/settings/view.d.ts +3 -0
- package/dist/commands/settings/view.d.ts.map +1 -0
- package/dist/commands/settings/view.js +44 -0
- package/dist/commands/settings/view.js.map +1 -0
- package/dist/commands/skill/index.d.ts +3 -0
- package/dist/commands/skill/index.d.ts.map +1 -0
- package/dist/commands/skill/index.js +47 -0
- package/dist/commands/skill/index.js.map +1 -0
- package/dist/commands/skill/install.d.ts +6 -0
- package/dist/commands/skill/install.d.ts.map +1 -0
- package/dist/commands/skill/install.js +24 -0
- package/dist/commands/skill/install.js.map +1 -0
- package/dist/commands/skill/list.d.ts +2 -0
- package/dist/commands/skill/list.d.ts.map +1 -0
- package/dist/commands/skill/list.js +23 -0
- package/dist/commands/skill/list.js.map +1 -0
- package/dist/commands/skill/uninstall.d.ts +5 -0
- package/dist/commands/skill/uninstall.d.ts.map +1 -0
- package/dist/commands/skill/uninstall.js +16 -0
- package/dist/commands/skill/uninstall.js.map +1 -0
- package/dist/commands/skill/update.d.ts +6 -0
- package/dist/commands/skill/update.d.ts.map +1 -0
- package/dist/commands/skill/update.js +44 -0
- package/dist/commands/skill/update.js.map +1 -0
- package/dist/commands/stats/goals.d.ts +9 -0
- package/dist/commands/stats/goals.d.ts.map +1 -0
- package/dist/commands/stats/goals.js +36 -0
- package/dist/commands/stats/goals.js.map +1 -0
- package/dist/commands/stats/helpers.d.ts +11 -0
- package/dist/commands/stats/helpers.d.ts.map +1 -0
- package/dist/commands/stats/helpers.js +88 -0
- package/dist/commands/stats/helpers.js.map +1 -0
- package/dist/commands/stats/index.d.ts +3 -0
- package/dist/commands/stats/index.d.ts.map +1 -0
- package/dist/commands/stats/index.js +26 -0
- package/dist/commands/stats/index.js.map +1 -0
- package/dist/commands/stats/vacation.d.ts +9 -0
- package/dist/commands/stats/vacation.d.ts.map +1 -0
- package/dist/commands/stats/vacation.js +20 -0
- package/dist/commands/stats/vacation.js.map +1 -0
- package/dist/commands/stats/view.d.ts +3 -0
- package/dist/commands/stats/view.d.ts.map +1 -0
- package/dist/commands/stats/view.js +11 -0
- package/dist/commands/stats/view.js.map +1 -0
- package/dist/commands/status/clear.d.ts +3 -0
- package/dist/commands/status/clear.d.ts.map +1 -0
- package/dist/commands/status/clear.js +21 -0
- package/dist/commands/status/clear.js.map +1 -0
- package/dist/commands/status/index.d.ts +3 -0
- package/dist/commands/status/index.d.ts.map +1 -0
- package/dist/commands/status/index.js +50 -0
- package/dist/commands/status/index.js.map +1 -0
- package/dist/commands/status/set.d.ts +12 -0
- package/dist/commands/status/set.d.ts.map +1 -0
- package/dist/commands/status/set.js +130 -0
- package/dist/commands/status/set.js.map +1 -0
- package/dist/commands/status/view.d.ts +3 -0
- package/dist/commands/status/view.d.ts.map +1 -0
- package/dist/commands/status/view.js +16 -0
- package/dist/commands/status/view.js.map +1 -0
- package/dist/commands/task/add-many-input.d.ts +30 -0
- package/dist/commands/task/add-many-input.d.ts.map +1 -0
- package/dist/commands/task/add-many-input.js +158 -0
- package/dist/commands/task/add-many-input.js.map +1 -0
- package/dist/commands/task/add-many.d.ts +9 -0
- package/dist/commands/task/add-many.d.ts.map +1 -0
- package/dist/commands/task/add-many.js +479 -0
- package/dist/commands/task/add-many.js.map +1 -0
- package/dist/commands/task/add.d.ts +20 -0
- package/dist/commands/task/add.d.ts.map +1 -0
- package/dist/commands/task/add.js +120 -0
- package/dist/commands/task/add.js.map +1 -0
- package/dist/commands/task/browse.d.ts +2 -0
- package/dist/commands/task/browse.d.ts.map +1 -0
- package/dist/commands/task/browse.js +10 -0
- package/dist/commands/task/browse.js.map +1 -0
- package/dist/commands/task/complete.d.ts +5 -0
- package/dist/commands/task/complete.d.ts.map +1 -0
- package/dist/commands/task/complete.js +37 -0
- package/dist/commands/task/complete.js.map +1 -0
- package/dist/commands/task/delete.d.ts +5 -0
- package/dist/commands/task/delete.d.ts.map +1 -0
- package/dist/commands/task/delete.js +21 -0
- package/dist/commands/task/delete.js.map +1 -0
- package/dist/commands/task/helpers.d.ts +8 -0
- package/dist/commands/task/helpers.d.ts.map +1 -0
- package/dist/commands/task/helpers.js +23 -0
- package/dist/commands/task/helpers.js.map +1 -0
- package/dist/commands/task/index.d.ts +4 -0
- package/dist/commands/task/index.d.ts.map +1 -0
- package/dist/commands/task/index.js +286 -0
- package/dist/commands/task/index.js.map +1 -0
- package/dist/commands/task/list.d.ts +6 -0
- package/dist/commands/task/list.d.ts.map +1 -0
- package/dist/commands/task/list.js +19 -0
- package/dist/commands/task/list.js.map +1 -0
- package/dist/commands/task/move.d.ts +8 -0
- package/dist/commands/task/move.d.ts.map +1 -0
- package/dist/commands/task/move.js +54 -0
- package/dist/commands/task/move.js.map +1 -0
- package/dist/commands/task/quickadd.d.ts +8 -0
- package/dist/commands/task/quickadd.d.ts.map +1 -0
- package/dist/commands/task/quickadd.js +37 -0
- package/dist/commands/task/quickadd.js.map +1 -0
- package/dist/commands/task/reschedule.d.ts +5 -0
- package/dist/commands/task/reschedule.d.ts.map +1 -0
- package/dist/commands/task/reschedule.js +40 -0
- package/dist/commands/task/reschedule.js.map +1 -0
- package/dist/commands/task/uncomplete.d.ts +4 -0
- package/dist/commands/task/uncomplete.d.ts.map +1 -0
- package/dist/commands/task/uncomplete.js +21 -0
- package/dist/commands/task/uncomplete.js.map +1 -0
- package/dist/commands/task/update.d.ts +19 -0
- package/dist/commands/task/update.d.ts.map +1 -0
- package/dist/commands/task/update.js +95 -0
- package/dist/commands/task/update.js.map +1 -0
- package/dist/commands/task/view.d.ts +5 -0
- package/dist/commands/task/view.d.ts.map +1 -0
- package/dist/commands/task/view.js +45 -0
- package/dist/commands/task/view.js.map +1 -0
- package/dist/commands/template/create.d.ts +10 -0
- package/dist/commands/template/create.d.ts.map +1 -0
- package/dist/commands/template/create.js +45 -0
- package/dist/commands/template/create.js.map +1 -0
- package/dist/commands/template/export-file.d.ts +8 -0
- package/dist/commands/template/export-file.d.ts.map +1 -0
- package/dist/commands/template/export-file.js +26 -0
- package/dist/commands/template/export-file.js.map +1 -0
- package/dist/commands/template/export-url.d.ts +7 -0
- package/dist/commands/template/export-url.d.ts.map +1 -0
- package/dist/commands/template/export-url.js +19 -0
- package/dist/commands/template/export-url.js.map +1 -0
- package/dist/commands/template/helpers.d.ts +3 -0
- package/dist/commands/template/helpers.d.ts.map +1 -0
- package/dist/commands/template/helpers.js +17 -0
- package/dist/commands/template/helpers.js.map +1 -0
- package/dist/commands/template/import-file.d.ts +9 -0
- package/dist/commands/template/import-file.d.ts.map +1 -0
- package/dist/commands/template/import-file.js +33 -0
- package/dist/commands/template/import-file.js.map +1 -0
- package/dist/commands/template/import-id.d.ts +9 -0
- package/dist/commands/template/import-id.d.ts.map +1 -0
- package/dist/commands/template/import-id.js +31 -0
- package/dist/commands/template/import-id.js.map +1 -0
- package/dist/commands/template/index.d.ts +3 -0
- package/dist/commands/template/index.d.ts.map +1 -0
- package/dist/commands/template/index.js +98 -0
- package/dist/commands/template/index.js.map +1 -0
- package/dist/commands/today.d.ts +11 -0
- package/dist/commands/today.d.ts.map +1 -0
- package/dist/commands/today.js +116 -0
- package/dist/commands/today.js.map +1 -0
- package/dist/commands/upcoming.d.ts +11 -0
- package/dist/commands/upcoming.d.ts.map +1 -0
- package/dist/commands/upcoming.js +138 -0
- package/dist/commands/upcoming.js.map +1 -0
- package/dist/commands/update/index.d.ts +3 -0
- package/dist/commands/update/index.d.ts.map +1 -0
- package/dist/commands/update/index.js +14 -0
- package/dist/commands/update/index.js.map +1 -0
- package/dist/commands/user/aliases.d.ts +11 -0
- package/dist/commands/user/aliases.d.ts.map +1 -0
- package/dist/commands/user/aliases.js +11 -0
- package/dist/commands/user/aliases.js.map +1 -0
- package/dist/commands/user/current.d.ts +16 -0
- package/dist/commands/user/current.d.ts.map +1 -0
- package/dist/commands/user/current.js +61 -0
- package/dist/commands/user/current.js.map +1 -0
- package/dist/commands/user/index.d.ts +3 -0
- package/dist/commands/user/index.d.ts.map +1 -0
- package/dist/commands/user/index.js +30 -0
- package/dist/commands/user/index.js.map +1 -0
- package/dist/commands/user/list.d.ts +15 -0
- package/dist/commands/user/list.d.ts.map +1 -0
- package/dist/commands/user/list.js +37 -0
- package/dist/commands/user/list.js.map +1 -0
- package/dist/commands/user/project-account.d.ts +17 -0
- package/dist/commands/user/project-account.d.ts.map +1 -0
- package/dist/commands/user/project-account.js +18 -0
- package/dist/commands/user/project-account.js.map +1 -0
- package/dist/commands/user/remove.d.ts +13 -0
- package/dist/commands/user/remove.d.ts.map +1 -0
- package/dist/commands/user/remove.js +31 -0
- package/dist/commands/user/remove.js.map +1 -0
- package/dist/commands/user/use.d.ts +11 -0
- package/dist/commands/user/use.d.ts.map +1 -0
- package/dist/commands/user/use.js +15 -0
- package/dist/commands/user/use.js.map +1 -0
- package/dist/commands/view.d.ts +3 -0
- package/dist/commands/view.d.ts.map +1 -0
- package/dist/commands/view.js +84 -0
- package/dist/commands/view.js.map +1 -0
- package/dist/commands/workspace/activity.d.ts +9 -0
- package/dist/commands/workspace/activity.d.ts.map +1 -0
- package/dist/commands/workspace/activity.js +93 -0
- package/dist/commands/workspace/activity.js.map +1 -0
- package/dist/commands/workspace/create.d.ts +14 -0
- package/dist/commands/workspace/create.d.ts.map +1 -0
- package/dist/commands/workspace/create.js +58 -0
- package/dist/commands/workspace/create.js.map +1 -0
- package/dist/commands/workspace/delete.d.ts +5 -0
- package/dist/commands/workspace/delete.d.ts.map +1 -0
- package/dist/commands/workspace/delete.js +31 -0
- package/dist/commands/workspace/delete.js.map +1 -0
- package/dist/commands/workspace/helpers.d.ts +30 -0
- package/dist/commands/workspace/helpers.d.ts.map +1 -0
- package/dist/commands/workspace/helpers.js +118 -0
- package/dist/commands/workspace/helpers.js.map +1 -0
- package/dist/commands/workspace/index.d.ts +3 -0
- package/dist/commands/workspace/index.d.ts.map +1 -0
- package/dist/commands/workspace/index.js +178 -0
- package/dist/commands/workspace/index.js.map +1 -0
- package/dist/commands/workspace/insights.d.ts +5 -0
- package/dist/commands/workspace/insights.d.ts.map +1 -0
- package/dist/commands/workspace/insights.js +54 -0
- package/dist/commands/workspace/insights.js.map +1 -0
- package/dist/commands/workspace/list.d.ts +3 -0
- package/dist/commands/workspace/list.d.ts.map +1 -0
- package/dist/commands/workspace/list.js +53 -0
- package/dist/commands/workspace/list.js.map +1 -0
- package/dist/commands/workspace/projects.d.ts +3 -0
- package/dist/commands/workspace/projects.d.ts.map +1 -0
- package/dist/commands/workspace/projects.js +105 -0
- package/dist/commands/workspace/projects.js.map +1 -0
- package/dist/commands/workspace/update.d.ts +15 -0
- package/dist/commands/workspace/update.d.ts.map +1 -0
- package/dist/commands/workspace/update.js +75 -0
- package/dist/commands/workspace/update.js.map +1 -0
- package/dist/commands/workspace/use.d.ts +5 -0
- package/dist/commands/workspace/use.d.ts.map +1 -0
- package/dist/commands/workspace/use.js +46 -0
- package/dist/commands/workspace/use.js.map +1 -0
- package/dist/commands/workspace/user-tasks.d.ts +10 -0
- package/dist/commands/workspace/user-tasks.d.ts.map +1 -0
- package/dist/commands/workspace/user-tasks.js +83 -0
- package/dist/commands/workspace/user-tasks.js.map +1 -0
- package/dist/commands/workspace/users.d.ts +5 -0
- package/dist/commands/workspace/users.d.ts.map +1 -0
- package/dist/commands/workspace/users.js +102 -0
- package/dist/commands/workspace/users.js.map +1 -0
- package/dist/commands/workspace/view.d.ts +5 -0
- package/dist/commands/workspace/view.d.ts.map +1 -0
- package/dist/commands/workspace/view.js +34 -0
- package/dist/commands/workspace/view.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +387 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/api/core.d.ts +32 -0
- package/dist/lib/api/core.d.ts.map +1 -0
- package/dist/lib/api/core.js +461 -0
- package/dist/lib/api/core.js.map +1 -0
- package/dist/lib/api/filters.d.ts +59 -0
- package/dist/lib/api/filters.d.ts.map +1 -0
- package/dist/lib/api/filters.js +134 -0
- package/dist/lib/api/filters.js.map +1 -0
- package/dist/lib/api/notifications.d.ts +33 -0
- package/dist/lib/api/notifications.d.ts.map +1 -0
- package/dist/lib/api/notifications.js +92 -0
- package/dist/lib/api/notifications.js.map +1 -0
- package/dist/lib/api/projects-sync.d.ts +8 -0
- package/dist/lib/api/projects-sync.d.ts.map +1 -0
- package/dist/lib/api/projects-sync.js +21 -0
- package/dist/lib/api/projects-sync.js.map +1 -0
- package/dist/lib/api/reminders.d.ts +54 -0
- package/dist/lib/api/reminders.d.ts.map +1 -0
- package/dist/lib/api/reminders.js +120 -0
- package/dist/lib/api/reminders.js.map +1 -0
- package/dist/lib/api/sections-sync.d.ts +5 -0
- package/dist/lib/api/sections-sync.d.ts.map +1 -0
- package/dist/lib/api/sections-sync.js +9 -0
- package/dist/lib/api/sections-sync.js.map +1 -0
- package/dist/lib/api/stats.d.ts +10 -0
- package/dist/lib/api/stats.d.ts.map +1 -0
- package/dist/lib/api/stats.js +23 -0
- package/dist/lib/api/stats.js.map +1 -0
- package/dist/lib/api/user-settings.d.ts +34 -0
- package/dist/lib/api/user-settings.d.ts.map +1 -0
- package/dist/lib/api/user-settings.js +59 -0
- package/dist/lib/api/user-settings.js.map +1 -0
- package/dist/lib/api/user-status.d.ts +9 -0
- package/dist/lib/api/user-status.d.ts.map +1 -0
- package/dist/lib/api/user-status.js +28 -0
- package/dist/lib/api/user-status.js.map +1 -0
- package/dist/lib/api/workspaces.d.ts +23 -0
- package/dist/lib/api/workspaces.d.ts.map +1 -0
- package/dist/lib/api/workspaces.js +61 -0
- package/dist/lib/api/workspaces.js.map +1 -0
- package/dist/lib/app-name.d.ts +8 -0
- package/dist/lib/app-name.d.ts.map +1 -0
- package/dist/lib/app-name.js +8 -0
- package/dist/lib/app-name.js.map +1 -0
- package/dist/lib/auth-flags.d.ts +19 -0
- package/dist/lib/auth-flags.d.ts.map +1 -0
- package/dist/lib/auth-flags.js +33 -0
- package/dist/lib/auth-flags.js.map +1 -0
- package/dist/lib/auth-html.d.ts +11 -0
- package/dist/lib/auth-html.d.ts.map +1 -0
- package/dist/lib/auth-html.js +434 -0
- package/dist/lib/auth-html.js.map +1 -0
- package/dist/lib/auth-provider.d.ts +16 -0
- package/dist/lib/auth-provider.d.ts.map +1 -0
- package/dist/lib/auth-provider.js +59 -0
- package/dist/lib/auth-provider.js.map +1 -0
- package/dist/lib/auth-store.d.ts +82 -0
- package/dist/lib/auth-store.d.ts.map +1 -0
- package/dist/lib/auth-store.js +119 -0
- package/dist/lib/auth-store.js.map +1 -0
- package/dist/lib/auth.d.ts +52 -0
- package/dist/lib/auth.d.ts.map +1 -0
- package/dist/lib/auth.js +106 -0
- package/dist/lib/auth.js.map +1 -0
- package/dist/lib/browser.d.ts +11 -0
- package/dist/lib/browser.d.ts.map +1 -0
- package/dist/lib/browser.js +7 -0
- package/dist/lib/browser.js.map +1 -0
- package/dist/lib/children.d.ts +44 -0
- package/dist/lib/children.d.ts.map +1 -0
- package/dist/lib/children.js +78 -0
- package/dist/lib/children.js.map +1 -0
- package/dist/lib/collaborators.d.ts +57 -0
- package/dist/lib/collaborators.d.ts.map +1 -0
- package/dist/lib/collaborators.js +273 -0
- package/dist/lib/collaborators.js.map +1 -0
- package/dist/lib/command-schema.d.ts +6 -0
- package/dist/lib/command-schema.d.ts.map +1 -0
- package/dist/lib/command-schema.js +56 -0
- package/dist/lib/command-schema.js.map +1 -0
- package/dist/lib/comment-recipients.d.ts +24 -0
- package/dist/lib/comment-recipients.d.ts.map +1 -0
- package/dist/lib/comment-recipients.js +57 -0
- package/dist/lib/comment-recipients.js.map +1 -0
- package/dist/lib/completion.d.ts +41 -0
- package/dist/lib/completion.d.ts.map +1 -0
- package/dist/lib/completion.js +192 -0
- package/dist/lib/completion.js.map +1 -0
- package/dist/lib/config.d.ts +86 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/config.js +254 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/constants.d.ts +9 -0
- package/dist/lib/constants.d.ts.map +1 -0
- package/dist/lib/constants.js +9 -0
- package/dist/lib/constants.js.map +1 -0
- package/dist/lib/dates.d.ts +25 -0
- package/dist/lib/dates.d.ts.map +1 -0
- package/dist/lib/dates.js +106 -0
- package/dist/lib/dates.js.map +1 -0
- package/dist/lib/duration.d.ts +19 -0
- package/dist/lib/duration.d.ts.map +1 -0
- package/dist/lib/duration.js +73 -0
- package/dist/lib/duration.js.map +1 -0
- package/dist/lib/errors.d.ts +41 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/errors.js +37 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/lib/global-args.d.ts +35 -0
- package/dist/lib/global-args.d.ts.map +1 -0
- package/dist/lib/global-args.js +127 -0
- package/dist/lib/global-args.js.map +1 -0
- package/dist/lib/help-center.d.ts +79 -0
- package/dist/lib/help-center.d.ts.map +1 -0
- package/dist/lib/help-center.js +485 -0
- package/dist/lib/help-center.js.map +1 -0
- package/dist/lib/labels.d.ts +2 -0
- package/dist/lib/labels.d.ts.map +1 -0
- package/dist/lib/labels.js +9 -0
- package/dist/lib/labels.js.map +1 -0
- package/dist/lib/local-file.d.ts +37 -0
- package/dist/lib/local-file.d.ts.map +1 -0
- package/dist/lib/local-file.js +59 -0
- package/dist/lib/local-file.js.map +1 -0
- package/dist/lib/logger.d.ts +53 -0
- package/dist/lib/logger.d.ts.map +1 -0
- package/dist/lib/logger.js +233 -0
- package/dist/lib/logger.js.map +1 -0
- package/dist/lib/markdown.d.ts +3 -0
- package/dist/lib/markdown.d.ts.map +1 -0
- package/dist/lib/markdown.js +16 -0
- package/dist/lib/markdown.js.map +1 -0
- package/dist/lib/migrate-auth.d.ts +27 -0
- package/dist/lib/migrate-auth.d.ts.map +1 -0
- package/dist/lib/migrate-auth.js +105 -0
- package/dist/lib/migrate-auth.js.map +1 -0
- package/dist/lib/missing-argument.d.ts +10 -0
- package/dist/lib/missing-argument.d.ts.map +1 -0
- package/dist/lib/missing-argument.js +27 -0
- package/dist/lib/missing-argument.js.map +1 -0
- package/dist/lib/mutation-json.d.ts +3 -0
- package/dist/lib/mutation-json.d.ts.map +1 -0
- package/dist/lib/mutation-json.js +83 -0
- package/dist/lib/mutation-json.js.map +1 -0
- package/dist/lib/oauth-scopes.d.ts +66 -0
- package/dist/lib/oauth-scopes.d.ts.map +1 -0
- package/dist/lib/oauth-scopes.js +112 -0
- package/dist/lib/oauth-scopes.js.map +1 -0
- package/dist/lib/options.d.ts +17 -0
- package/dist/lib/options.d.ts.map +1 -0
- package/dist/lib/options.js +2 -0
- package/dist/lib/options.js.map +1 -0
- package/dist/lib/order.d.ts +2 -0
- package/dist/lib/order.d.ts.map +1 -0
- package/dist/lib/order.js +11 -0
- package/dist/lib/order.js.map +1 -0
- package/dist/lib/output.d.ts +84 -0
- package/dist/lib/output.d.ts.map +1 -0
- package/dist/lib/output.js +509 -0
- package/dist/lib/output.js.map +1 -0
- package/dist/lib/pagination.d.ts +23 -0
- package/dist/lib/pagination.d.ts.map +1 -0
- package/dist/lib/pagination.js +26 -0
- package/dist/lib/pagination.js.map +1 -0
- package/dist/lib/permissions.d.ts +6 -0
- package/dist/lib/permissions.d.ts.map +1 -0
- package/dist/lib/permissions.js +113 -0
- package/dist/lib/permissions.js.map +1 -0
- package/dist/lib/progress.d.ts +29 -0
- package/dist/lib/progress.d.ts.map +1 -0
- package/dist/lib/progress.js +84 -0
- package/dist/lib/progress.js.map +1 -0
- package/dist/lib/project-limit.d.ts +13 -0
- package/dist/lib/project-limit.d.ts.map +1 -0
- package/dist/lib/project-limit.js +18 -0
- package/dist/lib/project-limit.js.map +1 -0
- package/dist/lib/refs.d.ts +86 -0
- package/dist/lib/refs.d.ts.map +1 -0
- package/dist/lib/refs.js +337 -0
- package/dist/lib/refs.js.map +1 -0
- package/dist/lib/reorder.d.ts +7 -0
- package/dist/lib/reorder.d.ts.map +1 -0
- package/dist/lib/reorder.js +11 -0
- package/dist/lib/reorder.js.map +1 -0
- package/dist/lib/root-options.d.ts +14 -0
- package/dist/lib/root-options.d.ts.map +1 -0
- package/dist/lib/root-options.js +14 -0
- package/dist/lib/root-options.js.map +1 -0
- package/dist/lib/skills/content.d.ts +5 -0
- package/dist/lib/skills/content.d.ts.map +1 -0
- package/dist/lib/skills/content.js +490 -0
- package/dist/lib/skills/content.js.map +1 -0
- package/dist/lib/skills/create-installer.d.ts +13 -0
- package/dist/lib/skills/create-installer.d.ts.map +1 -0
- package/dist/lib/skills/create-installer.js +139 -0
- package/dist/lib/skills/create-installer.js.map +1 -0
- package/dist/lib/skills/index.d.ts +6 -0
- package/dist/lib/skills/index.d.ts.map +1 -0
- package/dist/lib/skills/index.js +50 -0
- package/dist/lib/skills/index.js.map +1 -0
- package/dist/lib/skills/refresh-on-upgrade.d.ts +19 -0
- package/dist/lib/skills/refresh-on-upgrade.d.ts.map +1 -0
- package/dist/lib/skills/refresh-on-upgrade.js +67 -0
- package/dist/lib/skills/refresh-on-upgrade.js.map +1 -0
- package/dist/lib/skills/types.d.ts +14 -0
- package/dist/lib/skills/types.d.ts.map +1 -0
- package/dist/lib/skills/types.js +2 -0
- package/dist/lib/skills/types.js.map +1 -0
- package/dist/lib/skills/update-installed.d.ts +7 -0
- package/dist/lib/skills/update-installed.d.ts.map +1 -0
- package/dist/lib/skills/update-installed.js +23 -0
- package/dist/lib/skills/update-installed.js.map +1 -0
- package/dist/lib/spinner.d.ts +5 -0
- package/dist/lib/spinner.d.ts.map +1 -0
- package/dist/lib/spinner.js +12 -0
- package/dist/lib/spinner.js.map +1 -0
- package/dist/lib/status.d.ts +4 -0
- package/dist/lib/status.d.ts.map +1 -0
- package/dist/lib/status.js +16 -0
- package/dist/lib/status.js.map +1 -0
- package/dist/lib/task-list.d.ts +39 -0
- package/dist/lib/task-list.d.ts.map +1 -0
- package/dist/lib/task-list.js +287 -0
- package/dist/lib/task-list.js.map +1 -0
- package/dist/lib/task-sort.d.ts +92 -0
- package/dist/lib/task-sort.d.ts.map +1 -0
- package/dist/lib/task-sort.js +248 -0
- package/dist/lib/task-sort.js.map +1 -0
- package/dist/lib/text.d.ts +33 -0
- package/dist/lib/text.d.ts.map +1 -0
- package/dist/lib/text.js +43 -0
- package/dist/lib/text.js.map +1 -0
- package/dist/lib/update.d.ts +11 -0
- package/dist/lib/update.d.ts.map +1 -0
- package/dist/lib/update.js +18 -0
- package/dist/lib/update.js.map +1 -0
- package/dist/lib/urls.d.ts +9 -0
- package/dist/lib/urls.d.ts.map +1 -0
- package/dist/lib/urls.js +34 -0
- package/dist/lib/urls.js.map +1 -0
- package/dist/lib/usage-tracking.d.ts +9 -0
- package/dist/lib/usage-tracking.d.ts.map +1 -0
- package/dist/lib/usage-tracking.js +95 -0
- package/dist/lib/usage-tracking.js.map +1 -0
- package/dist/lib/user-records.d.ts +17 -0
- package/dist/lib/user-records.d.ts.map +1 -0
- package/dist/lib/user-records.js +84 -0
- package/dist/lib/user-records.js.map +1 -0
- package/dist/lib/users.d.ts +54 -0
- package/dist/lib/users.d.ts.map +1 -0
- package/dist/lib/users.js +114 -0
- package/dist/lib/users.js.map +1 -0
- package/dist/lib/view-options.d.ts +30 -0
- package/dist/lib/view-options.d.ts.map +1 -0
- package/dist/lib/view-options.js +108 -0
- package/dist/lib/view-options.js.map +1 -0
- package/dist/postinstall.d.ts +2 -0
- package/dist/postinstall.d.ts.map +1 -0
- package/dist/postinstall.js +5 -0
- package/dist/postinstall.js.map +1 -0
- package/package.json +79 -6
- package/scripts/check-skill-sync.js +40 -0
- package/scripts/postinstall.js +12 -0
- package/scripts/sync-skill.js +28 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { outputIds, resolveOutputMode } from '@todoist/cli-core';
|
|
2
|
+
import { isWorkspaceProject } from '@todoist/sdk';
|
|
3
|
+
import chalk from 'chalk';
|
|
4
|
+
import { getApi } from './api/core.js';
|
|
5
|
+
import { CollaboratorCache, formatAssignee } from './collaborators.js';
|
|
6
|
+
import { CliError } from './errors.js';
|
|
7
|
+
import { formatNextCursorFooter, formatNextCursorNotice, formatPaginatedJson, formatPaginatedNdjson, formatTaskRow, } from './output.js';
|
|
8
|
+
import { LIMITS, paginate } from './pagination.js';
|
|
9
|
+
import { resolveWorkspaceRef } from './refs.js';
|
|
10
|
+
/**
|
|
11
|
+
* Every project the account can see, keyed by id.
|
|
12
|
+
*
|
|
13
|
+
* Pages to the end rather than stopping at the first response: callers use
|
|
14
|
+
* this map to name a task's project and to place it in sidebar order, and a
|
|
15
|
+
* project missing from the map loses both. Accounts under one page still cost
|
|
16
|
+
* a single request.
|
|
17
|
+
*/
|
|
18
|
+
export async function fetchProjects(api) {
|
|
19
|
+
const { results: allProjects } = await paginate((cursor, limit) => api.getProjects({ cursor: cursor ?? undefined, limit }), { limit: Number.MAX_SAFE_INTEGER });
|
|
20
|
+
return new Map(allProjects.map((p) => [p.id, p]));
|
|
21
|
+
}
|
|
22
|
+
export async function filterByWorkspaceOrPersonal({ api, tasks, workspace, personal, prefetchedProjects, }) {
|
|
23
|
+
if (workspace && personal) {
|
|
24
|
+
throw new CliError('CONFLICTING_FILTERS', '--workspace and --personal are mutually exclusive.');
|
|
25
|
+
}
|
|
26
|
+
const projects = prefetchedProjects ?? (await fetchProjects(api));
|
|
27
|
+
if (!workspace && !personal) {
|
|
28
|
+
return { tasks, projects };
|
|
29
|
+
}
|
|
30
|
+
let filtered = tasks;
|
|
31
|
+
if (workspace) {
|
|
32
|
+
const ws = await resolveWorkspaceRef(workspace);
|
|
33
|
+
filtered = tasks.filter((t) => {
|
|
34
|
+
const project = projects.get(t.projectId);
|
|
35
|
+
return project && isWorkspaceProject(project) && project.workspaceId === ws.id;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
else if (personal) {
|
|
39
|
+
filtered = tasks.filter((t) => {
|
|
40
|
+
const project = projects.get(t.projectId);
|
|
41
|
+
return project && !isWorkspaceProject(project);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
return { tasks: filtered, projects };
|
|
45
|
+
}
|
|
46
|
+
/** CLI value → Todoist API priority (p1=urgent maps to API 4, p4=low maps to API 1) */
|
|
47
|
+
const PRIORITY_MAP = {
|
|
48
|
+
p1: 4,
|
|
49
|
+
p2: 3,
|
|
50
|
+
p3: 2,
|
|
51
|
+
p4: 1,
|
|
52
|
+
};
|
|
53
|
+
export const PRIORITY_CHOICES = Object.keys(PRIORITY_MAP);
|
|
54
|
+
export function parsePriority(p) {
|
|
55
|
+
const result = PRIORITY_MAP[p.toLowerCase()];
|
|
56
|
+
if (result !== undefined)
|
|
57
|
+
return result;
|
|
58
|
+
throw new CliError('INVALID_PRIORITY', `Invalid priority "${p}".`);
|
|
59
|
+
}
|
|
60
|
+
function buildFilterQuery(options) {
|
|
61
|
+
const parts = [];
|
|
62
|
+
if (options.label) {
|
|
63
|
+
const labels = options.label.split(',').map((l) => l.trim());
|
|
64
|
+
if (labels.length === 1) {
|
|
65
|
+
parts.push(`@${labels[0]}`);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
parts.push(`(${labels.map((l) => `@${l}`).join(' | ')})`);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
if (options.priority) {
|
|
72
|
+
parsePriority(options.priority); // Validate format
|
|
73
|
+
parts.push(options.priority);
|
|
74
|
+
}
|
|
75
|
+
if (options.due) {
|
|
76
|
+
if (options.due === 'today') {
|
|
77
|
+
parts.push('today');
|
|
78
|
+
}
|
|
79
|
+
else if (options.due === 'overdue') {
|
|
80
|
+
parts.push('overdue');
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
parts.push(`${options.due}`);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if (options.assignee) {
|
|
87
|
+
if (options.assignee.toLowerCase() === 'me') {
|
|
88
|
+
parts.push('assigned to: me');
|
|
89
|
+
}
|
|
90
|
+
else if (options.assignee.startsWith('id:')) {
|
|
91
|
+
// ID-based assignee filters are done client-side, separately
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
// Email or name provided directly
|
|
95
|
+
parts.push(`assigned to: ${options.assignee}`);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
if (options.unassigned) {
|
|
99
|
+
parts.push('!assigned');
|
|
100
|
+
}
|
|
101
|
+
if (options.workspace) {
|
|
102
|
+
parts.push(`workspace: ${options.workspace}`);
|
|
103
|
+
}
|
|
104
|
+
if (options.personal) {
|
|
105
|
+
parts.push('workspace: personal');
|
|
106
|
+
}
|
|
107
|
+
return parts.length > 0 ? parts.join(' & ') : null;
|
|
108
|
+
}
|
|
109
|
+
async function formatGroupedTaskList({ tasks, project, sections, projects, collaboratorCache, raw = false, showUrl = false, }) {
|
|
110
|
+
if (tasks.length === 0) {
|
|
111
|
+
return 'No tasks found.';
|
|
112
|
+
}
|
|
113
|
+
const taskIds = new Set(tasks.map((t) => t.id));
|
|
114
|
+
const childrenMap = new Map();
|
|
115
|
+
for (const task of tasks) {
|
|
116
|
+
if (task.parentId && taskIds.has(task.parentId)) {
|
|
117
|
+
const children = childrenMap.get(task.parentId) || [];
|
|
118
|
+
children.push(task);
|
|
119
|
+
childrenMap.set(task.parentId, children);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
async function renderTask(task, indent) {
|
|
123
|
+
const assignee = formatAssignee({
|
|
124
|
+
userId: task.responsibleUid,
|
|
125
|
+
projectId: task.projectId,
|
|
126
|
+
projects,
|
|
127
|
+
cache: collaboratorCache,
|
|
128
|
+
});
|
|
129
|
+
lines.push(await formatTaskRow({
|
|
130
|
+
task,
|
|
131
|
+
assignee: assignee ?? undefined,
|
|
132
|
+
raw,
|
|
133
|
+
indent,
|
|
134
|
+
showUrl,
|
|
135
|
+
}));
|
|
136
|
+
lines.push('');
|
|
137
|
+
const children = childrenMap.get(task.id) || [];
|
|
138
|
+
for (const child of children) {
|
|
139
|
+
await renderTask(child, indent + 1);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
const lines = [];
|
|
143
|
+
const noSection = tasks.filter((t) => !t.sectionId);
|
|
144
|
+
const bySectionId = new Map();
|
|
145
|
+
for (const task of tasks) {
|
|
146
|
+
if (task.sectionId) {
|
|
147
|
+
const list = bySectionId.get(task.sectionId) || [];
|
|
148
|
+
list.push(task);
|
|
149
|
+
bySectionId.set(task.sectionId, list);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
lines.push(chalk.bold(`${project.name} (${tasks.length})`));
|
|
153
|
+
lines.push('');
|
|
154
|
+
if (noSection.length > 0) {
|
|
155
|
+
lines.push(chalk.italic.dim(`(no section) (${noSection.length})`));
|
|
156
|
+
const topLevel = noSection.filter((t) => !t.parentId || !taskIds.has(t.parentId));
|
|
157
|
+
for (const task of topLevel) {
|
|
158
|
+
await renderTask(task, 0);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
for (const section of sections) {
|
|
162
|
+
const sectionTasks = bySectionId.get(section.id);
|
|
163
|
+
if (sectionTasks && sectionTasks.length > 0) {
|
|
164
|
+
lines.push(`${section.name} (${sectionTasks.length})`);
|
|
165
|
+
const topLevel = sectionTasks.filter((t) => !t.parentId || !taskIds.has(t.parentId));
|
|
166
|
+
for (const task of topLevel) {
|
|
167
|
+
await renderTask(task, 0);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
return lines.join('\n').trimEnd();
|
|
172
|
+
}
|
|
173
|
+
async function formatFlatTaskList({ tasks, projects, collaboratorCache, raw = false, showUrl = false, }) {
|
|
174
|
+
if (tasks.length === 0) {
|
|
175
|
+
return 'No tasks found.';
|
|
176
|
+
}
|
|
177
|
+
const blocks = await Promise.all(tasks.map((task) => {
|
|
178
|
+
const projectName = projects.get(task.projectId)?.name;
|
|
179
|
+
const assignee = formatAssignee({
|
|
180
|
+
userId: task.responsibleUid,
|
|
181
|
+
projectId: task.projectId,
|
|
182
|
+
projects,
|
|
183
|
+
cache: collaboratorCache,
|
|
184
|
+
});
|
|
185
|
+
return formatTaskRow({
|
|
186
|
+
task,
|
|
187
|
+
projectName,
|
|
188
|
+
assignee: assignee ?? undefined,
|
|
189
|
+
raw,
|
|
190
|
+
showUrl,
|
|
191
|
+
});
|
|
192
|
+
}));
|
|
193
|
+
return blocks.join('\n\n');
|
|
194
|
+
}
|
|
195
|
+
export async function listTasksForProject(projectId, options) {
|
|
196
|
+
const outputMode = resolveOutputMode(options);
|
|
197
|
+
const api = await getApi();
|
|
198
|
+
const targetLimit = options.all
|
|
199
|
+
? Number.MAX_SAFE_INTEGER
|
|
200
|
+
: options.limit
|
|
201
|
+
? parseInt(options.limit, 10)
|
|
202
|
+
: LIMITS.tasks;
|
|
203
|
+
let tasks;
|
|
204
|
+
let nextCursor;
|
|
205
|
+
const builtFilter = buildFilterQuery(options);
|
|
206
|
+
const filterQuery = options.filter
|
|
207
|
+
? builtFilter
|
|
208
|
+
? `(${options.filter}) & (${builtFilter})`
|
|
209
|
+
: options.filter
|
|
210
|
+
: builtFilter;
|
|
211
|
+
if (filterQuery) {
|
|
212
|
+
const result = await paginate((cursor, limit) => api.getTasksByFilter({
|
|
213
|
+
query: filterQuery,
|
|
214
|
+
cursor: cursor ?? undefined,
|
|
215
|
+
limit,
|
|
216
|
+
}), { limit: targetLimit, startCursor: options.cursor });
|
|
217
|
+
tasks = result.results;
|
|
218
|
+
nextCursor = result.nextCursor;
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
const scope = options.parent ? { parentId: options.parent } : projectId ? { projectId } : {};
|
|
222
|
+
const result = await paginate((cursor, limit) => api.getTasks({ ...scope, cursor: cursor ?? undefined, limit }), { limit: targetLimit, startCursor: options.cursor });
|
|
223
|
+
tasks = result.results;
|
|
224
|
+
nextCursor = result.nextCursor;
|
|
225
|
+
}
|
|
226
|
+
let filtered = tasks;
|
|
227
|
+
// getTasksByFilter doesn't support parentId or projectId scoping,
|
|
228
|
+
// so apply client-side when using the filter query path
|
|
229
|
+
if (options.parent) {
|
|
230
|
+
filtered = filtered.filter((t) => t.parentId === options.parent);
|
|
231
|
+
}
|
|
232
|
+
if (projectId) {
|
|
233
|
+
filtered = filtered.filter((t) => t.projectId === projectId);
|
|
234
|
+
}
|
|
235
|
+
// ID-based assignee filtering requires client-side filtering
|
|
236
|
+
// (name/email-based assignee filtering is done server-side via filter query)
|
|
237
|
+
if (options.assignee?.startsWith('id:')) {
|
|
238
|
+
const assigneeId = options.assignee.slice(3);
|
|
239
|
+
filtered = filtered.filter((t) => t.responsibleUid === assigneeId);
|
|
240
|
+
}
|
|
241
|
+
if (outputMode === 'ids-only') {
|
|
242
|
+
outputIds(filtered, (task) => task.id, formatNextCursorNotice(nextCursor));
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
if (outputMode === 'json') {
|
|
246
|
+
console.log(formatPaginatedJson({ results: filtered, nextCursor }, 'task', options.full, options.showUrls));
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
if (outputMode === 'ndjson') {
|
|
250
|
+
console.log(formatPaginatedNdjson({ results: filtered, nextCursor }, 'task', options.full, options.showUrls));
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
const collaboratorCache = new CollaboratorCache();
|
|
254
|
+
if (projectId) {
|
|
255
|
+
// When listing tasks for a specific project, we only need that project's info
|
|
256
|
+
const [projectRes, sectionsRes] = await Promise.all([
|
|
257
|
+
api.getProject(projectId),
|
|
258
|
+
api.getSections({ projectId }),
|
|
259
|
+
]);
|
|
260
|
+
const projects = new Map([[projectRes.id, projectRes]]);
|
|
261
|
+
await collaboratorCache.preload(api, filtered, projects);
|
|
262
|
+
console.log(await formatGroupedTaskList({
|
|
263
|
+
tasks: filtered,
|
|
264
|
+
project: projectRes,
|
|
265
|
+
sections: sectionsRes.results,
|
|
266
|
+
projects,
|
|
267
|
+
collaboratorCache,
|
|
268
|
+
raw: options.raw,
|
|
269
|
+
showUrl: options.showUrls,
|
|
270
|
+
}));
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
// When listing tasks across all projects, we need all projects for formatting
|
|
274
|
+
const { results: allProjects } = await api.getProjects();
|
|
275
|
+
const projects = new Map(allProjects.map((p) => [p.id, p]));
|
|
276
|
+
await collaboratorCache.preload(api, filtered, projects);
|
|
277
|
+
console.log(await formatFlatTaskList({
|
|
278
|
+
tasks: filtered,
|
|
279
|
+
projects,
|
|
280
|
+
collaboratorCache,
|
|
281
|
+
raw: options.raw,
|
|
282
|
+
showUrl: options.showUrls,
|
|
283
|
+
}));
|
|
284
|
+
}
|
|
285
|
+
console.log(formatNextCursorFooter(nextCursor));
|
|
286
|
+
}
|
|
287
|
+
//# sourceMappingURL=task-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-list.js","sourceRoot":"","sources":["../../src/lib/task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C,CAAC,CAAC,CAAA;QACvD,MAAM,iBAAiB,CAAC,OAAO,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAA;QAExD,OAAO,CAAC,GAAG,CACP,MAAM,qBAAqB,CAAC;YACxB,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,UAAU;YACnB,QAAQ,EAAE,WAAW,CAAC,OAAO;YAC7B,QAAQ;YACR,iBAAiB;YACjB,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,OAAO,EAAE,OAAO,CAAC,QAAQ;SAC5B,CAAC,CACL,CAAA;IACL,CAAC;SAAM,CAAC;QACJ,8EAA8E;QAC9E,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,MAAM,GAAG,CAAC,WAAW,EAAE,CAAA;QACxD,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;QAC3D,MAAM,iBAAiB,CAAC,OAAO,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAA;QAExD,OAAO,CAAC,GAAG,CACP,MAAM,kBAAkB,CAAC;YACrB,KAAK,EAAE,QAAQ;YACf,QAAQ;YACR,iBAAiB;YACjB,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,OAAO,EAAE,OAAO,CAAC,QAAQ;SAC5B,CAAC,CACL,CAAA;IACL,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC,CAAA;AACnD,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { SortedBy, ViewOptions } from '@todoist/sdk';
|
|
2
|
+
import type { Project, Task } from './api/core.js';
|
|
3
|
+
/**
|
|
4
|
+
* The CLI side of task ordering.
|
|
5
|
+
*
|
|
6
|
+
* The comparators themselves live in the SDK (`sortTasks`), which is where
|
|
7
|
+
* every Todoist client can share them. What stays here is the vocabulary the
|
|
8
|
+
* `--sort` flag speaks, the mapping from a saved view to that vocabulary, and
|
|
9
|
+
* the sidebar layout the SDK wants as a lookup. Whether a query is date-driven
|
|
10
|
+
* is the SDK's answer too, via `isDateDrivenQuery`.
|
|
11
|
+
*
|
|
12
|
+
* @see https://www.todoist.com/help/articles/default-sorting-order-for-todoist-tasks-mqmgerY7
|
|
13
|
+
*/
|
|
14
|
+
export declare const TASK_SORT_FIELDS: readonly ['default', 'priority', 'date', 'deadline', 'date-added', 'name', 'project', 'assignee', 'workspace', 'none'];
|
|
15
|
+
export type TaskSortField = (typeof TASK_SORT_FIELDS)[number];
|
|
16
|
+
export declare const TASK_SORT_DIRECTIONS: readonly ['asc', 'desc'];
|
|
17
|
+
export type TaskSortDirection = (typeof TASK_SORT_DIRECTIONS)[number];
|
|
18
|
+
export interface TaskSort {
|
|
19
|
+
field: TaskSortField;
|
|
20
|
+
direction: TaskSortDirection;
|
|
21
|
+
}
|
|
22
|
+
export declare const DEFAULT_TASK_SORT: TaskSort;
|
|
23
|
+
/** The saved `sorted_by` for a `--sort` field, or `undefined` for `none`, which no view can hold. */
|
|
24
|
+
export declare function sortedByForField(field: TaskSortField): SortedBy | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Todoist sorts ascending everywhere except priority, which reads p1 to p4 and
|
|
27
|
+
* is stored as descending.
|
|
28
|
+
*/
|
|
29
|
+
export declare function defaultDirectionFor(field: TaskSortField): TaskSortDirection;
|
|
30
|
+
/**
|
|
31
|
+
* The `--sort` flag is registered with Commander choices, so a bad value never
|
|
32
|
+
* reaches here from the command line. This guards the exported helper for any
|
|
33
|
+
* other caller, and keeps the error a `CliError` rather than a cast.
|
|
34
|
+
*/
|
|
35
|
+
export declare function parseTaskSortField(value: string): TaskSortField;
|
|
36
|
+
export declare function parseTaskSortDirection(value: string): TaskSortDirection;
|
|
37
|
+
/** The sorting a saved view applies, or the Todoist default when it has none. */
|
|
38
|
+
export declare function taskSortFromViewOptions(viewOptions?: ViewOptions): TaskSort;
|
|
39
|
+
export declare function formatTaskSort(sort: TaskSort): string;
|
|
40
|
+
/**
|
|
41
|
+
* Every sort but `none` needs the project list. Project order is the fourth
|
|
42
|
+
* criterion of the default hierarchy, and the default hierarchy is the
|
|
43
|
+
* tie-break under every named sort, so skipping the fetch for, say, a name
|
|
44
|
+
* sort would order equal names differently from the same sort in another
|
|
45
|
+
* output mode. Assignee sorting needs it too, to resolve collaborators.
|
|
46
|
+
*/
|
|
47
|
+
export declare function sortNeedsProjects(field: TaskSortField): boolean;
|
|
48
|
+
/** Only assignee sorting needs collaborator names resolved. */
|
|
49
|
+
export declare function sortNeedsCollaborators(field: TaskSortField): boolean;
|
|
50
|
+
export interface ProjectOrder {
|
|
51
|
+
/** Project id → position in the sidebar. */
|
|
52
|
+
projectOrder: Map<string, number>;
|
|
53
|
+
/** Project id → workspace bucket (0 is personal). */
|
|
54
|
+
workspaceOrder: Map<string, number>;
|
|
55
|
+
}
|
|
56
|
+
export interface TaskOrderContext extends Partial<ProjectOrder> {
|
|
57
|
+
/** Assignee display name, used by assignee sorting. Unassigned sorts last. */
|
|
58
|
+
assigneeName?: (task: Task) => string | null;
|
|
59
|
+
/**
|
|
60
|
+
* IANA timezone the SDK resolves floating due times in. Pass the Todoist
|
|
61
|
+
* account's, not the machine's: the two differ often enough to reverse
|
|
62
|
+
* pairs of timed tasks around midnight.
|
|
63
|
+
*/
|
|
64
|
+
timezone?: string;
|
|
65
|
+
/**
|
|
66
|
+
* True when the list is driven by dates: Today, Upcoming, and filters
|
|
67
|
+
* whose query mentions dates lead with date instead of priority.
|
|
68
|
+
*/
|
|
69
|
+
dateDriven?: boolean;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Lay projects out in sidebar order: Inbox, the personal tree, then each
|
|
73
|
+
* workspace.
|
|
74
|
+
*
|
|
75
|
+
* Personal projects nest, so they walk their tree by `childOrder`. Workspace
|
|
76
|
+
* projects don't: they carry `defaultOrder` for their position and leave
|
|
77
|
+
* `childOrder` at 0, so ordering them by `childOrder` produces no order at
|
|
78
|
+
* all. Pass `workspaceNames` to sort the workspaces themselves the way the
|
|
79
|
+
* sidebar and `td project list` do, by name; without it they fall back to id,
|
|
80
|
+
* which is stable but arbitrary.
|
|
81
|
+
*/
|
|
82
|
+
export declare function buildProjectOrder(projects: Iterable<Project>, { workspaceNames }?: {
|
|
83
|
+
workspaceNames?: Map<string, string>;
|
|
84
|
+
}): ProjectOrder;
|
|
85
|
+
/**
|
|
86
|
+
* Sort a task list the way a Todoist client would, by handing the SDK the
|
|
87
|
+
* pieces only the CLI can know: which hierarchy this list falls back to, where
|
|
88
|
+
* each project sits in the sidebar, how to name an assignee, and which
|
|
89
|
+
* timezone a floating due time belongs to.
|
|
90
|
+
*/
|
|
91
|
+
export declare function sortTasks(tasks: Task[], sort: TaskSort, context?: TaskOrderContext): Task[];
|
|
92
|
+
//# sourceMappingURL=task-sort.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-sort.d.ts","sourceRoot":"","sources":["../../src/lib/task-sort.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAmB,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1E,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAGlD;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,gBAAgB,YACzB,SAAS,EACT,UAAU,EACV,MAAM,EACN,UAAU,EACV,YAAY,EACZ,MAAM,EACN,SAAS,EACT,UAAU,EACV,WAAW,EACX,MAAM,CACA,CAAA;AAEV,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;AAE7D,eAAO,MAAM,oBAAoB,YAAI,KAAK,EAAE,MAAM,CAAU,CAAA;AAE5D,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CA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;CACvB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAC7B,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC,EAC3B,EAAE,cAAc,EAAE,GAAE;IAAE,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAO,GAClE,YAAY,CAsCd;AAgED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAE,gBAAqB,GAAG,IAAI,EAAE,CAiB/F"}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { isWorkspaceProject, SORTED_BY_OPTIONS, sortTasks as sortTasksBySdk } from '@todoist/sdk';
|
|
2
|
+
import { CliError } from './errors.js';
|
|
3
|
+
/**
|
|
4
|
+
* The CLI side of task ordering.
|
|
5
|
+
*
|
|
6
|
+
* The comparators themselves live in the SDK (`sortTasks`), which is where
|
|
7
|
+
* every Todoist client can share them. What stays here is the vocabulary the
|
|
8
|
+
* `--sort` flag speaks, the mapping from a saved view to that vocabulary, and
|
|
9
|
+
* the sidebar layout the SDK wants as a lookup. Whether a query is date-driven
|
|
10
|
+
* is the SDK's answer too, via `isDateDrivenQuery`.
|
|
11
|
+
*
|
|
12
|
+
* @see https://www.todoist.com/help/articles/default-sorting-order-for-todoist-tasks-mqmgerY7
|
|
13
|
+
*/
|
|
14
|
+
export const TASK_SORT_FIELDS = [
|
|
15
|
+
'default',
|
|
16
|
+
'priority',
|
|
17
|
+
'date',
|
|
18
|
+
'deadline',
|
|
19
|
+
'date-added',
|
|
20
|
+
'name',
|
|
21
|
+
'project',
|
|
22
|
+
'assignee',
|
|
23
|
+
'workspace',
|
|
24
|
+
'none',
|
|
25
|
+
];
|
|
26
|
+
export const TASK_SORT_DIRECTIONS = ['asc', 'desc'];
|
|
27
|
+
export const DEFAULT_TASK_SORT = { field: 'default', direction: 'asc' };
|
|
28
|
+
/**
|
|
29
|
+
* Saved `sorted_by` values → the vocabulary `--sort` speaks. The SDK keeps the
|
|
30
|
+
* default order for a label sort, and `--sort` has no label field, so LABEL
|
|
31
|
+
* reads as `default`.
|
|
32
|
+
*/
|
|
33
|
+
const FIELD_BY_SORTED_BY = {
|
|
34
|
+
MANUAL: 'default',
|
|
35
|
+
ALPHABETICALLY: 'name',
|
|
36
|
+
ASSIGNEE: 'assignee',
|
|
37
|
+
DUE_DATE: 'date',
|
|
38
|
+
DEADLINE: 'deadline',
|
|
39
|
+
ADDED_DATE: 'date-added',
|
|
40
|
+
LABEL: 'default',
|
|
41
|
+
PRIORITY: 'priority',
|
|
42
|
+
PROJECT: 'project',
|
|
43
|
+
WORKSPACE: 'workspace',
|
|
44
|
+
};
|
|
45
|
+
/** And back again for the SDK call. `default` maps to MANUAL; only `none` is absent. */
|
|
46
|
+
const SORTED_BY_FIELD = {
|
|
47
|
+
...Object.fromEntries(Object.entries(FIELD_BY_SORTED_BY).map(([sortedBy, field]) => [field, sortedBy])),
|
|
48
|
+
default: 'MANUAL',
|
|
49
|
+
};
|
|
50
|
+
/** The saved `sorted_by` for a `--sort` field, or `undefined` for `none`, which no view can hold. */
|
|
51
|
+
export function sortedByForField(field) {
|
|
52
|
+
return SORTED_BY_FIELD[field];
|
|
53
|
+
}
|
|
54
|
+
function isKnownSortedBy(value) {
|
|
55
|
+
return SORTED_BY_OPTIONS.includes(value);
|
|
56
|
+
}
|
|
57
|
+
const FIELD_LABELS = {
|
|
58
|
+
default: { asc: 'Todoist default', desc: 'Todoist default' },
|
|
59
|
+
priority: { asc: 'Priority (p4 first)', desc: 'Priority (p1 first)' },
|
|
60
|
+
date: { asc: 'Due date (earliest first)', desc: 'Due date (latest first)' },
|
|
61
|
+
deadline: { asc: 'Deadline (earliest first)', desc: 'Deadline (latest first)' },
|
|
62
|
+
'date-added': { asc: 'Date added (oldest first)', desc: 'Date added (newest first)' },
|
|
63
|
+
name: { asc: 'Name (A-Z)', desc: 'Name (Z-A)' },
|
|
64
|
+
project: { asc: 'Project order', desc: 'Project order (reversed)' },
|
|
65
|
+
assignee: { asc: 'Assignee (A-Z)', desc: 'Assignee (Z-A)' },
|
|
66
|
+
workspace: { asc: 'Workspace order', desc: 'Workspace order (reversed)' },
|
|
67
|
+
none: { asc: 'None (API order)', desc: 'None (API order)' },
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Todoist sorts ascending everywhere except priority, which reads p1 to p4 and
|
|
71
|
+
* is stored as descending.
|
|
72
|
+
*/
|
|
73
|
+
export function defaultDirectionFor(field) {
|
|
74
|
+
return field === 'priority' ? 'desc' : 'asc';
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* The `--sort` flag is registered with Commander choices, so a bad value never
|
|
78
|
+
* reaches here from the command line. This guards the exported helper for any
|
|
79
|
+
* other caller, and keeps the error a `CliError` rather than a cast.
|
|
80
|
+
*/
|
|
81
|
+
export function parseTaskSortField(value) {
|
|
82
|
+
const normalized = value.trim().toLowerCase();
|
|
83
|
+
const match = TASK_SORT_FIELDS.find((field) => field === normalized);
|
|
84
|
+
if (match)
|
|
85
|
+
return match;
|
|
86
|
+
throw new CliError('INVALID_SORT', `Invalid sort field "${value}".`, [
|
|
87
|
+
`Valid fields: ${TASK_SORT_FIELDS.join(', ')}`,
|
|
88
|
+
]);
|
|
89
|
+
}
|
|
90
|
+
export function parseTaskSortDirection(value) {
|
|
91
|
+
const normalized = value.trim().toLowerCase();
|
|
92
|
+
const match = TASK_SORT_DIRECTIONS.find((direction) => direction === normalized);
|
|
93
|
+
if (match)
|
|
94
|
+
return match;
|
|
95
|
+
throw new CliError('INVALID_SORT_ORDER', `Invalid sort order "${value}".`, [
|
|
96
|
+
`Valid orders: ${TASK_SORT_DIRECTIONS.join(', ')}`,
|
|
97
|
+
]);
|
|
98
|
+
}
|
|
99
|
+
/** The sorting a saved view applies, or the Todoist default when it has none. */
|
|
100
|
+
export function taskSortFromViewOptions(viewOptions) {
|
|
101
|
+
const sortedBy = viewOptions?.sortedBy;
|
|
102
|
+
const field = sortedBy && isKnownSortedBy(sortedBy) ? FIELD_BY_SORTED_BY[sortedBy] : 'default';
|
|
103
|
+
if (field === 'default')
|
|
104
|
+
return DEFAULT_TASK_SORT;
|
|
105
|
+
return { field, direction: directionFromSortOrder(viewOptions?.sortOrder, field) };
|
|
106
|
+
}
|
|
107
|
+
function directionFromSortOrder(sortOrder, field) {
|
|
108
|
+
if (sortOrder === 'ASC')
|
|
109
|
+
return 'asc';
|
|
110
|
+
if (sortOrder === 'DESC')
|
|
111
|
+
return 'desc';
|
|
112
|
+
return defaultDirectionFor(field);
|
|
113
|
+
}
|
|
114
|
+
export function formatTaskSort(sort) {
|
|
115
|
+
return FIELD_LABELS[sort.field][sort.direction];
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Every sort but `none` needs the project list. Project order is the fourth
|
|
119
|
+
* criterion of the default hierarchy, and the default hierarchy is the
|
|
120
|
+
* tie-break under every named sort, so skipping the fetch for, say, a name
|
|
121
|
+
* sort would order equal names differently from the same sort in another
|
|
122
|
+
* output mode. Assignee sorting needs it too, to resolve collaborators.
|
|
123
|
+
*/
|
|
124
|
+
export function sortNeedsProjects(field) {
|
|
125
|
+
return field !== 'none';
|
|
126
|
+
}
|
|
127
|
+
/** Only assignee sorting needs collaborator names resolved. */
|
|
128
|
+
export function sortNeedsCollaborators(field) {
|
|
129
|
+
return field === 'assignee';
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Lay projects out in sidebar order: Inbox, the personal tree, then each
|
|
133
|
+
* workspace.
|
|
134
|
+
*
|
|
135
|
+
* Personal projects nest, so they walk their tree by `childOrder`. Workspace
|
|
136
|
+
* projects don't: they carry `defaultOrder` for their position and leave
|
|
137
|
+
* `childOrder` at 0, so ordering them by `childOrder` produces no order at
|
|
138
|
+
* all. Pass `workspaceNames` to sort the workspaces themselves the way the
|
|
139
|
+
* sidebar and `td project list` do, by name; without it they fall back to id,
|
|
140
|
+
* which is stable but arbitrary.
|
|
141
|
+
*/
|
|
142
|
+
export function buildProjectOrder(projects, { workspaceNames } = {}) {
|
|
143
|
+
const personal = [];
|
|
144
|
+
const byWorkspace = new Map();
|
|
145
|
+
for (const project of projects) {
|
|
146
|
+
if (isWorkspaceProject(project)) {
|
|
147
|
+
const bucket = byWorkspace.get(project.workspaceId) ?? [];
|
|
148
|
+
bucket.push(project);
|
|
149
|
+
byWorkspace.set(project.workspaceId, bucket);
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
personal.push(project);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
const orderedWorkspaceIds = [...byWorkspace.keys()].sort((a, b) => {
|
|
156
|
+
const nameA = workspaceNames?.get(a);
|
|
157
|
+
const nameB = workspaceNames?.get(b);
|
|
158
|
+
if (nameA && nameB)
|
|
159
|
+
return compareText(nameA, nameB);
|
|
160
|
+
return compareText(a, b);
|
|
161
|
+
});
|
|
162
|
+
const buckets = [
|
|
163
|
+
orderPersonalProjects(personal),
|
|
164
|
+
...orderedWorkspaceIds.map((id) => orderWorkspaceProjects(byWorkspace.get(id) ?? [])),
|
|
165
|
+
];
|
|
166
|
+
const projectOrder = new Map();
|
|
167
|
+
const workspaceOrder = new Map();
|
|
168
|
+
let position = 0;
|
|
169
|
+
for (const [bucket, projectsInBucket] of buckets.entries()) {
|
|
170
|
+
for (const project of projectsInBucket) {
|
|
171
|
+
projectOrder.set(project.id, position++);
|
|
172
|
+
workspaceOrder.set(project.id, bucket);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return { projectOrder, workspaceOrder };
|
|
176
|
+
}
|
|
177
|
+
function orderPersonalProjects(projects) {
|
|
178
|
+
const inbox = projects.filter(isInboxProject);
|
|
179
|
+
const rest = orderProjectTree(projects.filter((project) => !isInboxProject(project)));
|
|
180
|
+
return [...inbox, ...rest];
|
|
181
|
+
}
|
|
182
|
+
function isInboxProject(project) {
|
|
183
|
+
return 'inboxProject' in project && project.inboxProject === true;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* `defaultOrder` is the workspace's own sequence for its projects, folders
|
|
187
|
+
* included, which is what the sidebar draws.
|
|
188
|
+
*/
|
|
189
|
+
function orderWorkspaceProjects(projects) {
|
|
190
|
+
return [...projects].sort((a, b) => compare(a.defaultOrder, b.defaultOrder) || compareText(a.name, b.name));
|
|
191
|
+
}
|
|
192
|
+
/** Depth-first walk of the personal project tree, siblings in `childOrder` order. */
|
|
193
|
+
function orderProjectTree(projects) {
|
|
194
|
+
const ids = new Set(projects.map((project) => project.id));
|
|
195
|
+
const byParent = new Map();
|
|
196
|
+
for (const project of projects) {
|
|
197
|
+
const parent = isWorkspaceProject(project) ? null : project.parentId;
|
|
198
|
+
const parentId = parent && ids.has(parent) ? parent : null;
|
|
199
|
+
const siblings = byParent.get(parentId) ?? [];
|
|
200
|
+
siblings.push(project);
|
|
201
|
+
byParent.set(parentId, siblings);
|
|
202
|
+
}
|
|
203
|
+
for (const siblings of byParent.values()) {
|
|
204
|
+
siblings.sort((a, b) => compare(a.childOrder, b.childOrder) || compareText(a.name, b.name));
|
|
205
|
+
}
|
|
206
|
+
const ordered = [];
|
|
207
|
+
const visited = new Set();
|
|
208
|
+
function visit(parentId) {
|
|
209
|
+
for (const project of byParent.get(parentId) ?? []) {
|
|
210
|
+
if (visited.has(project.id))
|
|
211
|
+
continue;
|
|
212
|
+
visited.add(project.id);
|
|
213
|
+
ordered.push(project);
|
|
214
|
+
visit(project.id);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
visit(null);
|
|
218
|
+
return ordered;
|
|
219
|
+
}
|
|
220
|
+
function compare(a, b) {
|
|
221
|
+
if (a === b)
|
|
222
|
+
return 0;
|
|
223
|
+
return a < b ? -1 : 1;
|
|
224
|
+
}
|
|
225
|
+
function compareText(a, b) {
|
|
226
|
+
return a.localeCompare(b, undefined, { sensitivity: 'base', numeric: true });
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Sort a task list the way a Todoist client would, by handing the SDK the
|
|
230
|
+
* pieces only the CLI can know: which hierarchy this list falls back to, where
|
|
231
|
+
* each project sits in the sidebar, how to name an assignee, and which
|
|
232
|
+
* timezone a floating due time belongs to.
|
|
233
|
+
*/
|
|
234
|
+
export function sortTasks(tasks, sort, context = {}) {
|
|
235
|
+
if (sort.field === 'none')
|
|
236
|
+
return [...tasks];
|
|
237
|
+
return sortTasksBySdk(tasks, {
|
|
238
|
+
sortedBy: SORTED_BY_FIELD[sort.field] ?? null,
|
|
239
|
+
sortOrder: sort.direction === 'desc' ? 'DESC' : 'ASC',
|
|
240
|
+
defaultOrder: context.dateDriven ? 'DATE_FIRST' : 'PRIORITY_FIRST',
|
|
241
|
+
}, {
|
|
242
|
+
projectOrder: context.projectOrder,
|
|
243
|
+
workspaceOrder: context.workspaceOrder,
|
|
244
|
+
assigneeName: context.assigneeName,
|
|
245
|
+
timezone: context.timezone,
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
//# sourceMappingURL=task-sort.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-sort.js","sourceRoot":"","sources":["../../src/lib/task-sort.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,cAAc,CAAA;AAGjG,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC;;;;;;;;;;GAUG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,SAAS;IACT,UAAU;IACV,MAAM;IACN,UAAU;IACV,YAAY;IACZ,MAAM;IACN,SAAS;IACT,UAAU;IACV,WAAW;IACX,MAAM;CACA,CAAA;AAIV,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,MAAM,CAAU,CAAA;AAS5D,MAAM,CAAC,MAAM,iBAAiB,GAAa,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EA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