@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
package/lib/cjs/index.cjs
CHANGED
|
@@ -23,9 +23,9 @@ exports.PACKAGE_NAME = exports.FULL_VERSION = exports.COMMIT = exports.VERSION =
|
|
|
23
23
|
__exportStar(require("./utils.cjs"), exports);
|
|
24
24
|
__exportStar(require("./namespaces/index.cjs"), exports);
|
|
25
25
|
__exportStar(require("./feature-flags/index.cjs"), exports);
|
|
26
|
-
exports.VERSION = "0.
|
|
27
|
-
exports.COMMIT = "
|
|
28
|
-
exports.FULL_VERSION = "0.
|
|
26
|
+
exports.VERSION = "0.14.1";
|
|
27
|
+
exports.COMMIT = "b661b6f";
|
|
28
|
+
exports.FULL_VERSION = "0.14.1-b661b6f";
|
|
29
29
|
exports.PACKAGE_NAME = "@decaf-ts/integrations";
|
|
30
30
|
//# sourceMappingURL=index.js.map
|
|
31
31
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfluenceService = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module integrations/io/confluence/service
|
|
6
|
+
* @summary Confluence REST API integration service for spaces and pages.
|
|
7
|
+
* @description Exposes Confluence content operations (spaces, pages, and CQL
|
|
8
|
+
* search) as an undecorated client-based service built on
|
|
9
|
+
* {@link HttpApiService}. Configuration comes from an explicit
|
|
10
|
+
* `ConfluenceServiceConfig` or the `io.confluence` environment slice. When both
|
|
11
|
+
* `username` and `token` are configured the service sends HTTP Basic
|
|
12
|
+
* authentication (API token as the password); otherwise the token is sent as a
|
|
13
|
+
* bearer token. The site `baseUrl` is required. Credentials are referenced from
|
|
14
|
+
* configuration (and, from as-graph nodes, from the resolved `confluence`
|
|
15
|
+
* credential secret) and are never embedded in source. Failures are mapped to
|
|
16
|
+
* decaf errors via {@link httpError}.
|
|
17
|
+
*/
|
|
18
|
+
const db_decorators_1 = require("@decaf-ts/db-decorators");
|
|
19
|
+
const environment_js_1 = require("./../environment.cjs");
|
|
20
|
+
const environmentValue_js_1 = require("./../../shared/environmentValue.cjs");
|
|
21
|
+
const index_js_1 = require("./../../shared/http/index.cjs");
|
|
22
|
+
/** Default Confluence content type written by the service (`"page"`). */
|
|
23
|
+
const DEFAULT_PAGE_TYPE = "page";
|
|
24
|
+
/**
|
|
25
|
+
* @description Confluence REST API integration service
|
|
26
|
+
* @summary An undecorated HTTP service for reading, creating, updating, and
|
|
27
|
+
* deleting pages, listing spaces, and running CQL searches. The site base URL
|
|
28
|
+
* and API token are required; supplying a `username` switches authentication to
|
|
29
|
+
* Basic, and transport failures are mapped to decaf errors via
|
|
30
|
+
* {@link httpError}.
|
|
31
|
+
* @class ConfluenceService
|
|
32
|
+
* @extends HttpApiService
|
|
33
|
+
* @category IO
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* import { ConfluenceService } from "@decaf-ts/integrations/io/confluence";
|
|
37
|
+
*
|
|
38
|
+
* const confluence = new ConfluenceService();
|
|
39
|
+
* await confluence.initialize({
|
|
40
|
+
* baseUrl: "https://example.atlassian.net/wiki",
|
|
41
|
+
* username: process.env.CONFLUENCE_USERNAME,
|
|
42
|
+
* token: process.env.GRAPH_CREDENTIAL_CONFLUENCE_TOKEN,
|
|
43
|
+
* });
|
|
44
|
+
* const page = await confluence.getPage("123456");
|
|
45
|
+
* ```
|
|
46
|
+
* @mermaid
|
|
47
|
+
* sequenceDiagram
|
|
48
|
+
* autonumber
|
|
49
|
+
* participant Caller
|
|
50
|
+
* participant Service as ConfluenceService
|
|
51
|
+
* participant API as Confluence REST API
|
|
52
|
+
* Caller->>Service: updatePage(input)
|
|
53
|
+
* activate Service
|
|
54
|
+
* Service->>Service: requireCredentials()
|
|
55
|
+
* opt version omitted
|
|
56
|
+
* Service->>API: GET /rest/api/content/{id}?expand=version
|
|
57
|
+
* activate API
|
|
58
|
+
* API-->>Service: current version
|
|
59
|
+
* deactivate API
|
|
60
|
+
* end
|
|
61
|
+
* Service->>API: PUT /rest/api/content/{id}
|
|
62
|
+
* activate API
|
|
63
|
+
* API-->>Service: updated page
|
|
64
|
+
* deactivate API
|
|
65
|
+
* Service-->>Caller: updated page
|
|
66
|
+
* deactivate Service
|
|
67
|
+
* @memberOf module:integrations/io/confluence/service
|
|
68
|
+
*/
|
|
69
|
+
class ConfluenceService extends index_js_1.HttpApiService {
|
|
70
|
+
constructor() {
|
|
71
|
+
super(...arguments);
|
|
72
|
+
/**
|
|
73
|
+
* @description The provider name used in error messages
|
|
74
|
+
*/
|
|
75
|
+
this.serviceName = "Confluence";
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* @description The default base URL for Confluence
|
|
79
|
+
* @summary Returns an empty string; Confluence is site-hosted, so the
|
|
80
|
+
* resolved `baseUrl` (from config or `io.confluence.baseUrl`) is required.
|
|
81
|
+
* @returns {string} An empty string.
|
|
82
|
+
*/
|
|
83
|
+
defaultBaseUrl() {
|
|
84
|
+
return "";
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @description Builds the Confluence authentication headers
|
|
88
|
+
* @summary Uses HTTP Basic (`username:token`) when both values are present,
|
|
89
|
+
* otherwise a bearer token when only `token` is present, otherwise no
|
|
90
|
+
* headers.
|
|
91
|
+
* @param {ConfluenceServiceConfig} config - The resolved service configuration.
|
|
92
|
+
* @returns {Record<string, string>} The authorization headers.
|
|
93
|
+
*/
|
|
94
|
+
authHeaders(config) {
|
|
95
|
+
if (config.username && config.token) {
|
|
96
|
+
const encoded = Buffer.from(`${config.username}:${config.token}`, "utf8").toString("base64");
|
|
97
|
+
return { Authorization: `Basic ${encoded}` };
|
|
98
|
+
}
|
|
99
|
+
return config.token ? { Authorization: `Bearer ${config.token}` } : {};
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @description Reads the Confluence credentials and defaults from the environment
|
|
103
|
+
* @summary Reads the `io.confluence` slice and returns a partial config when
|
|
104
|
+
* an API token is configured, `undefined` otherwise. Values pass through
|
|
105
|
+
* `envString`/`envNumber` to reject unset-leaf proxies.
|
|
106
|
+
* @returns {Partial<ConfluenceServiceConfig> | undefined} A partial config, or `undefined` when no Confluence token is configured.
|
|
107
|
+
*/
|
|
108
|
+
configFromEnvironment() {
|
|
109
|
+
const env = environment_js_1.IoEnvironment.io.confluence;
|
|
110
|
+
const token = (0, environmentValue_js_1.envString)(env?.token);
|
|
111
|
+
if (!token)
|
|
112
|
+
return undefined;
|
|
113
|
+
return {
|
|
114
|
+
token,
|
|
115
|
+
username: (0, environmentValue_js_1.envString)(env.username),
|
|
116
|
+
baseUrl: (0, environmentValue_js_1.envString)(env.baseUrl),
|
|
117
|
+
timeout: (0, environmentValue_js_1.envNumber)(env.timeout),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* @description Asserts that the Confluence token and site base URL are configured
|
|
122
|
+
* @summary Called by every operation before it touches the network.
|
|
123
|
+
* @returns {void}
|
|
124
|
+
* @throws {InternalError} When no API token or base URL is configured.
|
|
125
|
+
*/
|
|
126
|
+
requireCredentials() {
|
|
127
|
+
if (!this.config.token) {
|
|
128
|
+
throw new db_decorators_1.InternalError("Confluence requires an API token");
|
|
129
|
+
}
|
|
130
|
+
if (!this.config.baseUrl) {
|
|
131
|
+
throw new db_decorators_1.InternalError("Confluence requires a base URL");
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* @description Wraps a body in the Confluence storage representation
|
|
136
|
+
* @summary Produces the `{ storage: { value, representation } }` envelope
|
|
137
|
+
* the content API expects.
|
|
138
|
+
* @param {string} body - The Confluence storage-format body.
|
|
139
|
+
* @returns {Record<string, unknown>} The storage body envelope.
|
|
140
|
+
*/
|
|
141
|
+
storageBody(body) {
|
|
142
|
+
return {
|
|
143
|
+
storage: {
|
|
144
|
+
value: body,
|
|
145
|
+
representation: "storage",
|
|
146
|
+
},
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* @description Fetches a Confluence page
|
|
151
|
+
* @summary `GET`s `/rest/api/content/<id>` with the requested `expand`
|
|
152
|
+
* fields (default `body.storage,version`).
|
|
153
|
+
* @param {string} pageId - The page ID.
|
|
154
|
+
* @param {string} [expand] - Comma-separated fields to expand; defaults to `"body.storage,version"`.
|
|
155
|
+
* @returns {Promise<unknown>} The page payload.
|
|
156
|
+
* @throws {InternalError} When credentials are missing or the page ID is empty.
|
|
157
|
+
* @throws {NotFoundError} When the page does not exist (HTTP 404).
|
|
158
|
+
* @throws {BadRequestError} When the API rejects the request.
|
|
159
|
+
*/
|
|
160
|
+
async getPage(pageId, expand = "body.storage,version") {
|
|
161
|
+
this.requireCredentials();
|
|
162
|
+
if (!pageId) {
|
|
163
|
+
throw new db_decorators_1.InternalError("Confluence requires a page id");
|
|
164
|
+
}
|
|
165
|
+
try {
|
|
166
|
+
const response = await this.client.get(`/rest/api/content/${encodeURIComponent(pageId)}`, { params: { expand } });
|
|
167
|
+
return response.data;
|
|
168
|
+
}
|
|
169
|
+
catch (error) {
|
|
170
|
+
throw (0, index_js_1.httpError)("Confluence", "get page", error);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* @description Lists Confluence spaces
|
|
175
|
+
* @summary `GET`s `/rest/api/space` with a result `limit` (default `25`).
|
|
176
|
+
* @param {number} [limit] - Maximum number of spaces to return; defaults to `25`.
|
|
177
|
+
* @returns {Promise<unknown>} The space collection payload.
|
|
178
|
+
* @throws {InternalError} When credentials are missing.
|
|
179
|
+
* @throws {BadRequestError} When the API rejects the request.
|
|
180
|
+
*/
|
|
181
|
+
async listSpaces(limit = 25) {
|
|
182
|
+
this.requireCredentials();
|
|
183
|
+
try {
|
|
184
|
+
const response = await this.client.get("/rest/api/space", {
|
|
185
|
+
params: { limit },
|
|
186
|
+
});
|
|
187
|
+
return response.data;
|
|
188
|
+
}
|
|
189
|
+
catch (error) {
|
|
190
|
+
throw (0, index_js_1.httpError)("Confluence", "list spaces", error);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* @description Creates a Confluence page
|
|
195
|
+
* @summary `POST`s a `page` content entry in the target space, optionally
|
|
196
|
+
* under a parent, with the body in storage format.
|
|
197
|
+
* @param {ConfluencePageInput} input - The space, title, body, and optional parent.
|
|
198
|
+
* @returns {Promise<unknown>} The created page payload.
|
|
199
|
+
* @throws {InternalError} When credentials are missing, or the space key or title is empty.
|
|
200
|
+
* @throws {BadRequestError} When the API rejects the page.
|
|
201
|
+
* @example
|
|
202
|
+
* ```ts
|
|
203
|
+
* await confluence.createPage({
|
|
204
|
+
* spaceKey: "OPS",
|
|
205
|
+
* title: "Release 1.2.0",
|
|
206
|
+
* body: "<p>Details…</p>",
|
|
207
|
+
* });
|
|
208
|
+
* ```
|
|
209
|
+
*/
|
|
210
|
+
async createPage(input) {
|
|
211
|
+
this.requireCredentials();
|
|
212
|
+
if (!input.spaceKey || !input.title) {
|
|
213
|
+
throw new db_decorators_1.InternalError("Confluence createPage requires a space key and title");
|
|
214
|
+
}
|
|
215
|
+
try {
|
|
216
|
+
const response = await this.client.post("/rest/api/content", {
|
|
217
|
+
type: DEFAULT_PAGE_TYPE,
|
|
218
|
+
title: input.title,
|
|
219
|
+
space: { key: input.spaceKey },
|
|
220
|
+
...(input.parentId ? { ancestors: [{ id: input.parentId }] } : {}),
|
|
221
|
+
body: this.storageBody(input.body ?? ""),
|
|
222
|
+
});
|
|
223
|
+
return response.data;
|
|
224
|
+
}
|
|
225
|
+
catch (error) {
|
|
226
|
+
throw (0, index_js_1.httpError)("Confluence", "create page", error);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* @description Updates a Confluence page
|
|
231
|
+
* @summary `PUT`s the new title and storage body. When `version` is omitted
|
|
232
|
+
* the current version is read first and the next number is submitted, as
|
|
233
|
+
* Confluence requires optimistic versioning.
|
|
234
|
+
* @param {ConfluencePageUpdate} input - The page, new title/body, and optional version.
|
|
235
|
+
* @returns {Promise<unknown>} The updated page payload.
|
|
236
|
+
* @throws {InternalError} When credentials are missing, or the page ID or title is empty.
|
|
237
|
+
* @throws {NotFoundError} When the page does not exist (HTTP 404).
|
|
238
|
+
* @throws {ConflictError} When the submitted version is stale (HTTP 409).
|
|
239
|
+
* @throws {BadRequestError} When the API rejects the update.
|
|
240
|
+
*/
|
|
241
|
+
async updatePage(input) {
|
|
242
|
+
this.requireCredentials();
|
|
243
|
+
if (!input.pageId || !input.title) {
|
|
244
|
+
throw new db_decorators_1.InternalError("Confluence updatePage requires a page id and title");
|
|
245
|
+
}
|
|
246
|
+
try {
|
|
247
|
+
let version = input.version;
|
|
248
|
+
if (version === undefined) {
|
|
249
|
+
const current = await this.client.get(`/rest/api/content/${encodeURIComponent(input.pageId)}`, { params: { expand: "version" } });
|
|
250
|
+
version = (current.data.version?.number ?? 0) + 1;
|
|
251
|
+
}
|
|
252
|
+
const response = await this.client.put(`/rest/api/content/${encodeURIComponent(input.pageId)}`, {
|
|
253
|
+
id: input.pageId,
|
|
254
|
+
type: DEFAULT_PAGE_TYPE,
|
|
255
|
+
title: input.title,
|
|
256
|
+
version: { number: version },
|
|
257
|
+
body: this.storageBody(input.body ?? ""),
|
|
258
|
+
});
|
|
259
|
+
return response.data;
|
|
260
|
+
}
|
|
261
|
+
catch (error) {
|
|
262
|
+
throw (0, index_js_1.httpError)("Confluence", "update page", error);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* @description Deletes a Confluence page
|
|
267
|
+
* @summary `DELETE`s the content entry and returns `{ deleted: true, pageId }`.
|
|
268
|
+
* @param {string} pageId - The page ID to delete.
|
|
269
|
+
* @returns {Promise<unknown>} `{ deleted: true, pageId }` on success.
|
|
270
|
+
* @throws {InternalError} When credentials are missing or the page ID is empty.
|
|
271
|
+
* @throws {NotFoundError} When the page does not exist (HTTP 404).
|
|
272
|
+
* @throws {BadRequestError} When the API rejects the deletion.
|
|
273
|
+
*/
|
|
274
|
+
async deletePage(pageId) {
|
|
275
|
+
this.requireCredentials();
|
|
276
|
+
if (!pageId) {
|
|
277
|
+
throw new db_decorators_1.InternalError("Confluence requires a page id");
|
|
278
|
+
}
|
|
279
|
+
try {
|
|
280
|
+
await this.client.delete(`/rest/api/content/${encodeURIComponent(pageId)}`);
|
|
281
|
+
return { deleted: true, pageId };
|
|
282
|
+
}
|
|
283
|
+
catch (error) {
|
|
284
|
+
throw (0, index_js_1.httpError)("Confluence", "delete page", error);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* @description Searches Confluence content with CQL
|
|
289
|
+
* @summary `GET`s `/rest/api/content/search` with the CQL expression and an
|
|
290
|
+
* optional `limit`.
|
|
291
|
+
* @param {ConfluenceSearchInput} input - The CQL query and result limit.
|
|
292
|
+
* @returns {Promise<unknown>} The search result payload.
|
|
293
|
+
* @throws {InternalError} When credentials are missing or the CQL query is empty.
|
|
294
|
+
* @throws {BadRequestError} When the CQL query is invalid.
|
|
295
|
+
*/
|
|
296
|
+
async search(input) {
|
|
297
|
+
this.requireCredentials();
|
|
298
|
+
if (!input.cql) {
|
|
299
|
+
throw new db_decorators_1.InternalError("Confluence search requires a CQL query");
|
|
300
|
+
}
|
|
301
|
+
try {
|
|
302
|
+
const response = await this.client.get("/rest/api/content/search", {
|
|
303
|
+
params: {
|
|
304
|
+
cql: input.cql,
|
|
305
|
+
...(input.limit !== undefined ? { limit: input.limit } : {}),
|
|
306
|
+
},
|
|
307
|
+
});
|
|
308
|
+
return response.data;
|
|
309
|
+
}
|
|
310
|
+
catch (error) {
|
|
311
|
+
throw (0, index_js_1.httpError)("Confluence", "search content", error);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
exports.ConfluenceService = ConfluenceService;
|
|
316
|
+
//# sourceMappingURL=ConfluenceService.js.map
|
|
317
|
+
//# sourceMappingURL=ConfluenceService.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io/confluence/ConfluenceService.cjs","sourceRoot":"","sources":["io/confluence/ConfluenceService.js"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;GAaG;AACH,2DAAwD;AACxD,wDAAoD;AACpD,4EAA0E;AAC1E,2DAA0E;AAC1E,yEAAyE;AACzE,MAAM,iBAAiB,GAAG,MAAM,CAAC;AACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAa,iBAAkB,SAAQ,yBAAc;IACjD;QACI,KAAK,CAAC,GAAG,SAAS,CAAC,CAAC;QACpB;;WAEG;QACH,IAAI,CAAC,WAAW,GAAG,YAAY,CAAC;IACpC,CAAC;IACD;;;;;OAKG;IACH,cAAc;QACV,OAAO,EAAE,CAAC;IACd,CAAC;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C,YAAY,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;QACxD,CAAC;IACL,CAAC;IACD;;;;;;;;OAQG;IACH,KAAK,CAAC,MAAM,CAAC,KAAK;QACd,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC1B,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;YACb,MAAM,IAAI,6BAAa,CAAC,wCAAwC,CAAC,CAAC;QACtE,CAAC;QACD,IAAI,CAAC;YACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,0BAA0B,EAAE;gBAC/D,MAAM,EAAE;oBACJ,GAAG,EAAE,KAAK,CAAC,GAAG;oBACd,GAAG,CAAC,KAAK,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBAC/D;aACJ,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACzB,CAAC;QACD,OAAO,KAAK,EAAE,CAAC;YACX,MAAM,IAAA,oBAAS,EAAC,YAAY,EAAE,gBAAgB,EAAE,KAAK,CAAC,CAAC;QAC3D,CAAC;IACL,CAAC;CACJ;AArPD,8CAqPC;AACD,6CAA6C"}
|
|
@@ -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("./ConfluenceService.cjs"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
19
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io/confluence/index.cjs","sourceRoot":"","sources":["io/confluence/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,iCAAiC"}
|
|
@@ -40,6 +40,34 @@ exports.IoEnvironment = logging_1.LoggedEnvironment.accumulate({
|
|
|
40
40
|
token: "",
|
|
41
41
|
timeout: undefined,
|
|
42
42
|
},
|
|
43
|
+
microsoftExcel: {
|
|
44
|
+
token: "",
|
|
45
|
+
baseUrl: "",
|
|
46
|
+
timeout: undefined,
|
|
47
|
+
},
|
|
48
|
+
confluence: {
|
|
49
|
+
username: "",
|
|
50
|
+
token: "",
|
|
51
|
+
baseUrl: "",
|
|
52
|
+
timeout: undefined,
|
|
53
|
+
},
|
|
54
|
+
jira: {
|
|
55
|
+
username: "",
|
|
56
|
+
token: "",
|
|
57
|
+
baseUrl: "",
|
|
58
|
+
timeout: undefined,
|
|
59
|
+
},
|
|
60
|
+
googleDocs: {
|
|
61
|
+
token: "",
|
|
62
|
+
apiKey: "",
|
|
63
|
+
baseUrl: "",
|
|
64
|
+
timeout: undefined,
|
|
65
|
+
},
|
|
66
|
+
microsoftSharePoint: {
|
|
67
|
+
token: "",
|
|
68
|
+
baseUrl: "",
|
|
69
|
+
timeout: undefined,
|
|
70
|
+
},
|
|
43
71
|
},
|
|
44
72
|
});
|
|
45
73
|
//# sourceMappingURL=environment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io/environment.cjs","sourceRoot":"","sources":["io/environment.js"],"names":[],"mappings":";;;AAAA,+CAAsD;AACtD;;;;;;;;;;;;;;;;;;GAkBG;AACU,QAAA,aAAa,GAAG,2BAAiB,CAAC,UAAU,CAAC;IACtD,EAAE,EAAE;QACA,QAAQ,EAAE;YACN,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,EAAE;YACX,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,SAAS;SACrB;QACD,YAAY,EAAE;YACV,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,SAAS;SACrB;QACD,OAAO,EAAE;YACL,QAAQ,EAAE,EAAE;YACZ,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,SAAS;SACrB;KACJ;CACJ,CAAC,CAAC;AACH,uCAAuC"}
|
|
1
|
+
{"version":3,"file":"io/environment.cjs","sourceRoot":"","sources":["io/environment.js"],"names":[],"mappings":";;;AAAA,+CAAsD;AACtD;;;;;;;;;;;;;;;;;;GAkBG;AACU,QAAA,aAAa,GAAG,2BAAiB,CAAC,UAAU,CAAC;IACtD,EAAE,EAAE;QACA,QAAQ,EAAE;YACN,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,EAAE;YACX,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,SAAS;SACrB;QACD,YAAY,EAAE;YACV,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,SAAS;SACrB;QACD,OAAO,EAAE;YACL,QAAQ,EAAE,EAAE;YACZ,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,SAAS;SACrB;QACD,cAAc,EAAE;YACZ,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,SAAS;SACrB;QACD,UAAU,EAAE;YACR,QAAQ,EAAE,EAAE;YACZ,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,SAAS;SACrB;QACD,IAAI,EAAE;YACF,QAAQ,EAAE,EAAE;YACZ,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,SAAS;SACrB;QACD,UAAU,EAAE;YACR,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,SAAS;SACrB;QACD,mBAAmB,EAAE;YACjB,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,SAAS;SACrB;KACJ;CACJ,CAAC,CAAC;AACH,uCAAuC"}
|