@theholocron/confluence-client 1.58.0-alpha.3 → 1.58.0-alpha.8

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/index.d.mts CHANGED
@@ -1,9 +1,11 @@
1
1
  import { RestClient } from "@theholocron/http-client";
2
2
  import { ErrorSink, Logger } from "@theholocron/observability/core";
3
+ /** Reads (`get`) and updates (`update`) Confluence pages by id; the response is typed as `T`. */
3
4
  export declare function page(rest: RestClient): {
4
5
  get: <T = unknown>(id: string) => Promise<T>;
5
6
  update: <T = unknown>(id: string, data: Record<string, unknown>) => Promise<T>;
6
7
  };
8
+ /** Options for `createConfluenceClient`. */
7
9
  export interface ConfluenceClientOptions {
8
10
  /** Base URL including the API path, e.g. "https://myorg.atlassian.net/wiki/rest/api". */
9
11
  baseUrl: string;
@@ -16,6 +18,7 @@ export interface ConfluenceClientOptions {
16
18
  /** Reports transport failures and unexpected 5xx. Defaults to a no-op. */
17
19
  errors?: ErrorSink;
18
20
  }
21
+ /** Creates a Confluence API client with a `page` group, using the options' base URL and token. */
19
22
  export declare function createConfluenceClient(opts: ConfluenceClientOptions): {
20
23
  page: {
21
24
  get: <T = unknown>(id: string) => Promise<T>;
package/dist/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { createRestClient } from "@theholocron/http-client";
2
2
  // src/page/page.ts
3
+ /** Reads (`get`) and updates (`update`) Confluence pages by id; the response is typed as `T`. */
3
4
  function page(rest) {
4
5
  return {
5
6
  get: (id) => rest.request(`/${id}`),
@@ -20,6 +21,7 @@ function createConfluenceRestClient(opts) {
20
21
  errors: opts.errors
21
22
  });
22
23
  }
24
+ /** Creates a Confluence API client with a `page` group, using the options' base URL and token. */
23
25
  function createConfluenceClient(opts) {
24
26
  return { page: page(createConfluenceRestClient(opts)) };
25
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/confluence-client",
3
- "version": "1.58.0-alpha.3",
3
+ "version": "1.58.0-alpha.8",
4
4
  "description": "A TypeScript client for the Confluence API",
5
5
  "keywords": [
6
6
  "confluence",
@@ -32,23 +32,23 @@
32
32
  "dist"
33
33
  ],
34
34
  "dependencies": {
35
- "@theholocron/http-client": "^1.58.0-alpha.3",
36
- "@theholocron/observability": "^0.6.1-alpha.1"
35
+ "@theholocron/http-client": "^1.58.0-alpha.8",
36
+ "@theholocron/observability": "^0.7.0-alpha.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^26",
40
40
  "@vitest/coverage-v8": "^5.0.5",
41
- "@vitest/eslint-plugin": "^1.6.27",
42
- "eslint": "^10.8.1",
43
- "eslint-plugin-n": "^18.3.0",
44
- "globals": "^17.11.0",
45
- "tsdown": "^0.23.3",
41
+ "@vitest/eslint-plugin": "^1.6.28",
42
+ "eslint": "^10.14.0",
43
+ "eslint-plugin-n": "^18.5.0",
44
+ "globals": "^17.14.0",
45
+ "tsdown": "^0.23.4",
46
46
  "typescript": "^5.9.3",
47
47
  "vitest": "^5.0.5",
48
- "@theholocron/eslint-config": "^8.9.0-alpha.3",
49
- "@theholocron/tsconfig": "^8.9.0-alpha.3",
50
- "@theholocron/tsdown-config": "^8.9.0-alpha.3",
51
- "@theholocron/vitest-config": "^8.9.0-alpha.3"
48
+ "@theholocron/tsconfig": "^8.9.0-alpha.8",
49
+ "@theholocron/eslint-config": "^8.9.0-alpha.8",
50
+ "@theholocron/vitest-config": "^8.9.0-alpha.8",
51
+ "@theholocron/tsdown-config": "^8.9.0-alpha.8"
52
52
  },
53
53
  "engines": {
54
54
  "node": ">=22.0.0"
@@ -57,10 +57,10 @@
57
57
  "access": "public"
58
58
  },
59
59
  "scripts": {
60
- "delivery.build": "tsdown && node ../scripts/check-bundle-size.mjs",
61
- "sourceQuality.staticAnalysis": "eslint .",
60
+ "build": "tsdown && node ../scripts/check-bundle-size.mjs",
61
+ "lint:code": "eslint .",
62
+ "test:unit": "vitest run --coverage",
62
63
  "test:watch": "vitest",
63
- "verification.typeSafety": "tsc --noEmit",
64
- "verification.unitTests": "vitest run"
64
+ "typecheck": "tsc --noEmit"
65
65
  }
66
66
  }