ask-marcel-office-cli 0.1.0 → 0.5.5

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 (110) hide show
  1. package/README.md +112 -114
  2. package/dist/cli.js +1849 -585
  3. package/dist/commands.json +1436 -0
  4. package/dist/composition/build-deps.d.ts +5 -1
  5. package/dist/composition/cli.d.ts +12 -6
  6. package/dist/composition/package-manager.d.ts +2 -0
  7. package/dist/index.d.ts +6 -1
  8. package/dist/index.js +1666 -548
  9. package/dist/infra/browser-auth.d.ts +9 -2
  10. package/dist/infra/graph-client.d.ts +2 -0
  11. package/dist/infra/playwright-loader.d.ts +4 -0
  12. package/dist/infra/process-runner-bun.d.ts +2 -0
  13. package/dist/infra/process-runner-node.d.ts +2 -0
  14. package/dist/use-cases/commands/build-command.d.ts +1 -1
  15. package/dist/use-cases/commands/command-types.d.ts +21 -1
  16. package/dist/use-cases/commands/docs-render.d.ts +24 -0
  17. package/dist/use-cases/commands/docs.d.ts +10 -0
  18. package/dist/use-cases/commands/download-drive-item-version-content.d.ts +12 -0
  19. package/dist/use-cases/commands/download-onedrive-file-content.d.ts +3 -1
  20. package/dist/use-cases/commands/get-calendar-event.d.ts +3 -1
  21. package/dist/use-cases/commands/get-calendar-view.d.ts +7 -2
  22. package/dist/use-cases/commands/get-current-user.d.ts +3 -1
  23. package/dist/use-cases/commands/get-drive-delta.d.ts +3 -1
  24. package/dist/use-cases/commands/get-drive-item.d.ts +3 -1
  25. package/dist/use-cases/commands/get-drive-root-item.d.ts +3 -1
  26. package/dist/use-cases/commands/get-excel-range.d.ts +3 -1
  27. package/dist/use-cases/commands/get-excel-table.d.ts +3 -1
  28. package/dist/use-cases/commands/get-mail-attachment.d.ts +3 -1
  29. package/dist/use-cases/commands/get-mail-message.d.ts +3 -1
  30. package/dist/use-cases/commands/get-mailbox-settings.d.ts +3 -1
  31. package/dist/use-cases/commands/get-my-profile-photo.d.ts +6 -2
  32. package/dist/use-cases/commands/get-onenote-page-content.d.ts +6 -2
  33. package/dist/use-cases/commands/get-planner-bucket.d.ts +3 -1
  34. package/dist/use-cases/commands/get-planner-plan.d.ts +3 -1
  35. package/dist/use-cases/commands/get-planner-task-details.d.ts +3 -1
  36. package/dist/use-cases/commands/get-planner-task.d.ts +3 -1
  37. package/dist/use-cases/commands/get-sharepoint-site-by-path.d.ts +4 -2
  38. package/dist/use-cases/commands/get-sharepoint-site-drive-by-id.d.ts +3 -1
  39. package/dist/use-cases/commands/get-sharepoint-site-list-item.d.ts +3 -1
  40. package/dist/use-cases/commands/get-sharepoint-site-list.d.ts +3 -1
  41. package/dist/use-cases/commands/get-sharepoint-site.d.ts +3 -1
  42. package/dist/use-cases/commands/get-specific-calendar-event.d.ts +3 -1
  43. package/dist/use-cases/commands/get-specific-calendar-view.d.ts +5 -1
  44. package/dist/use-cases/commands/get-team-channel.d.ts +3 -1
  45. package/dist/use-cases/commands/get-team.d.ts +3 -1
  46. package/dist/use-cases/commands/get-todo-task.d.ts +3 -1
  47. package/dist/use-cases/commands/list-all-onenote-sections.d.ts +3 -1
  48. package/dist/use-cases/commands/list-calendar-event-instances.d.ts +5 -1
  49. package/dist/use-cases/commands/list-calendar-events-delta.d.ts +3 -1
  50. package/dist/use-cases/commands/list-calendar-events.d.ts +3 -1
  51. package/dist/use-cases/commands/list-calendar-view-delta.d.ts +7 -2
  52. package/dist/use-cases/commands/list-calendars.d.ts +3 -1
  53. package/dist/use-cases/commands/list-chat-members.d.ts +3 -1
  54. package/dist/use-cases/commands/list-drive-item-permissions.d.ts +3 -1
  55. package/dist/use-cases/commands/list-drive-item-versions.d.ts +3 -1
  56. package/dist/use-cases/commands/list-drives.d.ts +3 -1
  57. package/dist/use-cases/commands/list-excel-table-rows.d.ts +3 -1
  58. package/dist/use-cases/commands/list-excel-tables.d.ts +3 -1
  59. package/dist/use-cases/commands/list-excel-worksheets.d.ts +3 -1
  60. package/dist/use-cases/commands/list-folder-files.d.ts +3 -1
  61. package/dist/use-cases/commands/{get-sharepoint-sites-delta.d.ts → list-incomplete-planner-tasks.d.ts} +3 -1
  62. package/dist/use-cases/commands/list-incomplete-todo-tasks.d.ts +8 -0
  63. package/dist/use-cases/commands/list-joined-teams.d.ts +3 -1
  64. package/dist/use-cases/commands/list-mail-attachments.d.ts +3 -1
  65. package/dist/use-cases/commands/list-mail-child-folders.d.ts +3 -1
  66. package/dist/use-cases/commands/list-mail-folder-messages.d.ts +3 -1
  67. package/dist/use-cases/commands/list-mail-folders.d.ts +3 -1
  68. package/dist/use-cases/commands/list-mail-messages.d.ts +3 -1
  69. package/dist/use-cases/commands/list-mail-rules.d.ts +3 -1
  70. package/dist/use-cases/commands/list-onenote-notebook-sections.d.ts +3 -1
  71. package/dist/use-cases/commands/list-onenote-notebooks.d.ts +3 -1
  72. package/dist/use-cases/commands/list-onenote-section-pages.d.ts +3 -1
  73. package/dist/use-cases/commands/list-plan-buckets.d.ts +3 -1
  74. package/dist/use-cases/commands/list-plan-tasks.d.ts +3 -1
  75. package/dist/use-cases/commands/{list-chats.d.ts → list-planner-plans.d.ts} +3 -1
  76. package/dist/use-cases/commands/list-planner-tasks.d.ts +3 -1
  77. package/dist/use-cases/commands/list-sharepoint-site-drives.d.ts +3 -1
  78. package/dist/use-cases/commands/list-sharepoint-site-list-items.d.ts +3 -1
  79. package/dist/use-cases/commands/list-sharepoint-site-lists.d.ts +3 -1
  80. package/dist/use-cases/commands/list-specific-calendar-events.d.ts +3 -1
  81. package/dist/use-cases/commands/list-team-channels.d.ts +3 -1
  82. package/dist/use-cases/commands/list-todo-linked-resources.d.ts +3 -1
  83. package/dist/use-cases/commands/list-todo-task-lists.d.ts +3 -1
  84. package/dist/use-cases/commands/list-todo-tasks.d.ts +3 -1
  85. package/dist/use-cases/commands/{get-channel-files-folder.d.ts → next-page.d.ts} +4 -3
  86. package/dist/use-cases/commands/{get-chat-message.d.ts → search-mail-messages.d.ts} +4 -3
  87. package/dist/use-cases/commands/{get-channel-message.d.ts → search-my-documents.d.ts} +4 -4
  88. package/dist/use-cases/commands/search-onedrive-files.d.ts +3 -1
  89. package/dist/use-cases/commands/search-onenote-pages.d.ts +8 -0
  90. package/dist/use-cases/commands/{get-chat-message-hosted-content.d.ts → search-sharepoint-sites-by-name.d.ts} +4 -4
  91. package/dist/use-cases/commands/search-sharepoint-sites.d.ts +3 -1
  92. package/dist/use-cases/commands/update.d.ts +16 -0
  93. package/dist/use-cases/ports/process-runner.d.ts +11 -0
  94. package/docs/commands.json +1436 -0
  95. package/package.json +6 -3
  96. package/dist/use-cases/commands/get-channel-message-hosted-content.d.ts +0 -9
  97. package/dist/use-cases/commands/get-chat.d.ts +0 -6
  98. package/dist/use-cases/commands/get-outlook-contact.d.ts +0 -6
  99. package/dist/use-cases/commands/get-sharepoint-site-item.d.ts +0 -7
  100. package/dist/use-cases/commands/list-channel-message-hosted-contents.d.ts +0 -8
  101. package/dist/use-cases/commands/list-channel-message-replies.d.ts +0 -8
  102. package/dist/use-cases/commands/list-channel-messages.d.ts +0 -7
  103. package/dist/use-cases/commands/list-channel-tabs.d.ts +0 -7
  104. package/dist/use-cases/commands/list-chat-message-hosted-contents.d.ts +0 -7
  105. package/dist/use-cases/commands/list-chat-message-replies.d.ts +0 -7
  106. package/dist/use-cases/commands/list-chat-messages.d.ts +0 -6
  107. package/dist/use-cases/commands/list-outlook-contacts.d.ts +0 -4
  108. package/dist/use-cases/commands/list-pinned-chat-messages.d.ts +0 -6
  109. package/dist/use-cases/commands/list-sharepoint-site-items.d.ts +0 -6
  110. package/dist/use-cases/commands/list-team-members.d.ts +0 -6
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ask-marcel-office-cli",
3
- "version": "0.1.0",
4
- "description": "Microsoft Graph CLI + library — typed Bun/TypeScript wrapper around 100+ Graph API operations with browser-fallback OAuth.",
3
+ "version": "0.5.5",
4
+ "description": "Microsoft Graph CLI + library — typed Bun/TypeScript wrapper around 70+ read-side Graph operations reachable from a Teams browser-OAuth token.",
5
5
  "license": "MIT",
6
6
  "author": "Vincent Delacourt <vincent.delacourt@adama-development.com>",
7
7
  "repository": {
@@ -21,6 +21,7 @@
21
21
  "types": "./dist/index.d.ts",
22
22
  "import": "./dist/index.js"
23
23
  },
24
+ "./commands.json": "./dist/commands.json",
24
25
  "./package.json": "./package.json"
25
26
  },
26
27
  "bin": {
@@ -28,6 +29,7 @@
28
29
  },
29
30
  "files": [
30
31
  "dist/",
32
+ "docs/commands.json",
31
33
  "README.md",
32
34
  "LICENSE"
33
35
  ],
@@ -61,7 +63,8 @@
61
63
  "mutate:staged": "bash scripts/mutate-staged.sh",
62
64
  "build:js": "bun build src/main.ts --target=node --outfile=dist/cli.js --format=esm --external playwright --external update-notifier && bun build src/index.ts --target=node --outfile=dist/index.js --format=esm --external playwright --external update-notifier",
63
65
  "build:types": "tsc -p tsconfig.build.json",
64
- "build": "rm -rf dist && bun run build:js && bun run build:types && bun run scripts/fix-dts-extensions.ts && bun run scripts/add-shebang.ts",
66
+ "docs:gen": "bun run scripts/gen-docs.ts",
67
+ "build": "rm -rf dist && bun run docs:gen && bun run build:js && bun run build:types && bun run scripts/fix-dts-extensions.ts && bun run scripts/add-shebang.ts && cp docs/commands.json dist/commands.json",
65
68
  "prepublishOnly": "bun run build && bun test && bun run lint:strict && bun run typecheck && bun run coverage"
66
69
  },
67
70
  "devDependencies": {
@@ -1,9 +0,0 @@
1
- import { z } from 'zod';
2
- declare const schema: z.ZodObject<{
3
- teamId: z.ZodString;
4
- channelId: z.ZodString;
5
- chatMessageId: z.ZodString;
6
- chatMessageHostedContentId: z.ZodString;
7
- }, z.core.$strip>;
8
- declare const execute: import("./command-types.js").CommandExecute;
9
- export { execute, schema };
@@ -1,6 +0,0 @@
1
- import { z } from 'zod';
2
- declare const schema: z.ZodObject<{
3
- chatId: z.ZodString;
4
- }, z.core.$strip>;
5
- declare const execute: import("./command-types.js").CommandExecute;
6
- export { execute, schema };
@@ -1,6 +0,0 @@
1
- import { z } from 'zod';
2
- declare const schema: z.ZodObject<{
3
- contactId: z.ZodString;
4
- }, z.core.$strip>;
5
- declare const execute: import("./command-types.js").CommandExecute;
6
- export { execute, schema };
@@ -1,7 +0,0 @@
1
- import { z } from 'zod';
2
- declare const schema: z.ZodObject<{
3
- siteId: z.ZodString;
4
- baseItemId: z.ZodString;
5
- }, z.core.$strip>;
6
- declare const execute: import("./command-types.js").CommandExecute;
7
- export { execute, schema };
@@ -1,8 +0,0 @@
1
- import { z } from 'zod';
2
- declare const schema: z.ZodObject<{
3
- teamId: z.ZodString;
4
- channelId: z.ZodString;
5
- chatMessageId: z.ZodString;
6
- }, z.core.$strip>;
7
- declare const execute: import("./command-types.js").CommandExecute;
8
- export { execute, schema };
@@ -1,8 +0,0 @@
1
- import { z } from 'zod';
2
- declare const schema: z.ZodObject<{
3
- teamId: z.ZodString;
4
- channelId: z.ZodString;
5
- chatMessageId: z.ZodString;
6
- }, z.core.$strip>;
7
- declare const execute: import("./command-types.js").CommandExecute;
8
- export { execute, schema };
@@ -1,7 +0,0 @@
1
- import { z } from 'zod';
2
- declare const schema: z.ZodObject<{
3
- teamId: z.ZodString;
4
- channelId: z.ZodString;
5
- }, z.core.$strip>;
6
- declare const execute: import("./command-types.js").CommandExecute;
7
- export { execute, schema };
@@ -1,7 +0,0 @@
1
- import { z } from 'zod';
2
- declare const schema: z.ZodObject<{
3
- teamId: z.ZodString;
4
- channelId: z.ZodString;
5
- }, z.core.$strip>;
6
- declare const execute: import("./command-types.js").CommandExecute;
7
- export { execute, schema };
@@ -1,7 +0,0 @@
1
- import { z } from 'zod';
2
- declare const schema: z.ZodObject<{
3
- chatId: z.ZodString;
4
- chatMessageId: z.ZodString;
5
- }, z.core.$strip>;
6
- declare const execute: import("./command-types.js").CommandExecute;
7
- export { execute, schema };
@@ -1,7 +0,0 @@
1
- import { z } from 'zod';
2
- declare const schema: z.ZodObject<{
3
- chatId: z.ZodString;
4
- chatMessageId: z.ZodString;
5
- }, z.core.$strip>;
6
- declare const execute: import("./command-types.js").CommandExecute;
7
- export { execute, schema };
@@ -1,6 +0,0 @@
1
- import { z } from 'zod';
2
- declare const schema: z.ZodObject<{
3
- chatId: z.ZodString;
4
- }, z.core.$strip>;
5
- declare const execute: import("./command-types.js").CommandExecute;
6
- export { execute, schema };
@@ -1,4 +0,0 @@
1
- import { z } from 'zod';
2
- declare const schema: z.ZodObject<{}, z.core.$strict>;
3
- declare const execute: import("./command-types.js").CommandExecute;
4
- export { execute, schema };
@@ -1,6 +0,0 @@
1
- import { z } from 'zod';
2
- declare const schema: z.ZodObject<{
3
- chatId: z.ZodString;
4
- }, z.core.$strip>;
5
- declare const execute: import("./command-types.js").CommandExecute;
6
- export { execute, schema };
@@ -1,6 +0,0 @@
1
- import { z } from 'zod';
2
- declare const schema: z.ZodObject<{
3
- siteId: z.ZodString;
4
- }, z.core.$strip>;
5
- declare const execute: import("./command-types.js").CommandExecute;
6
- export { execute, schema };
@@ -1,6 +0,0 @@
1
- import { z } from 'zod';
2
- declare const schema: z.ZodObject<{
3
- teamId: z.ZodString;
4
- }, z.core.$strip>;
5
- declare const execute: import("./command-types.js").CommandExecute;
6
- export { execute, schema };