@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.
- package/dist/integrations.cjs +1 -1
- package/lib/cjs/calendar/environment.cjs +48 -0
- package/lib/cjs/calendar/environment.cjs.map +1 -0
- package/lib/cjs/calendar/google-calendar/GoogleCalendarService.cjs +338 -0
- package/lib/cjs/calendar/google-calendar/GoogleCalendarService.cjs.map +1 -0
- package/lib/cjs/calendar/google-calendar/index.cjs +20 -0
- package/lib/cjs/calendar/google-calendar/index.cjs.map +1 -0
- package/lib/cjs/comms/discord/DiscordService.cjs +318 -0
- package/lib/cjs/comms/discord/DiscordService.cjs.map +1 -0
- package/lib/cjs/comms/discord/index.cjs +19 -0
- package/lib/cjs/comms/discord/index.cjs.map +1 -0
- package/lib/cjs/comms/environment.cjs +16 -0
- package/lib/cjs/comms/environment.cjs.map +1 -1
- package/lib/cjs/comms/index.cjs +3 -0
- package/lib/cjs/comms/index.cjs.map +1 -1
- package/lib/cjs/comms/outlook/MicrosoftOutlookService.cjs +325 -0
- package/lib/cjs/comms/outlook/MicrosoftOutlookService.cjs.map +1 -0
- package/lib/cjs/comms/outlook/index.cjs +19 -0
- package/lib/cjs/comms/outlook/index.cjs.map +1 -0
- package/lib/cjs/comms/whatsapp/WhatsAppService.cjs +274 -0
- package/lib/cjs/comms/whatsapp/WhatsAppService.cjs.map +1 -0
- package/lib/cjs/comms/whatsapp/index.cjs +19 -0
- package/lib/cjs/comms/whatsapp/index.cjs.map +1 -0
- package/lib/cjs/index.cjs +3 -3
- package/lib/cjs/io/confluence/ConfluenceService.cjs +317 -0
- package/lib/cjs/io/confluence/ConfluenceService.cjs.map +1 -0
- package/lib/cjs/io/confluence/index.cjs +19 -0
- package/lib/cjs/io/confluence/index.cjs.map +1 -0
- package/lib/cjs/io/environment.cjs +28 -0
- package/lib/cjs/io/environment.cjs.map +1 -1
- package/lib/cjs/io/google-docs/GoogleDocsService.cjs +275 -0
- package/lib/cjs/io/google-docs/GoogleDocsService.cjs.map +1 -0
- package/lib/cjs/io/google-docs/index.cjs +19 -0
- package/lib/cjs/io/google-docs/index.cjs.map +1 -0
- package/lib/cjs/io/index.cjs +5 -0
- package/lib/cjs/io/index.cjs.map +1 -1
- package/lib/cjs/io/jira/JiraService.cjs +354 -0
- package/lib/cjs/io/jira/JiraService.cjs.map +1 -0
- package/lib/cjs/io/jira/index.cjs +19 -0
- package/lib/cjs/io/jira/index.cjs.map +1 -0
- package/lib/cjs/io/microsoft-excel/MicrosoftExcelService.cjs +253 -0
- package/lib/cjs/io/microsoft-excel/MicrosoftExcelService.cjs.map +1 -0
- package/lib/cjs/io/microsoft-excel/index.cjs +19 -0
- package/lib/cjs/io/microsoft-excel/index.cjs.map +1 -0
- package/lib/cjs/io/microsoft-sharepoint/MicrosoftSharePointService.cjs +261 -0
- package/lib/cjs/io/microsoft-sharepoint/MicrosoftSharePointService.cjs.map +1 -0
- package/lib/cjs/io/microsoft-sharepoint/index.cjs +19 -0
- package/lib/cjs/io/microsoft-sharepoint/index.cjs.map +1 -0
- package/lib/cjs/sftp/aws/index.cjs +24 -0
- package/lib/cjs/sftp/aws/index.cjs.map +1 -0
- package/lib/cjs/sftp/ssh2/index.cjs +24 -0
- package/lib/cjs/sftp/ssh2/index.cjs.map +1 -0
- package/lib/esm/calendar/environment.js +44 -0
- package/lib/esm/calendar/environment.js.map +1 -0
- package/lib/esm/calendar/google-calendar/GoogleCalendarService.js +333 -0
- package/lib/esm/calendar/google-calendar/GoogleCalendarService.js.map +1 -0
- package/lib/esm/calendar/google-calendar/index.js +3 -0
- package/lib/esm/calendar/google-calendar/index.js.map +1 -0
- package/lib/esm/comms/discord/DiscordService.js +313 -0
- package/lib/esm/comms/discord/DiscordService.js.map +1 -0
- package/lib/esm/comms/discord/index.js +2 -0
- package/lib/esm/comms/discord/index.js.map +1 -0
- package/lib/esm/comms/environment.js +16 -0
- package/lib/esm/comms/environment.js.map +1 -1
- package/lib/esm/comms/index.js +3 -0
- package/lib/esm/comms/index.js.map +1 -1
- package/lib/esm/comms/outlook/MicrosoftOutlookService.js +320 -0
- package/lib/esm/comms/outlook/MicrosoftOutlookService.js.map +1 -0
- package/lib/esm/comms/outlook/index.js +2 -0
- package/lib/esm/comms/outlook/index.js.map +1 -0
- package/lib/esm/comms/whatsapp/WhatsAppService.js +269 -0
- package/lib/esm/comms/whatsapp/WhatsAppService.js.map +1 -0
- package/lib/esm/comms/whatsapp/index.js +2 -0
- package/lib/esm/comms/whatsapp/index.js.map +1 -0
- package/lib/esm/index.js +3 -3
- package/lib/esm/io/confluence/ConfluenceService.js +312 -0
- package/lib/esm/io/confluence/ConfluenceService.js.map +1 -0
- package/lib/esm/io/confluence/index.js +2 -0
- package/lib/esm/io/confluence/index.js.map +1 -0
- package/lib/esm/io/environment.js +28 -0
- package/lib/esm/io/environment.js.map +1 -1
- package/lib/esm/io/google-docs/GoogleDocsService.js +270 -0
- package/lib/esm/io/google-docs/GoogleDocsService.js.map +1 -0
- package/lib/esm/io/google-docs/index.js +2 -0
- package/lib/esm/io/google-docs/index.js.map +1 -0
- package/lib/esm/io/index.js +5 -0
- package/lib/esm/io/index.js.map +1 -1
- package/lib/esm/io/jira/JiraService.js +349 -0
- package/lib/esm/io/jira/JiraService.js.map +1 -0
- package/lib/esm/io/jira/index.js +2 -0
- package/lib/esm/io/jira/index.js.map +1 -0
- package/lib/esm/io/microsoft-excel/MicrosoftExcelService.js +248 -0
- package/lib/esm/io/microsoft-excel/MicrosoftExcelService.js.map +1 -0
- package/lib/esm/io/microsoft-excel/index.js +2 -0
- package/lib/esm/io/microsoft-excel/index.js.map +1 -0
- package/lib/esm/io/microsoft-sharepoint/MicrosoftSharePointService.js +256 -0
- package/lib/esm/io/microsoft-sharepoint/MicrosoftSharePointService.js.map +1 -0
- package/lib/esm/io/microsoft-sharepoint/index.js +2 -0
- package/lib/esm/io/microsoft-sharepoint/index.js.map +1 -0
- package/lib/esm/sftp/aws/index.js +7 -0
- package/lib/esm/sftp/aws/index.js.map +1 -0
- package/lib/esm/sftp/ssh2/index.js +7 -0
- package/lib/esm/sftp/ssh2/index.js.map +1 -0
- package/lib/types/calendar/environment.d.cts +48 -0
- package/lib/types/calendar/environment.d.mts +48 -0
- package/lib/types/calendar/google-calendar/GoogleCalendarService.d.cts +316 -0
- package/lib/types/calendar/google-calendar/GoogleCalendarService.d.mts +316 -0
- package/lib/types/calendar/google-calendar/index.d.cts +2 -0
- package/lib/types/calendar/google-calendar/index.d.mts +2 -0
- package/lib/types/comms/discord/DiscordService.d.cts +285 -0
- package/lib/types/comms/discord/DiscordService.d.mts +285 -0
- package/lib/types/comms/discord/index.d.cts +1 -0
- package/lib/types/comms/discord/index.d.mts +1 -0
- package/lib/types/comms/environment.d.cts +34 -8
- package/lib/types/comms/environment.d.mts +34 -8
- package/lib/types/comms/index.d.cts +3 -0
- package/lib/types/comms/index.d.mts +3 -0
- package/lib/types/comms/outlook/MicrosoftOutlookService.d.cts +282 -0
- package/lib/types/comms/outlook/MicrosoftOutlookService.d.mts +282 -0
- package/lib/types/comms/outlook/index.d.cts +1 -0
- package/lib/types/comms/outlook/index.d.mts +1 -0
- package/lib/types/comms/whatsapp/WhatsAppService.d.cts +258 -0
- package/lib/types/comms/whatsapp/WhatsAppService.d.mts +258 -0
- package/lib/types/comms/whatsapp/index.d.cts +1 -0
- package/lib/types/comms/whatsapp/index.d.mts +1 -0
- package/lib/types/index.d.cts +2 -2
- package/lib/types/index.d.mts +2 -2
- package/lib/types/io/confluence/ConfluenceService.d.cts +250 -0
- package/lib/types/io/confluence/ConfluenceService.d.mts +250 -0
- package/lib/types/io/confluence/index.d.cts +1 -0
- package/lib/types/io/confluence/index.d.mts +1 -0
- package/lib/types/io/environment.d.cts +52 -12
- package/lib/types/io/environment.d.mts +52 -12
- package/lib/types/io/google-docs/GoogleDocsService.d.cts +188 -0
- package/lib/types/io/google-docs/GoogleDocsService.d.mts +188 -0
- package/lib/types/io/google-docs/index.d.cts +1 -0
- package/lib/types/io/google-docs/index.d.mts +1 -0
- package/lib/types/io/index.d.cts +5 -0
- package/lib/types/io/index.d.mts +5 -0
- package/lib/types/io/jira/JiraService.d.cts +300 -0
- package/lib/types/io/jira/JiraService.d.mts +300 -0
- package/lib/types/io/jira/index.d.cts +1 -0
- package/lib/types/io/jira/index.d.mts +1 -0
- package/lib/types/io/microsoft-excel/MicrosoftExcelService.d.cts +230 -0
- package/lib/types/io/microsoft-excel/MicrosoftExcelService.d.mts +230 -0
- package/lib/types/io/microsoft-excel/index.d.cts +1 -0
- package/lib/types/io/microsoft-excel/index.d.mts +1 -0
- package/lib/types/io/microsoft-sharepoint/MicrosoftSharePointService.d.cts +226 -0
- package/lib/types/io/microsoft-sharepoint/MicrosoftSharePointService.d.mts +226 -0
- package/lib/types/io/microsoft-sharepoint/index.d.cts +1 -0
- package/lib/types/io/microsoft-sharepoint/index.d.mts +1 -0
- package/lib/types/sftp/aws/index.d.cts +6 -0
- package/lib/types/sftp/aws/index.d.mts +6 -0
- package/lib/types/sftp/ssh2/index.d.cts +6 -0
- package/lib/types/sftp/ssh2/index.d.mts +6 -0
- package/package.json +263 -59
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { HttpApiService, type HttpApiServiceConfig } from "../../shared/http/index.d.mts";
|
|
2
|
+
/**
|
|
3
|
+
* @description Configuration for the Microsoft SharePoint service
|
|
4
|
+
* @summary Extends {@link HttpApiServiceConfig} with the Microsoft Graph
|
|
5
|
+
* access token sent as a bearer token. When omitted, the
|
|
6
|
+
* `io.microsoftSharePoint` environment slice supplies the token (plus optional
|
|
7
|
+
* `baseUrl`/`timeout`).
|
|
8
|
+
* @category IO
|
|
9
|
+
* @memberOf module:integrations/io/microsoft-sharepoint/service
|
|
10
|
+
*/
|
|
11
|
+
export interface MicrosoftSharePointServiceConfig extends HttpApiServiceConfig {
|
|
12
|
+
/**
|
|
13
|
+
* @description Microsoft Graph access token
|
|
14
|
+
* @summary Sent as `Authorization: Bearer <token>` with every API call.
|
|
15
|
+
*/
|
|
16
|
+
token?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @description Input for listing SharePoint list items
|
|
20
|
+
* @summary Carries the owning `siteId`, the `listId`, and optional `top` and
|
|
21
|
+
* `filter` query options.
|
|
22
|
+
* @category IO
|
|
23
|
+
* @memberOf module:integrations/io/microsoft-sharepoint/service
|
|
24
|
+
*/
|
|
25
|
+
export interface SharePointItemsInput {
|
|
26
|
+
/**
|
|
27
|
+
* @description SharePoint site ID
|
|
28
|
+
*/
|
|
29
|
+
siteId: string;
|
|
30
|
+
/**
|
|
31
|
+
* @description List ID within the site
|
|
32
|
+
*/
|
|
33
|
+
listId: string;
|
|
34
|
+
/**
|
|
35
|
+
* @description Maximum number of items to return (`$top`)
|
|
36
|
+
*/
|
|
37
|
+
top?: number;
|
|
38
|
+
/**
|
|
39
|
+
* @description OData filter expression (`$filter`)
|
|
40
|
+
*/
|
|
41
|
+
filter?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @description Input for creating a SharePoint list item
|
|
45
|
+
* @summary Carries the owning `siteId`, the `listId`, and the item `fields`
|
|
46
|
+
* map to write.
|
|
47
|
+
* @category IO
|
|
48
|
+
* @memberOf module:integrations/io/microsoft-sharepoint/service
|
|
49
|
+
*/
|
|
50
|
+
export interface SharePointListItemInput {
|
|
51
|
+
/**
|
|
52
|
+
* @description SharePoint site ID
|
|
53
|
+
*/
|
|
54
|
+
siteId: string;
|
|
55
|
+
/**
|
|
56
|
+
* @description List ID within the site
|
|
57
|
+
*/
|
|
58
|
+
listId: string;
|
|
59
|
+
/**
|
|
60
|
+
* @description Column values for the new item
|
|
61
|
+
*/
|
|
62
|
+
fields: Record<string, unknown>;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @description Input for listing a SharePoint drive folder's children
|
|
66
|
+
* @summary Carries the `siteId`, an optional folder `itemId` (default `root`),
|
|
67
|
+
* and an optional `top` cap.
|
|
68
|
+
* @category IO
|
|
69
|
+
* @memberOf module:integrations/io/microsoft-sharepoint/service
|
|
70
|
+
*/
|
|
71
|
+
export interface SharePointDriveItemsInput {
|
|
72
|
+
/**
|
|
73
|
+
* @description SharePoint site ID
|
|
74
|
+
*/
|
|
75
|
+
siteId: string;
|
|
76
|
+
/**
|
|
77
|
+
* @description Drive item (folder) ID; defaults to the drive root
|
|
78
|
+
*/
|
|
79
|
+
itemId?: string;
|
|
80
|
+
/**
|
|
81
|
+
* @description Maximum number of children to return (`$top`)
|
|
82
|
+
*/
|
|
83
|
+
top?: number;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @description Microsoft SharePoint (Graph) integration service
|
|
87
|
+
* @summary An undecorated HTTP service for searching sites, reading a site's
|
|
88
|
+
* lists and list items, creating list items, and listing drive folder
|
|
89
|
+
* contents. Every operation requires a Graph access token; missing credentials
|
|
90
|
+
* or identifiers raise `InternalError`, and transport failures are mapped to
|
|
91
|
+
* decaf errors via {@link httpError}.
|
|
92
|
+
* @class MicrosoftSharePointService
|
|
93
|
+
* @extends HttpApiService
|
|
94
|
+
* @category IO
|
|
95
|
+
* @example
|
|
96
|
+
* ```ts
|
|
97
|
+
* import { MicrosoftSharePointService } from "@decaf-ts/integrations/io/microsoft-sharepoint";
|
|
98
|
+
*
|
|
99
|
+
* const sharepoint = new MicrosoftSharePointService();
|
|
100
|
+
* await sharepoint.initialize({
|
|
101
|
+
* token: process.env.GRAPH_CREDENTIAL_MICROSOFT_SHAREPOINT_TOKEN,
|
|
102
|
+
* });
|
|
103
|
+
* const sites = await sharepoint.listSites("ops");
|
|
104
|
+
* ```
|
|
105
|
+
* @mermaid
|
|
106
|
+
* sequenceDiagram
|
|
107
|
+
* autonumber
|
|
108
|
+
* participant Caller
|
|
109
|
+
* participant Service as MicrosoftSharePointService
|
|
110
|
+
* participant Graph as Microsoft Graph
|
|
111
|
+
* Caller->>Service: listItems(input)
|
|
112
|
+
* activate Service
|
|
113
|
+
* Service->>Service: requireAccessToken()
|
|
114
|
+
* Service->>Graph: GET /sites/{siteId}/lists/{listId}/items
|
|
115
|
+
* activate Graph
|
|
116
|
+
* Graph-->>Service: list items payload
|
|
117
|
+
* deactivate Graph
|
|
118
|
+
* Service-->>Caller: list items payload
|
|
119
|
+
* deactivate Service
|
|
120
|
+
* @memberOf module:integrations/io/microsoft-sharepoint/service
|
|
121
|
+
*/
|
|
122
|
+
export declare class MicrosoftSharePointService extends HttpApiService<MicrosoftSharePointServiceConfig> {
|
|
123
|
+
/**
|
|
124
|
+
* @description The provider name used in error messages
|
|
125
|
+
*/
|
|
126
|
+
protected readonly serviceName = "Microsoft SharePoint";
|
|
127
|
+
/**
|
|
128
|
+
* @description The Microsoft Graph base URL
|
|
129
|
+
* @summary Used when the resolved config carries no `baseUrl`.
|
|
130
|
+
* @returns {string} `"https://graph.microsoft.com/v1.0"`.
|
|
131
|
+
*/
|
|
132
|
+
protected defaultBaseUrl(): string;
|
|
133
|
+
/**
|
|
134
|
+
* @description Builds the Microsoft Graph bearer authorization headers
|
|
135
|
+
* @summary Returns `Authorization: Bearer <token>` when configured, and no
|
|
136
|
+
* headers otherwise.
|
|
137
|
+
* @param {MicrosoftSharePointServiceConfig} config - The resolved service configuration.
|
|
138
|
+
* @returns {Record<string, string>} The authorization headers (empty without a token).
|
|
139
|
+
*/
|
|
140
|
+
protected authHeaders(config: MicrosoftSharePointServiceConfig): Record<string, string>;
|
|
141
|
+
/**
|
|
142
|
+
* @description Reads the SharePoint credentials and defaults from the environment
|
|
143
|
+
* @summary Reads the `io.microsoftSharePoint` slice and returns a partial
|
|
144
|
+
* config when an access token is configured, `undefined` otherwise. Values
|
|
145
|
+
* pass through `envString`/`envNumber` to reject unset-leaf proxies.
|
|
146
|
+
* @returns {Partial<MicrosoftSharePointServiceConfig> | undefined} A partial config, or `undefined` when no SharePoint token is configured.
|
|
147
|
+
*/
|
|
148
|
+
protected configFromEnvironment(): Partial<MicrosoftSharePointServiceConfig> | undefined;
|
|
149
|
+
/**
|
|
150
|
+
* @description Asserts that a Microsoft Graph access token is configured
|
|
151
|
+
* @summary Delegates to the shared `requireToken()` guard used by every
|
|
152
|
+
* operation.
|
|
153
|
+
* @returns {void}
|
|
154
|
+
* @throws {InternalError} When the resolved config has no `token`.
|
|
155
|
+
*/
|
|
156
|
+
protected requireAccessToken(): void;
|
|
157
|
+
/**
|
|
158
|
+
* @description Builds the encoded path for a SharePoint site
|
|
159
|
+
* @summary Validates the site ID and URL-encodes it into `/sites/<id>`.
|
|
160
|
+
* @param {string} siteId - The SharePoint site ID.
|
|
161
|
+
* @returns {string} The site API path.
|
|
162
|
+
* @throws {InternalError} When `siteId` is empty.
|
|
163
|
+
*/
|
|
164
|
+
private sitePath;
|
|
165
|
+
/**
|
|
166
|
+
* @description Searches SharePoint sites
|
|
167
|
+
* @summary `GET`s `/sites` with a `search` term (default `"*"`).
|
|
168
|
+
* @param {string} [search] - Site search term; defaults to `"*"`.
|
|
169
|
+
* @returns {Promise<unknown>} The site collection payload.
|
|
170
|
+
* @throws {InternalError} When no token is configured.
|
|
171
|
+
* @throws {BadRequestError} When Graph rejects the request.
|
|
172
|
+
*/
|
|
173
|
+
listSites(search?: string): Promise<unknown>;
|
|
174
|
+
/**
|
|
175
|
+
* @description Fetches a SharePoint site
|
|
176
|
+
* @summary `GET`s `/sites/<id>` and returns the site payload.
|
|
177
|
+
* @param {string} siteId - The site ID to fetch.
|
|
178
|
+
* @returns {Promise<unknown>} The site payload.
|
|
179
|
+
* @throws {InternalError} When no token is configured or the site ID is empty.
|
|
180
|
+
* @throws {NotFoundError} When the site does not exist (HTTP 404).
|
|
181
|
+
* @throws {BadRequestError} When Graph rejects the request.
|
|
182
|
+
*/
|
|
183
|
+
getSite(siteId: string): Promise<unknown>;
|
|
184
|
+
/**
|
|
185
|
+
* @description Lists the lists in a SharePoint site
|
|
186
|
+
* @summary `GET`s `/sites/<id>/lists`.
|
|
187
|
+
* @param {string} siteId - The site whose lists are listed.
|
|
188
|
+
* @returns {Promise<unknown>} The list collection payload.
|
|
189
|
+
* @throws {InternalError} When no token is configured or the site ID is empty.
|
|
190
|
+
* @throws {NotFoundError} When the site does not exist (HTTP 404).
|
|
191
|
+
* @throws {BadRequestError} When Graph rejects the request.
|
|
192
|
+
*/
|
|
193
|
+
listLists(siteId: string): Promise<unknown>;
|
|
194
|
+
/**
|
|
195
|
+
* @description Lists items in a SharePoint list
|
|
196
|
+
* @summary `GET`s the list's `/items` endpoint expanding `fields` and
|
|
197
|
+
* applying the optional `$top` and `$filter` options.
|
|
198
|
+
* @param {SharePointItemsInput} input - The site, list, and query options.
|
|
199
|
+
* @returns {Promise<unknown>} The list item collection payload.
|
|
200
|
+
* @throws {InternalError} When no token is configured, or the site or list ID is empty.
|
|
201
|
+
* @throws {NotFoundError} When the site or list does not exist (HTTP 404).
|
|
202
|
+
* @throws {BadRequestError} When Graph rejects the query.
|
|
203
|
+
*/
|
|
204
|
+
listItems(input: SharePointItemsInput): Promise<unknown>;
|
|
205
|
+
/**
|
|
206
|
+
* @description Creates a SharePoint list item
|
|
207
|
+
* @summary `POST`s the `fields` map to the list's `/items` endpoint.
|
|
208
|
+
* @param {SharePointListItemInput} input - The site, list, and item fields.
|
|
209
|
+
* @returns {Promise<unknown>} The created item payload.
|
|
210
|
+
* @throws {InternalError} When no token is configured, or the site, list, or fields are missing.
|
|
211
|
+
* @throws {NotFoundError} When the site or list does not exist (HTTP 404).
|
|
212
|
+
* @throws {BadRequestError} When Graph rejects the item.
|
|
213
|
+
*/
|
|
214
|
+
createListItem(input: SharePointListItemInput): Promise<unknown>;
|
|
215
|
+
/**
|
|
216
|
+
* @description Lists the children of a SharePoint drive folder
|
|
217
|
+
* @summary `GET`s `/sites/<id>/drive/items/<item or root>/children` with an
|
|
218
|
+
* optional `$top` cap.
|
|
219
|
+
* @param {SharePointDriveItemsInput} input - The site, folder, and result cap.
|
|
220
|
+
* @returns {Promise<unknown>} The drive item collection payload.
|
|
221
|
+
* @throws {InternalError} When no token is configured or the site ID is empty.
|
|
222
|
+
* @throws {NotFoundError} When the site or folder does not exist (HTTP 404).
|
|
223
|
+
* @throws {BadRequestError} When Graph rejects the request.
|
|
224
|
+
*/
|
|
225
|
+
listDriveItems(input: SharePointDriveItemsInput): Promise<unknown>;
|
|
226
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./MicrosoftSharePointService.d.cts";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./MicrosoftSharePointService.d.mts";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decaf-ts/integrations",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.mts",
|
|
@@ -150,14 +150,25 @@
|
|
|
150
150
|
},
|
|
151
151
|
"./secrets/oneppassword": {
|
|
152
152
|
"import": {
|
|
153
|
-
"types": "./lib/types/secrets/
|
|
154
|
-
"default": "./lib/esm/secrets/
|
|
153
|
+
"types": "./lib/types/secrets/onepassword/index.d.mts",
|
|
154
|
+
"default": "./lib/esm/secrets/onepassword/index.js"
|
|
155
155
|
},
|
|
156
156
|
"require": {
|
|
157
|
-
"types": "./lib/types/secrets/
|
|
158
|
-
"default": "./lib/cjs/secrets/
|
|
157
|
+
"types": "./lib/types/secrets/onepassword/index.d.cts",
|
|
158
|
+
"default": "./lib/cjs/secrets/onepassword/index.cjs"
|
|
159
159
|
},
|
|
160
|
-
"default": "./lib/esm/secrets/
|
|
160
|
+
"default": "./lib/esm/secrets/onepassword/index.js"
|
|
161
|
+
},
|
|
162
|
+
"./secrets/onepassword": {
|
|
163
|
+
"import": {
|
|
164
|
+
"types": "./lib/types/secrets/onepassword/index.d.mts",
|
|
165
|
+
"default": "./lib/esm/secrets/onepassword/index.js"
|
|
166
|
+
},
|
|
167
|
+
"require": {
|
|
168
|
+
"types": "./lib/types/secrets/onepassword/index.d.cts",
|
|
169
|
+
"default": "./lib/cjs/secrets/onepassword/index.cjs"
|
|
170
|
+
},
|
|
171
|
+
"default": "./lib/esm/secrets/onepassword/index.js"
|
|
161
172
|
},
|
|
162
173
|
"./secrets/vault": {
|
|
163
174
|
"import": {
|
|
@@ -225,17 +236,6 @@
|
|
|
225
236
|
},
|
|
226
237
|
"default": "./lib/esm/blob/local/index.js"
|
|
227
238
|
},
|
|
228
|
-
"./blob/ipfs": {
|
|
229
|
-
"import": {
|
|
230
|
-
"types": "./lib/types/blob/ipfs/index.d.mts",
|
|
231
|
-
"default": "./lib/esm/blob/ipfs/index.js"
|
|
232
|
-
},
|
|
233
|
-
"require": {
|
|
234
|
-
"types": "./lib/types/blob/ipfs/index.d.cts",
|
|
235
|
-
"default": "./lib/cjs/blob/ipfs/index.cjs"
|
|
236
|
-
},
|
|
237
|
-
"default": "./lib/esm/blob/ipfs/index.js"
|
|
238
|
-
},
|
|
239
239
|
"./blob/memory": {
|
|
240
240
|
"import": {
|
|
241
241
|
"types": "./lib/types/blob/memory/index.d.mts",
|
|
@@ -258,6 +258,17 @@
|
|
|
258
258
|
},
|
|
259
259
|
"default": "./lib/esm/calendar/index.js"
|
|
260
260
|
},
|
|
261
|
+
"./calendar/google-calendar": {
|
|
262
|
+
"import": {
|
|
263
|
+
"types": "./lib/types/calendar/google-calendar/index.d.mts",
|
|
264
|
+
"default": "./lib/esm/calendar/google-calendar/index.js"
|
|
265
|
+
},
|
|
266
|
+
"require": {
|
|
267
|
+
"types": "./lib/types/calendar/google-calendar/index.d.cts",
|
|
268
|
+
"default": "./lib/cjs/calendar/google-calendar/index.cjs"
|
|
269
|
+
},
|
|
270
|
+
"default": "./lib/esm/calendar/google-calendar/index.js"
|
|
271
|
+
},
|
|
261
272
|
"./sftp": {
|
|
262
273
|
"import": {
|
|
263
274
|
"types": "./lib/types/sftp/index.d.mts",
|
|
@@ -269,6 +280,28 @@
|
|
|
269
280
|
},
|
|
270
281
|
"default": "./lib/esm/sftp/index.js"
|
|
271
282
|
},
|
|
283
|
+
"./sftp/aws": {
|
|
284
|
+
"import": {
|
|
285
|
+
"types": "./lib/types/sftp/aws/index.d.mts",
|
|
286
|
+
"default": "./lib/esm/sftp/aws/index.js"
|
|
287
|
+
},
|
|
288
|
+
"require": {
|
|
289
|
+
"types": "./lib/types/sftp/aws/index.d.cts",
|
|
290
|
+
"default": "./lib/cjs/sftp/aws/index.cjs"
|
|
291
|
+
},
|
|
292
|
+
"default": "./lib/esm/sftp/aws/index.js"
|
|
293
|
+
},
|
|
294
|
+
"./sftp/ssh2": {
|
|
295
|
+
"import": {
|
|
296
|
+
"types": "./lib/types/sftp/ssh2/index.d.mts",
|
|
297
|
+
"default": "./lib/esm/sftp/ssh2/index.js"
|
|
298
|
+
},
|
|
299
|
+
"require": {
|
|
300
|
+
"types": "./lib/types/sftp/ssh2/index.d.cts",
|
|
301
|
+
"default": "./lib/cjs/sftp/ssh2/index.cjs"
|
|
302
|
+
},
|
|
303
|
+
"default": "./lib/esm/sftp/ssh2/index.js"
|
|
304
|
+
},
|
|
272
305
|
"./redis": {
|
|
273
306
|
"import": {
|
|
274
307
|
"types": "./lib/types/redis/index.d.mts",
|
|
@@ -357,6 +390,39 @@
|
|
|
357
390
|
},
|
|
358
391
|
"default": "./lib/esm/comms/telegram/index.js"
|
|
359
392
|
},
|
|
393
|
+
"./comms/discord": {
|
|
394
|
+
"import": {
|
|
395
|
+
"types": "./lib/types/comms/discord/index.d.mts",
|
|
396
|
+
"default": "./lib/esm/comms/discord/index.js"
|
|
397
|
+
},
|
|
398
|
+
"require": {
|
|
399
|
+
"types": "./lib/types/comms/discord/index.d.cts",
|
|
400
|
+
"default": "./lib/cjs/comms/discord/index.cjs"
|
|
401
|
+
},
|
|
402
|
+
"default": "./lib/esm/comms/discord/index.js"
|
|
403
|
+
},
|
|
404
|
+
"./comms/whatsapp": {
|
|
405
|
+
"import": {
|
|
406
|
+
"types": "./lib/types/comms/whatsapp/index.d.mts",
|
|
407
|
+
"default": "./lib/esm/comms/whatsapp/index.js"
|
|
408
|
+
},
|
|
409
|
+
"require": {
|
|
410
|
+
"types": "./lib/types/comms/whatsapp/index.d.cts",
|
|
411
|
+
"default": "./lib/cjs/comms/whatsapp/index.cjs"
|
|
412
|
+
},
|
|
413
|
+
"default": "./lib/esm/comms/whatsapp/index.js"
|
|
414
|
+
},
|
|
415
|
+
"./comms/outlook": {
|
|
416
|
+
"import": {
|
|
417
|
+
"types": "./lib/types/comms/outlook/index.d.mts",
|
|
418
|
+
"default": "./lib/esm/comms/outlook/index.js"
|
|
419
|
+
},
|
|
420
|
+
"require": {
|
|
421
|
+
"types": "./lib/types/comms/outlook/index.d.cts",
|
|
422
|
+
"default": "./lib/cjs/comms/outlook/index.cjs"
|
|
423
|
+
},
|
|
424
|
+
"default": "./lib/esm/comms/outlook/index.js"
|
|
425
|
+
},
|
|
360
426
|
"./devops": {
|
|
361
427
|
"import": {
|
|
362
428
|
"types": "./lib/types/devops/index.d.mts",
|
|
@@ -445,6 +511,61 @@
|
|
|
445
511
|
},
|
|
446
512
|
"default": "./lib/esm/io/spreadsheet/index.js"
|
|
447
513
|
},
|
|
514
|
+
"./io/microsoft-excel": {
|
|
515
|
+
"import": {
|
|
516
|
+
"types": "./lib/types/io/microsoft-excel/index.d.mts",
|
|
517
|
+
"default": "./lib/esm/io/microsoft-excel/index.js"
|
|
518
|
+
},
|
|
519
|
+
"require": {
|
|
520
|
+
"types": "./lib/types/io/microsoft-excel/index.d.cts",
|
|
521
|
+
"default": "./lib/cjs/io/microsoft-excel/index.cjs"
|
|
522
|
+
},
|
|
523
|
+
"default": "./lib/esm/io/microsoft-excel/index.js"
|
|
524
|
+
},
|
|
525
|
+
"./io/confluence": {
|
|
526
|
+
"import": {
|
|
527
|
+
"types": "./lib/types/io/confluence/index.d.mts",
|
|
528
|
+
"default": "./lib/esm/io/confluence/index.js"
|
|
529
|
+
},
|
|
530
|
+
"require": {
|
|
531
|
+
"types": "./lib/types/io/confluence/index.d.cts",
|
|
532
|
+
"default": "./lib/cjs/io/confluence/index.cjs"
|
|
533
|
+
},
|
|
534
|
+
"default": "./lib/esm/io/confluence/index.js"
|
|
535
|
+
},
|
|
536
|
+
"./io/jira": {
|
|
537
|
+
"import": {
|
|
538
|
+
"types": "./lib/types/io/jira/index.d.mts",
|
|
539
|
+
"default": "./lib/esm/io/jira/index.js"
|
|
540
|
+
},
|
|
541
|
+
"require": {
|
|
542
|
+
"types": "./lib/types/io/jira/index.d.cts",
|
|
543
|
+
"default": "./lib/cjs/io/jira/index.cjs"
|
|
544
|
+
},
|
|
545
|
+
"default": "./lib/esm/io/jira/index.js"
|
|
546
|
+
},
|
|
547
|
+
"./io/google-docs": {
|
|
548
|
+
"import": {
|
|
549
|
+
"types": "./lib/types/io/google-docs/index.d.mts",
|
|
550
|
+
"default": "./lib/esm/io/google-docs/index.js"
|
|
551
|
+
},
|
|
552
|
+
"require": {
|
|
553
|
+
"types": "./lib/types/io/google-docs/index.d.cts",
|
|
554
|
+
"default": "./lib/cjs/io/google-docs/index.cjs"
|
|
555
|
+
},
|
|
556
|
+
"default": "./lib/esm/io/google-docs/index.js"
|
|
557
|
+
},
|
|
558
|
+
"./io/microsoft-sharepoint": {
|
|
559
|
+
"import": {
|
|
560
|
+
"types": "./lib/types/io/microsoft-sharepoint/index.d.mts",
|
|
561
|
+
"default": "./lib/esm/io/microsoft-sharepoint/index.js"
|
|
562
|
+
},
|
|
563
|
+
"require": {
|
|
564
|
+
"types": "./lib/types/io/microsoft-sharepoint/index.d.cts",
|
|
565
|
+
"default": "./lib/cjs/io/microsoft-sharepoint/index.cjs"
|
|
566
|
+
},
|
|
567
|
+
"default": "./lib/esm/io/microsoft-sharepoint/index.js"
|
|
568
|
+
},
|
|
448
569
|
"./plugins": {
|
|
449
570
|
"import": {
|
|
450
571
|
"types": "./lib/types/plugins/index.d.mts",
|
|
@@ -521,33 +642,31 @@
|
|
|
521
642
|
"repo:pr": "npm run repo:doc && npm run repo:tests && npm run repo:readme",
|
|
522
643
|
"clean": "rimraf ./lib ./workdocs/coverage"
|
|
523
644
|
},
|
|
524
|
-
"
|
|
645
|
+
"devDependencies": {
|
|
646
|
+
"@aws-sdk/client-s3": "^3.1075.0",
|
|
647
|
+
"@aws-sdk/client-secrets-manager": "^3.758.0",
|
|
648
|
+
"@aws-sdk/s3-request-presigner": "^3.1075.0",
|
|
649
|
+
"@azure/identity": "4.13.0",
|
|
650
|
+
"@azure/keyvault-secrets": "^4.9.0",
|
|
651
|
+
"@azure/storage-blob": "^12.33.0",
|
|
652
|
+
"@decaf-ts/as-zod": "latest",
|
|
653
|
+
"@decaf-ts/cli": "latest",
|
|
525
654
|
"@decaf-ts/core": "latest",
|
|
526
655
|
"@decaf-ts/crypto": "latest",
|
|
527
656
|
"@decaf-ts/db-decorators": "latest",
|
|
528
657
|
"@decaf-ts/decoration": "latest",
|
|
529
658
|
"@decaf-ts/decorator-validation": "latest",
|
|
659
|
+
"@decaf-ts/for-http": "latest",
|
|
660
|
+
"@decaf-ts/for-nano": "latest",
|
|
661
|
+
"@decaf-ts/for-nest": "latest",
|
|
530
662
|
"@decaf-ts/injectable-decorators": "latest",
|
|
531
663
|
"@decaf-ts/logging": "latest",
|
|
532
664
|
"@decaf-ts/transactional-decorators": "latest",
|
|
533
665
|
"@decaf-ts/ui-decorators": "latest",
|
|
534
|
-
"acorn": "^8.17.0",
|
|
535
|
-
"acorn-walk": "^8.3.5",
|
|
536
|
-
"axios": "^1.7.9",
|
|
537
|
-
"isolated-vm": "^6.1.2",
|
|
538
|
-
"node-fetch": "^3.3.2",
|
|
539
|
-
"redis": "^6.3.0",
|
|
540
|
-
"tslib": "^2.8.1",
|
|
541
|
-
"typescript": "^5.9.3",
|
|
542
|
-
"uuid": "^11.1.1"
|
|
543
|
-
},
|
|
544
|
-
"devDependencies": {
|
|
545
|
-
"@decaf-ts/as-zod": "latest",
|
|
546
|
-
"@decaf-ts/cli": "latest",
|
|
547
|
-
"@decaf-ts/for-http": "latest",
|
|
548
|
-
"@decaf-ts/for-nano": "latest",
|
|
549
|
-
"@decaf-ts/for-nest": "latest",
|
|
550
666
|
"@decaf-ts/utils": "latest",
|
|
667
|
+
"@google-cloud/secret-manager": "^5.6.0",
|
|
668
|
+
"@google-cloud/storage": "^7.21.0",
|
|
669
|
+
"@grpc/grpc-js": "^1.14.6",
|
|
551
670
|
"@nestjs/common": "^11.0.0",
|
|
552
671
|
"@nestjs/core": "^11.0.0",
|
|
553
672
|
"@nestjs/platform-express": "^11.0.0",
|
|
@@ -557,54 +676,139 @@
|
|
|
557
676
|
"@types/jest": "^30.0.0",
|
|
558
677
|
"@types/pg": "^8.23.1",
|
|
559
678
|
"@types/supertest": "^6.0.0",
|
|
679
|
+
"acorn": "^8.17.0",
|
|
680
|
+
"acorn-walk": "^8.3.5",
|
|
681
|
+
"axios": "^1.7.9",
|
|
560
682
|
"cron-parser": "^5.7.0",
|
|
683
|
+
"form-data": "^4.0.6",
|
|
684
|
+
"imapflow": "^1.7.1",
|
|
685
|
+
"isolated-vm": "^6.1.2",
|
|
686
|
+
"node-fetch": "^3.3.2",
|
|
561
687
|
"nodemailer": "^10.1.7",
|
|
562
688
|
"pg": "^8.23.1",
|
|
689
|
+
"redis": "^6.3.0",
|
|
563
690
|
"reflect-metadata": "^0.2.0",
|
|
564
691
|
"rxjs": "^7.8.0",
|
|
565
|
-
"
|
|
692
|
+
"ssh2": "^1.16.0",
|
|
693
|
+
"supertest": "^7.0.0",
|
|
694
|
+
"tslib": "^2.8.1",
|
|
695
|
+
"typescript": "^5.9.3",
|
|
696
|
+
"uuid": "^11.1.1"
|
|
566
697
|
},
|
|
567
698
|
"peerDependencies": {
|
|
568
|
-
"@
|
|
699
|
+
"@aws-sdk/client-s3": "^3.1075.0",
|
|
700
|
+
"@aws-sdk/client-secrets-manager": "^3.758.0",
|
|
701
|
+
"@aws-sdk/s3-request-presigner": "^3.1075.0",
|
|
702
|
+
"@azure/identity": "^4.13.0",
|
|
703
|
+
"@azure/keyvault-secrets": "^4.9.0",
|
|
704
|
+
"@azure/storage-blob": "^12.33.0",
|
|
705
|
+
"@decaf-ts/core": "latest",
|
|
706
|
+
"@decaf-ts/crypto": "latest",
|
|
707
|
+
"@decaf-ts/db-decorators": "latest",
|
|
708
|
+
"@decaf-ts/decoration": "latest",
|
|
709
|
+
"@decaf-ts/decorator-validation": "latest",
|
|
569
710
|
"@decaf-ts/for-http": "latest",
|
|
570
|
-
"@decaf-ts/
|
|
571
|
-
"
|
|
572
|
-
"
|
|
573
|
-
"
|
|
711
|
+
"@decaf-ts/injectable-decorators": "latest",
|
|
712
|
+
"@decaf-ts/logging": "latest",
|
|
713
|
+
"@decaf-ts/ui-decorators": "latest",
|
|
714
|
+
"@google-cloud/secret-manager": "^5.6.0",
|
|
715
|
+
"@google-cloud/storage": "^7.21.0",
|
|
716
|
+
"@grpc/grpc-js": "^1.14.6",
|
|
717
|
+
"@nestjs/common": "^11.0.0",
|
|
718
|
+
"axios": "^1.7.9",
|
|
719
|
+
"cron-parser": "^5.7.0",
|
|
720
|
+
"form-data": "^4.0.6",
|
|
721
|
+
"imapflow": "^1.7.1",
|
|
722
|
+
"nodemailer": "^10.1.7",
|
|
723
|
+
"redis": "^6.3.0",
|
|
724
|
+
"reflect-metadata": "^0.2.0",
|
|
725
|
+
"ssh2": "^1.16.0"
|
|
574
726
|
},
|
|
575
727
|
"peerDependenciesMeta": {
|
|
728
|
+
"@aws-sdk/client-s3": {
|
|
729
|
+
"optional": true
|
|
730
|
+
},
|
|
731
|
+
"@aws-sdk/client-secrets-manager": {
|
|
732
|
+
"optional": true
|
|
733
|
+
},
|
|
734
|
+
"@aws-sdk/s3-request-presigner": {
|
|
735
|
+
"optional": true
|
|
736
|
+
},
|
|
737
|
+
"@azure/identity": {
|
|
738
|
+
"optional": true
|
|
739
|
+
},
|
|
740
|
+
"@azure/keyvault-secrets": {
|
|
741
|
+
"optional": true
|
|
742
|
+
},
|
|
743
|
+
"@azure/storage-blob": {
|
|
744
|
+
"optional": true
|
|
745
|
+
},
|
|
746
|
+
"@decaf-ts/core": {
|
|
747
|
+
"optional": true
|
|
748
|
+
},
|
|
749
|
+
"@decaf-ts/crypto": {
|
|
750
|
+
"optional": true
|
|
751
|
+
},
|
|
752
|
+
"@decaf-ts/db-decorators": {
|
|
753
|
+
"optional": true
|
|
754
|
+
},
|
|
755
|
+
"@decaf-ts/decoration": {
|
|
756
|
+
"optional": true
|
|
757
|
+
},
|
|
758
|
+
"@decaf-ts/decorator-validation": {
|
|
759
|
+
"optional": true
|
|
760
|
+
},
|
|
576
761
|
"@decaf-ts/for-http": {
|
|
577
762
|
"optional": true
|
|
578
763
|
},
|
|
579
|
-
"@decaf-ts/
|
|
764
|
+
"@decaf-ts/injectable-decorators": {
|
|
765
|
+
"optional": true
|
|
766
|
+
},
|
|
767
|
+
"@decaf-ts/logging": {
|
|
768
|
+
"optional": true
|
|
769
|
+
},
|
|
770
|
+
"@decaf-ts/ui-decorators": {
|
|
771
|
+
"optional": true
|
|
772
|
+
},
|
|
773
|
+
"@google-cloud/secret-manager": {
|
|
774
|
+
"optional": true
|
|
775
|
+
},
|
|
776
|
+
"@google-cloud/storage": {
|
|
777
|
+
"optional": true
|
|
778
|
+
},
|
|
779
|
+
"@grpc/grpc-js": {
|
|
580
780
|
"optional": true
|
|
581
781
|
},
|
|
582
|
-
"
|
|
782
|
+
"axios": {
|
|
783
|
+
"optional": true
|
|
784
|
+
},
|
|
785
|
+
"cron-parser": {
|
|
786
|
+
"optional": true
|
|
787
|
+
},
|
|
788
|
+
"form-data": {
|
|
789
|
+
"optional": true
|
|
790
|
+
},
|
|
791
|
+
"imapflow": {
|
|
583
792
|
"optional": true
|
|
584
793
|
},
|
|
585
794
|
"nodemailer": {
|
|
586
795
|
"optional": true
|
|
587
796
|
},
|
|
588
|
-
"
|
|
797
|
+
"redis": {
|
|
798
|
+
"optional": true
|
|
799
|
+
},
|
|
800
|
+
"reflect-metadata": {
|
|
801
|
+
"optional": true
|
|
802
|
+
},
|
|
803
|
+
"ssh2": {
|
|
804
|
+
"optional": true
|
|
805
|
+
},
|
|
806
|
+
"@nestjs/common": {
|
|
589
807
|
"optional": true
|
|
590
808
|
}
|
|
591
809
|
},
|
|
592
810
|
"overrides": {
|
|
593
|
-
"js-yaml": "^5.2.2"
|
|
594
|
-
|
|
595
|
-
"optionalDependencies": {
|
|
596
|
-
"@aws-sdk/client-s3": "^3.1075.0",
|
|
597
|
-
"@aws-sdk/client-secrets-manager": "^3.758.0",
|
|
598
|
-
"@aws-sdk/s3-request-presigner": "^3.1075.0",
|
|
599
|
-
"@azure/identity": "^4.13.1",
|
|
600
|
-
"@azure/keyvault-secrets": "^4.9.0",
|
|
601
|
-
"@azure/storage-blob": "^12.33.0",
|
|
602
|
-
"@google-cloud/secret-manager": "^5.6.0",
|
|
603
|
-
"@google-cloud/storage": "^7.21.0",
|
|
604
|
-
"hashicorp-vault": "^0.1.0",
|
|
605
|
-
"imapflow": "^1.7.1",
|
|
606
|
-
"keycloak-admin": "^24.0.5",
|
|
607
|
-
"onelogin-node": "^0.1.0",
|
|
608
|
-
"ssh2": "^1.16.0"
|
|
811
|
+
"js-yaml": "^5.2.2",
|
|
812
|
+
"multer": "^2.5.0"
|
|
609
813
|
}
|
|
610
814
|
}
|