@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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/okr/types/Objective.d.ts +7 -0
- package/dist/cjs/api/resources/okr/types/ObjectiveViewPage.d.ts +6 -1
- package/dist/cjs/serialization/resources/okr/types/Objective.d.ts +1 -0
- package/dist/cjs/serialization/resources/okr/types/Objective.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/okr/types/Objective.d.mts +7 -0
- package/dist/esm/api/resources/okr/types/ObjectiveViewPage.d.mts +6 -1
- package/dist/esm/serialization/resources/okr/types/Objective.d.mts +1 -0
- package/dist/esm/serialization/resources/okr/types/Objective.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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.
|
|
47
|
-
"User-Agent": "@taktoria/sdk/0.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
|
|
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;
|
|
@@ -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(),
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.2.
|
|
1
|
+
export declare const SDK_VERSION = "0.2.3";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -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.
|
|
10
|
-
"User-Agent": "@taktoria/sdk/0.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
|
|
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;
|
|
@@ -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(),
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.2.
|
|
1
|
+
export declare const SDK_VERSION = "0.2.3";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.2.
|
|
1
|
+
export const SDK_VERSION = "0.2.3";
|