@jbctechsolutions/mcp-office365 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +667 -0
  3. package/dist/applescript/account-repository.d.ts +30 -0
  4. package/dist/applescript/account-repository.d.ts.map +1 -0
  5. package/dist/applescript/account-repository.js +38 -0
  6. package/dist/applescript/account-repository.js.map +1 -0
  7. package/dist/applescript/account-scripts.d.ts +21 -0
  8. package/dist/applescript/account-scripts.d.ts.map +1 -0
  9. package/dist/applescript/account-scripts.js +180 -0
  10. package/dist/applescript/account-scripts.js.map +1 -0
  11. package/dist/applescript/calendar-manager.d.ts +44 -0
  12. package/dist/applescript/calendar-manager.d.ts.map +1 -0
  13. package/dist/applescript/calendar-manager.js +92 -0
  14. package/dist/applescript/calendar-manager.js.map +1 -0
  15. package/dist/applescript/calendar-writer.d.ts +36 -0
  16. package/dist/applescript/calendar-writer.d.ts.map +1 -0
  17. package/dist/applescript/calendar-writer.js +94 -0
  18. package/dist/applescript/calendar-writer.js.map +1 -0
  19. package/dist/applescript/content-readers.d.ts +114 -0
  20. package/dist/applescript/content-readers.d.ts.map +1 -0
  21. package/dist/applescript/content-readers.js +328 -0
  22. package/dist/applescript/content-readers.js.map +1 -0
  23. package/dist/applescript/executor.d.ts +60 -0
  24. package/dist/applescript/executor.d.ts.map +1 -0
  25. package/dist/applescript/executor.js +173 -0
  26. package/dist/applescript/executor.js.map +1 -0
  27. package/dist/applescript/index.d.ts +20 -0
  28. package/dist/applescript/index.d.ts.map +1 -0
  29. package/dist/applescript/index.js +29 -0
  30. package/dist/applescript/index.js.map +1 -0
  31. package/dist/applescript/mail-sender.d.ts +38 -0
  32. package/dist/applescript/mail-sender.d.ts.map +1 -0
  33. package/dist/applescript/mail-sender.js +67 -0
  34. package/dist/applescript/mail-sender.js.map +1 -0
  35. package/dist/applescript/parser.d.ts +235 -0
  36. package/dist/applescript/parser.d.ts.map +1 -0
  37. package/dist/applescript/parser.js +496 -0
  38. package/dist/applescript/parser.js.map +1 -0
  39. package/dist/applescript/repository.d.ts +64 -0
  40. package/dist/applescript/repository.d.ts.map +1 -0
  41. package/dist/applescript/repository.js +444 -0
  42. package/dist/applescript/repository.js.map +1 -0
  43. package/dist/applescript/scripts.d.ts +265 -0
  44. package/dist/applescript/scripts.d.ts.map +1 -0
  45. package/dist/applescript/scripts.js +1483 -0
  46. package/dist/applescript/scripts.js.map +1 -0
  47. package/dist/approval/hash.d.ts +87 -0
  48. package/dist/approval/hash.d.ts.map +1 -0
  49. package/dist/approval/hash.js +102 -0
  50. package/dist/approval/hash.js.map +1 -0
  51. package/dist/approval/index.d.ts +13 -0
  52. package/dist/approval/index.d.ts.map +1 -0
  53. package/dist/approval/index.js +7 -0
  54. package/dist/approval/index.js.map +1 -0
  55. package/dist/approval/token-manager.d.ts +51 -0
  56. package/dist/approval/token-manager.d.ts.map +1 -0
  57. package/dist/approval/token-manager.js +111 -0
  58. package/dist/approval/token-manager.js.map +1 -0
  59. package/dist/approval/types.d.ts +44 -0
  60. package/dist/approval/types.d.ts.map +1 -0
  61. package/dist/approval/types.js +6 -0
  62. package/dist/approval/types.js.map +1 -0
  63. package/dist/cli.d.ts +30 -0
  64. package/dist/cli.d.ts.map +1 -0
  65. package/dist/cli.js +143 -0
  66. package/dist/cli.js.map +1 -0
  67. package/dist/config.d.ts +27 -0
  68. package/dist/config.d.ts.map +1 -0
  69. package/dist/config.js +42 -0
  70. package/dist/config.js.map +1 -0
  71. package/dist/database/connection.d.ts +77 -0
  72. package/dist/database/connection.d.ts.map +1 -0
  73. package/dist/database/connection.js +130 -0
  74. package/dist/database/connection.js.map +1 -0
  75. package/dist/database/index.d.ts +11 -0
  76. package/dist/database/index.d.ts.map +1 -0
  77. package/dist/database/index.js +11 -0
  78. package/dist/database/index.js.map +1 -0
  79. package/dist/database/queries.d.ts +93 -0
  80. package/dist/database/queries.d.ts.map +1 -0
  81. package/dist/database/queries.js +430 -0
  82. package/dist/database/queries.js.map +1 -0
  83. package/dist/database/repository.d.ts +198 -0
  84. package/dist/database/repository.d.ts.map +1 -0
  85. package/dist/database/repository.js +199 -0
  86. package/dist/database/repository.js.map +1 -0
  87. package/dist/graph/attachments.d.ts +72 -0
  88. package/dist/graph/attachments.d.ts.map +1 -0
  89. package/dist/graph/attachments.js +207 -0
  90. package/dist/graph/attachments.js.map +1 -0
  91. package/dist/graph/auth/config.d.ts +34 -0
  92. package/dist/graph/auth/config.d.ts.map +1 -0
  93. package/dist/graph/auth/config.js +78 -0
  94. package/dist/graph/auth/config.js.map +1 -0
  95. package/dist/graph/auth/device-code-flow.d.ts +55 -0
  96. package/dist/graph/auth/device-code-flow.d.ts.map +1 -0
  97. package/dist/graph/auth/device-code-flow.js +180 -0
  98. package/dist/graph/auth/device-code-flow.js.map +1 -0
  99. package/dist/graph/auth/index.d.ts +13 -0
  100. package/dist/graph/auth/index.d.ts.map +1 -0
  101. package/dist/graph/auth/index.js +13 -0
  102. package/dist/graph/auth/index.js.map +1 -0
  103. package/dist/graph/auth/token-cache.d.ts +41 -0
  104. package/dist/graph/auth/token-cache.d.ts.map +1 -0
  105. package/dist/graph/auth/token-cache.js +105 -0
  106. package/dist/graph/auth/token-cache.js.map +1 -0
  107. package/dist/graph/client/batch.d.ts +38 -0
  108. package/dist/graph/client/batch.d.ts.map +1 -0
  109. package/dist/graph/client/batch.js +33 -0
  110. package/dist/graph/client/batch.js.map +1 -0
  111. package/dist/graph/client/cache.d.ts +64 -0
  112. package/dist/graph/client/cache.d.ts.map +1 -0
  113. package/dist/graph/client/cache.js +108 -0
  114. package/dist/graph/client/cache.js.map +1 -0
  115. package/dist/graph/client/graph-client.d.ts +630 -0
  116. package/dist/graph/client/graph-client.d.ts.map +1 -0
  117. package/dist/graph/client/graph-client.js +1771 -0
  118. package/dist/graph/client/graph-client.js.map +1 -0
  119. package/dist/graph/client/index.d.ts +12 -0
  120. package/dist/graph/client/index.d.ts.map +1 -0
  121. package/dist/graph/client/index.js +12 -0
  122. package/dist/graph/client/index.js.map +1 -0
  123. package/dist/graph/content-readers.d.ts +106 -0
  124. package/dist/graph/content-readers.d.ts.map +1 -0
  125. package/dist/graph/content-readers.js +321 -0
  126. package/dist/graph/content-readers.js.map +1 -0
  127. package/dist/graph/index.d.ts +18 -0
  128. package/dist/graph/index.d.ts.map +1 -0
  129. package/dist/graph/index.js +23 -0
  130. package/dist/graph/index.js.map +1 -0
  131. package/dist/graph/mailbox-adapter.d.ts +30 -0
  132. package/dist/graph/mailbox-adapter.d.ts.map +1 -0
  133. package/dist/graph/mailbox-adapter.js +59 -0
  134. package/dist/graph/mailbox-adapter.js.map +1 -0
  135. package/dist/graph/mappers/contact-mapper.d.ts +14 -0
  136. package/dist/graph/mappers/contact-mapper.d.ts.map +1 -0
  137. package/dist/graph/mappers/contact-mapper.js +20 -0
  138. package/dist/graph/mappers/contact-mapper.js.map +1 -0
  139. package/dist/graph/mappers/email-mapper.d.ts +14 -0
  140. package/dist/graph/mappers/email-mapper.d.ts.map +1 -0
  141. package/dist/graph/mappers/email-mapper.js +44 -0
  142. package/dist/graph/mappers/email-mapper.js.map +1 -0
  143. package/dist/graph/mappers/event-mapper.d.ts +14 -0
  144. package/dist/graph/mappers/event-mapper.d.ts.map +1 -0
  145. package/dist/graph/mappers/event-mapper.js +31 -0
  146. package/dist/graph/mappers/event-mapper.js.map +1 -0
  147. package/dist/graph/mappers/folder-mapper.d.ts +22 -0
  148. package/dist/graph/mappers/folder-mapper.d.ts.map +1 -0
  149. package/dist/graph/mappers/folder-mapper.js +51 -0
  150. package/dist/graph/mappers/folder-mapper.js.map +1 -0
  151. package/dist/graph/mappers/index.d.ts +16 -0
  152. package/dist/graph/mappers/index.d.ts.map +1 -0
  153. package/dist/graph/mappers/index.js +16 -0
  154. package/dist/graph/mappers/index.js.map +1 -0
  155. package/dist/graph/mappers/task-mapper.d.ts +20 -0
  156. package/dist/graph/mappers/task-mapper.d.ts.map +1 -0
  157. package/dist/graph/mappers/task-mapper.js +27 -0
  158. package/dist/graph/mappers/task-mapper.js.map +1 -0
  159. package/dist/graph/mappers/utils.d.ts +97 -0
  160. package/dist/graph/mappers/utils.d.ts.map +1 -0
  161. package/dist/graph/mappers/utils.js +186 -0
  162. package/dist/graph/mappers/utils.js.map +1 -0
  163. package/dist/graph/repository.d.ts +1104 -0
  164. package/dist/graph/repository.d.ts.map +1 -0
  165. package/dist/graph/repository.js +2999 -0
  166. package/dist/graph/repository.js.map +1 -0
  167. package/dist/index.d.ts +21 -0
  168. package/dist/index.d.ts.map +1 -0
  169. package/dist/index.js +6052 -0
  170. package/dist/index.js.map +1 -0
  171. package/dist/parsers/html-stripper.d.ts +41 -0
  172. package/dist/parsers/html-stripper.d.ts.map +1 -0
  173. package/dist/parsers/html-stripper.js +179 -0
  174. package/dist/parsers/html-stripper.js.map +1 -0
  175. package/dist/parsers/index.d.ts +12 -0
  176. package/dist/parsers/index.d.ts.map +1 -0
  177. package/dist/parsers/index.js +12 -0
  178. package/dist/parsers/index.js.map +1 -0
  179. package/dist/parsers/olk15.d.ts +87 -0
  180. package/dist/parsers/olk15.d.ts.map +1 -0
  181. package/dist/parsers/olk15.js +368 -0
  182. package/dist/parsers/olk15.js.map +1 -0
  183. package/dist/signature.d.ts +22 -0
  184. package/dist/signature.d.ts.map +1 -0
  185. package/dist/signature.js +89 -0
  186. package/dist/signature.js.map +1 -0
  187. package/dist/tools/calendar-permissions.d.ts +79 -0
  188. package/dist/tools/calendar-permissions.d.ts.map +1 -0
  189. package/dist/tools/calendar-permissions.js +121 -0
  190. package/dist/tools/calendar-permissions.js.map +1 -0
  191. package/dist/tools/calendar.d.ts +208 -0
  192. package/dist/tools/calendar.d.ts.map +1 -0
  193. package/dist/tools/calendar.js +247 -0
  194. package/dist/tools/calendar.js.map +1 -0
  195. package/dist/tools/categories.d.ts +94 -0
  196. package/dist/tools/categories.d.ts.map +1 -0
  197. package/dist/tools/categories.js +117 -0
  198. package/dist/tools/categories.js.map +1 -0
  199. package/dist/tools/checklist-items.d.ts +89 -0
  200. package/dist/tools/checklist-items.d.ts.map +1 -0
  201. package/dist/tools/checklist-items.js +140 -0
  202. package/dist/tools/checklist-items.js.map +1 -0
  203. package/dist/tools/contacts.d.ts +94 -0
  204. package/dist/tools/contacts.d.ts.map +1 -0
  205. package/dist/tools/contacts.js +134 -0
  206. package/dist/tools/contacts.js.map +1 -0
  207. package/dist/tools/excel.d.ts +96 -0
  208. package/dist/tools/excel.d.ts.map +1 -0
  209. package/dist/tools/excel.js +165 -0
  210. package/dist/tools/excel.js.map +1 -0
  211. package/dist/tools/focused-overrides.d.ts +70 -0
  212. package/dist/tools/focused-overrides.d.ts.map +1 -0
  213. package/dist/tools/focused-overrides.js +117 -0
  214. package/dist/tools/focused-overrides.js.map +1 -0
  215. package/dist/tools/index.d.ts +22 -0
  216. package/dist/tools/index.d.ts.map +1 -0
  217. package/dist/tools/index.js +34 -0
  218. package/dist/tools/index.js.map +1 -0
  219. package/dist/tools/linked-resources.d.ts +74 -0
  220. package/dist/tools/linked-resources.d.ts.map +1 -0
  221. package/dist/tools/linked-resources.js +122 -0
  222. package/dist/tools/linked-resources.js.map +1 -0
  223. package/dist/tools/mail-rules.d.ts +98 -0
  224. package/dist/tools/mail-rules.d.ts.map +1 -0
  225. package/dist/tools/mail-rules.js +169 -0
  226. package/dist/tools/mail-rules.js.map +1 -0
  227. package/dist/tools/mail-send.d.ts +314 -0
  228. package/dist/tools/mail-send.d.ts.map +1 -0
  229. package/dist/tools/mail-send.js +555 -0
  230. package/dist/tools/mail-send.js.map +1 -0
  231. package/dist/tools/mail.d.ts +127 -0
  232. package/dist/tools/mail.d.ts.map +1 -0
  233. package/dist/tools/mail.js +311 -0
  234. package/dist/tools/mail.js.map +1 -0
  235. package/dist/tools/mailbox-organization.d.ts +301 -0
  236. package/dist/tools/mailbox-organization.d.ts.map +1 -0
  237. package/dist/tools/mailbox-organization.js +541 -0
  238. package/dist/tools/mailbox-organization.js.map +1 -0
  239. package/dist/tools/meetings.d.ts +114 -0
  240. package/dist/tools/meetings.d.ts.map +1 -0
  241. package/dist/tools/meetings.js +110 -0
  242. package/dist/tools/meetings.js.map +1 -0
  243. package/dist/tools/notes.d.ts +74 -0
  244. package/dist/tools/notes.d.ts.map +1 -0
  245. package/dist/tools/notes.js +136 -0
  246. package/dist/tools/notes.js.map +1 -0
  247. package/dist/tools/onedrive.d.ts +194 -0
  248. package/dist/tools/onedrive.d.ts.map +1 -0
  249. package/dist/tools/onedrive.js +257 -0
  250. package/dist/tools/onedrive.js.map +1 -0
  251. package/dist/tools/people.d.ts +129 -0
  252. package/dist/tools/people.d.ts.map +1 -0
  253. package/dist/tools/people.js +195 -0
  254. package/dist/tools/people.js.map +1 -0
  255. package/dist/tools/planner-visualization.d.ts +91 -0
  256. package/dist/tools/planner-visualization.d.ts.map +1 -0
  257. package/dist/tools/planner-visualization.js +192 -0
  258. package/dist/tools/planner-visualization.js.map +1 -0
  259. package/dist/tools/planner.d.ts +288 -0
  260. package/dist/tools/planner.d.ts.map +1 -0
  261. package/dist/tools/planner.js +368 -0
  262. package/dist/tools/planner.js.map +1 -0
  263. package/dist/tools/scheduling.d.ts +49 -0
  264. package/dist/tools/scheduling.d.ts.map +1 -0
  265. package/dist/tools/scheduling.js +115 -0
  266. package/dist/tools/scheduling.js.map +1 -0
  267. package/dist/tools/sharepoint.d.ts +115 -0
  268. package/dist/tools/sharepoint.d.ts.map +1 -0
  269. package/dist/tools/sharepoint.js +99 -0
  270. package/dist/tools/sharepoint.js.map +1 -0
  271. package/dist/tools/task-attachments.d.ts +74 -0
  272. package/dist/tools/task-attachments.d.ts.map +1 -0
  273. package/dist/tools/task-attachments.js +122 -0
  274. package/dist/tools/task-attachments.js.map +1 -0
  275. package/dist/tools/tasks.d.ts +74 -0
  276. package/dist/tools/tasks.d.ts.map +1 -0
  277. package/dist/tools/tasks.js +126 -0
  278. package/dist/tools/tasks.js.map +1 -0
  279. package/dist/tools/teams.d.ts +389 -0
  280. package/dist/tools/teams.d.ts.map +1 -0
  281. package/dist/tools/teams.js +546 -0
  282. package/dist/tools/teams.js.map +1 -0
  283. package/dist/types/calendar.d.ts +60 -0
  284. package/dist/types/calendar.d.ts.map +1 -0
  285. package/dist/types/calendar.js +15 -0
  286. package/dist/types/calendar.js.map +1 -0
  287. package/dist/types/contacts.d.ts +96 -0
  288. package/dist/types/contacts.d.ts.map +1 -0
  289. package/dist/types/contacts.js +41 -0
  290. package/dist/types/contacts.js.map +1 -0
  291. package/dist/types/index.d.ts +15 -0
  292. package/dist/types/index.d.ts.map +1 -0
  293. package/dist/types/index.js +16 -0
  294. package/dist/types/index.js.map +1 -0
  295. package/dist/types/mail.d.ts +108 -0
  296. package/dist/types/mail.d.ts.map +1 -0
  297. package/dist/types/mail.js +40 -0
  298. package/dist/types/mail.js.map +1 -0
  299. package/dist/types/notes.d.ts +26 -0
  300. package/dist/types/notes.d.ts.map +1 -0
  301. package/dist/types/notes.js +6 -0
  302. package/dist/types/notes.js.map +1 -0
  303. package/dist/types/tasks.d.ts +31 -0
  304. package/dist/types/tasks.d.ts.map +1 -0
  305. package/dist/types/tasks.js +6 -0
  306. package/dist/types/tasks.js.map +1 -0
  307. package/dist/utils/dates.d.ts +66 -0
  308. package/dist/utils/dates.d.ts.map +1 -0
  309. package/dist/utils/dates.js +94 -0
  310. package/dist/utils/dates.js.map +1 -0
  311. package/dist/utils/errors.d.ts +218 -0
  312. package/dist/utils/errors.d.ts.map +1 -0
  313. package/dist/utils/errors.js +306 -0
  314. package/dist/utils/errors.js.map +1 -0
  315. package/dist/utils/index.d.ts +10 -0
  316. package/dist/utils/index.d.ts.map +1 -0
  317. package/dist/utils/index.js +10 -0
  318. package/dist/utils/index.js.map +1 -0
  319. package/dist/visualization/html.d.ts +26 -0
  320. package/dist/visualization/html.d.ts.map +1 -0
  321. package/dist/visualization/html.js +306 -0
  322. package/dist/visualization/html.js.map +1 -0
  323. package/dist/visualization/markdown.d.ts +25 -0
  324. package/dist/visualization/markdown.d.ts.map +1 -0
  325. package/dist/visualization/markdown.js +186 -0
  326. package/dist/visualization/markdown.js.map +1 -0
  327. package/dist/visualization/mermaid.d.ts +25 -0
  328. package/dist/visualization/mermaid.d.ts.map +1 -0
  329. package/dist/visualization/mermaid.js +158 -0
  330. package/dist/visualization/mermaid.js.map +1 -0
  331. package/dist/visualization/svg.d.ts +25 -0
  332. package/dist/visualization/svg.d.ts.map +1 -0
  333. package/dist/visualization/svg.js +282 -0
  334. package/dist/visualization/svg.js.map +1 -0
  335. package/dist/visualization/types.d.ts +43 -0
  336. package/dist/visualization/types.d.ts.map +1 -0
  337. package/dist/visualization/types.js +34 -0
  338. package/dist/visualization/types.js.map +1 -0
  339. package/package.json +88 -0
@@ -0,0 +1,96 @@
1
+ /**
2
+ * Copyright (c) 2026 JBC Tech Solutions, LLC
3
+ * Licensed under the MIT License. See LICENSE file in the project root.
4
+ */
5
+ /**
6
+ * Contact-related type definitions.
7
+ */
8
+ /**
9
+ * Contact record types.
10
+ */
11
+ export declare const ContactType: {
12
+ readonly Person: 0;
13
+ readonly DistributionList: 1;
14
+ };
15
+ export type ContactTypeValue = (typeof ContactType)[keyof typeof ContactType];
16
+ /**
17
+ * Contact summary for list views.
18
+ */
19
+ export interface ContactSummary {
20
+ readonly id: number;
21
+ readonly folderId: number;
22
+ readonly displayName: string | null;
23
+ readonly sortName: string | null;
24
+ readonly contactType: ContactTypeValue;
25
+ }
26
+ /**
27
+ * Full contact details including all fields.
28
+ */
29
+ export interface Contact extends ContactSummary {
30
+ readonly firstName: string | null;
31
+ readonly lastName: string | null;
32
+ readonly middleName: string | null;
33
+ readonly nickname: string | null;
34
+ readonly company: string | null;
35
+ readonly jobTitle: string | null;
36
+ readonly department: string | null;
37
+ readonly emails: readonly ContactEmail[];
38
+ readonly phones: readonly ContactPhone[];
39
+ readonly addresses: readonly ContactAddress[];
40
+ readonly notes: string | null;
41
+ }
42
+ /**
43
+ * Contact email address.
44
+ */
45
+ export interface ContactEmail {
46
+ readonly type: EmailType;
47
+ readonly address: string;
48
+ }
49
+ /**
50
+ * Email address types.
51
+ */
52
+ export declare const EmailType: {
53
+ readonly Work: "work";
54
+ readonly Home: "home";
55
+ readonly Other: "other";
56
+ };
57
+ export type EmailType = (typeof EmailType)[keyof typeof EmailType];
58
+ /**
59
+ * Contact phone number.
60
+ */
61
+ export interface ContactPhone {
62
+ readonly type: PhoneType;
63
+ readonly number: string;
64
+ }
65
+ /**
66
+ * Phone number types.
67
+ */
68
+ export declare const PhoneType: {
69
+ readonly Work: "work";
70
+ readonly Home: "home";
71
+ readonly Mobile: "mobile";
72
+ readonly Fax: "fax";
73
+ readonly Other: "other";
74
+ };
75
+ export type PhoneType = (typeof PhoneType)[keyof typeof PhoneType];
76
+ /**
77
+ * Contact postal address.
78
+ */
79
+ export interface ContactAddress {
80
+ readonly type: AddressType;
81
+ readonly street: string | null;
82
+ readonly city: string | null;
83
+ readonly state: string | null;
84
+ readonly postalCode: string | null;
85
+ readonly country: string | null;
86
+ }
87
+ /**
88
+ * Address types.
89
+ */
90
+ export declare const AddressType: {
91
+ readonly Work: "work";
92
+ readonly Home: "home";
93
+ readonly Other: "other";
94
+ };
95
+ export type AddressType = (typeof AddressType)[keyof typeof AddressType];
96
+ //# sourceMappingURL=contacts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../../src/types/contacts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW;;;CAGd,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC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AACH,eAAO,MAAM,SAAS;;;;;;CAMZ,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED;;GAEG;AACH,eAAO,MAAM,WAAW;;;;CAId,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Copyright (c) 2026 JBC Tech Solutions, LLC
3
+ * Licensed under the MIT License. See LICENSE file in the project root.
4
+ */
5
+ /**
6
+ * Contact-related type definitions.
7
+ */
8
+ /**
9
+ * Contact record types.
10
+ */
11
+ export const ContactType = {
12
+ Person: 0,
13
+ DistributionList: 1,
14
+ };
15
+ /**
16
+ * Email address types.
17
+ */
18
+ export const EmailType = {
19
+ Work: 'work',
20
+ Home: 'home',
21
+ Other: 'other',
22
+ };
23
+ /**
24
+ * Phone number types.
25
+ */
26
+ export const PhoneType = {
27
+ Work: 'work',
28
+ Home: 'home',
29
+ Mobile: 'mobile',
30
+ Fax: 'fax',
31
+ Other: 'other',
32
+ };
33
+ /**
34
+ * Address types.
35
+ */
36
+ export const AddressType = {
37
+ Work: 'work',
38
+ Home: 'home',
39
+ Other: 'other',
40
+ };
41
+ //# sourceMappingURL=contacts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../src/types/contacts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM,EAAE,CAAC;IACT,gBAAgB,EAAE,CAAC;CACX,CAAC;AAwCX;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAYX;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;CACN,CAAC;AAgBX;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Copyright (c) 2026 JBC Tech Solutions, LLC
3
+ * Licensed under the MIT License. See LICENSE file in the project root.
4
+ */
5
+ /**
6
+ * Type definitions for Outlook MCP Server.
7
+ *
8
+ * Re-exports all domain types for convenient importing.
9
+ */
10
+ export { SpecialFolderType, type SpecialFolderTypeValue, Priority, type PriorityValue, FlagStatus, type FlagStatusValue, type Folder, type EmailSummary, type Email, type AttachmentInfo, type UnreadCount, } from './mail.js';
11
+ export { type CalendarFolder, type EventSummary, type Event, type Attendee, AttendeeStatus, } from './calendar.js';
12
+ export { ContactType, type ContactTypeValue, type ContactSummary, type Contact, type ContactEmail, EmailType, type ContactPhone, PhoneType, type ContactAddress, AddressType, } from './contacts.js';
13
+ export { type TaskSummary, type Task } from './tasks.js';
14
+ export { type NoteSummary, type Note } from './notes.js';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AAGH,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,QAAQ,EACR,KAAK,aAAa,EAClB,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,KAAK,EACV,KAAK,cAAc,EACnB,KAAK,WAAW,GACjB,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,KAAK,EACV,KAAK,QAAQ,EACb,cAAc,GACf,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,SAAS,EACT,KAAK,YAAY,EACjB,SAAS,EACT,KAAK,cAAc,EACnB,WAAW,GACZ,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAGzD,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright (c) 2026 JBC Tech Solutions, LLC
3
+ * Licensed under the MIT License. See LICENSE file in the project root.
4
+ */
5
+ /**
6
+ * Type definitions for Outlook MCP Server.
7
+ *
8
+ * Re-exports all domain types for convenient importing.
9
+ */
10
+ // Mail types
11
+ export { SpecialFolderType, Priority, FlagStatus, } from './mail.js';
12
+ // Calendar types
13
+ export { AttendeeStatus, } from './calendar.js';
14
+ // Contact types
15
+ export { ContactType, EmailType, PhoneType, AddressType, } from './contacts.js';
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AAEH,aAAa;AACb,OAAO,EACL,iBAAiB,EAEjB,QAAQ,EAER,UAAU,GAOX,MAAM,WAAW,CAAC;AAEnB,iBAAiB;AACjB,OAAO,EAKL,cAAc,GACf,MAAM,eAAe,CAAC;AAEvB,gBAAgB;AAChB,OAAO,EACL,WAAW,EAKX,SAAS,EAET,SAAS,EAET,WAAW,GACZ,MAAM,eAAe,CAAC"}
@@ -0,0 +1,108 @@
1
+ /**
2
+ * Copyright (c) 2026 JBC Tech Solutions, LLC
3
+ * Licensed under the MIT License. See LICENSE file in the project root.
4
+ */
5
+ /**
6
+ * Mail-related type definitions.
7
+ */
8
+ /**
9
+ * Special folder types in Outlook for Mac.
10
+ */
11
+ export declare const SpecialFolderType: {
12
+ readonly Inbox: 1;
13
+ readonly Outbox: 2;
14
+ readonly Calendar: 4;
15
+ readonly Sent: 8;
16
+ readonly Deleted: 9;
17
+ readonly Drafts: 10;
18
+ readonly Junk: 12;
19
+ };
20
+ export type SpecialFolderTypeValue = (typeof SpecialFolderType)[keyof typeof SpecialFolderType];
21
+ /**
22
+ * Email priority levels.
23
+ */
24
+ export declare const Priority: {
25
+ readonly High: 1;
26
+ readonly Normal: 3;
27
+ readonly Low: 5;
28
+ };
29
+ export type PriorityValue = (typeof Priority)[keyof typeof Priority];
30
+ /**
31
+ * Email flag status.
32
+ */
33
+ export declare const FlagStatus: {
34
+ readonly None: 0;
35
+ readonly Flagged: 1;
36
+ readonly Completed: 2;
37
+ };
38
+ export type FlagStatusValue = (typeof FlagStatus)[keyof typeof FlagStatus];
39
+ /**
40
+ * Mail folder with message counts.
41
+ */
42
+ export interface Folder {
43
+ readonly id: number;
44
+ readonly name: string;
45
+ readonly parentId: number | null;
46
+ readonly specialType: number;
47
+ readonly folderType: number;
48
+ readonly accountId: number;
49
+ readonly messageCount: number;
50
+ readonly unreadCount: number;
51
+ }
52
+ /**
53
+ * Email summary for list views.
54
+ */
55
+ export interface EmailSummary {
56
+ readonly id: number;
57
+ readonly folderId: number;
58
+ readonly subject: string | null;
59
+ readonly sender: string | null;
60
+ readonly senderAddress: string | null;
61
+ readonly preview: string | null;
62
+ readonly isRead: boolean;
63
+ readonly timeReceived: string | null;
64
+ readonly timeSent: string | null;
65
+ readonly hasAttachment: boolean;
66
+ readonly priority: PriorityValue;
67
+ readonly flagStatus: FlagStatusValue;
68
+ readonly categories: readonly string[];
69
+ }
70
+ /**
71
+ * Full email details including body content.
72
+ */
73
+ export interface Email extends EmailSummary {
74
+ readonly recipients: string | null;
75
+ readonly displayTo: string | null;
76
+ readonly toAddresses: string | null;
77
+ readonly ccAddresses: string | null;
78
+ readonly size: number;
79
+ readonly messageId: string | null;
80
+ readonly conversationId: number | null;
81
+ readonly body: string | null;
82
+ readonly htmlBody: string | null;
83
+ }
84
+ /**
85
+ * Attachment metadata for an email.
86
+ */
87
+ export interface AttachmentInfo {
88
+ /** 1-based index (matches AppleScript attachment ordering). */
89
+ readonly index: number;
90
+ /** Filename of the attachment. */
91
+ readonly name: string;
92
+ /** File size in bytes. */
93
+ readonly size: number;
94
+ /** MIME content type (e.g., "application/pdf"). */
95
+ readonly contentType: string;
96
+ }
97
+ /** Maximum attachment size for download (25MB). */
98
+ export declare const MAX_ATTACHMENT_DOWNLOAD_SIZE: number;
99
+ /** Maximum total attachment size for sending (25MB). */
100
+ export declare const MAX_TOTAL_ATTACHMENT_SIZE: number;
101
+ /**
102
+ * Unread count result.
103
+ */
104
+ export interface UnreadCount {
105
+ readonly total: number;
106
+ readonly byFolder?: Record<number, number>;
107
+ }
108
+ //# sourceMappingURL=mail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mail.d.ts","sourceRoot":"","sources":["../../src/types/mail.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;CAQpB,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,iBAAiB,CAAC,CAAC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AAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5C"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Copyright (c) 2026 JBC Tech Solutions, LLC
3
+ * Licensed under the MIT License. See LICENSE file in the project root.
4
+ */
5
+ /**
6
+ * Mail-related type definitions.
7
+ */
8
+ /**
9
+ * Special folder types in Outlook for Mac.
10
+ */
11
+ export const SpecialFolderType = {
12
+ Inbox: 1,
13
+ Outbox: 2,
14
+ Calendar: 4,
15
+ Sent: 8,
16
+ Deleted: 9,
17
+ Drafts: 10,
18
+ Junk: 12,
19
+ };
20
+ /**
21
+ * Email priority levels.
22
+ */
23
+ export const Priority = {
24
+ High: 1,
25
+ Normal: 3,
26
+ Low: 5,
27
+ };
28
+ /**
29
+ * Email flag status.
30
+ */
31
+ export const FlagStatus = {
32
+ None: 0,
33
+ Flagged: 1,
34
+ Completed: 2,
35
+ };
36
+ /** Maximum attachment size for download (25MB). */
37
+ export const MAX_ATTACHMENT_DOWNLOAD_SIZE = 25 * 1024 * 1024;
38
+ /** Maximum total attachment size for sending (25MB). */
39
+ export const MAX_TOTAL_ATTACHMENT_SIZE = 25 * 1024 * 1024;
40
+ //# sourceMappingURL=mail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mail.js","sourceRoot":"","sources":["../../src/types/mail.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;IACT,QAAQ,EAAE,CAAC;IACX,IAAI,EAAE,CAAC;IACP,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,EAAE;IACV,IAAI,EAAE,EAAE;CACA,CAAC;AAKX;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,GAAG,EAAE,CAAC;CACE,CAAC;AAIX;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,CAAC;IACP,OAAO,EAAE,CAAC;IACV,SAAS,EAAE,CAAC;CACJ,CAAC;AAkEX,mDAAmD;AACnD,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAE7D,wDAAwD;AACxD,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright (c) 2026 JBC Tech Solutions, LLC
3
+ * Licensed under the MIT License. See LICENSE file in the project root.
4
+ */
5
+ /**
6
+ * Note-related type definitions.
7
+ */
8
+ /**
9
+ * Note summary for list views.
10
+ */
11
+ export interface NoteSummary {
12
+ readonly id: number;
13
+ readonly folderId: number;
14
+ readonly title: string | null;
15
+ readonly preview: string | null;
16
+ readonly modifiedDate: string | null;
17
+ }
18
+ /**
19
+ * Full note details including body content.
20
+ */
21
+ export interface Note extends NoteSummary {
22
+ readonly body: string | null;
23
+ readonly createdDate: string | null;
24
+ readonly categories: readonly string[];
25
+ }
26
+ //# sourceMappingURL=notes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notes.d.ts","sourceRoot":"","sources":["../../src/types/notes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) 2026 JBC Tech Solutions, LLC
3
+ * Licensed under the MIT License. See LICENSE file in the project root.
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=notes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notes.js","sourceRoot":"","sources":["../../src/types/notes.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright (c) 2026 JBC Tech Solutions, LLC
3
+ * Licensed under the MIT License. See LICENSE file in the project root.
4
+ */
5
+ /**
6
+ * Task-related type definitions.
7
+ */
8
+ import type { PriorityValue } from './mail.js';
9
+ /**
10
+ * Task summary for list views.
11
+ */
12
+ export interface TaskSummary {
13
+ readonly id: number;
14
+ readonly folderId: number;
15
+ readonly name: string | null;
16
+ readonly isCompleted: boolean;
17
+ readonly dueDate: string | null;
18
+ readonly priority: PriorityValue;
19
+ }
20
+ /**
21
+ * Full task details including body content.
22
+ */
23
+ export interface Task extends TaskSummary {
24
+ readonly startDate: string | null;
25
+ readonly completedDate: string | null;
26
+ readonly hasReminder: boolean;
27
+ readonly reminderDate: string | null;
28
+ readonly body: string | null;
29
+ readonly categories: readonly string[];
30
+ }
31
+ //# sourceMappingURL=tasks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/types/tasks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) 2026 JBC Tech Solutions, LLC
3
+ * Licensed under the MIT License. See LICENSE file in the project root.
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=tasks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tasks.js","sourceRoot":"","sources":["../../src/types/tasks.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Copyright (c) 2026 JBC Tech Solutions, LLC
3
+ * Licensed under the MIT License. See LICENSE file in the project root.
4
+ */
5
+ /**
6
+ * Date conversion utilities for Outlook's Apple epoch timestamps.
7
+ *
8
+ * Outlook for Mac stores timestamps as seconds since the Apple epoch
9
+ * (January 1, 2001, 00:00:00 UTC), while JavaScript uses milliseconds
10
+ * since the Unix epoch (January 1, 1970, 00:00:00 UTC).
11
+ */
12
+ /**
13
+ * Seconds between Unix epoch (1970-01-01) and Apple epoch (2001-01-01).
14
+ * Calculated as: Date.UTC(2001, 0, 1) / 1000 = 978307200
15
+ */
16
+ export declare const APPLE_EPOCH_OFFSET = 978307200;
17
+ /**
18
+ * Converts an Apple epoch timestamp to an ISO 8601 string.
19
+ *
20
+ * @param timestamp - Seconds since Apple epoch (2001-01-01), or null/undefined
21
+ * @returns ISO 8601 formatted date string, or null if input is null/undefined
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * appleTimestampToIso(0);
26
+ * // Returns: '2001-01-01T00:00:00.000Z'
27
+ *
28
+ * appleTimestampToIso(null);
29
+ * // Returns: null
30
+ * ```
31
+ */
32
+ export declare function appleTimestampToIso(timestamp: number | null | undefined): string | null;
33
+ /**
34
+ * Converts an Apple epoch timestamp to a JavaScript Date object.
35
+ *
36
+ * @param timestamp - Seconds since Apple epoch (2001-01-01), or null/undefined
37
+ * @returns Date object, or null if input is null/undefined
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * appleTimestampToDate(0);
42
+ * // Returns: Date representing 2001-01-01T00:00:00.000Z
43
+ * ```
44
+ */
45
+ export declare function appleTimestampToDate(timestamp: number | null | undefined): Date | null;
46
+ /**
47
+ * Converts an ISO 8601 string to an Apple epoch timestamp.
48
+ *
49
+ * @param isoString - ISO 8601 formatted date string, or null/undefined
50
+ * @returns Seconds since Apple epoch (2001-01-01), or null if input is null/undefined
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * isoToAppleTimestamp('2001-01-01T00:00:00.000Z');
55
+ * // Returns: 0
56
+ * ```
57
+ */
58
+ export declare function isoToAppleTimestamp(isoString: string | null | undefined): number | null;
59
+ /**
60
+ * Converts a JavaScript Date to an Apple epoch timestamp.
61
+ *
62
+ * @param date - Date object, or null/undefined
63
+ * @returns Seconds since Apple epoch (2001-01-01), or null if input is null/undefined
64
+ */
65
+ export declare function dateToAppleTimestamp(date: Date | null | undefined): number | null;
66
+ //# sourceMappingURL=dates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dates.d.ts","sourceRoot":"","sources":["../../src/utils/dates.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAEH;;;GAGG;AACH,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAE5C;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACnC,MAAM,GAAG,IAAI,CAOf;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACnC,IAAI,GAAG,IAAI,CAOb;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACnC,MAAM,GAAG,IAAI,CAYf;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAOjF"}
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Copyright (c) 2026 JBC Tech Solutions, LLC
3
+ * Licensed under the MIT License. See LICENSE file in the project root.
4
+ */
5
+ /**
6
+ * Date conversion utilities for Outlook's Apple epoch timestamps.
7
+ *
8
+ * Outlook for Mac stores timestamps as seconds since the Apple epoch
9
+ * (January 1, 2001, 00:00:00 UTC), while JavaScript uses milliseconds
10
+ * since the Unix epoch (January 1, 1970, 00:00:00 UTC).
11
+ */
12
+ /**
13
+ * Seconds between Unix epoch (1970-01-01) and Apple epoch (2001-01-01).
14
+ * Calculated as: Date.UTC(2001, 0, 1) / 1000 = 978307200
15
+ */
16
+ export const APPLE_EPOCH_OFFSET = 978307200;
17
+ /**
18
+ * Converts an Apple epoch timestamp to an ISO 8601 string.
19
+ *
20
+ * @param timestamp - Seconds since Apple epoch (2001-01-01), or null/undefined
21
+ * @returns ISO 8601 formatted date string, or null if input is null/undefined
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * appleTimestampToIso(0);
26
+ * // Returns: '2001-01-01T00:00:00.000Z'
27
+ *
28
+ * appleTimestampToIso(null);
29
+ * // Returns: null
30
+ * ```
31
+ */
32
+ export function appleTimestampToIso(timestamp) {
33
+ if (timestamp === null || timestamp === undefined) {
34
+ return null;
35
+ }
36
+ const unixTimestampMs = (timestamp + APPLE_EPOCH_OFFSET) * 1000;
37
+ return new Date(unixTimestampMs).toISOString();
38
+ }
39
+ /**
40
+ * Converts an Apple epoch timestamp to a JavaScript Date object.
41
+ *
42
+ * @param timestamp - Seconds since Apple epoch (2001-01-01), or null/undefined
43
+ * @returns Date object, or null if input is null/undefined
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * appleTimestampToDate(0);
48
+ * // Returns: Date representing 2001-01-01T00:00:00.000Z
49
+ * ```
50
+ */
51
+ export function appleTimestampToDate(timestamp) {
52
+ if (timestamp === null || timestamp === undefined) {
53
+ return null;
54
+ }
55
+ const unixTimestampMs = (timestamp + APPLE_EPOCH_OFFSET) * 1000;
56
+ return new Date(unixTimestampMs);
57
+ }
58
+ /**
59
+ * Converts an ISO 8601 string to an Apple epoch timestamp.
60
+ *
61
+ * @param isoString - ISO 8601 formatted date string, or null/undefined
62
+ * @returns Seconds since Apple epoch (2001-01-01), or null if input is null/undefined
63
+ *
64
+ * @example
65
+ * ```ts
66
+ * isoToAppleTimestamp('2001-01-01T00:00:00.000Z');
67
+ * // Returns: 0
68
+ * ```
69
+ */
70
+ export function isoToAppleTimestamp(isoString) {
71
+ if (isoString === null || isoString === undefined) {
72
+ return null;
73
+ }
74
+ const date = new Date(isoString);
75
+ if (isNaN(date.getTime())) {
76
+ return null;
77
+ }
78
+ const unixTimestampSec = Math.floor(date.getTime() / 1000);
79
+ return unixTimestampSec - APPLE_EPOCH_OFFSET;
80
+ }
81
+ /**
82
+ * Converts a JavaScript Date to an Apple epoch timestamp.
83
+ *
84
+ * @param date - Date object, or null/undefined
85
+ * @returns Seconds since Apple epoch (2001-01-01), or null if input is null/undefined
86
+ */
87
+ export function dateToAppleTimestamp(date) {
88
+ if (date === null || date === undefined) {
89
+ return null;
90
+ }
91
+ const unixTimestampSec = Math.floor(date.getTime() / 1000);
92
+ return unixTimestampSec - APPLE_EPOCH_OFFSET;
93
+ }
94
+ //# sourceMappingURL=dates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dates.js","sourceRoot":"","sources":["../../src/utils/dates.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAE5C;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,mBAAmB,CACjC,SAAoC;IAEpC,IAAI,SAAS,KAAK,IAAI,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAClD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,eAAe,GAAG,CAAC,SAAS,GAAG,kBAAkB,CAAC,GAAG,IAAI,CAAC;IAChE,OAAO,IAAI,IAAI,CAAC,eAAe,CAAC,CAAC,WAAW,EAAE,CAAC;AACjD,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,oBAAoB,CAClC,SAAoC;IAEpC,IAAI,SAAS,KAAK,IAAI,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAClD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,eAAe,GAAG,CAAC,SAAS,GAAG,kBAAkB,CAAC,GAAG,IAAI,CAAC;IAChE,OAAO,IAAI,IAAI,CAAC,eAAe,CAAC,CAAC;AACnC,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,mBAAmB,CACjC,SAAoC;IAEpC,IAAI,SAAS,KAAK,IAAI,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAClD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC;IACjC,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE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