@taktoria/sdk 0.2.0 → 0.2.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.
Files changed (83) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/okr/client/Client.js +8 -4
  3. package/dist/cjs/api/resources/okr/client/requests/GetScorecardRequest.d.ts +5 -0
  4. package/dist/cjs/api/resources/okr/client/requests/GetTeamOkrsRequest.d.ts +5 -0
  5. package/dist/cjs/api/resources/okr/client/requests/ListObjectivesRequest.d.ts +2 -0
  6. package/dist/cjs/api/resources/okr/client/requests/ListTeamScoresRequest.d.ts +6 -0
  7. package/dist/cjs/api/resources/okr/types/ChildObjective.d.ts +15 -0
  8. package/dist/cjs/api/resources/okr/types/ChildObjective.js +3 -0
  9. package/dist/cjs/api/resources/okr/types/CreateObjectiveRequest.d.ts +5 -0
  10. package/dist/cjs/api/resources/okr/types/Objective.d.ts +17 -3
  11. package/dist/cjs/api/resources/okr/types/ObjectiveDetail.d.ts +15 -0
  12. package/dist/cjs/api/resources/okr/types/ObjectiveRef.d.ts +4 -0
  13. package/dist/cjs/api/resources/okr/types/ObjectiveRef.js +3 -0
  14. package/dist/cjs/api/resources/okr/types/ScorecardCell.d.ts +8 -0
  15. package/dist/cjs/api/resources/okr/types/ScorecardKeyResultRow.d.ts +3 -0
  16. package/dist/cjs/api/resources/okr/types/ScorecardRow.d.ts +3 -0
  17. package/dist/cjs/api/resources/okr/types/UpdateObjectiveRequest.d.ts +5 -0
  18. package/dist/cjs/api/resources/okr/types/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/okr/types/index.js +2 -0
  20. package/dist/cjs/serialization/resources/okr/types/ChildObjective.d.ts +16 -0
  21. package/dist/cjs/serialization/resources/okr/types/ChildObjective.js +48 -0
  22. package/dist/cjs/serialization/resources/okr/types/CreateObjectiveRequest.d.ts +1 -0
  23. package/dist/cjs/serialization/resources/okr/types/CreateObjectiveRequest.js +1 -0
  24. package/dist/cjs/serialization/resources/okr/types/Objective.d.ts +2 -0
  25. package/dist/cjs/serialization/resources/okr/types/Objective.js +2 -0
  26. package/dist/cjs/serialization/resources/okr/types/ObjectiveDetail.d.ts +6 -0
  27. package/dist/cjs/serialization/resources/okr/types/ObjectiveDetail.js +6 -0
  28. package/dist/cjs/serialization/resources/okr/types/ObjectiveRef.d.ts +10 -0
  29. package/dist/cjs/serialization/resources/okr/types/ObjectiveRef.js +42 -0
  30. package/dist/cjs/serialization/resources/okr/types/ScorecardCell.d.ts +1 -0
  31. package/dist/cjs/serialization/resources/okr/types/ScorecardCell.js +1 -0
  32. package/dist/cjs/serialization/resources/okr/types/ScorecardKeyResultRow.d.ts +2 -0
  33. package/dist/cjs/serialization/resources/okr/types/ScorecardKeyResultRow.js +2 -0
  34. package/dist/cjs/serialization/resources/okr/types/ScorecardRow.d.ts +2 -0
  35. package/dist/cjs/serialization/resources/okr/types/ScorecardRow.js +2 -0
  36. package/dist/cjs/serialization/resources/okr/types/UpdateObjectiveRequest.d.ts +1 -0
  37. package/dist/cjs/serialization/resources/okr/types/UpdateObjectiveRequest.js +1 -0
  38. package/dist/cjs/serialization/resources/okr/types/index.d.ts +2 -0
  39. package/dist/cjs/serialization/resources/okr/types/index.js +2 -0
  40. package/dist/cjs/version.d.ts +1 -1
  41. package/dist/cjs/version.js +1 -1
  42. package/dist/esm/BaseClient.mjs +2 -2
  43. package/dist/esm/api/resources/okr/client/Client.mjs +8 -4
  44. package/dist/esm/api/resources/okr/client/requests/GetScorecardRequest.d.mts +5 -0
  45. package/dist/esm/api/resources/okr/client/requests/GetTeamOkrsRequest.d.mts +5 -0
  46. package/dist/esm/api/resources/okr/client/requests/ListObjectivesRequest.d.mts +2 -0
  47. package/dist/esm/api/resources/okr/client/requests/ListTeamScoresRequest.d.mts +6 -0
  48. package/dist/esm/api/resources/okr/types/ChildObjective.d.mts +15 -0
  49. package/dist/esm/api/resources/okr/types/ChildObjective.mjs +2 -0
  50. package/dist/esm/api/resources/okr/types/CreateObjectiveRequest.d.mts +5 -0
  51. package/dist/esm/api/resources/okr/types/Objective.d.mts +17 -3
  52. package/dist/esm/api/resources/okr/types/ObjectiveDetail.d.mts +15 -0
  53. package/dist/esm/api/resources/okr/types/ObjectiveRef.d.mts +4 -0
  54. package/dist/esm/api/resources/okr/types/ObjectiveRef.mjs +2 -0
  55. package/dist/esm/api/resources/okr/types/ScorecardCell.d.mts +8 -0
  56. package/dist/esm/api/resources/okr/types/ScorecardKeyResultRow.d.mts +3 -0
  57. package/dist/esm/api/resources/okr/types/ScorecardRow.d.mts +3 -0
  58. package/dist/esm/api/resources/okr/types/UpdateObjectiveRequest.d.mts +5 -0
  59. package/dist/esm/api/resources/okr/types/index.d.mts +2 -0
  60. package/dist/esm/api/resources/okr/types/index.mjs +2 -0
  61. package/dist/esm/serialization/resources/okr/types/ChildObjective.d.mts +16 -0
  62. package/dist/esm/serialization/resources/okr/types/ChildObjective.mjs +12 -0
  63. package/dist/esm/serialization/resources/okr/types/CreateObjectiveRequest.d.mts +1 -0
  64. package/dist/esm/serialization/resources/okr/types/CreateObjectiveRequest.mjs +1 -0
  65. package/dist/esm/serialization/resources/okr/types/Objective.d.mts +2 -0
  66. package/dist/esm/serialization/resources/okr/types/Objective.mjs +2 -0
  67. package/dist/esm/serialization/resources/okr/types/ObjectiveDetail.d.mts +6 -0
  68. package/dist/esm/serialization/resources/okr/types/ObjectiveDetail.mjs +6 -0
  69. package/dist/esm/serialization/resources/okr/types/ObjectiveRef.d.mts +10 -0
  70. package/dist/esm/serialization/resources/okr/types/ObjectiveRef.mjs +6 -0
  71. package/dist/esm/serialization/resources/okr/types/ScorecardCell.d.mts +1 -0
  72. package/dist/esm/serialization/resources/okr/types/ScorecardCell.mjs +1 -0
  73. package/dist/esm/serialization/resources/okr/types/ScorecardKeyResultRow.d.mts +2 -0
  74. package/dist/esm/serialization/resources/okr/types/ScorecardKeyResultRow.mjs +2 -0
  75. package/dist/esm/serialization/resources/okr/types/ScorecardRow.d.mts +2 -0
  76. package/dist/esm/serialization/resources/okr/types/ScorecardRow.mjs +2 -0
  77. package/dist/esm/serialization/resources/okr/types/UpdateObjectiveRequest.d.mts +1 -0
  78. package/dist/esm/serialization/resources/okr/types/UpdateObjectiveRequest.mjs +1 -0
  79. package/dist/esm/serialization/resources/okr/types/index.d.mts +2 -0
  80. package/dist/esm/serialization/resources/okr/types/index.mjs +2 -0
  81. package/dist/esm/version.d.mts +1 -1
  82. package/dist/esm/version.mjs +1 -1
  83. package/package.json +1 -1
@@ -47,12 +47,13 @@ export class OkrClient {
47
47
  __listObjectives() {
48
48
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
49
49
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
50
- const { year, quarter, teamId, ownerUserId, visibility, tag, q, draft, archived, limit, cursor } = request;
50
+ const { year, quarter, teamId, ownerUserId, parentObjectiveId, visibility, tag, q, draft, archived, limit, cursor, } = request;
51
51
  const _queryParams = {
52
52
  year,
53
53
  quarter,
54
54
  teamId,
55
55
  ownerUserId,
56
+ parentObjectiveId,
56
57
  visibility: visibility != null
57
58
  ? serializers.OkrVisibility.jsonOrThrow(visibility, {
58
59
  unrecognizedObjectKeys: "strip",
@@ -1187,7 +1188,7 @@ export class OkrClient {
1187
1188
  __getScorecard() {
1188
1189
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
1189
1190
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1190
- const { year, teamId, priority, frame, mid } = request;
1191
+ const { year, teamId, priority, tag, frame, mid } = request;
1191
1192
  const _queryParams = {
1192
1193
  year,
1193
1194
  teamId,
@@ -1197,6 +1198,7 @@ export class OkrClient {
1197
1198
  omitUndefined: true,
1198
1199
  })
1199
1200
  : undefined,
1201
+ tag,
1200
1202
  frame,
1201
1203
  mid,
1202
1204
  };
@@ -2344,7 +2346,7 @@ export class OkrClient {
2344
2346
  __listTeamScores() {
2345
2347
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
2346
2348
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
2347
- const { year, quarter, period, q, sort, onlyScored, limit, cursor } = request;
2349
+ const { year, quarter, period, q, sort, onlyScored, tag, limit, cursor } = request;
2348
2350
  const _queryParams = {
2349
2351
  year,
2350
2352
  quarter,
@@ -2357,6 +2359,7 @@ export class OkrClient {
2357
2359
  q,
2358
2360
  sort,
2359
2361
  onlyScored,
2362
+ tag,
2360
2363
  limit,
2361
2364
  cursor,
2362
2365
  };
@@ -2453,7 +2456,7 @@ export class OkrClient {
2453
2456
  __getTeamOkrs(teamSlug_1) {
2454
2457
  return __awaiter(this, arguments, void 0, function* (teamSlug, request = {}, requestOptions) {
2455
2458
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
2456
- const { year, quarter, period } = request;
2459
+ const { year, quarter, period, tag } = request;
2457
2460
  const _queryParams = {
2458
2461
  year,
2459
2462
  quarter,
@@ -2463,6 +2466,7 @@ export class OkrClient {
2463
2466
  omitUndefined: true,
2464
2467
  })
2465
2468
  : undefined,
2469
+ tag,
2466
2470
  };
2467
2471
  const _authRequest = yield this._options.authProvider.getAuthRequest();
2468
2472
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
@@ -17,6 +17,11 @@ export interface GetScorecardRequest {
17
17
  * their cells rolled up from those key results alone.
18
18
  */
19
19
  priority?: Taktoria.OkrPriority;
20
+ /**
21
+ * Only objectives carrying this tag, or holding a key result that
22
+ * does. One word, matched whole; case and a leading `#` are ignored.
23
+ */
24
+ tag?: string;
20
25
  /** `annual`, or a quarter `1` to `4`. Every period when left out. */
21
26
  frame?: string | string[];
22
27
  /** `false` leaves out the mid-quarter columns. */
@@ -8,4 +8,9 @@ export interface GetTeamOkrsRequest {
8
8
  year?: number;
9
9
  quarter?: number;
10
10
  period?: Taktoria.OkrPeriod;
11
+ /**
12
+ * Only objectives carrying this tag, or holding a key result that
13
+ * does. One word, matched whole; case and a leading `#` are ignored.
14
+ */
15
+ tag?: string;
11
16
  }
@@ -15,6 +15,8 @@ export interface ListObjectivesRequest {
15
15
  */
16
16
  teamId?: string;
17
17
  ownerUserId?: string;
18
+ /** Only the objectives aligned directly to this one, its children. */
19
+ parentObjectiveId?: string;
18
20
  visibility?: Taktoria.OkrVisibility;
19
21
  /**
20
22
  * Only objectives carrying this tag, or holding a key result that
@@ -16,6 +16,12 @@ export interface ListTeamScoresRequest {
16
16
  sort?: string;
17
17
  /** `true` keeps only the teams with a score. */
18
18
  onlyScored?: boolean;
19
+ /**
20
+ * Only teams holding an objective that carries this tag, or a key
21
+ * result that does, each scored on those alone. One word, matched
22
+ * whole.
23
+ */
24
+ tag?: string;
19
25
  /** At most 100; 50 when left out. */
20
26
  limit?: number;
21
27
  cursor?: string;
@@ -0,0 +1,15 @@
1
+ import type * as Taktoria from "../../../index.mjs";
2
+ /**
3
+ * An objective aligned to another, as its parent lists it.
4
+ */
5
+ export interface ChildObjective {
6
+ id: string;
7
+ title: string;
8
+ /** How much it counts in its parent's score, beside the parent's key results. */
9
+ weight: number;
10
+ period: Taktoria.OkrPeriod;
11
+ year: number;
12
+ quarter?: number;
13
+ /** Its own score, with anything aligned under it rolled in. */
14
+ score?: number;
15
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -47,6 +47,11 @@ export interface CreateObjectiveRequest {
47
47
  sortOrder?: number;
48
48
  teamId?: string;
49
49
  ownerUserId?: string;
50
+ /**
51
+ * The objective it aligns to: any the caller may see, in any period.
52
+ * Anything else is a 422.
53
+ */
54
+ parentObjectiveId?: string;
50
55
  /**
51
56
  * Its key results, at most 50, made with it in this order; each as
52
57
  * `createKeyResult` takes one, a first `score` recorded as a
@@ -30,11 +30,25 @@ export interface Objective {
30
30
  owner?: Taktoria.User;
31
31
  ownerUserId?: string;
32
32
  /**
33
- * The weighted average of its key results' grades, or absent when
34
- * none has been scored. Absent rather than 0.0 on purpose: an
35
- * unscored objective has not failed, and a zero would say it had.
33
+ * The weighted average of its key results' grades, with each
34
+ * objective aligned under it counted like one more key result (its
35
+ * own score, by its weight), or absent when nothing is scored.
36
+ * Absent rather than 0.0 on purpose: an unscored objective has not
37
+ * failed, and a zero would say it had. Where a list shows only some
38
+ * of an objective's key results (`/okrhub/mine`, a team's page), it
39
+ * is those key results' average alone.
36
40
  */
37
41
  score?: number;
42
+ /**
43
+ * Its own key results' weighted average alone, as the averages over
44
+ * many objectives (`rollup`) count it, so that nothing counts twice.
45
+ */
46
+ keyResultScore?: number;
47
+ /**
48
+ * The objective it aligns to, if any: one, in any period. Its score
49
+ * counts in the parent's.
50
+ */
51
+ parentObjectiveId?: string;
38
52
  keyResults: Taktoria.KeyResult[];
39
53
  /**
40
54
  * Still being worked out, not yet agreed. A label only: a draft is
@@ -17,4 +17,19 @@ export interface ObjectiveDetail extends Taktoria.Objective {
17
17
  * through a team) for anybody else. Every one, for a key.
18
18
  */
19
19
  updatableKeyResultIds: string[];
20
+ /** The objective it aligns to, if the caller may see it. */
21
+ parent?: Taktoria.ObjectiveRef;
22
+ /** `true` when it aligns to a private objective the caller may not see. */
23
+ parentHidden: boolean;
24
+ /**
25
+ * The objectives aligned directly to it that the caller may see,
26
+ * newest period first. Each counts in its `score`.
27
+ */
28
+ children: Taktoria.ChildObjective[];
29
+ /**
30
+ * How many more objectives are aligned to it that the caller may
31
+ * not see. They count in its `score`, so it is the same for
32
+ * everybody, but are never named.
33
+ */
34
+ hiddenChildren: number;
20
35
  }
@@ -0,0 +1,4 @@
1
+ export interface ObjectiveRef {
2
+ id: string;
3
+ title: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -16,4 +16,12 @@ export interface ScorecardCell {
16
16
  * it, and say so in `averageInProgress`.
17
17
  */
18
18
  inProgress?: boolean;
19
+ /**
20
+ * `true` on an objective's cell that counts the objectives aligned
21
+ * under it, each like one more key result by its weight, as it stood
22
+ * at that checkpoint (its Final once its own period is over, before
23
+ * then its latest check-ins). The averages take each objective on
24
+ * its own key results instead, so nothing counts twice.
25
+ */
26
+ withAligned?: boolean;
19
27
  }
@@ -2,6 +2,9 @@ import type * as Taktoria from "../../../index.mjs";
2
2
  export interface ScorecardKeyResultRow {
3
3
  keyResultId: string;
4
4
  title: string;
5
+ description?: string;
6
+ /** Its tags, A to Z. */
7
+ tags: string[];
5
8
  priority?: Taktoria.OkrPriority;
6
9
  weight: number;
7
10
  cells: Record<string, Taktoria.ScorecardCell>;
@@ -5,6 +5,9 @@ import type * as Taktoria from "../../../index.mjs";
5
5
  export interface ScorecardRow {
6
6
  objectiveId: string;
7
7
  title: string;
8
+ description?: string;
9
+ /** Its tags, A to Z. */
10
+ tags: string[];
8
11
  weight: number;
9
12
  timeframe: Taktoria.ScorecardTimeframe;
10
13
  /** Rolled up from its key results, by weight. */
@@ -23,6 +23,11 @@ export interface UpdateObjectiveRequest {
23
23
  weight?: number;
24
24
  teamId?: string;
25
25
  ownerUserId?: string;
26
+ /**
27
+ * The objective it aligns to, any the caller may see; `null` for
28
+ * none. Neither the objective itself nor one aligned under it (a 422).
29
+ */
30
+ parentObjectiveId?: string;
26
31
  /** `false` publishes it. */
27
32
  draft?: boolean;
28
33
  sortOrder?: number;
@@ -5,6 +5,7 @@ export * from "./BulkScoreSkipReason.mjs";
5
5
  export * from "./CheckIn.mjs";
6
6
  export * from "./CheckInMetric.mjs";
7
7
  export * from "./CheckInPage.mjs";
8
+ export * from "./ChildObjective.mjs";
8
9
  export * from "./CreateCheckInRequest.mjs";
9
10
  export * from "./CreateKeyResultRequest.mjs";
10
11
  export * from "./CreateObjectiveRequest.mjs";
@@ -24,6 +25,7 @@ export * from "./MetricSourceKind.mjs";
24
25
  export * from "./Objective.mjs";
25
26
  export * from "./ObjectiveDetail.mjs";
26
27
  export * from "./ObjectivePage.mjs";
28
+ export * from "./ObjectiveRef.mjs";
27
29
  export * from "./ObjectiveViewPage.mjs";
28
30
  export * from "./OkrCheckpoint.mjs";
29
31
  export * from "./OkrPeriod.mjs";
@@ -5,6 +5,7 @@ export * from "./BulkScoreSkipReason.mjs";
5
5
  export * from "./CheckIn.mjs";
6
6
  export * from "./CheckInMetric.mjs";
7
7
  export * from "./CheckInPage.mjs";
8
+ export * from "./ChildObjective.mjs";
8
9
  export * from "./CreateCheckInRequest.mjs";
9
10
  export * from "./CreateKeyResultRequest.mjs";
10
11
  export * from "./CreateObjectiveRequest.mjs";
@@ -24,6 +25,7 @@ export * from "./MetricSourceKind.mjs";
24
25
  export * from "./Objective.mjs";
25
26
  export * from "./ObjectiveDetail.mjs";
26
27
  export * from "./ObjectivePage.mjs";
28
+ export * from "./ObjectiveRef.mjs";
27
29
  export * from "./ObjectiveViewPage.mjs";
28
30
  export * from "./OkrCheckpoint.mjs";
29
31
  export * from "./OkrPeriod.mjs";
@@ -0,0 +1,16 @@
1
+ import type * as Taktoria from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ import { OkrPeriod } from "./OkrPeriod.mjs";
5
+ export declare const ChildObjective: core.serialization.ObjectSchema<serializers.ChildObjective.Raw, Taktoria.ChildObjective>;
6
+ export declare namespace ChildObjective {
7
+ interface Raw {
8
+ id: string;
9
+ title: string;
10
+ weight: number;
11
+ period: OkrPeriod.Raw;
12
+ year: number;
13
+ quarter?: number | null;
14
+ score?: number | null;
15
+ }
16
+ }
@@ -0,0 +1,12 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ import { OkrPeriod } from "./OkrPeriod.mjs";
4
+ export const ChildObjective = core.serialization.object({
5
+ id: core.serialization.string(),
6
+ title: core.serialization.string(),
7
+ weight: core.serialization.number(),
8
+ period: OkrPeriod,
9
+ year: core.serialization.number(),
10
+ quarter: core.serialization.number().optional(),
11
+ score: core.serialization.number().optional(),
12
+ });
@@ -19,6 +19,7 @@ export declare namespace CreateObjectiveRequest {
19
19
  sortOrder?: number | null;
20
20
  teamId?: string | null;
21
21
  ownerUserId?: string | null;
22
+ parentObjectiveId?: string | null;
22
23
  keyResults?: CreateKeyResultRequest.Raw[] | null;
23
24
  }
24
25
  }
@@ -16,5 +16,6 @@ export const CreateObjectiveRequest = core.serialization.object({
16
16
  sortOrder: core.serialization.number().optional(),
17
17
  teamId: core.serialization.string().optional(),
18
18
  ownerUserId: core.serialization.string().optional(),
19
+ parentObjectiveId: core.serialization.string().optional(),
19
20
  keyResults: core.serialization.list(CreateKeyResultRequest).optional(),
20
21
  });
@@ -24,6 +24,8 @@ export declare namespace Objective {
24
24
  owner?: User.Raw | null;
25
25
  ownerUserId?: string | null;
26
26
  score?: number | null;
27
+ keyResultScore?: number | null;
28
+ parentObjectiveId?: string | null;
27
29
  keyResults: KeyResult.Raw[];
28
30
  draft: boolean;
29
31
  sortOrder: number;
@@ -21,6 +21,8 @@ export const Objective = core.serialization.object({
21
21
  owner: User.optional(),
22
22
  ownerUserId: core.serialization.string().optional(),
23
23
  score: core.serialization.number().optional(),
24
+ keyResultScore: core.serialization.number().optional(),
25
+ parentObjectiveId: core.serialization.string().optional(),
24
26
  keyResults: core.serialization.list(KeyResult),
25
27
  draft: core.serialization.boolean(),
26
28
  sortOrder: core.serialization.number(),
@@ -1,11 +1,17 @@
1
1
  import type * as Taktoria from "../../../../api/index.mjs";
2
2
  import * as core from "../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../index.mjs";
4
+ import { ChildObjective } from "./ChildObjective.mjs";
4
5
  import { Objective } from "./Objective.mjs";
6
+ import { ObjectiveRef } from "./ObjectiveRef.mjs";
5
7
  export declare const ObjectiveDetail: core.serialization.ObjectSchema<serializers.ObjectiveDetail.Raw, Taktoria.ObjectiveDetail>;
6
8
  export declare namespace ObjectiveDetail {
7
9
  interface Raw extends Objective.Raw {
8
10
  canEdit: boolean;
9
11
  updatableKeyResultIds: string[];
12
+ parent?: ObjectiveRef.Raw | null;
13
+ parentHidden: boolean;
14
+ children: ChildObjective.Raw[];
15
+ hiddenChildren: number;
10
16
  }
11
17
  }
@@ -1,9 +1,15 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../core/index.mjs";
3
+ import { ChildObjective } from "./ChildObjective.mjs";
3
4
  import { Objective } from "./Objective.mjs";
5
+ import { ObjectiveRef } from "./ObjectiveRef.mjs";
4
6
  export const ObjectiveDetail = core.serialization
5
7
  .object({
6
8
  canEdit: core.serialization.boolean(),
7
9
  updatableKeyResultIds: core.serialization.list(core.serialization.string()),
10
+ parent: ObjectiveRef.optional(),
11
+ parentHidden: core.serialization.boolean(),
12
+ children: core.serialization.list(ChildObjective),
13
+ hiddenChildren: core.serialization.number(),
8
14
  })
9
15
  .extend(Objective);
@@ -0,0 +1,10 @@
1
+ import type * as Taktoria from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ export declare const ObjectiveRef: core.serialization.ObjectSchema<serializers.ObjectiveRef.Raw, Taktoria.ObjectiveRef>;
5
+ export declare namespace ObjectiveRef {
6
+ interface Raw {
7
+ id: string;
8
+ title: string;
9
+ }
10
+ }
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const ObjectiveRef = core.serialization.object({
4
+ id: core.serialization.string(),
5
+ title: core.serialization.string(),
6
+ });
@@ -9,5 +9,6 @@ export declare namespace ScorecardCell {
9
9
  source?: ScorecardCellSource.Raw | null;
10
10
  noScore?: boolean | null;
11
11
  inProgress?: boolean | null;
12
+ withAligned?: boolean | null;
12
13
  }
13
14
  }
@@ -6,4 +6,5 @@ export const ScorecardCell = core.serialization.object({
6
6
  source: ScorecardCellSource.optional(),
7
7
  noScore: core.serialization.boolean().optional(),
8
8
  inProgress: core.serialization.boolean().optional(),
9
+ withAligned: core.serialization.boolean().optional(),
9
10
  });
@@ -8,6 +8,8 @@ export declare namespace ScorecardKeyResultRow {
8
8
  interface Raw {
9
9
  keyResultId: string;
10
10
  title: string;
11
+ description?: string | null;
12
+ tags: string[];
11
13
  priority?: OkrPriority.Raw | null;
12
14
  weight: number;
13
15
  cells: Record<string, ScorecardCell.Raw>;
@@ -5,6 +5,8 @@ import { ScorecardCell } from "./ScorecardCell.mjs";
5
5
  export const ScorecardKeyResultRow = core.serialization.object({
6
6
  keyResultId: core.serialization.string(),
7
7
  title: core.serialization.string(),
8
+ description: core.serialization.string().optional(),
9
+ tags: core.serialization.list(core.serialization.string()),
8
10
  priority: OkrPriority.optional(),
9
11
  weight: core.serialization.number(),
10
12
  cells: core.serialization.record(core.serialization.string(), ScorecardCell),
@@ -9,6 +9,8 @@ export declare namespace ScorecardRow {
9
9
  interface Raw {
10
10
  objectiveId: string;
11
11
  title: string;
12
+ description?: string | null;
13
+ tags: string[];
12
14
  weight: number;
13
15
  timeframe: ScorecardTimeframe.Raw;
14
16
  cells: Record<string, ScorecardCell.Raw>;
@@ -6,6 +6,8 @@ import { ScorecardTimeframe } from "./ScorecardTimeframe.mjs";
6
6
  export const ScorecardRow = core.serialization.object({
7
7
  objectiveId: core.serialization.string(),
8
8
  title: core.serialization.string(),
9
+ description: core.serialization.string().optional(),
10
+ tags: core.serialization.list(core.serialization.string()),
9
11
  weight: core.serialization.number(),
10
12
  timeframe: ScorecardTimeframe,
11
13
  cells: core.serialization.record(core.serialization.string(), ScorecardCell),
@@ -16,6 +16,7 @@ export declare namespace UpdateObjectiveRequest {
16
16
  weight?: number | null;
17
17
  teamId?: string | null;
18
18
  ownerUserId?: string | null;
19
+ parentObjectiveId?: string | null;
19
20
  draft?: boolean | null;
20
21
  sortOrder?: number | null;
21
22
  archived?: boolean | null;
@@ -13,6 +13,7 @@ export const UpdateObjectiveRequest = core.serialization.object({
13
13
  weight: core.serialization.number().optional(),
14
14
  teamId: core.serialization.string().optional(),
15
15
  ownerUserId: core.serialization.string().optional(),
16
+ parentObjectiveId: core.serialization.string().optional(),
16
17
  draft: core.serialization.boolean().optional(),
17
18
  sortOrder: core.serialization.number().optional(),
18
19
  archived: core.serialization.boolean().optional(),
@@ -5,6 +5,7 @@ export * from "./BulkScoreSkipReason.mjs";
5
5
  export * from "./CheckIn.mjs";
6
6
  export * from "./CheckInMetric.mjs";
7
7
  export * from "./CheckInPage.mjs";
8
+ export * from "./ChildObjective.mjs";
8
9
  export * from "./CreateCheckInRequest.mjs";
9
10
  export * from "./CreateKeyResultRequest.mjs";
10
11
  export * from "./CreateObjectiveRequest.mjs";
@@ -24,6 +25,7 @@ export * from "./MetricSourceKind.mjs";
24
25
  export * from "./Objective.mjs";
25
26
  export * from "./ObjectiveDetail.mjs";
26
27
  export * from "./ObjectivePage.mjs";
28
+ export * from "./ObjectiveRef.mjs";
27
29
  export * from "./ObjectiveViewPage.mjs";
28
30
  export * from "./OkrCheckpoint.mjs";
29
31
  export * from "./OkrPeriod.mjs";
@@ -5,6 +5,7 @@ export * from "./BulkScoreSkipReason.mjs";
5
5
  export * from "./CheckIn.mjs";
6
6
  export * from "./CheckInMetric.mjs";
7
7
  export * from "./CheckInPage.mjs";
8
+ export * from "./ChildObjective.mjs";
8
9
  export * from "./CreateCheckInRequest.mjs";
9
10
  export * from "./CreateKeyResultRequest.mjs";
10
11
  export * from "./CreateObjectiveRequest.mjs";
@@ -24,6 +25,7 @@ export * from "./MetricSourceKind.mjs";
24
25
  export * from "./Objective.mjs";
25
26
  export * from "./ObjectiveDetail.mjs";
26
27
  export * from "./ObjectivePage.mjs";
28
+ export * from "./ObjectiveRef.mjs";
27
29
  export * from "./ObjectiveViewPage.mjs";
28
30
  export * from "./OkrCheckpoint.mjs";
29
31
  export * from "./OkrPeriod.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.2.0";
1
+ export declare const SDK_VERSION = "0.2.2";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.2.0";
1
+ export const SDK_VERSION = "0.2.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taktoria/sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "main": "./dist/cjs/index.js",