@taktoria/sdk 0.2.2 → 0.2.3

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.
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@taktoria/sdk",
46
- "X-Fern-SDK-Version": "0.2.2",
47
- "User-Agent": "@taktoria/sdk/0.2.2",
46
+ "X-Fern-SDK-Version": "0.2.3",
47
+ "User-Agent": "@taktoria/sdk/0.2.3",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -49,6 +49,13 @@ export interface Objective {
49
49
  * counts in the parent's.
50
50
  */
51
51
  parentObjectiveId?: string;
52
+ /**
53
+ * In `/okrhub/browse` and `/okrhub/mine`, which list families: how
54
+ * deep it sits under a parent in the list, 0 at the top of a family.
55
+ * The objectives after it one deeper are aligned to it. Absent
56
+ * elsewhere.
57
+ */
58
+ depth?: number;
52
59
  keyResults: Taktoria.KeyResult[];
53
60
  /**
54
61
  * Still being worked out, not yet agreed. A label only: a draft is
@@ -4,12 +4,17 @@ import type * as Taktoria from "../../../index.js";
4
4
  * rollup. Paged by cursor like every list: pass `nextCursor` back as
5
5
  * `cursor`. The cursor carries its own page size, so a `limit` sent with
6
6
  * it is ignored; `limit` is at most 100 here.
7
+ *
8
+ * Listed as families, as the app shows them: an objective whose parent
9
+ * is not in the list, then the objectives aligned under it, each with
10
+ * its `depth`. A page holds whole families, and `limit` and `total`
11
+ * count families, not objectives.
7
12
  */
8
13
  export interface ObjectiveViewPage {
9
14
  data: Taktoria.Objective[];
10
15
  nextCursor?: string;
11
16
  hasMore: boolean;
12
- /** How many objectives match, on every page. */
17
+ /** How many families match, on every page. */
13
18
  total: number;
14
19
  /** The period shown; absent on Browse with `allPeriods`. */
15
20
  period?: Taktoria.OkrPeriodRef;
@@ -26,6 +26,7 @@ export declare namespace Objective {
26
26
  score?: number | null;
27
27
  keyResultScore?: number | null;
28
28
  parentObjectiveId?: string | null;
29
+ depth?: number | null;
29
30
  keyResults: KeyResult.Raw[];
30
31
  draft: boolean;
31
32
  sortOrder: number;
@@ -59,6 +59,7 @@ exports.Objective = core.serialization.object({
59
59
  score: core.serialization.number().optional(),
60
60
  keyResultScore: core.serialization.number().optional(),
61
61
  parentObjectiveId: core.serialization.string().optional(),
62
+ depth: core.serialization.number().optional(),
62
63
  keyResults: core.serialization.list(KeyResult_js_1.KeyResult),
63
64
  draft: core.serialization.boolean(),
64
65
  sortOrder: core.serialization.number(),
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.2.2";
1
+ export declare const SDK_VERSION = "0.2.3";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.2.2";
4
+ exports.SDK_VERSION = "0.2.3";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@taktoria/sdk",
9
- "X-Fern-SDK-Version": "0.2.2",
10
- "User-Agent": "@taktoria/sdk/0.2.2",
9
+ "X-Fern-SDK-Version": "0.2.3",
10
+ "User-Agent": "@taktoria/sdk/0.2.3",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -49,6 +49,13 @@ export interface Objective {
49
49
  * counts in the parent's.
50
50
  */
51
51
  parentObjectiveId?: string;
52
+ /**
53
+ * In `/okrhub/browse` and `/okrhub/mine`, which list families: how
54
+ * deep it sits under a parent in the list, 0 at the top of a family.
55
+ * The objectives after it one deeper are aligned to it. Absent
56
+ * elsewhere.
57
+ */
58
+ depth?: number;
52
59
  keyResults: Taktoria.KeyResult[];
53
60
  /**
54
61
  * Still being worked out, not yet agreed. A label only: a draft is
@@ -4,12 +4,17 @@ import type * as Taktoria from "../../../index.mjs";
4
4
  * rollup. Paged by cursor like every list: pass `nextCursor` back as
5
5
  * `cursor`. The cursor carries its own page size, so a `limit` sent with
6
6
  * it is ignored; `limit` is at most 100 here.
7
+ *
8
+ * Listed as families, as the app shows them: an objective whose parent
9
+ * is not in the list, then the objectives aligned under it, each with
10
+ * its `depth`. A page holds whole families, and `limit` and `total`
11
+ * count families, not objectives.
7
12
  */
8
13
  export interface ObjectiveViewPage {
9
14
  data: Taktoria.Objective[];
10
15
  nextCursor?: string;
11
16
  hasMore: boolean;
12
- /** How many objectives match, on every page. */
17
+ /** How many families match, on every page. */
13
18
  total: number;
14
19
  /** The period shown; absent on Browse with `allPeriods`. */
15
20
  period?: Taktoria.OkrPeriodRef;
@@ -26,6 +26,7 @@ export declare namespace Objective {
26
26
  score?: number | null;
27
27
  keyResultScore?: number | null;
28
28
  parentObjectiveId?: string | null;
29
+ depth?: number | null;
29
30
  keyResults: KeyResult.Raw[];
30
31
  draft: boolean;
31
32
  sortOrder: number;
@@ -23,6 +23,7 @@ export const Objective = core.serialization.object({
23
23
  score: core.serialization.number().optional(),
24
24
  keyResultScore: core.serialization.number().optional(),
25
25
  parentObjectiveId: core.serialization.string().optional(),
26
+ depth: core.serialization.number().optional(),
26
27
  keyResults: core.serialization.list(KeyResult),
27
28
  draft: core.serialization.boolean(),
28
29
  sortOrder: core.serialization.number(),
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.2.2";
1
+ export declare const SDK_VERSION = "0.2.3";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.2.2";
1
+ export const SDK_VERSION = "0.2.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taktoria/sdk",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "main": "./dist/cjs/index.js",