@theholocron/confluence-client 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -10
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -14,19 +14,19 @@ pnpm add @theholocron/confluence-client
|
|
|
14
14
|
import { createConfluenceClient } from "@theholocron/confluence-client";
|
|
15
15
|
|
|
16
16
|
const confluence = createConfluenceClient({
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
baseUrl: "https://myorg.atlassian.net/wiki/rest/api",
|
|
18
|
+
token: Buffer.from("agent@example.com:your-api-token").toString("base64"),
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
// Pages
|
|
22
22
|
const page = await confluence.page.get("123456");
|
|
23
23
|
|
|
24
24
|
await confluence.page.update("123456", {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
version: { number: 2 },
|
|
26
|
+
title: "Updated page title",
|
|
27
|
+
body: {
|
|
28
|
+
storage: { value: "<p>New content</p>", representation: "storage" },
|
|
29
|
+
},
|
|
30
30
|
});
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -35,9 +35,7 @@ await confluence.page.update("123456", {
|
|
|
35
35
|
Confluence Cloud uses HTTP Basic auth with a base64-encoded `email:apiToken` string. Generate an API token at [id.atlassian.com/manage-profile/security/api-tokens](https://id.atlassian.com/manage-profile/security/api-tokens).
|
|
36
36
|
|
|
37
37
|
```ts
|
|
38
|
-
const token = Buffer.from("agent@example.com:your-api-token").toString(
|
|
39
|
-
"base64",
|
|
40
|
-
);
|
|
38
|
+
const token = Buffer.from("agent@example.com:your-api-token").toString("base64");
|
|
41
39
|
```
|
|
42
40
|
|
|
43
41
|
## API
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/confluence-client",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "A TypeScript client for the Confluence API",
|
|
5
5
|
"homepage": "https://github.com/theholocron/clients/tree/main/packages/confluence-client#readme",
|
|
6
6
|
"bugs": "https://github.com/theholocron/clients/issues",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@theholocron/http-client": "^1.6.
|
|
33
|
+
"@theholocron/http-client": "^1.6.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^26.1.2",
|
|
37
|
-
"@theholocron/eslint-config": "^7.
|
|
38
|
-
"@theholocron/tsconfig": "^7.
|
|
39
|
-
"@theholocron/tsdown-config": "^7.
|
|
40
|
-
"@theholocron/vitest-config": "^7.
|
|
37
|
+
"@theholocron/eslint-config": "^7.7.0",
|
|
38
|
+
"@theholocron/tsconfig": "^7.7.0",
|
|
39
|
+
"@theholocron/tsdown-config": "^7.7.0",
|
|
40
|
+
"@theholocron/vitest-config": "^7.7.0",
|
|
41
41
|
"@vitest/coverage-v8": "^4.1.10",
|
|
42
42
|
"@vitest/eslint-plugin": "^1.6.24",
|
|
43
43
|
"eslint": "^10.8.0",
|