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.
- package/README.md +112 -114
- package/dist/cli.js +1849 -585
- package/dist/commands.json +1436 -0
- package/dist/composition/build-deps.d.ts +5 -1
- package/dist/composition/cli.d.ts +12 -6
- package/dist/composition/package-manager.d.ts +2 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +1666 -548
- package/dist/infra/browser-auth.d.ts +9 -2
- package/dist/infra/graph-client.d.ts +2 -0
- package/dist/infra/playwright-loader.d.ts +4 -0
- package/dist/infra/process-runner-bun.d.ts +2 -0
- package/dist/infra/process-runner-node.d.ts +2 -0
- package/dist/use-cases/commands/build-command.d.ts +1 -1
- package/dist/use-cases/commands/command-types.d.ts +21 -1
- package/dist/use-cases/commands/docs-render.d.ts +24 -0
- package/dist/use-cases/commands/docs.d.ts +10 -0
- package/dist/use-cases/commands/download-drive-item-version-content.d.ts +12 -0
- package/dist/use-cases/commands/download-onedrive-file-content.d.ts +3 -1
- package/dist/use-cases/commands/get-calendar-event.d.ts +3 -1
- package/dist/use-cases/commands/get-calendar-view.d.ts +7 -2
- package/dist/use-cases/commands/get-current-user.d.ts +3 -1
- package/dist/use-cases/commands/get-drive-delta.d.ts +3 -1
- package/dist/use-cases/commands/get-drive-item.d.ts +3 -1
- package/dist/use-cases/commands/get-drive-root-item.d.ts +3 -1
- package/dist/use-cases/commands/get-excel-range.d.ts +3 -1
- package/dist/use-cases/commands/get-excel-table.d.ts +3 -1
- package/dist/use-cases/commands/get-mail-attachment.d.ts +3 -1
- package/dist/use-cases/commands/get-mail-message.d.ts +3 -1
- package/dist/use-cases/commands/get-mailbox-settings.d.ts +3 -1
- package/dist/use-cases/commands/get-my-profile-photo.d.ts +6 -2
- package/dist/use-cases/commands/get-onenote-page-content.d.ts +6 -2
- package/dist/use-cases/commands/get-planner-bucket.d.ts +3 -1
- package/dist/use-cases/commands/get-planner-plan.d.ts +3 -1
- package/dist/use-cases/commands/get-planner-task-details.d.ts +3 -1
- package/dist/use-cases/commands/get-planner-task.d.ts +3 -1
- package/dist/use-cases/commands/get-sharepoint-site-by-path.d.ts +4 -2
- package/dist/use-cases/commands/get-sharepoint-site-drive-by-id.d.ts +3 -1
- package/dist/use-cases/commands/get-sharepoint-site-list-item.d.ts +3 -1
- package/dist/use-cases/commands/get-sharepoint-site-list.d.ts +3 -1
- package/dist/use-cases/commands/get-sharepoint-site.d.ts +3 -1
- package/dist/use-cases/commands/get-specific-calendar-event.d.ts +3 -1
- package/dist/use-cases/commands/get-specific-calendar-view.d.ts +5 -1
- package/dist/use-cases/commands/get-team-channel.d.ts +3 -1
- package/dist/use-cases/commands/get-team.d.ts +3 -1
- package/dist/use-cases/commands/get-todo-task.d.ts +3 -1
- package/dist/use-cases/commands/list-all-onenote-sections.d.ts +3 -1
- package/dist/use-cases/commands/list-calendar-event-instances.d.ts +5 -1
- package/dist/use-cases/commands/list-calendar-events-delta.d.ts +3 -1
- package/dist/use-cases/commands/list-calendar-events.d.ts +3 -1
- package/dist/use-cases/commands/list-calendar-view-delta.d.ts +7 -2
- package/dist/use-cases/commands/list-calendars.d.ts +3 -1
- package/dist/use-cases/commands/list-chat-members.d.ts +3 -1
- package/dist/use-cases/commands/list-drive-item-permissions.d.ts +3 -1
- package/dist/use-cases/commands/list-drive-item-versions.d.ts +3 -1
- package/dist/use-cases/commands/list-drives.d.ts +3 -1
- package/dist/use-cases/commands/list-excel-table-rows.d.ts +3 -1
- package/dist/use-cases/commands/list-excel-tables.d.ts +3 -1
- package/dist/use-cases/commands/list-excel-worksheets.d.ts +3 -1
- package/dist/use-cases/commands/list-folder-files.d.ts +3 -1
- package/dist/use-cases/commands/{get-sharepoint-sites-delta.d.ts → list-incomplete-planner-tasks.d.ts} +3 -1
- package/dist/use-cases/commands/list-incomplete-todo-tasks.d.ts +8 -0
- package/dist/use-cases/commands/list-joined-teams.d.ts +3 -1
- package/dist/use-cases/commands/list-mail-attachments.d.ts +3 -1
- package/dist/use-cases/commands/list-mail-child-folders.d.ts +3 -1
- package/dist/use-cases/commands/list-mail-folder-messages.d.ts +3 -1
- package/dist/use-cases/commands/list-mail-folders.d.ts +3 -1
- package/dist/use-cases/commands/list-mail-messages.d.ts +3 -1
- package/dist/use-cases/commands/list-mail-rules.d.ts +3 -1
- package/dist/use-cases/commands/list-onenote-notebook-sections.d.ts +3 -1
- package/dist/use-cases/commands/list-onenote-notebooks.d.ts +3 -1
- package/dist/use-cases/commands/list-onenote-section-pages.d.ts +3 -1
- package/dist/use-cases/commands/list-plan-buckets.d.ts +3 -1
- package/dist/use-cases/commands/list-plan-tasks.d.ts +3 -1
- package/dist/use-cases/commands/{list-chats.d.ts → list-planner-plans.d.ts} +3 -1
- package/dist/use-cases/commands/list-planner-tasks.d.ts +3 -1
- package/dist/use-cases/commands/list-sharepoint-site-drives.d.ts +3 -1
- package/dist/use-cases/commands/list-sharepoint-site-list-items.d.ts +3 -1
- package/dist/use-cases/commands/list-sharepoint-site-lists.d.ts +3 -1
- package/dist/use-cases/commands/list-specific-calendar-events.d.ts +3 -1
- package/dist/use-cases/commands/list-team-channels.d.ts +3 -1
- package/dist/use-cases/commands/list-todo-linked-resources.d.ts +3 -1
- package/dist/use-cases/commands/list-todo-task-lists.d.ts +3 -1
- package/dist/use-cases/commands/list-todo-tasks.d.ts +3 -1
- package/dist/use-cases/commands/{get-channel-files-folder.d.ts → next-page.d.ts} +4 -3
- package/dist/use-cases/commands/{get-chat-message.d.ts → search-mail-messages.d.ts} +4 -3
- package/dist/use-cases/commands/{get-channel-message.d.ts → search-my-documents.d.ts} +4 -4
- package/dist/use-cases/commands/search-onedrive-files.d.ts +3 -1
- package/dist/use-cases/commands/search-onenote-pages.d.ts +8 -0
- package/dist/use-cases/commands/{get-chat-message-hosted-content.d.ts → search-sharepoint-sites-by-name.d.ts} +4 -4
- package/dist/use-cases/commands/search-sharepoint-sites.d.ts +3 -1
- package/dist/use-cases/commands/update.d.ts +16 -0
- package/dist/use-cases/ports/process-runner.d.ts +11 -0
- package/docs/commands.json +1436 -0
- package/package.json +6 -3
- package/dist/use-cases/commands/get-channel-message-hosted-content.d.ts +0 -9
- package/dist/use-cases/commands/get-chat.d.ts +0 -6
- package/dist/use-cases/commands/get-outlook-contact.d.ts +0 -6
- package/dist/use-cases/commands/get-sharepoint-site-item.d.ts +0 -7
- package/dist/use-cases/commands/list-channel-message-hosted-contents.d.ts +0 -8
- package/dist/use-cases/commands/list-channel-message-replies.d.ts +0 -8
- package/dist/use-cases/commands/list-channel-messages.d.ts +0 -7
- package/dist/use-cases/commands/list-channel-tabs.d.ts +0 -7
- package/dist/use-cases/commands/list-chat-message-hosted-contents.d.ts +0 -7
- package/dist/use-cases/commands/list-chat-message-replies.d.ts +0 -7
- package/dist/use-cases/commands/list-chat-messages.d.ts +0 -6
- package/dist/use-cases/commands/list-outlook-contacts.d.ts +0 -4
- package/dist/use-cases/commands/list-pinned-chat-messages.d.ts +0 -6
- package/dist/use-cases/commands/list-sharepoint-site-items.d.ts +0 -6
- package/dist/use-cases/commands/list-team-members.d.ts +0 -6
|
@@ -38,6 +38,12 @@ type LaunchOptions = {
|
|
|
38
38
|
type BrowserAuthApi = {
|
|
39
39
|
launchPersistentContext(profileDir: string, options: LaunchOptions): Promise<ContextLike>;
|
|
40
40
|
};
|
|
41
|
+
type ChromiumLike = {
|
|
42
|
+
launchPersistentContext(profileDir: string, options: LaunchOptions): Promise<ContextLike>;
|
|
43
|
+
};
|
|
44
|
+
type PlaywrightLoader = () => Promise<{
|
|
45
|
+
readonly chromium: ChromiumLike;
|
|
46
|
+
}>;
|
|
41
47
|
type TraceFn = (message: string) => void;
|
|
42
48
|
type BrowserAuthConfig = {
|
|
43
49
|
readonly logger: Logger;
|
|
@@ -50,10 +56,11 @@ type BrowserAuthConfig = {
|
|
|
50
56
|
readonly pollDeadlineMs?: number;
|
|
51
57
|
readonly navigationTimeoutMs?: number;
|
|
52
58
|
};
|
|
59
|
+
declare const createPlaywrightApi: (loader: PlaywrightLoader) => BrowserAuthApi;
|
|
53
60
|
declare const createBrowserAuthFromApi: (api: BrowserAuthApi, config: BrowserAuthConfig) => BrowserAuth;
|
|
54
61
|
declare const createBrowserAuth: (deps: {
|
|
55
62
|
logger: Logger;
|
|
56
63
|
fs?: FileSystem;
|
|
57
64
|
}) => BrowserAuth;
|
|
58
|
-
export { createBrowserAuth, createBrowserAuthFromApi };
|
|
59
|
-
export type { BrowserAuth, BrowserAuthApi, BrowserAuthConfig, BrowserTokenResult, ContextLike, PageLike, ResponseLike };
|
|
65
|
+
export { createBrowserAuth, createBrowserAuthFromApi, createPlaywrightApi };
|
|
66
|
+
export type { BrowserAuth, BrowserAuthApi, BrowserAuthConfig, BrowserTokenResult, ChromiumLike, ContextLike, PageLike, PlaywrightLoader, ResponseLike };
|
|
@@ -13,6 +13,8 @@ type GraphError = {
|
|
|
13
13
|
};
|
|
14
14
|
type GraphClient = {
|
|
15
15
|
get: (path: string) => Promise<Result<unknown, GraphError>>;
|
|
16
|
+
post: (path: string, body: unknown) => Promise<Result<unknown, GraphError>>;
|
|
17
|
+
getBinary: (path: string) => Promise<Result<unknown, GraphError>>;
|
|
16
18
|
};
|
|
17
19
|
type FetchFn = (url: string, init?: RequestInit) => Promise<Response>;
|
|
18
20
|
declare const createGraphClient: (auth: AuthManager, fetchFn?: FetchFn) => GraphClient;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
2
|
import type { Command } from './command-types.js';
|
|
3
|
-
declare const buildCommand: (pathFn: (params: Record<string, string>) => string, schema: z.ZodType) => Command
|
|
3
|
+
declare const buildCommand: (pathFn: (params: Record<string, string>) => string, schema: z.ZodType) => Pick<Command, "schema" | "execute">;
|
|
4
4
|
export { buildCommand };
|
|
@@ -3,8 +3,28 @@ import type { Result } from '../../domain/result.js';
|
|
|
3
3
|
import type { GraphClient } from '../../infra/graph-client.js';
|
|
4
4
|
type CommandSchema = z.ZodType;
|
|
5
5
|
type CommandExecute = (graph: GraphClient, params: Record<string, string>) => Promise<Result<unknown, import('../../infra/graph-client.js').GraphError>>;
|
|
6
|
+
type CommandCategory = 'auth' | 'drive' | 'excel' | 'sharepoint' | 'tasks' | 'mail' | 'notes' | 'user' | 'calendar' | 'contacts' | 'chats' | 'teams' | 'meta';
|
|
7
|
+
type CommandHttpMethod = 'GET' | 'POST' | 'PATCH' | 'DELETE';
|
|
8
|
+
type CommandOptionMeta = {
|
|
9
|
+
readonly name: string;
|
|
10
|
+
readonly key: string;
|
|
11
|
+
readonly description: string;
|
|
12
|
+
readonly required: true;
|
|
13
|
+
};
|
|
14
|
+
type CommandMeta = {
|
|
15
|
+
readonly summary: string;
|
|
16
|
+
readonly category: CommandCategory;
|
|
17
|
+
readonly graphMethod: CommandHttpMethod;
|
|
18
|
+
readonly graphPathTemplate: string;
|
|
19
|
+
readonly graphDocsUrl: string;
|
|
20
|
+
readonly options: ReadonlyArray<CommandOptionMeta>;
|
|
21
|
+
readonly example: string;
|
|
22
|
+
readonly responseShape?: string;
|
|
23
|
+
readonly bodyTemplate?: string;
|
|
24
|
+
};
|
|
6
25
|
type Command = {
|
|
7
26
|
readonly schema: CommandSchema;
|
|
8
27
|
readonly execute: CommandExecute;
|
|
28
|
+
readonly meta: CommandMeta;
|
|
9
29
|
};
|
|
10
|
-
export type { Command, CommandExecute, CommandSchema };
|
|
30
|
+
export type { Command, CommandCategory, CommandExecute, CommandHttpMethod, CommandMeta, CommandOptionMeta, CommandSchema };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { CommandCategory, CommandMeta } from './command-types.js';
|
|
2
|
+
export type CommandManifestEntry = {
|
|
3
|
+
readonly name: string;
|
|
4
|
+
readonly summary: string;
|
|
5
|
+
readonly category: CommandCategory;
|
|
6
|
+
readonly graphMethod: CommandMeta['graphMethod'];
|
|
7
|
+
readonly graphPathTemplate: string;
|
|
8
|
+
readonly graphDocsUrl: string;
|
|
9
|
+
readonly options: CommandMeta['options'];
|
|
10
|
+
readonly example: string;
|
|
11
|
+
readonly responseShape?: string;
|
|
12
|
+
readonly bodyTemplate?: string;
|
|
13
|
+
};
|
|
14
|
+
export type CommandManifest = {
|
|
15
|
+
readonly package: string;
|
|
16
|
+
readonly version: string;
|
|
17
|
+
readonly generatedAt: string;
|
|
18
|
+
readonly commands: ReadonlyArray<CommandManifestEntry>;
|
|
19
|
+
};
|
|
20
|
+
declare const CATEGORY_LABELS: Readonly<Record<CommandCategory, string>>;
|
|
21
|
+
declare const CATEGORY_ORDER: ReadonlyArray<CommandCategory>;
|
|
22
|
+
export declare const renderReadmeTables: (manifest: CommandManifest) => string;
|
|
23
|
+
export declare const renderCommandMarkdown: (entry: CommandManifestEntry) => string;
|
|
24
|
+
export { CATEGORY_LABELS, CATEGORY_ORDER };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Result } from '../../domain/result.js';
|
|
2
|
+
import type { Command } from './command-types.js';
|
|
3
|
+
import type { CommandManifest } from './docs-render.js';
|
|
4
|
+
export type DocsError = {
|
|
5
|
+
type: 'unknown_command';
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly available: ReadonlyArray<string>;
|
|
8
|
+
};
|
|
9
|
+
export declare const buildManifest: (registry: Readonly<Record<string, Command>>, packageName: string, version: string, now?: () => Date) => CommandManifest;
|
|
10
|
+
export declare const renderSingleCommand: (registry: Readonly<Record<string, Command>>, name: string) => Result<string, DocsError>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { Result } from '../../domain/result.js';
|
|
3
|
+
import type { GraphClient, GraphError } from '../../infra/graph-client.js';
|
|
4
|
+
import type { CommandMeta } from './command-types.js';
|
|
5
|
+
declare const schema: z.ZodObject<{
|
|
6
|
+
driveId: z.ZodString;
|
|
7
|
+
itemId: z.ZodString;
|
|
8
|
+
versionId: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const execute: (graph: GraphClient, params: Record<string, string>) => Promise<Result<unknown, GraphError>>;
|
|
11
|
+
declare const meta: CommandMeta;
|
|
12
|
+
export { execute, meta, schema };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { Result } from '../../domain/result.js';
|
|
3
3
|
import type { GraphClient } from '../../infra/graph-client.js';
|
|
4
|
+
import type { CommandMeta } from './command-types.js';
|
|
4
5
|
declare const schema: z.ZodObject<{
|
|
5
6
|
driveId: z.ZodString;
|
|
6
7
|
itemId: z.ZodString;
|
|
7
8
|
}, z.core.$strip>;
|
|
8
9
|
declare const execute: (graph: GraphClient, params: Record<string, string>) => Promise<Result<unknown, import("../../infra/graph-client.js").GraphError>>;
|
|
9
|
-
|
|
10
|
+
declare const meta: CommandMeta;
|
|
11
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
eventId: z.ZodString;
|
|
4
5
|
}, z.core.$strip>;
|
|
5
6
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
6
|
-
|
|
7
|
+
declare const meta: CommandMeta;
|
|
8
|
+
export { execute, meta, schema };
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
3
|
+
declare const schema: z.ZodObject<{
|
|
4
|
+
startDateTime: z.ZodString;
|
|
5
|
+
endDateTime: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
3
7
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
4
|
-
|
|
8
|
+
declare const meta: CommandMeta;
|
|
9
|
+
export { execute, meta, schema };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{}, z.core.$strict>;
|
|
3
4
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
4
|
-
|
|
5
|
+
declare const meta: CommandMeta;
|
|
6
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
driveId: z.ZodString;
|
|
4
5
|
itemId: z.ZodString;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
|
|
8
|
+
declare const meta: CommandMeta;
|
|
9
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
driveId: z.ZodString;
|
|
4
5
|
itemId: z.ZodString;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
|
|
8
|
+
declare const meta: CommandMeta;
|
|
9
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
driveId: z.ZodString;
|
|
4
5
|
}, z.core.$strip>;
|
|
5
6
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
6
|
-
|
|
7
|
+
declare const meta: CommandMeta;
|
|
8
|
+
export { execute, meta, schema };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
driveId: z.ZodString;
|
|
4
5
|
itemId: z.ZodString;
|
|
@@ -6,4 +7,5 @@ declare const schema: z.ZodObject<{
|
|
|
6
7
|
address: z.ZodString;
|
|
7
8
|
}, z.core.$strip>;
|
|
8
9
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
9
|
-
|
|
10
|
+
declare const meta: CommandMeta;
|
|
11
|
+
export { execute, meta, schema };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
driveId: z.ZodString;
|
|
4
5
|
itemId: z.ZodString;
|
|
5
6
|
tableId: z.ZodString;
|
|
6
7
|
}, z.core.$strip>;
|
|
7
8
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
8
|
-
|
|
9
|
+
declare const meta: CommandMeta;
|
|
10
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
messageId: z.ZodString;
|
|
4
5
|
attachmentId: z.ZodString;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
|
|
8
|
+
declare const meta: CommandMeta;
|
|
9
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
messageId: z.ZodString;
|
|
4
5
|
}, z.core.$strip>;
|
|
5
6
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
6
|
-
|
|
7
|
+
declare const meta: CommandMeta;
|
|
8
|
+
export { execute, meta, schema };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{}, z.core.$strict>;
|
|
3
4
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
4
|
-
|
|
5
|
+
declare const meta: CommandMeta;
|
|
6
|
+
export { execute, meta, schema };
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { Result } from '../../domain/result.js';
|
|
3
|
+
import type { GraphClient, GraphError } from '../../infra/graph-client.js';
|
|
4
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
5
|
declare const schema: z.ZodObject<{}, z.core.$strict>;
|
|
3
|
-
declare const execute:
|
|
4
|
-
|
|
6
|
+
declare const execute: (graph: GraphClient, params: Record<string, string>) => Promise<Result<unknown, GraphError>>;
|
|
7
|
+
declare const meta: CommandMeta;
|
|
8
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { Result } from '../../domain/result.js';
|
|
3
|
+
import type { GraphClient, GraphError } from '../../infra/graph-client.js';
|
|
4
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
5
|
declare const schema: z.ZodObject<{
|
|
3
6
|
onenotePageId: z.ZodString;
|
|
4
7
|
}, z.core.$strip>;
|
|
5
|
-
declare const execute:
|
|
6
|
-
|
|
8
|
+
declare const execute: (graph: GraphClient, params: Record<string, string>) => Promise<Result<unknown, GraphError>>;
|
|
9
|
+
declare const meta: CommandMeta;
|
|
10
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
plannerBucketId: z.ZodString;
|
|
4
5
|
}, z.core.$strip>;
|
|
5
6
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
6
|
-
|
|
7
|
+
declare const meta: CommandMeta;
|
|
8
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
plannerPlanId: z.ZodString;
|
|
4
5
|
}, z.core.$strip>;
|
|
5
6
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
6
|
-
|
|
7
|
+
declare const meta: CommandMeta;
|
|
8
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
plannerTaskId: z.ZodString;
|
|
4
5
|
}, z.core.$strip>;
|
|
5
6
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
6
|
-
|
|
7
|
+
declare const meta: CommandMeta;
|
|
8
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
plannerTaskId: z.ZodString;
|
|
4
5
|
}, z.core.$strip>;
|
|
5
6
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
6
|
-
|
|
7
|
+
declare const meta: CommandMeta;
|
|
8
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
|
-
|
|
4
|
+
hostname: z.ZodString;
|
|
4
5
|
path: z.ZodString;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
|
|
8
|
+
declare const meta: CommandMeta;
|
|
9
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
siteId: z.ZodString;
|
|
4
5
|
driveId: z.ZodString;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
|
|
8
|
+
declare const meta: CommandMeta;
|
|
9
|
+
export { execute, meta, schema };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
siteId: z.ZodString;
|
|
4
5
|
listId: z.ZodString;
|
|
5
6
|
listItemId: z.ZodString;
|
|
6
7
|
}, z.core.$strip>;
|
|
7
8
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
8
|
-
|
|
9
|
+
declare const meta: CommandMeta;
|
|
10
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
siteId: z.ZodString;
|
|
4
5
|
listId: z.ZodString;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
|
|
8
|
+
declare const meta: CommandMeta;
|
|
9
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
siteId: z.ZodString;
|
|
4
5
|
}, z.core.$strip>;
|
|
5
6
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
6
|
-
|
|
7
|
+
declare const meta: CommandMeta;
|
|
8
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
calendarId: z.ZodString;
|
|
4
5
|
eventId: z.ZodString;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
|
|
8
|
+
declare const meta: CommandMeta;
|
|
9
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
calendarId: z.ZodString;
|
|
5
|
+
startDateTime: z.ZodString;
|
|
6
|
+
endDateTime: z.ZodString;
|
|
4
7
|
}, z.core.$strip>;
|
|
5
8
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
6
|
-
|
|
9
|
+
declare const meta: CommandMeta;
|
|
10
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
teamId: z.ZodString;
|
|
4
5
|
channelId: z.ZodString;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
|
|
8
|
+
declare const meta: CommandMeta;
|
|
9
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
teamId: z.ZodString;
|
|
4
5
|
}, z.core.$strip>;
|
|
5
6
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
6
|
-
|
|
7
|
+
declare const meta: CommandMeta;
|
|
8
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
todoTaskListId: z.ZodString;
|
|
4
5
|
todoTaskId: z.ZodString;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
|
|
8
|
+
declare const meta: CommandMeta;
|
|
9
|
+
export { execute, meta, schema };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{}, z.core.$strict>;
|
|
3
4
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
4
|
-
|
|
5
|
+
declare const meta: CommandMeta;
|
|
6
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
calendarId: z.ZodString;
|
|
4
5
|
eventId: z.ZodString;
|
|
6
|
+
startDateTime: z.ZodString;
|
|
7
|
+
endDateTime: z.ZodString;
|
|
5
8
|
}, z.core.$strip>;
|
|
6
9
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
|
|
10
|
+
declare const meta: CommandMeta;
|
|
11
|
+
export { execute, meta, schema };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{}, z.core.$strict>;
|
|
3
4
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
4
|
-
|
|
5
|
+
declare const meta: CommandMeta;
|
|
6
|
+
export { execute, meta, schema };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{}, z.core.$strict>;
|
|
3
4
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
4
|
-
|
|
5
|
+
declare const meta: CommandMeta;
|
|
6
|
+
export { execute, meta, schema };
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
3
|
+
declare const schema: z.ZodObject<{
|
|
4
|
+
startDateTime: z.ZodString;
|
|
5
|
+
endDateTime: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
3
7
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
4
|
-
|
|
8
|
+
declare const meta: CommandMeta;
|
|
9
|
+
export { execute, meta, schema };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{}, z.core.$strict>;
|
|
3
4
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
4
|
-
|
|
5
|
+
declare const meta: CommandMeta;
|
|
6
|
+
export { execute, meta, schema };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
chatId: z.ZodString;
|
|
4
5
|
}, z.core.$strip>;
|
|
5
6
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
6
|
-
|
|
7
|
+
declare const meta: CommandMeta;
|
|
8
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
driveId: z.ZodString;
|
|
4
5
|
itemId: z.ZodString;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
|
|
8
|
+
declare const meta: CommandMeta;
|
|
9
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
driveId: z.ZodString;
|
|
4
5
|
itemId: z.ZodString;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
|
|
8
|
+
declare const meta: CommandMeta;
|
|
9
|
+
export { execute, meta, schema };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{}, z.core.$strict>;
|
|
3
4
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
4
|
-
|
|
5
|
+
declare const meta: CommandMeta;
|
|
6
|
+
export { execute, meta, schema };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
driveId: z.ZodString;
|
|
4
5
|
itemId: z.ZodString;
|
|
5
6
|
tableId: z.ZodString;
|
|
6
7
|
}, z.core.$strip>;
|
|
7
8
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
8
|
-
|
|
9
|
+
declare const meta: CommandMeta;
|
|
10
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
driveId: z.ZodString;
|
|
4
5
|
itemId: z.ZodString;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
|
|
8
|
+
declare const meta: CommandMeta;
|
|
9
|
+
export { execute, meta, schema };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { CommandMeta } from './command-types.js';
|
|
2
3
|
declare const schema: z.ZodObject<{
|
|
3
4
|
driveId: z.ZodString;
|
|
4
5
|
itemId: z.ZodString;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
declare const execute: import("./command-types.js").CommandExecute;
|
|
7
|
-
|
|
8
|
+
declare const meta: CommandMeta;
|
|
9
|
+
export { execute, meta, schema };
|