@decaf-ts/integrations 0.12.0 → 0.14.2

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 (156) hide show
  1. package/dist/integrations.cjs +1 -1
  2. package/lib/cjs/calendar/environment.cjs +48 -0
  3. package/lib/cjs/calendar/environment.cjs.map +1 -0
  4. package/lib/cjs/calendar/google-calendar/GoogleCalendarService.cjs +338 -0
  5. package/lib/cjs/calendar/google-calendar/GoogleCalendarService.cjs.map +1 -0
  6. package/lib/cjs/calendar/google-calendar/index.cjs +20 -0
  7. package/lib/cjs/calendar/google-calendar/index.cjs.map +1 -0
  8. package/lib/cjs/comms/discord/DiscordService.cjs +318 -0
  9. package/lib/cjs/comms/discord/DiscordService.cjs.map +1 -0
  10. package/lib/cjs/comms/discord/index.cjs +19 -0
  11. package/lib/cjs/comms/discord/index.cjs.map +1 -0
  12. package/lib/cjs/comms/environment.cjs +16 -0
  13. package/lib/cjs/comms/environment.cjs.map +1 -1
  14. package/lib/cjs/comms/index.cjs +3 -0
  15. package/lib/cjs/comms/index.cjs.map +1 -1
  16. package/lib/cjs/comms/outlook/MicrosoftOutlookService.cjs +325 -0
  17. package/lib/cjs/comms/outlook/MicrosoftOutlookService.cjs.map +1 -0
  18. package/lib/cjs/comms/outlook/index.cjs +19 -0
  19. package/lib/cjs/comms/outlook/index.cjs.map +1 -0
  20. package/lib/cjs/comms/whatsapp/WhatsAppService.cjs +274 -0
  21. package/lib/cjs/comms/whatsapp/WhatsAppService.cjs.map +1 -0
  22. package/lib/cjs/comms/whatsapp/index.cjs +19 -0
  23. package/lib/cjs/comms/whatsapp/index.cjs.map +1 -0
  24. package/lib/cjs/index.cjs +3 -3
  25. package/lib/cjs/io/confluence/ConfluenceService.cjs +317 -0
  26. package/lib/cjs/io/confluence/ConfluenceService.cjs.map +1 -0
  27. package/lib/cjs/io/confluence/index.cjs +19 -0
  28. package/lib/cjs/io/confluence/index.cjs.map +1 -0
  29. package/lib/cjs/io/environment.cjs +28 -0
  30. package/lib/cjs/io/environment.cjs.map +1 -1
  31. package/lib/cjs/io/google-docs/GoogleDocsService.cjs +275 -0
  32. package/lib/cjs/io/google-docs/GoogleDocsService.cjs.map +1 -0
  33. package/lib/cjs/io/google-docs/index.cjs +19 -0
  34. package/lib/cjs/io/google-docs/index.cjs.map +1 -0
  35. package/lib/cjs/io/index.cjs +5 -0
  36. package/lib/cjs/io/index.cjs.map +1 -1
  37. package/lib/cjs/io/jira/JiraService.cjs +354 -0
  38. package/lib/cjs/io/jira/JiraService.cjs.map +1 -0
  39. package/lib/cjs/io/jira/index.cjs +19 -0
  40. package/lib/cjs/io/jira/index.cjs.map +1 -0
  41. package/lib/cjs/io/microsoft-excel/MicrosoftExcelService.cjs +253 -0
  42. package/lib/cjs/io/microsoft-excel/MicrosoftExcelService.cjs.map +1 -0
  43. package/lib/cjs/io/microsoft-excel/index.cjs +19 -0
  44. package/lib/cjs/io/microsoft-excel/index.cjs.map +1 -0
  45. package/lib/cjs/io/microsoft-sharepoint/MicrosoftSharePointService.cjs +261 -0
  46. package/lib/cjs/io/microsoft-sharepoint/MicrosoftSharePointService.cjs.map +1 -0
  47. package/lib/cjs/io/microsoft-sharepoint/index.cjs +19 -0
  48. package/lib/cjs/io/microsoft-sharepoint/index.cjs.map +1 -0
  49. package/lib/cjs/sftp/aws/index.cjs +24 -0
  50. package/lib/cjs/sftp/aws/index.cjs.map +1 -0
  51. package/lib/cjs/sftp/ssh2/index.cjs +24 -0
  52. package/lib/cjs/sftp/ssh2/index.cjs.map +1 -0
  53. package/lib/esm/calendar/environment.js +44 -0
  54. package/lib/esm/calendar/environment.js.map +1 -0
  55. package/lib/esm/calendar/google-calendar/GoogleCalendarService.js +333 -0
  56. package/lib/esm/calendar/google-calendar/GoogleCalendarService.js.map +1 -0
  57. package/lib/esm/calendar/google-calendar/index.js +3 -0
  58. package/lib/esm/calendar/google-calendar/index.js.map +1 -0
  59. package/lib/esm/comms/discord/DiscordService.js +313 -0
  60. package/lib/esm/comms/discord/DiscordService.js.map +1 -0
  61. package/lib/esm/comms/discord/index.js +2 -0
  62. package/lib/esm/comms/discord/index.js.map +1 -0
  63. package/lib/esm/comms/environment.js +16 -0
  64. package/lib/esm/comms/environment.js.map +1 -1
  65. package/lib/esm/comms/index.js +3 -0
  66. package/lib/esm/comms/index.js.map +1 -1
  67. package/lib/esm/comms/outlook/MicrosoftOutlookService.js +320 -0
  68. package/lib/esm/comms/outlook/MicrosoftOutlookService.js.map +1 -0
  69. package/lib/esm/comms/outlook/index.js +2 -0
  70. package/lib/esm/comms/outlook/index.js.map +1 -0
  71. package/lib/esm/comms/whatsapp/WhatsAppService.js +269 -0
  72. package/lib/esm/comms/whatsapp/WhatsAppService.js.map +1 -0
  73. package/lib/esm/comms/whatsapp/index.js +2 -0
  74. package/lib/esm/comms/whatsapp/index.js.map +1 -0
  75. package/lib/esm/index.js +3 -3
  76. package/lib/esm/io/confluence/ConfluenceService.js +312 -0
  77. package/lib/esm/io/confluence/ConfluenceService.js.map +1 -0
  78. package/lib/esm/io/confluence/index.js +2 -0
  79. package/lib/esm/io/confluence/index.js.map +1 -0
  80. package/lib/esm/io/environment.js +28 -0
  81. package/lib/esm/io/environment.js.map +1 -1
  82. package/lib/esm/io/google-docs/GoogleDocsService.js +270 -0
  83. package/lib/esm/io/google-docs/GoogleDocsService.js.map +1 -0
  84. package/lib/esm/io/google-docs/index.js +2 -0
  85. package/lib/esm/io/google-docs/index.js.map +1 -0
  86. package/lib/esm/io/index.js +5 -0
  87. package/lib/esm/io/index.js.map +1 -1
  88. package/lib/esm/io/jira/JiraService.js +349 -0
  89. package/lib/esm/io/jira/JiraService.js.map +1 -0
  90. package/lib/esm/io/jira/index.js +2 -0
  91. package/lib/esm/io/jira/index.js.map +1 -0
  92. package/lib/esm/io/microsoft-excel/MicrosoftExcelService.js +248 -0
  93. package/lib/esm/io/microsoft-excel/MicrosoftExcelService.js.map +1 -0
  94. package/lib/esm/io/microsoft-excel/index.js +2 -0
  95. package/lib/esm/io/microsoft-excel/index.js.map +1 -0
  96. package/lib/esm/io/microsoft-sharepoint/MicrosoftSharePointService.js +256 -0
  97. package/lib/esm/io/microsoft-sharepoint/MicrosoftSharePointService.js.map +1 -0
  98. package/lib/esm/io/microsoft-sharepoint/index.js +2 -0
  99. package/lib/esm/io/microsoft-sharepoint/index.js.map +1 -0
  100. package/lib/esm/sftp/aws/index.js +7 -0
  101. package/lib/esm/sftp/aws/index.js.map +1 -0
  102. package/lib/esm/sftp/ssh2/index.js +7 -0
  103. package/lib/esm/sftp/ssh2/index.js.map +1 -0
  104. package/lib/types/calendar/environment.d.cts +48 -0
  105. package/lib/types/calendar/environment.d.mts +48 -0
  106. package/lib/types/calendar/google-calendar/GoogleCalendarService.d.cts +316 -0
  107. package/lib/types/calendar/google-calendar/GoogleCalendarService.d.mts +316 -0
  108. package/lib/types/calendar/google-calendar/index.d.cts +2 -0
  109. package/lib/types/calendar/google-calendar/index.d.mts +2 -0
  110. package/lib/types/comms/discord/DiscordService.d.cts +285 -0
  111. package/lib/types/comms/discord/DiscordService.d.mts +285 -0
  112. package/lib/types/comms/discord/index.d.cts +1 -0
  113. package/lib/types/comms/discord/index.d.mts +1 -0
  114. package/lib/types/comms/environment.d.cts +34 -8
  115. package/lib/types/comms/environment.d.mts +34 -8
  116. package/lib/types/comms/index.d.cts +3 -0
  117. package/lib/types/comms/index.d.mts +3 -0
  118. package/lib/types/comms/outlook/MicrosoftOutlookService.d.cts +282 -0
  119. package/lib/types/comms/outlook/MicrosoftOutlookService.d.mts +282 -0
  120. package/lib/types/comms/outlook/index.d.cts +1 -0
  121. package/lib/types/comms/outlook/index.d.mts +1 -0
  122. package/lib/types/comms/whatsapp/WhatsAppService.d.cts +258 -0
  123. package/lib/types/comms/whatsapp/WhatsAppService.d.mts +258 -0
  124. package/lib/types/comms/whatsapp/index.d.cts +1 -0
  125. package/lib/types/comms/whatsapp/index.d.mts +1 -0
  126. package/lib/types/index.d.cts +2 -2
  127. package/lib/types/index.d.mts +2 -2
  128. package/lib/types/io/confluence/ConfluenceService.d.cts +250 -0
  129. package/lib/types/io/confluence/ConfluenceService.d.mts +250 -0
  130. package/lib/types/io/confluence/index.d.cts +1 -0
  131. package/lib/types/io/confluence/index.d.mts +1 -0
  132. package/lib/types/io/environment.d.cts +52 -12
  133. package/lib/types/io/environment.d.mts +52 -12
  134. package/lib/types/io/google-docs/GoogleDocsService.d.cts +188 -0
  135. package/lib/types/io/google-docs/GoogleDocsService.d.mts +188 -0
  136. package/lib/types/io/google-docs/index.d.cts +1 -0
  137. package/lib/types/io/google-docs/index.d.mts +1 -0
  138. package/lib/types/io/index.d.cts +5 -0
  139. package/lib/types/io/index.d.mts +5 -0
  140. package/lib/types/io/jira/JiraService.d.cts +300 -0
  141. package/lib/types/io/jira/JiraService.d.mts +300 -0
  142. package/lib/types/io/jira/index.d.cts +1 -0
  143. package/lib/types/io/jira/index.d.mts +1 -0
  144. package/lib/types/io/microsoft-excel/MicrosoftExcelService.d.cts +230 -0
  145. package/lib/types/io/microsoft-excel/MicrosoftExcelService.d.mts +230 -0
  146. package/lib/types/io/microsoft-excel/index.d.cts +1 -0
  147. package/lib/types/io/microsoft-excel/index.d.mts +1 -0
  148. package/lib/types/io/microsoft-sharepoint/MicrosoftSharePointService.d.cts +226 -0
  149. package/lib/types/io/microsoft-sharepoint/MicrosoftSharePointService.d.mts +226 -0
  150. package/lib/types/io/microsoft-sharepoint/index.d.cts +1 -0
  151. package/lib/types/io/microsoft-sharepoint/index.d.mts +1 -0
  152. package/lib/types/sftp/aws/index.d.cts +6 -0
  153. package/lib/types/sftp/aws/index.d.mts +6 -0
  154. package/lib/types/sftp/ssh2/index.d.cts +6 -0
  155. package/lib/types/sftp/ssh2/index.d.mts +6 -0
  156. package/package.json +263 -59
@@ -0,0 +1,256 @@
1
+ /**
2
+ * @module integrations/io/microsoft-sharepoint/service
3
+ * @summary Microsoft SharePoint integration service (Microsoft Graph).
4
+ * @description Exposes SharePoint site, list, list-item, and drive-item
5
+ * operations through Microsoft Graph `v1.0` as an undecorated client-based
6
+ * service built on {@link HttpApiService}. Configuration comes from an explicit
7
+ * `MicrosoftSharePointServiceConfig` or the `io.microsoftSharePoint` environment
8
+ * slice; the access token is sent as `Authorization: Bearer <token>`.
9
+ * Credentials are referenced from configuration (and, from as-graph nodes, from
10
+ * the resolved `microsoft-sharepoint` credential secret) and are never embedded
11
+ * in source. Failures are mapped to decaf errors via {@link httpError}.
12
+ */
13
+ import { InternalError } from "@decaf-ts/db-decorators";
14
+ import { IoEnvironment } from "./../environment.js";
15
+ import { envNumber, envString } from "./../../shared/environmentValue.js";
16
+ import { HttpApiService, httpError, } from "./../../shared/http/index.js";
17
+ /**
18
+ * @description Microsoft SharePoint (Graph) integration service
19
+ * @summary An undecorated HTTP service for searching sites, reading a site's
20
+ * lists and list items, creating list items, and listing drive folder
21
+ * contents. Every operation requires a Graph access token; missing credentials
22
+ * or identifiers raise `InternalError`, and transport failures are mapped to
23
+ * decaf errors via {@link httpError}.
24
+ * @class MicrosoftSharePointService
25
+ * @extends HttpApiService
26
+ * @category IO
27
+ * @example
28
+ * ```ts
29
+ * import { MicrosoftSharePointService } from "@decaf-ts/integrations/io/microsoft-sharepoint";
30
+ *
31
+ * const sharepoint = new MicrosoftSharePointService();
32
+ * await sharepoint.initialize({
33
+ * token: process.env.GRAPH_CREDENTIAL_MICROSOFT_SHAREPOINT_TOKEN,
34
+ * });
35
+ * const sites = await sharepoint.listSites("ops");
36
+ * ```
37
+ * @mermaid
38
+ * sequenceDiagram
39
+ * autonumber
40
+ * participant Caller
41
+ * participant Service as MicrosoftSharePointService
42
+ * participant Graph as Microsoft Graph
43
+ * Caller->>Service: listItems(input)
44
+ * activate Service
45
+ * Service->>Service: requireAccessToken()
46
+ * Service->>Graph: GET /sites/{siteId}/lists/{listId}/items
47
+ * activate Graph
48
+ * Graph-->>Service: list items payload
49
+ * deactivate Graph
50
+ * Service-->>Caller: list items payload
51
+ * deactivate Service
52
+ * @memberOf module:integrations/io/microsoft-sharepoint/service
53
+ */
54
+ export class MicrosoftSharePointService extends HttpApiService {
55
+ constructor() {
56
+ super(...arguments);
57
+ /**
58
+ * @description The provider name used in error messages
59
+ */
60
+ this.serviceName = "Microsoft SharePoint";
61
+ }
62
+ /**
63
+ * @description The Microsoft Graph base URL
64
+ * @summary Used when the resolved config carries no `baseUrl`.
65
+ * @returns {string} `"https://graph.microsoft.com/v1.0"`.
66
+ */
67
+ defaultBaseUrl() {
68
+ return "https://graph.microsoft.com/v1.0";
69
+ }
70
+ /**
71
+ * @description Builds the Microsoft Graph bearer authorization headers
72
+ * @summary Returns `Authorization: Bearer <token>` when configured, and no
73
+ * headers otherwise.
74
+ * @param {MicrosoftSharePointServiceConfig} config - The resolved service configuration.
75
+ * @returns {Record<string, string>} The authorization headers (empty without a token).
76
+ */
77
+ authHeaders(config) {
78
+ return config.token ? { Authorization: `Bearer ${config.token}` } : {};
79
+ }
80
+ /**
81
+ * @description Reads the SharePoint credentials and defaults from the environment
82
+ * @summary Reads the `io.microsoftSharePoint` slice and returns a partial
83
+ * config when an access token is configured, `undefined` otherwise. Values
84
+ * pass through `envString`/`envNumber` to reject unset-leaf proxies.
85
+ * @returns {Partial<MicrosoftSharePointServiceConfig> | undefined} A partial config, or `undefined` when no SharePoint token is configured.
86
+ */
87
+ configFromEnvironment() {
88
+ const env = IoEnvironment.io.microsoftSharePoint;
89
+ const token = envString(env?.token);
90
+ if (!token)
91
+ return undefined;
92
+ return {
93
+ token,
94
+ baseUrl: envString(env.baseUrl),
95
+ timeout: envNumber(env.timeout),
96
+ };
97
+ }
98
+ /**
99
+ * @description Asserts that a Microsoft Graph access token is configured
100
+ * @summary Delegates to the shared `requireToken()` guard used by every
101
+ * operation.
102
+ * @returns {void}
103
+ * @throws {InternalError} When the resolved config has no `token`.
104
+ */
105
+ requireAccessToken() {
106
+ this.requireToken();
107
+ }
108
+ /**
109
+ * @description Builds the encoded path for a SharePoint site
110
+ * @summary Validates the site ID and URL-encodes it into `/sites/<id>`.
111
+ * @param {string} siteId - The SharePoint site ID.
112
+ * @returns {string} The site API path.
113
+ * @throws {InternalError} When `siteId` is empty.
114
+ */
115
+ sitePath(siteId) {
116
+ if (!siteId) {
117
+ throw new InternalError("Microsoft SharePoint requires a site id");
118
+ }
119
+ return `/sites/${encodeURIComponent(siteId)}`;
120
+ }
121
+ /**
122
+ * @description Searches SharePoint sites
123
+ * @summary `GET`s `/sites` with a `search` term (default `"*"`).
124
+ * @param {string} [search] - Site search term; defaults to `"*"`.
125
+ * @returns {Promise<unknown>} The site collection payload.
126
+ * @throws {InternalError} When no token is configured.
127
+ * @throws {BadRequestError} When Graph rejects the request.
128
+ */
129
+ async listSites(search = "*") {
130
+ this.requireAccessToken();
131
+ try {
132
+ const response = await this.client.get("/sites", {
133
+ params: { search },
134
+ });
135
+ return response.data;
136
+ }
137
+ catch (error) {
138
+ throw httpError("Microsoft SharePoint", "list sites", error);
139
+ }
140
+ }
141
+ /**
142
+ * @description Fetches a SharePoint site
143
+ * @summary `GET`s `/sites/<id>` and returns the site payload.
144
+ * @param {string} siteId - The site ID to fetch.
145
+ * @returns {Promise<unknown>} The site payload.
146
+ * @throws {InternalError} When no token is configured or the site ID is empty.
147
+ * @throws {NotFoundError} When the site does not exist (HTTP 404).
148
+ * @throws {BadRequestError} When Graph rejects the request.
149
+ */
150
+ async getSite(siteId) {
151
+ this.requireAccessToken();
152
+ try {
153
+ const response = await this.client.get(this.sitePath(siteId));
154
+ return response.data;
155
+ }
156
+ catch (error) {
157
+ throw httpError("Microsoft SharePoint", "get site", error);
158
+ }
159
+ }
160
+ /**
161
+ * @description Lists the lists in a SharePoint site
162
+ * @summary `GET`s `/sites/<id>/lists`.
163
+ * @param {string} siteId - The site whose lists are listed.
164
+ * @returns {Promise<unknown>} The list collection payload.
165
+ * @throws {InternalError} When no token is configured or the site ID is empty.
166
+ * @throws {NotFoundError} When the site does not exist (HTTP 404).
167
+ * @throws {BadRequestError} When Graph rejects the request.
168
+ */
169
+ async listLists(siteId) {
170
+ this.requireAccessToken();
171
+ try {
172
+ const response = await this.client.get(`${this.sitePath(siteId)}/lists`);
173
+ return response.data;
174
+ }
175
+ catch (error) {
176
+ throw httpError("Microsoft SharePoint", "list lists", error);
177
+ }
178
+ }
179
+ /**
180
+ * @description Lists items in a SharePoint list
181
+ * @summary `GET`s the list's `/items` endpoint expanding `fields` and
182
+ * applying the optional `$top` and `$filter` options.
183
+ * @param {SharePointItemsInput} input - The site, list, and query options.
184
+ * @returns {Promise<unknown>} The list item collection payload.
185
+ * @throws {InternalError} When no token is configured, or the site or list ID is empty.
186
+ * @throws {NotFoundError} When the site or list does not exist (HTTP 404).
187
+ * @throws {BadRequestError} When Graph rejects the query.
188
+ */
189
+ async listItems(input) {
190
+ this.requireAccessToken();
191
+ if (!input.listId) {
192
+ throw new InternalError("Microsoft SharePoint requires a list id");
193
+ }
194
+ try {
195
+ const response = await this.client.get(`${this.sitePath(input.siteId)}/lists/${encodeURIComponent(input.listId)}/items`, {
196
+ params: {
197
+ $expand: "fields",
198
+ ...(input.top !== undefined ? { $top: input.top } : {}),
199
+ ...(input.filter ? { $filter: input.filter } : {}),
200
+ },
201
+ });
202
+ return response.data;
203
+ }
204
+ catch (error) {
205
+ throw httpError("Microsoft SharePoint", "list items", error);
206
+ }
207
+ }
208
+ /**
209
+ * @description Creates a SharePoint list item
210
+ * @summary `POST`s the `fields` map to the list's `/items` endpoint.
211
+ * @param {SharePointListItemInput} input - The site, list, and item fields.
212
+ * @returns {Promise<unknown>} The created item payload.
213
+ * @throws {InternalError} When no token is configured, or the site, list, or fields are missing.
214
+ * @throws {NotFoundError} When the site or list does not exist (HTTP 404).
215
+ * @throws {BadRequestError} When Graph rejects the item.
216
+ */
217
+ async createListItem(input) {
218
+ this.requireAccessToken();
219
+ if (!input.listId || !input.fields) {
220
+ throw new InternalError("Microsoft SharePoint createListItem requires a list id and fields");
221
+ }
222
+ try {
223
+ const response = await this.client.post(`${this.sitePath(input.siteId)}/lists/${encodeURIComponent(input.listId)}/items`, { fields: input.fields });
224
+ return response.data;
225
+ }
226
+ catch (error) {
227
+ throw httpError("Microsoft SharePoint", "create list item", error);
228
+ }
229
+ }
230
+ /**
231
+ * @description Lists the children of a SharePoint drive folder
232
+ * @summary `GET`s `/sites/<id>/drive/items/<item or root>/children` with an
233
+ * optional `$top` cap.
234
+ * @param {SharePointDriveItemsInput} input - The site, folder, and result cap.
235
+ * @returns {Promise<unknown>} The drive item collection payload.
236
+ * @throws {InternalError} When no token is configured or the site ID is empty.
237
+ * @throws {NotFoundError} When the site or folder does not exist (HTTP 404).
238
+ * @throws {BadRequestError} When Graph rejects the request.
239
+ */
240
+ async listDriveItems(input) {
241
+ this.requireAccessToken();
242
+ const item = input.itemId ? encodeURIComponent(input.itemId) : "root";
243
+ try {
244
+ const response = await this.client.get(`${this.sitePath(input.siteId)}/drive/items/${item}/children`, {
245
+ params: {
246
+ ...(input.top !== undefined ? { $top: input.top } : {}),
247
+ },
248
+ });
249
+ return response.data;
250
+ }
251
+ catch (error) {
252
+ throw httpError("Microsoft SharePoint", "list drive items", error);
253
+ }
254
+ }
255
+ }
256
+ //# sourceMappingURL=MicrosoftSharePointService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MicrosoftSharePointService.js","sourceRoot":"","sources":["../../../../src/io/microsoft-sharepoint/MicrosoftSharePointService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,4BAAuB;AAC/C,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,2CAAsC;AACrE,OAAO,EACL,cAAc,EAEd,SAAS,GACV,qCAA0B;AA0F3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,OAAO,0BAA2B,SAAQ,cAAgD;IAAhG;;QACE;;WAEG;QACgB,gBAA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AAE,KAAK,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,cAAc,CAAC,KAAgC;QACnD,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC1B,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;QACtE,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CACpC,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,gBAAgB,IAAI,WAAW,EAC7D;gBACE,MAAM,EAAE;oBACN,GAAG,CAAC,KAAK,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBACxD;aACF,CACF,CAAC;YACF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,SAAS,CAAC,sBAAsB,EAAE,kBAAkB,EAAE,KAAK,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from "./MicrosoftSharePointService.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/io/microsoft-sharepoint/index.ts"],"names":[],"mappings":"AAAA,gDAA6C"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @module integrations/sftp/aws
3
+ * @summary AWS SFTP integration exports.
4
+ */
5
+ export * from "./AwsSftpService.js";
6
+ export * from "./AwsSftpEnvironment.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/sftp/aws/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oCAAiC;AACjC,wCAAqC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @module integrations/sftp/ssh2
3
+ * @summary SSH2 SFTP integration exports.
4
+ */
5
+ export * from "./Ssh2SftpService.js";
6
+ export * from "./Ssh2SftpEnvironment.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/sftp/ssh2/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qCAAkC;AAClC,yCAAsC"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @description Environment shape for the calendar integration services
3
+ * @summary Defines the `calendar` root with the `googleCalendar` slice. The
4
+ * slice carries the OAuth `token` and/or `apiKey`, the default `calendarId`,
5
+ * and an optional `baseUrl` override and `timeout`. Fields are typed as
6
+ * required here so `LoggedEnvironment.accumulate` registers them; absent values
7
+ * resolve to proxy placeholders at runtime and must pass through
8
+ * `envString`/`envNumber`. Values are credential references supplied by the
9
+ * environment, never literals embedded in source.
10
+ * @memberOf module:integrations/calendar/environment
11
+ */
12
+ export interface CalendarEnvironmentShape {
13
+ calendar: {
14
+ /** Google Calendar OAuth token/API key and default calendar (`calendar/google-calendar`). */
15
+ googleCalendar: {
16
+ token: string;
17
+ apiKey: string;
18
+ calendarId: string;
19
+ baseUrl: string;
20
+ timeout?: number;
21
+ };
22
+ };
23
+ }
24
+ /**
25
+ * @description Accumulated calendar environment singleton
26
+ * @summary The `LoggedEnvironment.accumulate`-registered instance backing the
27
+ * `CalendarEnvironmentShape` contract. The Google Calendar service reads
28
+ * `CalendarEnvironment.calendar.googleCalendar` inside
29
+ * `configFromEnvironment()` and translates it into its
30
+ * `HttpApiServiceConfig`-derived config. Credentials come from environment
31
+ * variables; for as-graph node usage those are provided as
32
+ * `GRAPH_CREDENTIAL_*` values (placeholders in this example).
33
+ * @example
34
+ * ```ts
35
+ * import { GoogleCalendarService } from "@decaf-ts/integrations/calendar/google-calendar";
36
+ *
37
+ * // with calendar.googleCalendar.token / calendarId configured in the environment
38
+ * const calendar = new GoogleCalendarService();
39
+ * await calendar.initialize();
40
+ * ```
41
+ * @constant {LoggedEnvironment} CalendarEnvironment
42
+ * @memberOf module:integrations/calendar/environment
43
+ */
44
+ export declare const CalendarEnvironment: import("@decaf-ts/logging").AccumulatedEnvironment<{
45
+ app: string | undefined;
46
+ } & import("@decaf-ts/logging").LoggingConfig<object> & {
47
+ env: any;
48
+ } & CalendarEnvironmentShape>;
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @description Environment shape for the calendar integration services
3
+ * @summary Defines the `calendar` root with the `googleCalendar` slice. The
4
+ * slice carries the OAuth `token` and/or `apiKey`, the default `calendarId`,
5
+ * and an optional `baseUrl` override and `timeout`. Fields are typed as
6
+ * required here so `LoggedEnvironment.accumulate` registers them; absent values
7
+ * resolve to proxy placeholders at runtime and must pass through
8
+ * `envString`/`envNumber`. Values are credential references supplied by the
9
+ * environment, never literals embedded in source.
10
+ * @memberOf module:integrations/calendar/environment
11
+ */
12
+ export interface CalendarEnvironmentShape {
13
+ calendar: {
14
+ /** Google Calendar OAuth token/API key and default calendar (`calendar/google-calendar`). */
15
+ googleCalendar: {
16
+ token: string;
17
+ apiKey: string;
18
+ calendarId: string;
19
+ baseUrl: string;
20
+ timeout?: number;
21
+ };
22
+ };
23
+ }
24
+ /**
25
+ * @description Accumulated calendar environment singleton
26
+ * @summary The `LoggedEnvironment.accumulate`-registered instance backing the
27
+ * `CalendarEnvironmentShape` contract. The Google Calendar service reads
28
+ * `CalendarEnvironment.calendar.googleCalendar` inside
29
+ * `configFromEnvironment()` and translates it into its
30
+ * `HttpApiServiceConfig`-derived config. Credentials come from environment
31
+ * variables; for as-graph node usage those are provided as
32
+ * `GRAPH_CREDENTIAL_*` values (placeholders in this example).
33
+ * @example
34
+ * ```ts
35
+ * import { GoogleCalendarService } from "@decaf-ts/integrations/calendar/google-calendar";
36
+ *
37
+ * // with calendar.googleCalendar.token / calendarId configured in the environment
38
+ * const calendar = new GoogleCalendarService();
39
+ * await calendar.initialize();
40
+ * ```
41
+ * @constant {LoggedEnvironment} CalendarEnvironment
42
+ * @memberOf module:integrations/calendar/environment
43
+ */
44
+ export declare const CalendarEnvironment: import("@decaf-ts/logging").AccumulatedEnvironment<{
45
+ app: string | undefined;
46
+ } & import("@decaf-ts/logging").LoggingConfig<object> & {
47
+ env: any;
48
+ } & CalendarEnvironmentShape>;