@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 @@
|
|
|
1
|
+
{"version":3,"file":"io/jira/JiraService.cjs","sourceRoot":"","sources":["io/jira/JiraService.js"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;GAaG;AACH,2DAAwD;AACxD,wDAAoD;AACpD,4EAA0E;AAC1E,2DAA0E;AAC1E,gFAAgF;AAChF,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAClC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,WAAY,SAAQ,yBAAc;IAC3C;QACI,KAAK,CAAC,GAAG,SAAS,CAAC,CAAC;QACpB;;WAEG;QACH,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;IAC9B,CAAC;IACD;;;;;OAKG;IACH,cAAc;QACV,OAAO,EAAE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,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACpD,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACzB,CAAC;QACD,OAAO,KAAK,EAAE,CAAC;YACX,MAAM,IAAA,oBAAS,EAAC,MAAM,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;QACpD,CAAC;IACL,CAAC;CACJ;AA9RD,kCA8RC;AACD,uCAAuC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./JiraService.cjs"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
19
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io/jira/index.cjs","sourceRoot":"","sources":["io/jira/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,iCAAiC"}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MicrosoftExcelService = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module integrations/io/microsoft-excel/service
|
|
6
|
+
* @summary Microsoft Excel workbook integration service (Microsoft Graph).
|
|
7
|
+
* @description Exposes Graph workbook operations (worksheets, ranges, tables,
|
|
8
|
+
* and table rows) as an undecorated client-based service built on
|
|
9
|
+
* {@link HttpApiService}. Configuration comes from an explicit
|
|
10
|
+
* `MicrosoftExcelServiceConfig` or the `io.microsoftExcel` environment slice;
|
|
11
|
+
* the access token is sent as `Authorization: Bearer <token>`. Workbooks are
|
|
12
|
+
* addressed by OneDrive/SharePoint `itemId`, optionally within a `driveId`.
|
|
13
|
+
* Credentials are referenced from configuration (and, from as-graph nodes, from
|
|
14
|
+
* the resolved `microsoft-excel` credential secret) and are never embedded in
|
|
15
|
+
* source. Failures are mapped to decaf errors via {@link httpError}.
|
|
16
|
+
*/
|
|
17
|
+
const db_decorators_1 = require("@decaf-ts/db-decorators");
|
|
18
|
+
const environment_js_1 = require("./../environment.cjs");
|
|
19
|
+
const environmentValue_js_1 = require("./../../shared/environmentValue.cjs");
|
|
20
|
+
const index_js_1 = require("./../../shared/http/index.cjs");
|
|
21
|
+
/**
|
|
22
|
+
* @description Microsoft Excel (Graph) workbook integration service
|
|
23
|
+
* @summary An undecorated HTTP service for listing worksheets and tables,
|
|
24
|
+
* reading and writing ranges, and appending table rows. Every operation
|
|
25
|
+
* requires a Graph access token and a workbook `itemId`; missing credentials or
|
|
26
|
+
* identifiers raise `InternalError`, and transport failures are mapped to decaf
|
|
27
|
+
* errors via {@link httpError}.
|
|
28
|
+
* @class MicrosoftExcelService
|
|
29
|
+
* @extends HttpApiService
|
|
30
|
+
* @category IO
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* import { MicrosoftExcelService } from "@decaf-ts/integrations/io/microsoft-excel";
|
|
34
|
+
*
|
|
35
|
+
* const excel = new MicrosoftExcelService();
|
|
36
|
+
* await excel.initialize({
|
|
37
|
+
* token: process.env.GRAPH_CREDENTIAL_MICROSOFT_EXCEL_TOKEN,
|
|
38
|
+
* });
|
|
39
|
+
* const range = await excel.getRange({
|
|
40
|
+
* itemId: process.env.EXCEL_ITEM_ID ?? "",
|
|
41
|
+
* worksheet: "Sheet1",
|
|
42
|
+
* range: "A1:C10",
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
* @mermaid
|
|
46
|
+
* sequenceDiagram
|
|
47
|
+
* autonumber
|
|
48
|
+
* participant Caller
|
|
49
|
+
* participant Service as MicrosoftExcelService
|
|
50
|
+
* participant Graph as Microsoft Graph
|
|
51
|
+
* Caller->>Service: updateRange(input)
|
|
52
|
+
* activate Service
|
|
53
|
+
* Service->>Service: requireAccessToken()
|
|
54
|
+
* Service->>Graph: PATCH /me/drive/items/{id}/workbook/worksheets/{name}/range(...)
|
|
55
|
+
* activate Graph
|
|
56
|
+
* Graph-->>Service: updated range payload
|
|
57
|
+
* deactivate Graph
|
|
58
|
+
* Service-->>Caller: updated range payload
|
|
59
|
+
* deactivate Service
|
|
60
|
+
* @memberOf module:integrations/io/microsoft-excel/service
|
|
61
|
+
*/
|
|
62
|
+
class MicrosoftExcelService extends index_js_1.HttpApiService {
|
|
63
|
+
constructor() {
|
|
64
|
+
super(...arguments);
|
|
65
|
+
/**
|
|
66
|
+
* @description The provider name used in error messages
|
|
67
|
+
*/
|
|
68
|
+
this.serviceName = "Microsoft Excel";
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @description The Microsoft Graph base URL
|
|
72
|
+
* @summary Used when the resolved config carries no `baseUrl`.
|
|
73
|
+
* @returns {string} `"https://graph.microsoft.com/v1.0"`.
|
|
74
|
+
*/
|
|
75
|
+
defaultBaseUrl() {
|
|
76
|
+
return "https://graph.microsoft.com/v1.0";
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @description Builds the Microsoft Graph bearer authorization headers
|
|
80
|
+
* @summary Returns `Authorization: Bearer <token>` when configured, and no
|
|
81
|
+
* headers otherwise.
|
|
82
|
+
* @param {MicrosoftExcelServiceConfig} config - The resolved service configuration.
|
|
83
|
+
* @returns {Record<string, string>} The authorization headers (empty without a token).
|
|
84
|
+
*/
|
|
85
|
+
authHeaders(config) {
|
|
86
|
+
return config.token ? { Authorization: `Bearer ${config.token}` } : {};
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @description Reads the Excel credentials and defaults from the environment
|
|
90
|
+
* @summary Reads the `io.microsoftExcel` slice and returns a partial config
|
|
91
|
+
* when an access token is configured, `undefined` otherwise. Values pass
|
|
92
|
+
* through `envString`/`envNumber` to reject unset-leaf proxies.
|
|
93
|
+
* @returns {Partial<MicrosoftExcelServiceConfig> | undefined} A partial config, or `undefined` when no Excel token is configured.
|
|
94
|
+
*/
|
|
95
|
+
configFromEnvironment() {
|
|
96
|
+
const env = environment_js_1.IoEnvironment.io.microsoftExcel;
|
|
97
|
+
const token = (0, environmentValue_js_1.envString)(env?.token);
|
|
98
|
+
if (!token)
|
|
99
|
+
return undefined;
|
|
100
|
+
return {
|
|
101
|
+
token,
|
|
102
|
+
baseUrl: (0, environmentValue_js_1.envString)(env.baseUrl),
|
|
103
|
+
timeout: (0, environmentValue_js_1.envNumber)(env.timeout),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* @description Asserts that a Microsoft Graph access token is configured
|
|
108
|
+
* @summary Delegates to the shared `requireToken()` guard used by every
|
|
109
|
+
* operation.
|
|
110
|
+
* @returns {void}
|
|
111
|
+
* @throws {InternalError} When the resolved config has no `token`.
|
|
112
|
+
*/
|
|
113
|
+
requireAccessToken() {
|
|
114
|
+
this.requireToken();
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @description Builds the Graph workbook path for a drive item
|
|
118
|
+
* @summary Uses `/drives/<driveId>/items/<itemId>/workbook` when a `driveId`
|
|
119
|
+
* is set, otherwise the signed-in user's `/me/drive/...` path.
|
|
120
|
+
* @param {ExcelWorkbookRef} input - The workbook reference.
|
|
121
|
+
* @returns {string} The workbook API path.
|
|
122
|
+
* @throws {InternalError} When `itemId` is empty.
|
|
123
|
+
*/
|
|
124
|
+
workbookPath(input) {
|
|
125
|
+
if (!input.itemId) {
|
|
126
|
+
throw new db_decorators_1.InternalError("Microsoft Excel requires a workbook item id");
|
|
127
|
+
}
|
|
128
|
+
const item = encodeURIComponent(input.itemId);
|
|
129
|
+
return input.driveId
|
|
130
|
+
? `/drives/${encodeURIComponent(input.driveId)}/items/${item}/workbook`
|
|
131
|
+
: `/me/drive/items/${item}/workbook`;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* @description Builds the Graph worksheet range path
|
|
135
|
+
* @summary Appends the encoded worksheet and A1 `range(address=...)`
|
|
136
|
+
* segments to the workbook path.
|
|
137
|
+
* @param {ExcelRangeInput} input - The workbook, worksheet, and range.
|
|
138
|
+
* @returns {string} The worksheet range API path.
|
|
139
|
+
* @throws {InternalError} When the worksheet or range is empty.
|
|
140
|
+
*/
|
|
141
|
+
rangePath(input) {
|
|
142
|
+
if (!input.worksheet || !input.range) {
|
|
143
|
+
throw new db_decorators_1.InternalError("Microsoft Excel requires a worksheet and range");
|
|
144
|
+
}
|
|
145
|
+
return `${this.workbookPath(input)}/worksheets/${encodeURIComponent(input.worksheet)}/range(address='${encodeURIComponent(input.range)}')`;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* @description Lists the worksheets in a workbook
|
|
149
|
+
* @summary `GET`s the workbook's `/worksheets` collection.
|
|
150
|
+
* @param {ExcelWorkbookRef} input - The workbook reference.
|
|
151
|
+
* @returns {Promise<unknown>} The Graph worksheet collection.
|
|
152
|
+
* @throws {InternalError} When no token is configured or `itemId` is empty.
|
|
153
|
+
* @throws {NotFoundError} When the workbook does not exist (HTTP 404).
|
|
154
|
+
* @throws {BadRequestError} When Graph rejects the request.
|
|
155
|
+
*/
|
|
156
|
+
async listWorksheets(input) {
|
|
157
|
+
this.requireAccessToken();
|
|
158
|
+
try {
|
|
159
|
+
const response = await this.client.get(`${this.workbookPath(input)}/worksheets`);
|
|
160
|
+
return response.data;
|
|
161
|
+
}
|
|
162
|
+
catch (error) {
|
|
163
|
+
throw (0, index_js_1.httpError)("Microsoft Excel", "list worksheets", error);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* @description Reads values from a worksheet range
|
|
168
|
+
* @summary `GET`s the addressed range and returns its values and formatting
|
|
169
|
+
* payload.
|
|
170
|
+
* @param {ExcelRangeInput} input - The workbook, worksheet, and range.
|
|
171
|
+
* @returns {Promise<unknown>} The range payload.
|
|
172
|
+
* @throws {InternalError} When no token is configured, or the workbook, worksheet, or range is empty.
|
|
173
|
+
* @throws {NotFoundError} When the workbook or range does not exist (HTTP 404).
|
|
174
|
+
* @throws {BadRequestError} When Graph rejects the request.
|
|
175
|
+
*/
|
|
176
|
+
async getRange(input) {
|
|
177
|
+
this.requireAccessToken();
|
|
178
|
+
try {
|
|
179
|
+
const response = await this.client.get(this.rangePath(input));
|
|
180
|
+
return response.data;
|
|
181
|
+
}
|
|
182
|
+
catch (error) {
|
|
183
|
+
throw (0, index_js_1.httpError)("Microsoft Excel", "get range", error);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* @description Writes values into a worksheet range
|
|
188
|
+
* @summary `PATCH`es the addressed range with the supplied `values` matrix
|
|
189
|
+
* and returns the updated range payload.
|
|
190
|
+
* @param {ExcelRangeWriteInput} input - The range reference and values to write.
|
|
191
|
+
* @returns {Promise<unknown>} The updated range payload.
|
|
192
|
+
* @throws {InternalError} When no token is configured, or the workbook, worksheet, or range is empty.
|
|
193
|
+
* @throws {NotFoundError} When the workbook or range does not exist (HTTP 404).
|
|
194
|
+
* @throws {BadRequestError} When Graph rejects the request.
|
|
195
|
+
*/
|
|
196
|
+
async updateRange(input) {
|
|
197
|
+
this.requireAccessToken();
|
|
198
|
+
try {
|
|
199
|
+
const response = await this.client.patch(this.rangePath(input), {
|
|
200
|
+
values: input.values,
|
|
201
|
+
});
|
|
202
|
+
return response.data;
|
|
203
|
+
}
|
|
204
|
+
catch (error) {
|
|
205
|
+
throw (0, index_js_1.httpError)("Microsoft Excel", "update range", error);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* @description Lists the tables in a workbook
|
|
210
|
+
* @summary `GET`s the workbook's `/tables` collection.
|
|
211
|
+
* @param {ExcelWorkbookRef} input - The workbook reference.
|
|
212
|
+
* @returns {Promise<unknown>} The Graph table collection.
|
|
213
|
+
* @throws {InternalError} When no token is configured or `itemId` is empty.
|
|
214
|
+
* @throws {NotFoundError} When the workbook does not exist (HTTP 404).
|
|
215
|
+
* @throws {BadRequestError} When Graph rejects the request.
|
|
216
|
+
*/
|
|
217
|
+
async listTables(input) {
|
|
218
|
+
this.requireAccessToken();
|
|
219
|
+
try {
|
|
220
|
+
const response = await this.client.get(`${this.workbookPath(input)}/tables`);
|
|
221
|
+
return response.data;
|
|
222
|
+
}
|
|
223
|
+
catch (error) {
|
|
224
|
+
throw (0, index_js_1.httpError)("Microsoft Excel", "list tables", error);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* @description Appends a row to an Excel table
|
|
229
|
+
* @summary `POST`s the single row to the table's `/rows/add` endpoint and
|
|
230
|
+
* returns the Graph row payload.
|
|
231
|
+
* @param {ExcelTableRowInput} input - The workbook, table, and row values.
|
|
232
|
+
* @returns {Promise<unknown>} The created table row payload.
|
|
233
|
+
* @throws {InternalError} When no token is configured, or the workbook, table, or values are missing.
|
|
234
|
+
* @throws {NotFoundError} When the workbook or table does not exist (HTTP 404).
|
|
235
|
+
* @throws {BadRequestError} When Graph rejects the request.
|
|
236
|
+
*/
|
|
237
|
+
async addTableRow(input) {
|
|
238
|
+
this.requireAccessToken();
|
|
239
|
+
if (!input.tableId || !input.values?.length) {
|
|
240
|
+
throw new db_decorators_1.InternalError("Microsoft Excel addTableRow requires a table id and values");
|
|
241
|
+
}
|
|
242
|
+
try {
|
|
243
|
+
const response = await this.client.post(`${this.workbookPath(input)}/tables/${encodeURIComponent(input.tableId)}/rows/add`, { values: [input.values] });
|
|
244
|
+
return response.data;
|
|
245
|
+
}
|
|
246
|
+
catch (error) {
|
|
247
|
+
throw (0, index_js_1.httpError)("Microsoft Excel", "add table row", error);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
exports.MicrosoftExcelService = MicrosoftExcelService;
|
|
252
|
+
//# sourceMappingURL=MicrosoftExcelService.js.map
|
|
253
|
+
//# sourceMappingURL=MicrosoftExcelService.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io/microsoft-excel/MicrosoftExcelService.cjs","sourceRoot":"","sources":["io/microsoft-excel/MicrosoftExcelService.js"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;GAYG;AACH,2DAAwD;AACxD,wDAAoD;AACpD,4EAA0E;AAC1E,2DAA0E;AAC1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,qBAAsB,SAAQ,yBAAc;IACrD;QACI,KAAK,CAAC,GAAG,SAAS,CAAC,CAAC;QACpB;;WAEG;QACH,IAAI,CAAC,WAAW,GAAG,iBAAiB,CAAC;IACzC,CAAC;IACD;;;;OAIG;IACH,cAAc;QACV,OAAO,kCAAkC,CAAC;IAC9C,CAAC;IACD;;;;;;OAMG;IACH,WAAW,CAAC,MAAM;QACd,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,UAAU,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3E,CAAC;IACD;;;;;;OAMG;IACH,qBAAqB;QACjB,MAAM,GAAG,GAAG,8BAAa,CAAC,EAAE,CAAC,cAAc,CAAC;QAC5C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CAAC;QAC1B,IAAI,CAAC;YACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;YAC7E,OAAO,QAAQ,CAAC,IAAI,CAAC;QACzB,CAAC;QACD,OAAO,KAAK,EAAE,CAAC;YACX,MAAM,IAAA,oBAAS,EAAC,iBAAiB,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;QAC7D,CAAC;IACL,CAAC;IACD;;;;;;;;;OASG;IACH,KAAK,CAAC,WAAW,CAAC,KAAK;QACnB,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC1B,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;YAC1C,MAAM,IAAI,6BAAa,CAAC,4DAA4D,CAAC,CAAC;QAC1F,CAAC;QACD,IAAI,CAAC;YACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,WAAW,kBAAkB,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACxJ,OAAO,QAAQ,CAAC,IAAI,CAAC;QACzB,CAAC;QACD,OAAO,KAAK,EAAE,CAAC;YACX,MAAM,IAAA,oBAAS,EAAC,iBAAiB,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;QAC/D,CAAC;IACL,CAAC;CACJ;AA5LD,sDA4LC;AACD,iDAAiD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./MicrosoftExcelService.cjs"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
19
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io/microsoft-excel/index.cjs","sourceRoot":"","sources":["io/microsoft-excel/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,iCAAiC"}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MicrosoftSharePointService = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module integrations/io/microsoft-sharepoint/service
|
|
6
|
+
* @summary Microsoft SharePoint integration service (Microsoft Graph).
|
|
7
|
+
* @description Exposes SharePoint site, list, list-item, and drive-item
|
|
8
|
+
* operations through Microsoft Graph `v1.0` as an undecorated client-based
|
|
9
|
+
* service built on {@link HttpApiService}. Configuration comes from an explicit
|
|
10
|
+
* `MicrosoftSharePointServiceConfig` or the `io.microsoftSharePoint` environment
|
|
11
|
+
* slice; the access token is sent as `Authorization: Bearer <token>`.
|
|
12
|
+
* Credentials are referenced from configuration (and, from as-graph nodes, from
|
|
13
|
+
* the resolved `microsoft-sharepoint` credential secret) and are never embedded
|
|
14
|
+
* in source. Failures are mapped to decaf errors via {@link httpError}.
|
|
15
|
+
*/
|
|
16
|
+
const db_decorators_1 = require("@decaf-ts/db-decorators");
|
|
17
|
+
const environment_js_1 = require("./../environment.cjs");
|
|
18
|
+
const environmentValue_js_1 = require("./../../shared/environmentValue.cjs");
|
|
19
|
+
const index_js_1 = require("./../../shared/http/index.cjs");
|
|
20
|
+
/**
|
|
21
|
+
* @description Microsoft SharePoint (Graph) integration service
|
|
22
|
+
* @summary An undecorated HTTP service for searching sites, reading a site's
|
|
23
|
+
* lists and list items, creating list items, and listing drive folder
|
|
24
|
+
* contents. Every operation requires a Graph access token; missing credentials
|
|
25
|
+
* or identifiers raise `InternalError`, and transport failures are mapped to
|
|
26
|
+
* decaf errors via {@link httpError}.
|
|
27
|
+
* @class MicrosoftSharePointService
|
|
28
|
+
* @extends HttpApiService
|
|
29
|
+
* @category IO
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* import { MicrosoftSharePointService } from "@decaf-ts/integrations/io/microsoft-sharepoint";
|
|
33
|
+
*
|
|
34
|
+
* const sharepoint = new MicrosoftSharePointService();
|
|
35
|
+
* await sharepoint.initialize({
|
|
36
|
+
* token: process.env.GRAPH_CREDENTIAL_MICROSOFT_SHAREPOINT_TOKEN,
|
|
37
|
+
* });
|
|
38
|
+
* const sites = await sharepoint.listSites("ops");
|
|
39
|
+
* ```
|
|
40
|
+
* @mermaid
|
|
41
|
+
* sequenceDiagram
|
|
42
|
+
* autonumber
|
|
43
|
+
* participant Caller
|
|
44
|
+
* participant Service as MicrosoftSharePointService
|
|
45
|
+
* participant Graph as Microsoft Graph
|
|
46
|
+
* Caller->>Service: listItems(input)
|
|
47
|
+
* activate Service
|
|
48
|
+
* Service->>Service: requireAccessToken()
|
|
49
|
+
* Service->>Graph: GET /sites/{siteId}/lists/{listId}/items
|
|
50
|
+
* activate Graph
|
|
51
|
+
* Graph-->>Service: list items payload
|
|
52
|
+
* deactivate Graph
|
|
53
|
+
* Service-->>Caller: list items payload
|
|
54
|
+
* deactivate Service
|
|
55
|
+
* @memberOf module:integrations/io/microsoft-sharepoint/service
|
|
56
|
+
*/
|
|
57
|
+
class MicrosoftSharePointService extends index_js_1.HttpApiService {
|
|
58
|
+
constructor() {
|
|
59
|
+
super(...arguments);
|
|
60
|
+
/**
|
|
61
|
+
* @description The provider name used in error messages
|
|
62
|
+
*/
|
|
63
|
+
this.serviceName = "Microsoft SharePoint";
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @description The Microsoft Graph base URL
|
|
67
|
+
* @summary Used when the resolved config carries no `baseUrl`.
|
|
68
|
+
* @returns {string} `"https://graph.microsoft.com/v1.0"`.
|
|
69
|
+
*/
|
|
70
|
+
defaultBaseUrl() {
|
|
71
|
+
return "https://graph.microsoft.com/v1.0";
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* @description Builds the Microsoft Graph bearer authorization headers
|
|
75
|
+
* @summary Returns `Authorization: Bearer <token>` when configured, and no
|
|
76
|
+
* headers otherwise.
|
|
77
|
+
* @param {MicrosoftSharePointServiceConfig} config - The resolved service configuration.
|
|
78
|
+
* @returns {Record<string, string>} The authorization headers (empty without a token).
|
|
79
|
+
*/
|
|
80
|
+
authHeaders(config) {
|
|
81
|
+
return config.token ? { Authorization: `Bearer ${config.token}` } : {};
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @description Reads the SharePoint credentials and defaults from the environment
|
|
85
|
+
* @summary Reads the `io.microsoftSharePoint` slice and returns a partial
|
|
86
|
+
* config when an access token is configured, `undefined` otherwise. Values
|
|
87
|
+
* pass through `envString`/`envNumber` to reject unset-leaf proxies.
|
|
88
|
+
* @returns {Partial<MicrosoftSharePointServiceConfig> | undefined} A partial config, or `undefined` when no SharePoint token is configured.
|
|
89
|
+
*/
|
|
90
|
+
configFromEnvironment() {
|
|
91
|
+
const env = environment_js_1.IoEnvironment.io.microsoftSharePoint;
|
|
92
|
+
const token = (0, environmentValue_js_1.envString)(env?.token);
|
|
93
|
+
if (!token)
|
|
94
|
+
return undefined;
|
|
95
|
+
return {
|
|
96
|
+
token,
|
|
97
|
+
baseUrl: (0, environmentValue_js_1.envString)(env.baseUrl),
|
|
98
|
+
timeout: (0, environmentValue_js_1.envNumber)(env.timeout),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @description Asserts that a Microsoft Graph access token is configured
|
|
103
|
+
* @summary Delegates to the shared `requireToken()` guard used by every
|
|
104
|
+
* operation.
|
|
105
|
+
* @returns {void}
|
|
106
|
+
* @throws {InternalError} When the resolved config has no `token`.
|
|
107
|
+
*/
|
|
108
|
+
requireAccessToken() {
|
|
109
|
+
this.requireToken();
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* @description Builds the encoded path for a SharePoint site
|
|
113
|
+
* @summary Validates the site ID and URL-encodes it into `/sites/<id>`.
|
|
114
|
+
* @param {string} siteId - The SharePoint site ID.
|
|
115
|
+
* @returns {string} The site API path.
|
|
116
|
+
* @throws {InternalError} When `siteId` is empty.
|
|
117
|
+
*/
|
|
118
|
+
sitePath(siteId) {
|
|
119
|
+
if (!siteId) {
|
|
120
|
+
throw new db_decorators_1.InternalError("Microsoft SharePoint requires a site id");
|
|
121
|
+
}
|
|
122
|
+
return `/sites/${encodeURIComponent(siteId)}`;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* @description Searches SharePoint sites
|
|
126
|
+
* @summary `GET`s `/sites` with a `search` term (default `"*"`).
|
|
127
|
+
* @param {string} [search] - Site search term; defaults to `"*"`.
|
|
128
|
+
* @returns {Promise<unknown>} The site collection payload.
|
|
129
|
+
* @throws {InternalError} When no token is configured.
|
|
130
|
+
* @throws {BadRequestError} When Graph rejects the request.
|
|
131
|
+
*/
|
|
132
|
+
async listSites(search = "*") {
|
|
133
|
+
this.requireAccessToken();
|
|
134
|
+
try {
|
|
135
|
+
const response = await this.client.get("/sites", {
|
|
136
|
+
params: { search },
|
|
137
|
+
});
|
|
138
|
+
return response.data;
|
|
139
|
+
}
|
|
140
|
+
catch (error) {
|
|
141
|
+
throw (0, index_js_1.httpError)("Microsoft SharePoint", "list sites", error);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* @description Fetches a SharePoint site
|
|
146
|
+
* @summary `GET`s `/sites/<id>` and returns the site payload.
|
|
147
|
+
* @param {string} siteId - The site ID to fetch.
|
|
148
|
+
* @returns {Promise<unknown>} The site payload.
|
|
149
|
+
* @throws {InternalError} When no token is configured or the site ID is empty.
|
|
150
|
+
* @throws {NotFoundError} When the site does not exist (HTTP 404).
|
|
151
|
+
* @throws {BadRequestError} When Graph rejects the request.
|
|
152
|
+
*/
|
|
153
|
+
async getSite(siteId) {
|
|
154
|
+
this.requireAccessToken();
|
|
155
|
+
try {
|
|
156
|
+
const response = await this.client.get(this.sitePath(siteId));
|
|
157
|
+
return response.data;
|
|
158
|
+
}
|
|
159
|
+
catch (error) {
|
|
160
|
+
throw (0, index_js_1.httpError)("Microsoft SharePoint", "get site", error);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* @description Lists the lists in a SharePoint site
|
|
165
|
+
* @summary `GET`s `/sites/<id>/lists`.
|
|
166
|
+
* @param {string} siteId - The site whose lists are listed.
|
|
167
|
+
* @returns {Promise<unknown>} The list collection payload.
|
|
168
|
+
* @throws {InternalError} When no token is configured or the site ID is empty.
|
|
169
|
+
* @throws {NotFoundError} When the site does not exist (HTTP 404).
|
|
170
|
+
* @throws {BadRequestError} When Graph rejects the request.
|
|
171
|
+
*/
|
|
172
|
+
async listLists(siteId) {
|
|
173
|
+
this.requireAccessToken();
|
|
174
|
+
try {
|
|
175
|
+
const response = await this.client.get(`${this.sitePath(siteId)}/lists`);
|
|
176
|
+
return response.data;
|
|
177
|
+
}
|
|
178
|
+
catch (error) {
|
|
179
|
+
throw (0, index_js_1.httpError)("Microsoft SharePoint", "list lists", error);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* @description Lists items in a SharePoint list
|
|
184
|
+
* @summary `GET`s the list's `/items` endpoint expanding `fields` and
|
|
185
|
+
* applying the optional `$top` and `$filter` options.
|
|
186
|
+
* @param {SharePointItemsInput} input - The site, list, and query options.
|
|
187
|
+
* @returns {Promise<unknown>} The list item collection payload.
|
|
188
|
+
* @throws {InternalError} When no token is configured, or the site or list ID is empty.
|
|
189
|
+
* @throws {NotFoundError} When the site or list does not exist (HTTP 404).
|
|
190
|
+
* @throws {BadRequestError} When Graph rejects the query.
|
|
191
|
+
*/
|
|
192
|
+
async listItems(input) {
|
|
193
|
+
this.requireAccessToken();
|
|
194
|
+
if (!input.listId) {
|
|
195
|
+
throw new db_decorators_1.InternalError("Microsoft SharePoint requires a list id");
|
|
196
|
+
}
|
|
197
|
+
try {
|
|
198
|
+
const response = await this.client.get(`${this.sitePath(input.siteId)}/lists/${encodeURIComponent(input.listId)}/items`, {
|
|
199
|
+
params: {
|
|
200
|
+
$expand: "fields",
|
|
201
|
+
...(input.top !== undefined ? { $top: input.top } : {}),
|
|
202
|
+
...(input.filter ? { $filter: input.filter } : {}),
|
|
203
|
+
},
|
|
204
|
+
});
|
|
205
|
+
return response.data;
|
|
206
|
+
}
|
|
207
|
+
catch (error) {
|
|
208
|
+
throw (0, index_js_1.httpError)("Microsoft SharePoint", "list items", error);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* @description Creates a SharePoint list item
|
|
213
|
+
* @summary `POST`s the `fields` map to the list's `/items` endpoint.
|
|
214
|
+
* @param {SharePointListItemInput} input - The site, list, and item fields.
|
|
215
|
+
* @returns {Promise<unknown>} The created item payload.
|
|
216
|
+
* @throws {InternalError} When no token is configured, or the site, list, or fields are missing.
|
|
217
|
+
* @throws {NotFoundError} When the site or list does not exist (HTTP 404).
|
|
218
|
+
* @throws {BadRequestError} When Graph rejects the item.
|
|
219
|
+
*/
|
|
220
|
+
async createListItem(input) {
|
|
221
|
+
this.requireAccessToken();
|
|
222
|
+
if (!input.listId || !input.fields) {
|
|
223
|
+
throw new db_decorators_1.InternalError("Microsoft SharePoint createListItem requires a list id and fields");
|
|
224
|
+
}
|
|
225
|
+
try {
|
|
226
|
+
const response = await this.client.post(`${this.sitePath(input.siteId)}/lists/${encodeURIComponent(input.listId)}/items`, { fields: input.fields });
|
|
227
|
+
return response.data;
|
|
228
|
+
}
|
|
229
|
+
catch (error) {
|
|
230
|
+
throw (0, index_js_1.httpError)("Microsoft SharePoint", "create list item", error);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* @description Lists the children of a SharePoint drive folder
|
|
235
|
+
* @summary `GET`s `/sites/<id>/drive/items/<item or root>/children` with an
|
|
236
|
+
* optional `$top` cap.
|
|
237
|
+
* @param {SharePointDriveItemsInput} input - The site, folder, and result cap.
|
|
238
|
+
* @returns {Promise<unknown>} The drive item collection payload.
|
|
239
|
+
* @throws {InternalError} When no token is configured or the site ID is empty.
|
|
240
|
+
* @throws {NotFoundError} When the site or folder does not exist (HTTP 404).
|
|
241
|
+
* @throws {BadRequestError} When Graph rejects the request.
|
|
242
|
+
*/
|
|
243
|
+
async listDriveItems(input) {
|
|
244
|
+
this.requireAccessToken();
|
|
245
|
+
const item = input.itemId ? encodeURIComponent(input.itemId) : "root";
|
|
246
|
+
try {
|
|
247
|
+
const response = await this.client.get(`${this.sitePath(input.siteId)}/drive/items/${item}/children`, {
|
|
248
|
+
params: {
|
|
249
|
+
...(input.top !== undefined ? { $top: input.top } : {}),
|
|
250
|
+
},
|
|
251
|
+
});
|
|
252
|
+
return response.data;
|
|
253
|
+
}
|
|
254
|
+
catch (error) {
|
|
255
|
+
throw (0, index_js_1.httpError)("Microsoft SharePoint", "list drive items", error);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
exports.MicrosoftSharePointService = MicrosoftSharePointService;
|
|
260
|
+
//# sourceMappingURL=MicrosoftSharePointService.js.map
|
|
261
|
+
//# sourceMappingURL=MicrosoftSharePointService.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io/microsoft-sharepoint/MicrosoftSharePointService.cjs","sourceRoot":"","sources":["io/microsoft-sharepoint/MicrosoftSharePointService.js"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;GAWG;AACH,2DAAwD;AACxD,wDAAoD;AACpD,4EAA0E;AAC1E,2DAA0E;AAC1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,0BAA2B,SAAQ,yBAAc;IAC1D;QACI,KAAK,CAAC,GAAG,SAAS,CAAC,CAAC;QACpB;;WAEG;QACH,IAAI,CAAC,WAAW,GAAG,sBAAsB,CAAC;IAC9C,CAAC;IACD;;;;OAIG;IACH,cAAc;QACV,OAAO,kCAAkC,CAAC;IAC9C,CAAC;IACD;;;;;;OAMG;IACH,WAAW,CAAC,MAAM;QACd,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,UAAU,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3E,CAAC;IACD;;;;;;OAMG;IACH,qBAAqB;QACjB,MAAM,GAAG,GAAG,8BAAa,CAAC,EAAE,CAAC,mBAAmB,CAAC;QACjD,MAAM,KAAK,GAAG,IAAA,+BAAS,EAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACpC,IAAI,CAAC,KAAK;YACN,OAAO,SAAS,CAAC;QACrB,OAAO;YACH,KAAK;YACL,OAAO,EAAE,IAAA,+BAAS,EAAC,GAAG,CAAC,OAAO,CAAC;YAC/B,OAAO,EAAE,IAAA,+BAAS,EAAC,GAAG,CAAC,OAAO,CAAC;SAClC,CAAC;IACN,CAAC;IACD;;;;;;OAMG;IACH,kBAAkB;QACd,IAAI,CAAC,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,OAAO,KAAK,EAAE,CAAC;YACX,MAAM,IAAA,oBAAS,EAAC,sBAAsB,EAAE,kBAAkB,EAAE,KAAK,CAAC,CAAC;QACvE,CAAC;IACL,CAAC;CACJ;AAzMD,gEAyMC;AACD,sDAAsD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./MicrosoftSharePointService.cjs"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
19
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io/microsoft-sharepoint/index.cjs","sourceRoot":"","sources":["io/microsoft-sharepoint/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,iCAAiC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* @module integrations/sftp/aws
|
|
19
|
+
* @summary AWS SFTP integration exports.
|
|
20
|
+
*/
|
|
21
|
+
__exportStar(require("./AwsSftpService.cjs"), exports);
|
|
22
|
+
__exportStar(require("./AwsSftpEnvironment.cjs"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
24
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sftp/aws/index.cjs","sourceRoot":"","sources":["sftp/aws/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,sDAAoC;AACpC,0DAAwC;AACxC,iCAAiC"}
|