@jbctechsolutions/mcp-office365 2.5.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -57
- package/dist/approval/hash.d.ts +8 -8
- package/dist/approval/token-manager.d.ts +37 -19
- package/dist/approval/token-manager.d.ts.map +1 -1
- package/dist/approval/token-manager.js +133 -37
- package/dist/approval/token-manager.js.map +1 -1
- package/dist/approval/types.d.ts +7 -3
- package/dist/approval/types.d.ts.map +1 -1
- package/dist/cli.d.ts +21 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +100 -2
- package/dist/cli.js.map +1 -1
- package/dist/database/repository.d.ts +48 -48
- package/dist/database/repository.d.ts.map +1 -1
- package/dist/database/repository.js.map +1 -1
- package/dist/delta/mirror.d.ts +67 -0
- package/dist/delta/mirror.d.ts.map +1 -0
- package/dist/delta/mirror.js +183 -0
- package/dist/delta/mirror.js.map +1 -0
- package/dist/graph/auth/account-id.d.ts +19 -0
- package/dist/graph/auth/account-id.d.ts.map +1 -0
- package/dist/graph/auth/account-id.js +55 -0
- package/dist/graph/auth/account-id.js.map +1 -0
- package/dist/graph/auth/config.d.ts +1 -1
- package/dist/graph/auth/config.d.ts.map +1 -1
- package/dist/graph/auth/config.js +13 -1
- package/dist/graph/auth/config.js.map +1 -1
- package/dist/graph/auth/device-code-flow.d.ts +3 -1
- package/dist/graph/auth/device-code-flow.d.ts.map +1 -1
- package/dist/graph/auth/device-code-flow.js +42 -14
- package/dist/graph/auth/device-code-flow.js.map +1 -1
- package/dist/graph/auth/index.d.ts +1 -0
- package/dist/graph/auth/index.d.ts.map +1 -1
- package/dist/graph/auth/index.js +1 -0
- package/dist/graph/auth/index.js.map +1 -1
- package/dist/graph/auth/token-cache.js +2 -2
- package/dist/graph/auth/token-cache.js.map +1 -1
- package/dist/graph/client/graph-client.d.ts +141 -8
- package/dist/graph/client/graph-client.d.ts.map +1 -1
- package/dist/graph/client/graph-client.js +536 -48
- package/dist/graph/client/graph-client.js.map +1 -1
- package/dist/graph/client/immutable-id-middleware.d.ts +50 -0
- package/dist/graph/client/immutable-id-middleware.d.ts.map +1 -0
- package/dist/graph/client/immutable-id-middleware.js +137 -0
- package/dist/graph/client/immutable-id-middleware.js.map +1 -0
- package/dist/graph/content-readers.d.ts +0 -12
- package/dist/graph/content-readers.d.ts.map +1 -1
- package/dist/graph/content-readers.js +0 -21
- package/dist/graph/content-readers.js.map +1 -1
- package/dist/graph/index.d.ts +5 -6
- package/dist/graph/index.d.ts.map +1 -1
- package/dist/graph/index.js +5 -6
- package/dist/graph/index.js.map +1 -1
- package/dist/graph/mailbox-adapter.d.ts +15 -15
- package/dist/graph/mappers/contact-mapper.d.ts +4 -1
- package/dist/graph/mappers/contact-mapper.d.ts.map +1 -1
- package/dist/graph/mappers/contact-mapper.js +7 -3
- package/dist/graph/mappers/contact-mapper.js.map +1 -1
- package/dist/graph/mappers/email-mapper.d.ts.map +1 -1
- package/dist/graph/mappers/email-mapper.js +7 -4
- package/dist/graph/mappers/email-mapper.js.map +1 -1
- package/dist/graph/mappers/event-mapper.d.ts.map +1 -1
- package/dist/graph/mappers/event-mapper.js +6 -3
- package/dist/graph/mappers/event-mapper.js.map +1 -1
- package/dist/graph/mappers/folder-mapper.d.ts +0 -4
- package/dist/graph/mappers/folder-mapper.d.ts.map +1 -1
- package/dist/graph/mappers/folder-mapper.js +9 -19
- package/dist/graph/mappers/folder-mapper.js.map +1 -1
- package/dist/graph/mappers/index.d.ts +2 -2
- package/dist/graph/mappers/index.d.ts.map +1 -1
- package/dist/graph/mappers/index.js +2 -2
- package/dist/graph/mappers/index.js.map +1 -1
- package/dist/graph/mappers/task-mapper.d.ts +4 -2
- package/dist/graph/mappers/task-mapper.d.ts.map +1 -1
- package/dist/graph/mappers/task-mapper.js +7 -5
- package/dist/graph/mappers/task-mapper.js.map +1 -1
- package/dist/graph/mappers/utils.d.ts +0 -10
- package/dist/graph/mappers/utils.d.ts.map +1 -1
- package/dist/graph/mappers/utils.js +0 -19
- package/dist/graph/mappers/utils.js.map +1 -1
- package/dist/graph/repository.d.ts +409 -276
- package/dist/graph/repository.d.ts.map +1 -1
- package/dist/graph/repository.js +772 -1082
- package/dist/graph/repository.js.map +1 -1
- package/dist/ids/mint.d.ts +31 -0
- package/dist/ids/mint.d.ts.map +1 -0
- package/dist/ids/mint.js +36 -0
- package/dist/ids/mint.js.map +1 -0
- package/dist/ids/next-action.d.ts +29 -0
- package/dist/ids/next-action.d.ts.map +1 -0
- package/dist/ids/next-action.js +58 -0
- package/dist/ids/next-action.js.map +1 -0
- package/dist/ids/resolver.d.ts +31 -0
- package/dist/ids/resolver.d.ts.map +1 -0
- package/dist/ids/resolver.js +52 -0
- package/dist/ids/resolver.js.map +1 -0
- package/dist/ids/schema.d.ts +91 -0
- package/dist/ids/schema.d.ts.map +1 -0
- package/dist/ids/schema.js +131 -0
- package/dist/ids/schema.js.map +1 -0
- package/dist/ids/token.d.ts +62 -0
- package/dist/ids/token.d.ts.map +1 -0
- package/dist/ids/token.js +225 -0
- package/dist/ids/token.js.map +1 -0
- package/dist/index.d.ts +10 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +255 -5925
- package/dist/index.js.map +1 -1
- package/dist/parsers/index.d.ts +0 -1
- package/dist/parsers/index.d.ts.map +1 -1
- package/dist/parsers/index.js +0 -1
- package/dist/parsers/index.js.map +1 -1
- package/dist/registry/all-tools.d.ts +14 -0
- package/dist/registry/all-tools.d.ts.map +1 -0
- package/dist/registry/all-tools.js +68 -0
- package/dist/registry/all-tools.js.map +1 -0
- package/dist/registry/context.d.ts +19 -0
- package/dist/registry/context.d.ts.map +1 -0
- package/dist/registry/context.js +20 -0
- package/dist/registry/context.js.map +1 -0
- package/dist/registry/define-tool.d.ts +15 -0
- package/dist/registry/define-tool.d.ts.map +1 -0
- package/dist/registry/define-tool.js +8 -0
- package/dist/registry/define-tool.js.map +1 -0
- package/dist/registry/elicit-links.d.ts +35 -0
- package/dist/registry/elicit-links.d.ts.map +1 -0
- package/dist/registry/elicit-links.js +102 -0
- package/dist/registry/elicit-links.js.map +1 -0
- package/dist/registry/elicitor.d.ts +24 -0
- package/dist/registry/elicitor.d.ts.map +1 -0
- package/dist/registry/elicitor.js +51 -0
- package/dist/registry/elicitor.js.map +1 -0
- package/dist/registry/index.d.ts +13 -0
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/index.js +8 -0
- package/dist/registry/index.js.map +1 -0
- package/dist/registry/registry.d.ts +73 -0
- package/dist/registry/registry.d.ts.map +1 -0
- package/dist/registry/registry.js +221 -0
- package/dist/registry/registry.js.map +1 -0
- package/dist/registry/types.d.ts +146 -0
- package/dist/registry/types.d.ts.map +1 -0
- package/dist/registry/types.js +6 -0
- package/dist/registry/types.js.map +1 -0
- package/dist/search/compiler.d.ts +49 -0
- package/dist/search/compiler.d.ts.map +1 -0
- package/dist/search/compiler.js +168 -0
- package/dist/search/compiler.js.map +1 -0
- package/dist/signature.js +2 -2
- package/dist/signature.js.map +1 -1
- package/dist/state/delta-store.d.ts +85 -0
- package/dist/state/delta-store.d.ts.map +1 -0
- package/dist/state/delta-store.js +124 -0
- package/dist/state/delta-store.js.map +1 -0
- package/dist/state/migrate.d.ts +23 -0
- package/dist/state/migrate.d.ts.map +1 -0
- package/dist/state/migrate.js +81 -0
- package/dist/state/migrate.js.map +1 -0
- package/dist/state/schema.d.ts +26 -0
- package/dist/state/schema.d.ts.map +1 -0
- package/dist/state/schema.js +77 -0
- package/dist/state/schema.js.map +1 -0
- package/dist/state/store.d.ts +155 -0
- package/dist/state/store.d.ts.map +1 -0
- package/dist/state/store.js +321 -0
- package/dist/state/store.js.map +1 -0
- package/dist/tools/calendar-graph.d.ts +41 -0
- package/dist/tools/calendar-graph.d.ts.map +1 -0
- package/dist/tools/calendar-graph.js +299 -0
- package/dist/tools/calendar-graph.js.map +1 -0
- package/dist/tools/calendar-permissions.d.ts +17 -7
- package/dist/tools/calendar-permissions.d.ts.map +1 -1
- package/dist/tools/calendar-permissions.js +60 -4
- package/dist/tools/calendar-permissions.js.map +1 -1
- package/dist/tools/calendar.d.ts +133 -82
- package/dist/tools/calendar.d.ts.map +1 -1
- package/dist/tools/calendar.js +249 -136
- package/dist/tools/calendar.js.map +1 -1
- package/dist/tools/categories.d.ts +14 -4
- package/dist/tools/categories.d.ts.map +1 -1
- package/dist/tools/categories.js +59 -2
- package/dist/tools/categories.js.map +1 -1
- package/dist/tools/checklist-items.d.ts +19 -9
- package/dist/tools/checklist-items.d.ts.map +1 -1
- package/dist/tools/checklist-items.js +71 -5
- package/dist/tools/checklist-items.js.map +1 -1
- package/dist/tools/contact-folders.d.ts +50 -0
- package/dist/tools/contact-folders.d.ts.map +1 -0
- package/dist/tools/contact-folders.js +136 -0
- package/dist/tools/contact-folders.js.map +1 -0
- package/dist/tools/contacts-graph.d.ts +45 -0
- package/dist/tools/contacts-graph.d.ts.map +1 -0
- package/dist/tools/contacts-graph.js +174 -0
- package/dist/tools/contacts-graph.js.map +1 -0
- package/dist/tools/contacts.d.ts +61 -30
- package/dist/tools/contacts.d.ts.map +1 -1
- package/dist/tools/contacts.js +150 -93
- package/dist/tools/contacts.js.map +1 -1
- package/dist/tools/excel.d.ts +20 -10
- package/dist/tools/excel.d.ts.map +1 -1
- package/dist/tools/excel.js +82 -6
- package/dist/tools/excel.js.map +1 -1
- package/dist/tools/focused-overrides.d.ts +14 -4
- package/dist/tools/focused-overrides.d.ts.map +1 -1
- package/dist/tools/focused-overrides.js +59 -2
- package/dist/tools/focused-overrides.js.map +1 -1
- package/dist/tools/index.d.ts +4 -5
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +4 -6
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/linked-resources.d.ts +17 -7
- package/dist/tools/linked-resources.d.ts.map +1 -1
- package/dist/tools/linked-resources.js +60 -4
- package/dist/tools/linked-resources.js.map +1 -1
- package/dist/tools/mail-graph.d.ts +38 -0
- package/dist/tools/mail-graph.d.ts.map +1 -0
- package/dist/tools/mail-graph.js +187 -0
- package/dist/tools/mail-graph.js.map +1 -0
- package/dist/tools/mail-rules.d.ts +20 -8
- package/dist/tools/mail-rules.d.ts.map +1 -1
- package/dist/tools/mail-rules.js +63 -7
- package/dist/tools/mail-rules.js.map +1 -1
- package/dist/tools/mail-send.d.ts +39 -27
- package/dist/tools/mail-send.d.ts.map +1 -1
- package/dist/tools/mail-send.js +249 -24
- package/dist/tools/mail-send.js.map +1 -1
- package/dist/tools/mail.d.ts +91 -68
- package/dist/tools/mail.d.ts.map +1 -1
- package/dist/tools/mail.js +232 -243
- package/dist/tools/mail.js.map +1 -1
- package/dist/tools/mailbox-organization.d.ts +51 -34
- package/dist/tools/mailbox-organization.d.ts.map +1 -1
- package/dist/tools/mailbox-organization.js +318 -35
- package/dist/tools/mailbox-organization.js.map +1 -1
- package/dist/tools/mailbox-settings.d.ts +59 -0
- package/dist/tools/mailbox-settings.d.ts.map +1 -0
- package/dist/tools/mailbox-settings.js +136 -0
- package/dist/tools/mailbox-settings.js.map +1 -0
- package/dist/tools/meetings.d.ts +24 -14
- package/dist/tools/meetings.d.ts.map +1 -1
- package/dist/tools/meetings.js +82 -6
- package/dist/tools/meetings.js.map +1 -1
- package/dist/tools/onedrive.d.ts +26 -16
- package/dist/tools/onedrive.d.ts.map +1 -1
- package/dist/tools/onedrive.js +140 -11
- package/dist/tools/onedrive.js.map +1 -1
- package/dist/tools/onenote.d.ts +63 -0
- package/dist/tools/onenote.d.ts.map +1 -0
- package/dist/tools/onenote.js +221 -0
- package/dist/tools/onenote.js.map +1 -0
- package/dist/tools/people.d.ts +10 -0
- package/dist/tools/people.d.ts.map +1 -1
- package/dist/tools/people.js +94 -0
- package/dist/tools/people.js.map +1 -1
- package/dist/tools/planner-visualization.d.ts +15 -5
- package/dist/tools/planner-visualization.d.ts.map +1 -1
- package/dist/tools/planner-visualization.js +58 -4
- package/dist/tools/planner-visualization.js.map +1 -1
- package/dist/tools/planner.d.ts +69 -39
- package/dist/tools/planner.d.ts.map +1 -1
- package/dist/tools/planner.js +231 -23
- package/dist/tools/planner.js.map +1 -1
- package/dist/tools/scheduling.d.ts +12 -0
- package/dist/tools/scheduling.d.ts.map +1 -1
- package/dist/tools/scheduling.js +38 -0
- package/dist/tools/scheduling.js.map +1 -1
- package/dist/tools/shared-mailbox.d.ts +164 -0
- package/dist/tools/shared-mailbox.d.ts.map +1 -0
- package/dist/tools/shared-mailbox.js +318 -0
- package/dist/tools/shared-mailbox.js.map +1 -0
- package/dist/tools/sharepoint-lists.d.ts +131 -0
- package/dist/tools/sharepoint-lists.d.ts.map +1 -0
- package/dist/tools/sharepoint-lists.js +246 -0
- package/dist/tools/sharepoint-lists.js.map +1 -0
- package/dist/tools/sharepoint.d.ts +24 -14
- package/dist/tools/sharepoint.d.ts.map +1 -1
- package/dist/tools/sharepoint.js +85 -9
- package/dist/tools/sharepoint.js.map +1 -1
- package/dist/tools/task-attachments.d.ts +17 -7
- package/dist/tools/task-attachments.d.ts.map +1 -1
- package/dist/tools/task-attachments.js +60 -4
- package/dist/tools/task-attachments.js.map +1 -1
- package/dist/tools/task-lists.d.ts +56 -0
- package/dist/tools/task-lists.d.ts.map +1 -0
- package/dist/tools/task-lists.js +155 -0
- package/dist/tools/task-lists.js.map +1 -0
- package/dist/tools/tasks-graph.d.ts +49 -0
- package/dist/tools/tasks-graph.d.ts.map +1 -0
- package/dist/tools/tasks-graph.js +193 -0
- package/dist/tools/tasks-graph.js.map +1 -0
- package/dist/tools/tasks.d.ts +121 -29
- package/dist/tools/tasks.d.ts.map +1 -1
- package/dist/tools/tasks.js +136 -84
- package/dist/tools/tasks.js.map +1 -1
- package/dist/tools/teams.d.ts +57 -46
- package/dist/tools/teams.d.ts.map +1 -1
- package/dist/tools/teams.js +288 -26
- package/dist/tools/teams.js.map +1 -1
- package/dist/tools/what-changed.d.ts +48 -0
- package/dist/tools/what-changed.d.ts.map +1 -0
- package/dist/tools/what-changed.js +149 -0
- package/dist/tools/what-changed.js.map +1 -0
- package/dist/types/calendar.d.ts +1 -1
- package/dist/types/calendar.d.ts.map +1 -1
- package/dist/types/calendar.js.map +1 -1
- package/dist/types/contacts.d.ts +1 -1
- package/dist/types/contacts.d.ts.map +1 -1
- package/dist/types/contacts.js.map +1 -1
- package/dist/types/mail.d.ts +1 -1
- package/dist/types/mail.d.ts.map +1 -1
- package/dist/types/mail.js.map +1 -1
- package/dist/utils/errors.d.ts +110 -38
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js +239 -56
- package/dist/utils/errors.js.map +1 -1
- package/dist/visualization/types.d.ts +4 -4
- package/package.json +2 -3
- package/dist/applescript/account-repository.d.ts +0 -30
- package/dist/applescript/account-repository.d.ts.map +0 -1
- package/dist/applescript/account-repository.js +0 -38
- package/dist/applescript/account-repository.js.map +0 -1
- package/dist/applescript/account-scripts.d.ts +0 -21
- package/dist/applescript/account-scripts.d.ts.map +0 -1
- package/dist/applescript/account-scripts.js +0 -180
- package/dist/applescript/account-scripts.js.map +0 -1
- package/dist/applescript/calendar-manager.d.ts +0 -44
- package/dist/applescript/calendar-manager.d.ts.map +0 -1
- package/dist/applescript/calendar-manager.js +0 -92
- package/dist/applescript/calendar-manager.js.map +0 -1
- package/dist/applescript/calendar-writer.d.ts +0 -36
- package/dist/applescript/calendar-writer.d.ts.map +0 -1
- package/dist/applescript/calendar-writer.js +0 -94
- package/dist/applescript/calendar-writer.js.map +0 -1
- package/dist/applescript/content-readers.d.ts +0 -114
- package/dist/applescript/content-readers.d.ts.map +0 -1
- package/dist/applescript/content-readers.js +0 -328
- package/dist/applescript/content-readers.js.map +0 -1
- package/dist/applescript/executor.d.ts +0 -60
- package/dist/applescript/executor.d.ts.map +0 -1
- package/dist/applescript/executor.js +0 -173
- package/dist/applescript/executor.js.map +0 -1
- package/dist/applescript/index.d.ts +0 -20
- package/dist/applescript/index.d.ts.map +0 -1
- package/dist/applescript/index.js +0 -29
- package/dist/applescript/index.js.map +0 -1
- package/dist/applescript/mail-sender.d.ts +0 -38
- package/dist/applescript/mail-sender.d.ts.map +0 -1
- package/dist/applescript/mail-sender.js +0 -67
- package/dist/applescript/mail-sender.js.map +0 -1
- package/dist/applescript/parser.d.ts +0 -235
- package/dist/applescript/parser.d.ts.map +0 -1
- package/dist/applescript/parser.js +0 -496
- package/dist/applescript/parser.js.map +0 -1
- package/dist/applescript/repository.d.ts +0 -64
- package/dist/applescript/repository.d.ts.map +0 -1
- package/dist/applescript/repository.js +0 -444
- package/dist/applescript/repository.js.map +0 -1
- package/dist/applescript/scripts.d.ts +0 -265
- package/dist/applescript/scripts.d.ts.map +0 -1
- package/dist/applescript/scripts.js +0 -1483
- package/dist/applescript/scripts.js.map +0 -1
- package/dist/parsers/olk15.d.ts +0 -87
- package/dist/parsers/olk15.d.ts.map +0 -1
- package/dist/parsers/olk15.js +0 -368
- package/dist/parsers/olk15.js.map +0 -1
- package/dist/tools/notes.d.ts +0 -74
- package/dist/tools/notes.d.ts.map +0 -1
- package/dist/tools/notes.js +0 -136
- package/dist/tools/notes.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/graph/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/graph/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AAGH,OAAO,EACL,eAAe,EACf,eAAe,EACf,YAAY,EACZ,KAAK,eAAe,EACpB,sBAAsB,EACtB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,UAAU,EACV,OAAO,EACP,iBAAiB,EACjB,KAAK,kBAAkB,EACvB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GACf,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,QAAQ,EACR,cAAc,EACd,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,2BAA2B,EAC3B,KAAK,gBAAgB,GACtB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAG3D,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,sBAAsB,EACtB,yBAAyB,EACzB,mCAAmC,EACnC,KAAK,mBAAmB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC"}
|
package/dist/graph/index.js
CHANGED
|
@@ -5,19 +5,18 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Microsoft Graph API module.
|
|
7
7
|
*
|
|
8
|
-
* Provides
|
|
9
|
-
*
|
|
10
|
-
* "new Outlook" for Mac which doesn't expose data via AppleScript.
|
|
8
|
+
* Provides the backend for the Outlook MCP server, using the Microsoft Graph
|
|
9
|
+
* API for all data access.
|
|
11
10
|
*/
|
|
12
11
|
// Auth exports
|
|
13
|
-
export { loadGraphConfig, getAuthorityUrl, GRAPH_SCOPES, createTokenCachePlugin, hasTokenCache, clearTokenCache, getTokenCacheDir, getTokenCacheFile, acquireTokenInteractive, acquireTokenSilent, getAccessToken, isAuthenticated, getAccount, signOut, resetMsalInstance, } from './auth/index.js';
|
|
12
|
+
export { loadGraphConfig, getAuthorityUrl, GRAPH_SCOPES, createTokenCachePlugin, hasTokenCache, clearTokenCache, getTokenCacheDir, getTokenCacheFile, acquireTokenInteractive, acquireTokenSilent, getAccessToken, isAuthenticated, getAccount, signOut, resetMsalInstance, DEFAULT_ACCOUNT_ID, resolveAccountId, currentAccountId, resetAccountId, } from './auth/index.js';
|
|
14
13
|
// Client exports
|
|
15
14
|
export { GraphClient, createGraphClient, ResponseCache, CacheTTL, createCacheKey, invalidateByPrefix, } from './client/index.js';
|
|
16
15
|
// Mapper exports
|
|
17
|
-
export { mapMailFolderToRow, mapCalendarToFolderRow,
|
|
16
|
+
export { mapMailFolderToRow, mapCalendarToFolderRow, mapMessageToEmailRow, mapEventToEventRow, mapContactToContactRow, mapTaskToTaskRow, isoToTimestamp, dateTimeTimeZoneToTimestamp, } from './mappers/index.js';
|
|
18
17
|
// Repository exports
|
|
19
18
|
export { GraphRepository, createGraphRepository } from './repository.js';
|
|
20
19
|
export { GraphMailboxAdapter } from './mailbox-adapter.js';
|
|
21
20
|
// Content reader exports
|
|
22
|
-
export { GraphEmailContentReader, GraphEventContentReader, GraphContactContentReader, GraphTaskContentReader,
|
|
21
|
+
export { GraphEmailContentReader, GraphEventContentReader, GraphContactContentReader, GraphTaskContentReader, createGraphContentReaders, createGraphContentReadersWithClient, GRAPH_EMAIL_PATH_PREFIX, GRAPH_EVENT_PATH_PREFIX, GRAPH_CONTACT_PATH_PREFIX, GRAPH_TASK_PATH_PREFIX, } from './content-readers.js';
|
|
23
22
|
//# sourceMappingURL=index.js.map
|
package/dist/graph/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/graph/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/graph/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AAEH,eAAe;AACf,OAAO,EACL,eAAe,EACf,eAAe,EACf,YAAY,EAEZ,sBAAsB,EACtB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,UAAU,EACV,OAAO,EACP,iBAAiB,EAEjB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GACf,MAAM,iBAAiB,CAAC;AAEzB,iBAAiB;AACjB,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,QAAQ,EACR,cAAc,EACd,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAE3B,iBAAiB;AACjB,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,2BAA2B,GAE5B,MAAM,oBAAoB,CAAC;AAE5B,qBAAqB;AACrB,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,yBAAyB;AACzB,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,sBAAsB,EACtB,yBAAyB,EACzB,mCAAmC,EAEnC,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC"}
|
|
@@ -11,20 +11,20 @@ import type { GraphRepository } from './repository.js';
|
|
|
11
11
|
export declare class GraphMailboxAdapter implements IMailboxRepository {
|
|
12
12
|
private readonly graph;
|
|
13
13
|
constructor(graph: GraphRepository);
|
|
14
|
-
getEmail(id:
|
|
15
|
-
getFolder(id:
|
|
16
|
-
moveEmail(emailId:
|
|
17
|
-
deleteEmail(emailId:
|
|
18
|
-
archiveEmail(emailId:
|
|
19
|
-
junkEmail(emailId:
|
|
20
|
-
markEmailRead(emailId:
|
|
21
|
-
setEmailFlag(emailId:
|
|
22
|
-
setEmailCategories(emailId:
|
|
23
|
-
setEmailImportance(emailId:
|
|
24
|
-
createFolder(name: string, parentFolderId?:
|
|
25
|
-
deleteFolder(folderId:
|
|
26
|
-
renameFolder(folderId:
|
|
27
|
-
moveFolder(folderId:
|
|
28
|
-
emptyFolder(folderId:
|
|
14
|
+
getEmail(id: string): Promise<EmailRow | undefined>;
|
|
15
|
+
getFolder(id: string): Promise<FolderRow | undefined>;
|
|
16
|
+
moveEmail(emailId: string, destinationFolderId: string): Promise<void>;
|
|
17
|
+
deleteEmail(emailId: string): Promise<void>;
|
|
18
|
+
archiveEmail(emailId: string): Promise<void>;
|
|
19
|
+
junkEmail(emailId: string): Promise<void>;
|
|
20
|
+
markEmailRead(emailId: string, isRead: boolean): Promise<void>;
|
|
21
|
+
setEmailFlag(emailId: string, flagStatus: number): Promise<void>;
|
|
22
|
+
setEmailCategories(emailId: string, categories: string[]): Promise<void>;
|
|
23
|
+
setEmailImportance(emailId: string, importance: string): Promise<void>;
|
|
24
|
+
createFolder(name: string, parentFolderId?: string): Promise<FolderRow>;
|
|
25
|
+
deleteFolder(folderId: string): Promise<void>;
|
|
26
|
+
renameFolder(folderId: string, newName: string): Promise<void>;
|
|
27
|
+
moveFolder(folderId: string, destinationParentId: string): Promise<void>;
|
|
28
|
+
emptyFolder(folderId: string): Promise<void>;
|
|
29
29
|
}
|
|
30
30
|
//# sourceMappingURL=mailbox-adapter.d.ts.map
|
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
import type * as MicrosoftGraph from '@microsoft/microsoft-graph-types';
|
|
9
9
|
import type { ContactRow } from '../../database/repository.js';
|
|
10
10
|
/**
|
|
11
|
-
* Maps a Graph Contact to a ContactRow.
|
|
11
|
+
* Maps a Graph Contact to a ContactRow. The `id` is a durable self-encoding
|
|
12
|
+
* `ct_` token (U5): it carries the Graph contact id, so it resolves by decode on
|
|
13
|
+
* any machine and survives a cold state store. An id-less contact (shouldn't
|
|
14
|
+
* happen for real Graph data) falls back to an empty id.
|
|
12
15
|
*/
|
|
13
16
|
export declare function mapContactToContactRow(contact: MicrosoftGraph.Contact): ContactRow;
|
|
14
17
|
//# sourceMappingURL=contact-mapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-mapper.d.ts","sourceRoot":"","sources":["../../../src/graph/mappers/contact-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,OAAO,KAAK,KAAK,cAAc,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"contact-mapper.d.ts","sourceRoot":"","sources":["../../../src/graph/mappers/contact-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,OAAO,KAAK,KAAK,cAAc,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAI/D;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,cAAc,CAAC,OAAO,GAAG,UAAU,CAWlF"}
|
|
@@ -2,14 +2,18 @@
|
|
|
2
2
|
* Copyright (c) 2026 JBC Tech Solutions, LLC
|
|
3
3
|
* Licensed under the MIT License. See LICENSE file in the project root.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { mintSelfEncoded } from '../../ids/token.js';
|
|
6
|
+
import { createGraphContentPath } from './utils.js';
|
|
6
7
|
/**
|
|
7
|
-
* Maps a Graph Contact to a ContactRow.
|
|
8
|
+
* Maps a Graph Contact to a ContactRow. The `id` is a durable self-encoding
|
|
9
|
+
* `ct_` token (U5): it carries the Graph contact id, so it resolves by decode on
|
|
10
|
+
* any machine and survives a cold state store. An id-less contact (shouldn't
|
|
11
|
+
* happen for real Graph data) falls back to an empty id.
|
|
8
12
|
*/
|
|
9
13
|
export function mapContactToContactRow(contact) {
|
|
10
14
|
const contactId = contact.id ?? '';
|
|
11
15
|
return {
|
|
12
|
-
id:
|
|
16
|
+
id: contactId.length > 0 ? mintSelfEncoded('contact', contactId) : '',
|
|
13
17
|
folderId: 0, // Graph contacts don't have folders in the same way
|
|
14
18
|
displayName: contact.displayName ?? null,
|
|
15
19
|
sortName: contact.surname ?? contact.displayName ?? null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-mapper.js","sourceRoot":"","sources":["../../../src/graph/mappers/contact-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"contact-mapper.js","sourceRoot":"","sources":["../../../src/graph/mappers/contact-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CAAC,OAA+B;IACpE,MAAM,SAAS,GAAG,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC;IAEnC,OAAO;QACL,EAAE,EAAE,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE;QACrE,QAAQ,EAAE,CAAC,EAAE,oDAAoD;QACjE,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,IAAI;QACxC,QAAQ,EAAE,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,WAAW,IAAI,IAAI;QACxD,WAAW,EAAE,IAAI,EAAE,yBAAyB;QAC5C,YAAY,EAAE,sBAAsB,CAAC,SAAS,EAAE,SAAS,CAAC;KAC3D,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-mapper.d.ts","sourceRoot":"","sources":["../../../src/graph/mappers/email-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,OAAO,KAAK,KAAK,cAAc,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAa7D;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,cAAc,CAAC,OAAO,EAC/B,QAAQ,CAAC,EAAE,MAAM,GAChB,QAAQ,
|
|
1
|
+
{"version":3,"file":"email-mapper.d.ts","sourceRoot":"","sources":["../../../src/graph/mappers/email-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,OAAO,KAAK,KAAK,cAAc,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAa7D;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,cAAc,CAAC,OAAO,EAC/B,QAAQ,CAAC,EAAE,MAAM,GAChB,QAAQ,CAsCV"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Copyright (c) 2026 JBC Tech Solutions, LLC
|
|
3
3
|
* Licensed under the MIT License. See LICENSE file in the project root.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { mintSelfEncoded } from '../../ids/token.js';
|
|
6
|
+
import { isoToTimestamp, importanceToPriority, flagStatusToNumber, extractDisplayName, extractEmailAddress, formatRecipients, formatRecipientAddresses, createGraphContentPath, } from './utils.js';
|
|
6
7
|
/**
|
|
7
8
|
* Maps a Graph Message to an EmailRow.
|
|
8
9
|
*/
|
|
@@ -16,8 +17,10 @@ export function mapMessageToEmailRow(message, folderId) {
|
|
|
16
17
|
const ccRecipients = message.ccRecipients;
|
|
17
18
|
const flag = message.flag;
|
|
18
19
|
return {
|
|
19
|
-
id
|
|
20
|
-
|
|
20
|
+
// Durable self-encoding em_ token carrying the immutable Graph message id (U5).
|
|
21
|
+
id: messageId.length > 0 ? mintSelfEncoded('message', messageId) : '',
|
|
22
|
+
// Durable self-encoding fd_ token carrying the immutable Graph folder id (U5).
|
|
23
|
+
folderId: parentFolderId != null && parentFolderId.length > 0 ? mintSelfEncoded('folder', parentFolderId) : '',
|
|
21
24
|
subject: message.subject ?? null,
|
|
22
25
|
sender: extractDisplayName(from),
|
|
23
26
|
senderAddress: extractEmailAddress(from),
|
|
@@ -37,7 +40,7 @@ export function mapMessageToEmailRow(message, folderId) {
|
|
|
37
40
|
? Buffer.from(message.categories.join(','), 'utf-8')
|
|
38
41
|
: null,
|
|
39
42
|
messageId: message.internetMessageId ?? null,
|
|
40
|
-
conversationId: message.conversationId
|
|
43
|
+
conversationId: message.conversationId ?? null,
|
|
41
44
|
dataFilePath: createGraphContentPath('email', messageId),
|
|
42
45
|
};
|
|
43
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-mapper.js","sourceRoot":"","sources":["../../../src/graph/mappers/email-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,
|
|
1
|
+
{"version":3,"file":"email-mapper.js","sourceRoot":"","sources":["../../../src/graph/mappers/email-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAClC,OAA+B,EAC/B,QAAiB;IAEjB,MAAM,SAAS,GAAG,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC;IACnC,MAAM,cAAc,GAAG,QAAQ,IAAI,OAAO,CAAC,cAAc,CAAC;IAE1D,iEAAiE;IACjE,yDAAyD;IACzD,MAAM,IAAI,GAAG,OAAO,CAAC,IAAiF,CAAC;IACvG,MAAM,YAAY,GAAG,OAAO,CAAC,YAAgG,CAAC;IAC9H,MAAM,YAAY,GAAG,OAAO,CAAC,YAAgG,CAAC;IAC9H,MAAM,IAAI,GAAG,OAAO,CAAC,IAAkD,CAAC;IAExE,OAAO;QACL,gFAAgF;QAChF,EAAE,EAAE,SAAS,CAAC,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,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC;YACpD,CAAC,CAAC,IAAI;QACR,SAAS,EAAE,OAAO,CAAC,iBAAiB,IAAI,IAAI;QAC5C,cAAc,EAAE,OAAO,CAAC,cAAc,IAAI,IAAI;QAC9C,YAAY,EAAE,sBAAsB,CAAC,OAAO,EAAE,SAAS,CAAC;KACzD,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-mapper.d.ts","sourceRoot":"","sources":["../../../src/graph/mappers/event-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,OAAO,KAAK,KAAK,cAAc,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAO7D;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,cAAc,CAAC,KAAK,EAC3B,UAAU,CAAC,EAAE,MAAM,GAClB,QAAQ,
|
|
1
|
+
{"version":3,"file":"event-mapper.d.ts","sourceRoot":"","sources":["../../../src/graph/mappers/event-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,OAAO,KAAK,KAAK,cAAc,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAO7D;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,cAAc,CAAC,KAAK,EAC3B,UAAU,CAAC,EAAE,MAAM,GAClB,QAAQ,CAyBV"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Copyright (c) 2026 JBC Tech Solutions, LLC
|
|
3
3
|
* Licensed under the MIT License. See LICENSE file in the project root.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { mintSelfEncoded } from '../../ids/token.js';
|
|
6
|
+
import { dateTimeTimeZoneToTimestamp, createGraphContentPath, } from './utils.js';
|
|
6
7
|
/**
|
|
7
8
|
* Maps a Graph Event to an EventRow.
|
|
8
9
|
*/
|
|
@@ -13,8 +14,10 @@ export function mapEventToEventRow(event, calendarId) {
|
|
|
13
14
|
const start = event.start;
|
|
14
15
|
const end = event.end;
|
|
15
16
|
return {
|
|
16
|
-
id
|
|
17
|
-
|
|
17
|
+
// Durable self-encoding ev_ token carrying the immutable Graph event id (U5).
|
|
18
|
+
id: eventId.length > 0 ? mintSelfEncoded('event', eventId) : '',
|
|
19
|
+
// Durable self-encoding fd_ token carrying the immutable Graph calendar id (U5).
|
|
20
|
+
folderId: calendarId != null && calendarId.length > 0 ? mintSelfEncoded('folder', calendarId) : '',
|
|
18
21
|
subject: event.subject ?? null,
|
|
19
22
|
startDate: dateTimeTimeZoneToTimestamp(start),
|
|
20
23
|
endDate: dateTimeTimeZoneToTimestamp(end),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-mapper.js","sourceRoot":"","sources":["../../../src/graph/mappers/event-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,
|
|
1
|
+
{"version":3,"file":"event-mapper.js","sourceRoot":"","sources":["../../../src/graph/mappers/event-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,2BAA2B,EAC3B,sBAAsB,GACvB,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAChC,KAA2B,EAC3B,UAAmB;IAEnB,MAAM,OAAO,GAAG,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IAE/B,iEAAiE;IACjE,yDAAyD;IACzD,MAAM,KAAK,GAAG,KAAK,CAAC,KAAoE,CAAC;IACzF,MAAM,GAAG,GAAG,KAAK,CAAC,GAAkE,CAAC;IAErF,OAAO;QACL,8EAA8E;QAC9E,EAAE,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;QAC/D,iFAAiF;QACjF,QAAQ,EAAE,UAAU,IAAI,IAAI,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE;QAClG,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,IAAI;QAC9B,SAAS,EAAE,2BAA2B,CAAC,KAAK,CAAC;QAC7C,OAAO,EAAE,2BAA2B,CAAC,GAAG,CAAC;QACzC,WAAW,EAAE,KAAK,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7C,WAAW,EAAE,KAAK,CAAC,YAAY,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAChD,aAAa,EAAE,KAAK,CAAC,SAAS,EAAE,MAAM,IAAI,CAAC;QAC3C,GAAG,EAAE,KAAK,CAAC,OAAO,IAAI,IAAI;QAC1B,cAAc,EAAE,IAAI,EAAE,yBAAyB;QAC/C,YAAY,EAAE,IAAI,EAAE,yBAAyB;QAC7C,YAAY,EAAE,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC;QACtD,gBAAgB,EAAE,KAAK,CAAC,aAAa,EAAE,OAAO,IAAI,IAAI;KACvD,CAAC;AACJ,CAAC"}
|
|
@@ -15,8 +15,4 @@ export declare function mapMailFolderToRow(folder: MicrosoftGraph.MailFolder): F
|
|
|
15
15
|
* Maps a Graph Calendar to a FolderRow (calendars use FolderRow structure).
|
|
16
16
|
*/
|
|
17
17
|
export declare function mapCalendarToFolderRow(calendar: MicrosoftGraph.Calendar): FolderRow;
|
|
18
|
-
/**
|
|
19
|
-
* Maps a Graph TodoTaskList to a FolderRow.
|
|
20
|
-
*/
|
|
21
|
-
export declare function mapTaskListToFolderRow(taskList: MicrosoftGraph.TodoTaskList): FolderRow;
|
|
22
18
|
//# sourceMappingURL=folder-mapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folder-mapper.d.ts","sourceRoot":"","sources":["../../../src/graph/mappers/folder-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,OAAO,KAAK,KAAK,cAAc,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAG9D;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,cAAc,CAAC,UAAU,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"folder-mapper.d.ts","sourceRoot":"","sources":["../../../src/graph/mappers/folder-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,OAAO,KAAK,KAAK,cAAc,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAG9D;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,cAAc,CAAC,UAAU,GAAG,SAAS,CAc/E;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,cAAc,CAAC,QAAQ,GAAG,SAAS,CAanF"}
|
|
@@ -2,15 +2,18 @@
|
|
|
2
2
|
* Copyright (c) 2026 JBC Tech Solutions, LLC
|
|
3
3
|
* Licensed under the MIT License. See LICENSE file in the project root.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { mintSelfEncoded } from '../../ids/token.js';
|
|
6
6
|
/**
|
|
7
7
|
* Maps a Graph MailFolder to a FolderRow.
|
|
8
8
|
*/
|
|
9
9
|
export function mapMailFolderToRow(folder) {
|
|
10
|
+
const graphId = folder.id ?? '';
|
|
11
|
+
const parentGraphId = folder.parentFolderId;
|
|
10
12
|
return {
|
|
11
|
-
|
|
13
|
+
// Durable self-encoding fd_ token carrying the immutable Graph folder id (U5).
|
|
14
|
+
id: graphId.length > 0 ? mintSelfEncoded('folder', graphId) : '',
|
|
12
15
|
name: folder.displayName ?? null,
|
|
13
|
-
parentId:
|
|
16
|
+
parentId: parentGraphId != null && parentGraphId.length > 0 ? mintSelfEncoded('folder', parentGraphId) : null,
|
|
14
17
|
specialType: 0, // Graph doesn't expose special type directly
|
|
15
18
|
folderType: 1, // Mail folder
|
|
16
19
|
accountId: 1, // Default account
|
|
@@ -22,8 +25,10 @@ export function mapMailFolderToRow(folder) {
|
|
|
22
25
|
* Maps a Graph Calendar to a FolderRow (calendars use FolderRow structure).
|
|
23
26
|
*/
|
|
24
27
|
export function mapCalendarToFolderRow(calendar) {
|
|
28
|
+
const graphId = calendar.id ?? '';
|
|
25
29
|
return {
|
|
26
|
-
|
|
30
|
+
// Durable self-encoding fd_ token carrying the immutable Graph calendar id (U5).
|
|
31
|
+
id: graphId.length > 0 ? mintSelfEncoded('folder', graphId) : '',
|
|
27
32
|
name: calendar.name ?? null,
|
|
28
33
|
parentId: null,
|
|
29
34
|
specialType: 0,
|
|
@@ -33,19 +38,4 @@ export function mapCalendarToFolderRow(calendar) {
|
|
|
33
38
|
unreadCount: 0,
|
|
34
39
|
};
|
|
35
40
|
}
|
|
36
|
-
/**
|
|
37
|
-
* Maps a Graph TodoTaskList to a FolderRow.
|
|
38
|
-
*/
|
|
39
|
-
export function mapTaskListToFolderRow(taskList) {
|
|
40
|
-
return {
|
|
41
|
-
id: hashStringToNumber(taskList.id ?? ''),
|
|
42
|
-
name: taskList.displayName ?? null,
|
|
43
|
-
parentId: null,
|
|
44
|
-
specialType: 0,
|
|
45
|
-
folderType: 3, // Task folder
|
|
46
|
-
accountId: 1,
|
|
47
|
-
messageCount: 0,
|
|
48
|
-
unreadCount: 0,
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
41
|
//# sourceMappingURL=folder-mapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folder-mapper.js","sourceRoot":"","sources":["../../../src/graph/mappers/folder-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"folder-mapper.js","sourceRoot":"","sources":["../../../src/graph/mappers/folder-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,MAAiC;IAClE,MAAM,OAAO,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC;IAChC,MAAM,aAAa,GAAG,MAAM,CAAC,cAAc,CAAC;IAC5C,OAAO;QACL,+EAA+E;QAC/E,EAAE,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;QAChE,IAAI,EAAE,MAAM,CAAC,WAAW,IAAI,IAAI;QAChC,QAAQ,EAAE,aAAa,IAAI,IAAI,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI;QAC7G,WAAW,EAAE,CAAC,EAAE,6CAA6C;QAC7D,UAAU,EAAE,CAAC,EAAE,cAAc;QAC7B,SAAS,EAAE,CAAC,EAAE,kBAAkB;QAChC,YAAY,EAAE,MAAM,CAAC,cAAc,IAAI,CAAC;QACxC,WAAW,EAAE,MAAM,CAAC,eAAe,IAAI,CAAC;KACzC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,QAAiC;IACtE,MAAM,OAAO,GAAG,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC;IAClC,OAAO;QACL,iFAAiF;QACjF,EAAE,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;QAChE,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,IAAI;QAC3B,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,CAAC;QACd,UAAU,EAAE,CAAC,EAAE,kBAAkB;QACjC,SAAS,EAAE,CAAC;QACZ,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,CAAC;KACf,CAAC;AACJ,CAAC"}
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Exports functions to convert Graph API types to internal row types.
|
|
9
9
|
*/
|
|
10
|
-
export { mapMailFolderToRow, mapCalendarToFolderRow,
|
|
10
|
+
export { mapMailFolderToRow, mapCalendarToFolderRow, } from './folder-mapper.js';
|
|
11
11
|
export { mapMessageToEmailRow } from './email-mapper.js';
|
|
12
12
|
export { mapEventToEventRow } from './event-mapper.js';
|
|
13
13
|
export { mapContactToContactRow } from './contact-mapper.js';
|
|
14
14
|
export { mapTaskToTaskRow, type TodoTaskWithList } from './task-mapper.js';
|
|
15
|
-
export {
|
|
15
|
+
export { isoToTimestamp, dateTimeTimeZoneToTimestamp, unixTimestampToIso, unixTimestampToLocalIso, importanceToPriority, flagStatusToNumber, extractEmailAddress, extractDisplayName, formatRecipients, formatRecipientAddresses, createGraphContentPath, } from './utils.js';
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/graph/mappers/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AAEH,OAAO,EACL,kBAAkB,EAClB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/graph/mappers/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AAEH,OAAO,EACL,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAE3E,OAAO,EACL,cAAc,EACd,2BAA2B,EAC3B,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,YAAY,CAAC"}
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Exports functions to convert Graph API types to internal row types.
|
|
9
9
|
*/
|
|
10
|
-
export { mapMailFolderToRow, mapCalendarToFolderRow,
|
|
10
|
+
export { mapMailFolderToRow, mapCalendarToFolderRow, } from './folder-mapper.js';
|
|
11
11
|
export { mapMessageToEmailRow } from './email-mapper.js';
|
|
12
12
|
export { mapEventToEventRow } from './event-mapper.js';
|
|
13
13
|
export { mapContactToContactRow } from './contact-mapper.js';
|
|
14
14
|
export { mapTaskToTaskRow } from './task-mapper.js';
|
|
15
|
-
export {
|
|
15
|
+
export { isoToTimestamp, dateTimeTimeZoneToTimestamp, unixTimestampToIso, unixTimestampToLocalIso, importanceToPriority, flagStatusToNumber, extractEmailAddress, extractDisplayName, formatRecipients, formatRecipientAddresses, createGraphContentPath, } from './utils.js';
|
|
16
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/graph/mappers/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AAEH,OAAO,EACL,kBAAkB,EAClB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/graph/mappers/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AAEH,OAAO,EACL,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAyB,MAAM,kBAAkB,CAAC;AAE3E,OAAO,EACL,cAAc,EACd,2BAA2B,EAC3B,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,YAAY,CAAC"}
|
|
@@ -14,7 +14,9 @@ export interface TodoTaskWithList extends MicrosoftGraph.TodoTask {
|
|
|
14
14
|
taskListId?: string;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* Maps a Graph TodoTask to a TaskRow.
|
|
17
|
+
* Maps a Graph TodoTask to a TaskRow. `id`/`folderId` are pre-minted durable
|
|
18
|
+
* tokens (`td_`/`tl_`) — mappers are pure and cannot mint alias tokens
|
|
19
|
+
* themselves, so the repository computes them and passes them in.
|
|
18
20
|
*/
|
|
19
|
-
export declare function mapTaskToTaskRow(task: TodoTaskWithList): TaskRow;
|
|
21
|
+
export declare function mapTaskToTaskRow(task: TodoTaskWithList, id: string, folderId: string): TaskRow;
|
|
20
22
|
//# sourceMappingURL=task-mapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-mapper.d.ts","sourceRoot":"","sources":["../../../src/graph/mappers/task-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,OAAO,KAAK,KAAK,cAAc,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"task-mapper.d.ts","sourceRoot":"","sources":["../../../src/graph/mappers/task-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,OAAO,KAAK,KAAK,cAAc,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAO5D;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,QAAQ;IAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,gBAAgB,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAmB9F"}
|
|
@@ -2,19 +2,21 @@
|
|
|
2
2
|
* Copyright (c) 2026 JBC Tech Solutions, LLC
|
|
3
3
|
* Licensed under the MIT License. See LICENSE file in the project root.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { dateTimeTimeZoneToTimestamp, importanceToPriority, createGraphContentPath, } from './utils.js';
|
|
6
6
|
/**
|
|
7
|
-
* Maps a Graph TodoTask to a TaskRow.
|
|
7
|
+
* Maps a Graph TodoTask to a TaskRow. `id`/`folderId` are pre-minted durable
|
|
8
|
+
* tokens (`td_`/`tl_`) — mappers are pure and cannot mint alias tokens
|
|
9
|
+
* themselves, so the repository computes them and passes them in.
|
|
8
10
|
*/
|
|
9
|
-
export function mapTaskToTaskRow(task) {
|
|
11
|
+
export function mapTaskToTaskRow(task, id, folderId) {
|
|
10
12
|
const taskId = task.id ?? '';
|
|
11
13
|
// Type assertions needed due to Graph API's NullableOption types
|
|
12
14
|
// which are incompatible with exactOptionalPropertyTypes
|
|
13
15
|
const dueDateTime = task.dueDateTime;
|
|
14
16
|
const startDateTime = task.startDateTime;
|
|
15
17
|
return {
|
|
16
|
-
id
|
|
17
|
-
folderId
|
|
18
|
+
id,
|
|
19
|
+
folderId,
|
|
18
20
|
name: task.title ?? null,
|
|
19
21
|
isCompleted: task.status === 'completed' ? 1 : 0,
|
|
20
22
|
dueDate: dateTimeTimeZoneToTimestamp(dueDateTime),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-mapper.js","sourceRoot":"","sources":["../../../src/graph/mappers/task-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"task-mapper.js","sourceRoot":"","sources":["../../../src/graph/mappers/task-mapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EACL,2BAA2B,EAC3B,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,YAAY,CAAC;AASpB;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAsB,EAAE,EAAU,EAAE,QAAgB;IACnF,MAAM,MAAM,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC;IAE7B,iEAAiE;IACjE,yDAAyD;IACzD,MAAM,WAAW,GAAG,IAAI,CAAC,WAA0E,CAAC;IACpG,MAAM,aAAa,GAAG,IAAI,CAAC,aAA4E,CAAC;IAExG,OAAO;QACL,EAAE;QACF,QAAQ;QACR,IAAI,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI;QACxB,WAAW,EAAE,IAAI,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAChD,OAAO,EAAE,2BAA2B,CAAC,WAAW,CAAC;QACjD,SAAS,EAAE,2BAA2B,CAAC,aAAa,CAAC;QACrD,QAAQ,EAAE,oBAAoB,CAAC,IAAI,CAAC,UAAU,CAAC;QAC/C,WAAW,EAAE,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/C,YAAY,EAAE,sBAAsB,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,IAAI,SAAS,IAAI,MAAM,EAAE,CAAC;KAC1F,CAAC;AACJ,CAAC"}
|
|
@@ -5,16 +5,6 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Utility functions for mappers.
|
|
7
7
|
*/
|
|
8
|
-
/**
|
|
9
|
-
* Hashes a string ID to a numeric ID.
|
|
10
|
-
*
|
|
11
|
-
* Graph API uses string UUIDs while our row types use numeric IDs.
|
|
12
|
-
* This creates a deterministic numeric ID from a string.
|
|
13
|
-
*
|
|
14
|
-
* Note: There's a small chance of collision, but it's acceptable
|
|
15
|
-
* for our use case (display purposes only, not database operations).
|
|
16
|
-
*/
|
|
17
|
-
export declare function hashStringToNumber(str: string): number;
|
|
18
8
|
/**
|
|
19
9
|
* Parses an ISO date string to a Unix timestamp (seconds).
|
|
20
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/graph/mappers/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/graph/mappers/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAehF;AAQD;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,GAC9D,MAAM,GAAG,IAAI,CAuBf;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CASlF;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,GA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AE,EAAE,MAAM,GAAG,MAAM,CAEvE"}
|
|
@@ -5,25 +5,6 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Utility functions for mappers.
|
|
7
7
|
*/
|
|
8
|
-
/**
|
|
9
|
-
* Hashes a string ID to a numeric ID.
|
|
10
|
-
*
|
|
11
|
-
* Graph API uses string UUIDs while our row types use numeric IDs.
|
|
12
|
-
* This creates a deterministic numeric ID from a string.
|
|
13
|
-
*
|
|
14
|
-
* Note: There's a small chance of collision, but it's acceptable
|
|
15
|
-
* for our use case (display purposes only, not database operations).
|
|
16
|
-
*/
|
|
17
|
-
export function hashStringToNumber(str) {
|
|
18
|
-
let hash = 0;
|
|
19
|
-
for (let i = 0; i < str.length; i++) {
|
|
20
|
-
const char = str.charCodeAt(i);
|
|
21
|
-
hash = ((hash << 5) - hash) + char;
|
|
22
|
-
hash = hash & hash; // Convert to 32-bit integer
|
|
23
|
-
}
|
|
24
|
-
// Ensure positive number
|
|
25
|
-
return Math.abs(hash);
|
|
26
|
-
}
|
|
27
8
|
/**
|
|
28
9
|
* Parses an ISO date string to a Unix timestamp (seconds).
|
|
29
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/graph/mappers/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/graph/mappers/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,OAAkC;IAC/D,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;YAC1B,O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