@taktoria/sdk 0.6.0 → 0.8.0

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 (52) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/geist/client/Client.d.ts +15 -10
  3. package/dist/cjs/api/resources/geist/client/Client.js +15 -10
  4. package/dist/cjs/api/resources/geist/types/CreateSurveyRequest.d.ts +9 -0
  5. package/dist/cjs/api/resources/geist/types/SurveyInstrumentResearch.d.ts +9 -0
  6. package/dist/cjs/api/resources/geist/types/SurveyInstrumentResearch.js +3 -0
  7. package/dist/cjs/api/resources/geist/types/SurveyResults.d.ts +8 -1
  8. package/dist/cjs/api/resources/geist/types/SurveyResultsSurvey.d.ts +2 -0
  9. package/dist/cjs/api/resources/geist/types/SurveySummary.d.ts +5 -0
  10. package/dist/cjs/api/resources/geist/types/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/geist/types/index.js +1 -0
  12. package/dist/cjs/serialization/resources/geist/types/CreateSurveyRequest.d.ts +1 -0
  13. package/dist/cjs/serialization/resources/geist/types/CreateSurveyRequest.js +1 -0
  14. package/dist/cjs/serialization/resources/geist/types/SurveyInstrumentResearch.d.ts +11 -0
  15. package/dist/cjs/serialization/resources/geist/types/SurveyInstrumentResearch.js +43 -0
  16. package/dist/cjs/serialization/resources/geist/types/SurveyResults.d.ts +2 -0
  17. package/dist/cjs/serialization/resources/geist/types/SurveyResults.js +2 -0
  18. package/dist/cjs/serialization/resources/geist/types/SurveyResultsSurvey.d.ts +1 -0
  19. package/dist/cjs/serialization/resources/geist/types/SurveyResultsSurvey.js +1 -0
  20. package/dist/cjs/serialization/resources/geist/types/SurveySummary.d.ts +1 -0
  21. package/dist/cjs/serialization/resources/geist/types/SurveySummary.js +1 -0
  22. package/dist/cjs/serialization/resources/geist/types/index.d.ts +1 -0
  23. package/dist/cjs/serialization/resources/geist/types/index.js +1 -0
  24. package/dist/cjs/version.d.ts +1 -1
  25. package/dist/cjs/version.js +1 -1
  26. package/dist/esm/BaseClient.mjs +2 -2
  27. package/dist/esm/api/resources/geist/client/Client.d.mts +15 -10
  28. package/dist/esm/api/resources/geist/client/Client.mjs +15 -10
  29. package/dist/esm/api/resources/geist/types/CreateSurveyRequest.d.mts +9 -0
  30. package/dist/esm/api/resources/geist/types/SurveyInstrumentResearch.d.mts +9 -0
  31. package/dist/esm/api/resources/geist/types/SurveyInstrumentResearch.mjs +2 -0
  32. package/dist/esm/api/resources/geist/types/SurveyResults.d.mts +8 -1
  33. package/dist/esm/api/resources/geist/types/SurveyResultsSurvey.d.mts +2 -0
  34. package/dist/esm/api/resources/geist/types/SurveySummary.d.mts +5 -0
  35. package/dist/esm/api/resources/geist/types/index.d.mts +1 -0
  36. package/dist/esm/api/resources/geist/types/index.mjs +1 -0
  37. package/dist/esm/serialization/resources/geist/types/CreateSurveyRequest.d.mts +1 -0
  38. package/dist/esm/serialization/resources/geist/types/CreateSurveyRequest.mjs +1 -0
  39. package/dist/esm/serialization/resources/geist/types/SurveyInstrumentResearch.d.mts +11 -0
  40. package/dist/esm/serialization/resources/geist/types/SurveyInstrumentResearch.mjs +7 -0
  41. package/dist/esm/serialization/resources/geist/types/SurveyResults.d.mts +2 -0
  42. package/dist/esm/serialization/resources/geist/types/SurveyResults.mjs +2 -0
  43. package/dist/esm/serialization/resources/geist/types/SurveyResultsSurvey.d.mts +1 -0
  44. package/dist/esm/serialization/resources/geist/types/SurveyResultsSurvey.mjs +1 -0
  45. package/dist/esm/serialization/resources/geist/types/SurveySummary.d.mts +1 -0
  46. package/dist/esm/serialization/resources/geist/types/SurveySummary.mjs +1 -0
  47. package/dist/esm/serialization/resources/geist/types/index.d.mts +1 -0
  48. package/dist/esm/serialization/resources/geist/types/index.mjs +1 -0
  49. package/dist/esm/version.d.mts +1 -1
  50. package/dist/esm/version.mjs +1 -1
  51. package/package.json +1 -1
  52. package/reference.md +15 -10
@@ -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.6.0",
47
- "User-Agent": "@taktoria/sdk/0.6.0",
46
+ "X-Fern-SDK-Version": "0.8.0",
47
+ "User-Agent": "@taktoria/sdk/0.8.0",
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);
@@ -33,9 +33,10 @@ export declare class GeistClient {
33
33
  listSurveys(request?: Taktoria.ListSurveysRequest, requestOptions?: GeistClient.RequestOptions): core.HttpResponsePromise<Taktoria.SurveyPage>;
34
34
  private __listSurveys;
35
35
  /**
36
- * A new draft, from a built-in instrument (`builtin`), a workspace
37
- * template (`templateId`), the `questions` given, or none yet. Nobody
38
- * is asked until it is published.
36
+ * A new draft, from a built-in instrument (`builtin`), several combined
37
+ * into one (`builtins`: a page each, each still read as its publishers
38
+ * read it), a workspace template (`templateId`), the `questions` given,
39
+ * or none yet. Nobody is asked until it is published.
39
40
  *
40
41
  * @param {Taktoria.CreateSurveyRequest} request
41
42
  * @param {GeistClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -108,7 +109,9 @@ export declare class GeistClient {
108
109
  deleteSurvey(surveyId: string, request?: Taktoria.DeleteSurveyRequest, requestOptions?: GeistClient.RequestOptions): core.HttpResponsePromise<void>;
109
110
  private __deleteSurvey;
110
111
  /**
111
- * Replace a draft's (or a scheduled survey's) questions, in order. `409` once it has opened.
112
+ * Replace a draft's (or a scheduled survey's) questions, in order. A
113
+ * question's `section` starts a new page there; respondents see one
114
+ * page at a time. `409` once it has opened.
112
115
  *
113
116
  * @param {string} surveyId
114
117
  * @param {Taktoria.SetQuestionsRequest} request
@@ -223,7 +226,9 @@ export declare class GeistClient {
223
226
  /**
224
227
  * A survey's results, as its results page shows them. Aggregates only;
225
228
  * nothing but the counts below its `minGroupSize`, or while an anonymous
226
- * survey is still open. For those who run it,
229
+ * survey is still open. A built-in validated survey carries its
230
+ * publishers' own reading in `research`; one combining several carries
231
+ * each one's in `instrumentResearch`. For those who run it,
227
232
  * and (signed in) for people a closed survey's results were shared with.
228
233
  * Has a rate limit of its own.
229
234
  *
@@ -304,11 +309,11 @@ export declare class GeistClient {
304
309
  listMyLeadershipFeedback(requestOptions?: GeistClient.RequestOptions): core.HttpResponsePromise<Taktoria.SurveyLeaderFeedbackList>;
305
310
  private __listMyLeadershipFeedback;
306
311
  /**
307
- * The built-in surveys: validated instruments free for commercial use
308
- * (HSE Management Standards, Copenhagen Burnout Inventory, NIOSH
309
- * WellBQ's public-domain items, US federal workforce surveys) and
310
- * Taktoria's own, marked `validated: false`, each with the credit its
311
- * sources require.
312
+ * The built-in surveys: validated instruments (HSE Management
313
+ * Standards, Copenhagen Burnout Inventory, NIOSH WellBQ, US federal
314
+ * workforce surveys) and Taktoria's own, marked `validated: false`,
315
+ * each with the credit its sources require. Start a survey from one
316
+ * with `builtin`, or from several combined into one with `builtins`.
312
317
  *
313
318
  * @param {GeistClient.RequestOptions} requestOptions - Request-specific configuration.
314
319
  *
@@ -172,9 +172,10 @@ class GeistClient {
172
172
  });
173
173
  }
174
174
  /**
175
- * A new draft, from a built-in instrument (`builtin`), a workspace
176
- * template (`templateId`), the `questions` given, or none yet. Nobody
177
- * is asked until it is published.
175
+ * A new draft, from a built-in instrument (`builtin`), several combined
176
+ * into one (`builtins`: a page each, each still read as its publishers
177
+ * read it), a workspace template (`templateId`), the `questions` given,
178
+ * or none yet. Nobody is asked until it is published.
178
179
  *
179
180
  * @param {Taktoria.CreateSurveyRequest} request
180
181
  * @param {GeistClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -546,7 +547,9 @@ class GeistClient {
546
547
  });
547
548
  }
548
549
  /**
549
- * Replace a draft's (or a scheduled survey's) questions, in order. `409` once it has opened.
550
+ * Replace a draft's (or a scheduled survey's) questions, in order. A
551
+ * question's `section` starts a new page there; respondents see one
552
+ * page at a time. `409` once it has opened.
550
553
  *
551
554
  * @param {string} surveyId
552
555
  * @param {Taktoria.SetQuestionsRequest} request
@@ -1063,7 +1066,9 @@ class GeistClient {
1063
1066
  /**
1064
1067
  * A survey's results, as its results page shows them. Aggregates only;
1065
1068
  * nothing but the counts below its `minGroupSize`, or while an anonymous
1066
- * survey is still open. For those who run it,
1069
+ * survey is still open. A built-in validated survey carries its
1070
+ * publishers' own reading in `research`; one combining several carries
1071
+ * each one's in `instrumentResearch`. For those who run it,
1067
1072
  * and (signed in) for people a closed survey's results were shared with.
1068
1073
  * Has a rate limit of its own.
1069
1074
  *
@@ -1416,11 +1421,11 @@ class GeistClient {
1416
1421
  });
1417
1422
  }
1418
1423
  /**
1419
- * The built-in surveys: validated instruments free for commercial use
1420
- * (HSE Management Standards, Copenhagen Burnout Inventory, NIOSH
1421
- * WellBQ's public-domain items, US federal workforce surveys) and
1422
- * Taktoria's own, marked `validated: false`, each with the credit its
1423
- * sources require.
1424
+ * The built-in surveys: validated instruments (HSE Management
1425
+ * Standards, Copenhagen Burnout Inventory, NIOSH WellBQ, US federal
1426
+ * workforce surveys) and Taktoria's own, marked `validated: false`,
1427
+ * each with the credit its sources require. Start a survey from one
1428
+ * with `builtin`, or from several combined into one with `builtins`.
1424
1429
  *
1425
1430
  * @param {GeistClient.RequestOptions} requestOptions - Request-specific configuration.
1426
1431
  *
@@ -4,6 +4,15 @@ export interface CreateSurveyRequest {
4
4
  description?: string;
5
5
  /** Start from a built-in instrument's questions. */
6
6
  builtin?: string;
7
+ /**
8
+ * Two to six built-in instruments' keys, combined into one survey in
9
+ * this order: each on a page of its own, its questions and their
10
+ * order as published, so each validated one is still read as its
11
+ * publishers read it (`instrumentResearch` in the results). A
12
+ * question two of them share is asked once. Refused past 60
13
+ * questions.
14
+ */
15
+ builtins?: string[];
7
16
  /** Start from a workspace template's questions and settings. */
8
17
  templateId?: string;
9
18
  /** Or give the questions. */
@@ -0,0 +1,9 @@
1
+ import type * as Taktoria from "../../../index.js";
2
+ /**
3
+ * One built-in instrument's reading, in a survey combining several.
4
+ */
5
+ export interface SurveyInstrumentResearch {
6
+ /** The instrument's key (`GET /geist/instruments`). */
7
+ builtin: string;
8
+ research: Taktoria.SurveyResearch;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -34,9 +34,16 @@ export interface SurveyResults {
34
34
  * What the instrument's own publishers say these results mean, for a
35
35
  * survey from a built-in validated instrument. Absent for other
36
36
  * surveys, when the results are hidden, or when nothing in it has
37
- * enough answers to show.
37
+ * enough answers to show. A survey combining several has
38
+ * `instrumentResearch` instead.
38
39
  */
39
40
  research?: Taktoria.SurveyResearch;
41
+ /**
42
+ * For a survey combining several built-in instruments: each one's
43
+ * own reading, from its own items wherever they were asked, under
44
+ * the same rules as `research`. Empty for any other survey.
45
+ */
46
+ instrumentResearch: Taktoria.SurveyInstrumentResearch[];
40
47
  /** Each level of leadership its `aboutLeader` questions asked about; empty with none. */
41
48
  leadership: Taktoria.SurveyLeaderLevelResult[];
42
49
  }
@@ -6,6 +6,8 @@ export interface SurveyResultsSurvey {
6
6
  anonymous: boolean;
7
7
  minGroupSize: number;
8
8
  builtin?: string;
9
+ /** Every built-in instrument it asks, in order. */
10
+ builtins: string[];
9
11
  openedAt?: Date;
10
12
  closesAt?: Date;
11
13
  closedAt?: Date;
@@ -9,6 +9,11 @@ export interface SurveySummary {
9
9
  status: Taktoria.SurveyStatus;
10
10
  /** The built-in instrument it started from (`GET /geist/instruments`). */
11
11
  builtin?: string;
12
+ /**
13
+ * Every built-in instrument it asks, in order: one for a survey from
14
+ * one, several for a survey combining them, none otherwise.
15
+ */
16
+ builtins: string[];
12
17
  /** The workspace template it started from. */
13
18
  templateId?: string;
14
19
  /** No answer is tied to anybody. Fixed once it opens. */
@@ -12,6 +12,7 @@ export * from "./SurveyDimensionResult.js";
12
12
  export * from "./SurveyInstrument.js";
13
13
  export * from "./SurveyInstrumentDimension.js";
14
14
  export * from "./SurveyInstrumentList.js";
15
+ export * from "./SurveyInstrumentResearch.js";
15
16
  export * from "./SurveyLeaderFeedback.js";
16
17
  export * from "./SurveyLeaderFeedbackLevel.js";
17
18
  export * from "./SurveyLeaderFeedbackList.js";
@@ -28,6 +28,7 @@ __exportStar(require("./SurveyDimensionResult.js"), exports);
28
28
  __exportStar(require("./SurveyInstrument.js"), exports);
29
29
  __exportStar(require("./SurveyInstrumentDimension.js"), exports);
30
30
  __exportStar(require("./SurveyInstrumentList.js"), exports);
31
+ __exportStar(require("./SurveyInstrumentResearch.js"), exports);
31
32
  __exportStar(require("./SurveyLeaderFeedback.js"), exports);
32
33
  __exportStar(require("./SurveyLeaderFeedbackLevel.js"), exports);
33
34
  __exportStar(require("./SurveyLeaderFeedbackList.js"), exports);
@@ -8,6 +8,7 @@ export declare namespace CreateSurveyRequest {
8
8
  title: string;
9
9
  description?: string | null;
10
10
  builtin?: string | null;
11
+ builtins?: string[] | null;
11
12
  templateId?: string | null;
12
13
  questions?: SurveyQuestionInput.Raw[] | null;
13
14
  }
@@ -41,6 +41,7 @@ exports.CreateSurveyRequest = core.serialization.object({
41
41
  title: core.serialization.string(),
42
42
  description: core.serialization.string().optional(),
43
43
  builtin: core.serialization.string().optional(),
44
+ builtins: core.serialization.list(core.serialization.string()).optional(),
44
45
  templateId: core.serialization.string().optional(),
45
46
  questions: core.serialization.list(SurveyQuestionInput_js_1.SurveyQuestionInput).optional(),
46
47
  });
@@ -0,0 +1,11 @@
1
+ import type * as Taktoria from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { SurveyResearch } from "./SurveyResearch.js";
5
+ export declare const SurveyInstrumentResearch: core.serialization.ObjectSchema<serializers.SurveyInstrumentResearch.Raw, Taktoria.SurveyInstrumentResearch>;
6
+ export declare namespace SurveyInstrumentResearch {
7
+ interface Raw {
8
+ builtin: string;
9
+ research: SurveyResearch.Raw;
10
+ }
11
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.SurveyInstrumentResearch = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ const SurveyResearch_js_1 = require("./SurveyResearch.js");
40
+ exports.SurveyInstrumentResearch = core.serialization.object({
41
+ builtin: core.serialization.string(),
42
+ research: SurveyResearch_js_1.SurveyResearch,
43
+ });
@@ -3,6 +3,7 @@ import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
4
  import { SurveyComparison } from "./SurveyComparison.js";
5
5
  import { SurveyDimensionResult } from "./SurveyDimensionResult.js";
6
+ import { SurveyInstrumentResearch } from "./SurveyInstrumentResearch.js";
6
7
  import { SurveyLeaderLevelResult } from "./SurveyLeaderLevelResult.js";
7
8
  import { SurveyQuestionResult } from "./SurveyQuestionResult.js";
8
9
  import { SurveyResearch } from "./SurveyResearch.js";
@@ -28,6 +29,7 @@ export declare namespace SurveyResults {
28
29
  comparison?: SurveyComparison.Raw | null;
29
30
  respondents?: SurveyRespondent.Raw[] | null;
30
31
  research?: SurveyResearch.Raw | null;
32
+ instrumentResearch: SurveyInstrumentResearch.Raw[];
31
33
  leadership: SurveyLeaderLevelResult.Raw[];
32
34
  }
33
35
  }
@@ -38,6 +38,7 @@ exports.SurveyResults = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
39
  const SurveyComparison_js_1 = require("./SurveyComparison.js");
40
40
  const SurveyDimensionResult_js_1 = require("./SurveyDimensionResult.js");
41
+ const SurveyInstrumentResearch_js_1 = require("./SurveyInstrumentResearch.js");
41
42
  const SurveyLeaderLevelResult_js_1 = require("./SurveyLeaderLevelResult.js");
42
43
  const SurveyQuestionResult_js_1 = require("./SurveyQuestionResult.js");
43
44
  const SurveyResearch_js_1 = require("./SurveyResearch.js");
@@ -61,5 +62,6 @@ exports.SurveyResults = core.serialization.object({
61
62
  comparison: SurveyComparison_js_1.SurveyComparison.optional(),
62
63
  respondents: core.serialization.list(SurveyRespondent_js_1.SurveyRespondent).optional(),
63
64
  research: SurveyResearch_js_1.SurveyResearch.optional(),
65
+ instrumentResearch: core.serialization.list(SurveyInstrumentResearch_js_1.SurveyInstrumentResearch),
64
66
  leadership: core.serialization.list(SurveyLeaderLevelResult_js_1.SurveyLeaderLevelResult),
65
67
  });
@@ -11,6 +11,7 @@ export declare namespace SurveyResultsSurvey {
11
11
  anonymous: boolean;
12
12
  minGroupSize: number;
13
13
  builtin?: string | null;
14
+ builtins: string[];
14
15
  openedAt?: string | null;
15
16
  closesAt?: string | null;
16
17
  closedAt?: string | null;
@@ -44,6 +44,7 @@ exports.SurveyResultsSurvey = core.serialization.object({
44
44
  anonymous: core.serialization.boolean(),
45
45
  minGroupSize: core.serialization.number(),
46
46
  builtin: core.serialization.string().optional(),
47
+ builtins: core.serialization.list(core.serialization.string()),
47
48
  openedAt: core.serialization.date().optional(),
48
49
  closesAt: core.serialization.date().optional(),
49
50
  closedAt: core.serialization.date().optional(),
@@ -14,6 +14,7 @@ export declare namespace SurveySummary {
14
14
  description?: string | null;
15
15
  status: SurveyStatus.Raw;
16
16
  builtin?: string | null;
17
+ builtins: string[];
17
18
  templateId?: string | null;
18
19
  anonymous: boolean;
19
20
  minGroupSize: number;
@@ -47,6 +47,7 @@ exports.SurveySummary = core.serialization.object({
47
47
  description: core.serialization.string().optional(),
48
48
  status: SurveyStatus_js_1.SurveyStatus,
49
49
  builtin: core.serialization.string().optional(),
50
+ builtins: core.serialization.list(core.serialization.string()),
50
51
  templateId: core.serialization.string().optional(),
51
52
  anonymous: core.serialization.boolean(),
52
53
  minGroupSize: core.serialization.number(),
@@ -12,6 +12,7 @@ export * from "./SurveyDimensionResult.js";
12
12
  export * from "./SurveyInstrument.js";
13
13
  export * from "./SurveyInstrumentDimension.js";
14
14
  export * from "./SurveyInstrumentList.js";
15
+ export * from "./SurveyInstrumentResearch.js";
15
16
  export * from "./SurveyLeaderFeedback.js";
16
17
  export * from "./SurveyLeaderFeedbackLevel.js";
17
18
  export * from "./SurveyLeaderFeedbackList.js";
@@ -28,6 +28,7 @@ __exportStar(require("./SurveyDimensionResult.js"), exports);
28
28
  __exportStar(require("./SurveyInstrument.js"), exports);
29
29
  __exportStar(require("./SurveyInstrumentDimension.js"), exports);
30
30
  __exportStar(require("./SurveyInstrumentList.js"), exports);
31
+ __exportStar(require("./SurveyInstrumentResearch.js"), exports);
31
32
  __exportStar(require("./SurveyLeaderFeedback.js"), exports);
32
33
  __exportStar(require("./SurveyLeaderFeedbackLevel.js"), exports);
33
34
  __exportStar(require("./SurveyLeaderFeedbackList.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.6.0";
1
+ export declare const SDK_VERSION = "0.8.0";
@@ -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.6.0";
4
+ exports.SDK_VERSION = "0.8.0";
@@ -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.6.0",
10
- "User-Agent": "@taktoria/sdk/0.6.0",
9
+ "X-Fern-SDK-Version": "0.8.0",
10
+ "User-Agent": "@taktoria/sdk/0.8.0",
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);
@@ -33,9 +33,10 @@ export declare class GeistClient {
33
33
  listSurveys(request?: Taktoria.ListSurveysRequest, requestOptions?: GeistClient.RequestOptions): core.HttpResponsePromise<Taktoria.SurveyPage>;
34
34
  private __listSurveys;
35
35
  /**
36
- * A new draft, from a built-in instrument (`builtin`), a workspace
37
- * template (`templateId`), the `questions` given, or none yet. Nobody
38
- * is asked until it is published.
36
+ * A new draft, from a built-in instrument (`builtin`), several combined
37
+ * into one (`builtins`: a page each, each still read as its publishers
38
+ * read it), a workspace template (`templateId`), the `questions` given,
39
+ * or none yet. Nobody is asked until it is published.
39
40
  *
40
41
  * @param {Taktoria.CreateSurveyRequest} request
41
42
  * @param {GeistClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -108,7 +109,9 @@ export declare class GeistClient {
108
109
  deleteSurvey(surveyId: string, request?: Taktoria.DeleteSurveyRequest, requestOptions?: GeistClient.RequestOptions): core.HttpResponsePromise<void>;
109
110
  private __deleteSurvey;
110
111
  /**
111
- * Replace a draft's (or a scheduled survey's) questions, in order. `409` once it has opened.
112
+ * Replace a draft's (or a scheduled survey's) questions, in order. A
113
+ * question's `section` starts a new page there; respondents see one
114
+ * page at a time. `409` once it has opened.
112
115
  *
113
116
  * @param {string} surveyId
114
117
  * @param {Taktoria.SetQuestionsRequest} request
@@ -223,7 +226,9 @@ export declare class GeistClient {
223
226
  /**
224
227
  * A survey's results, as its results page shows them. Aggregates only;
225
228
  * nothing but the counts below its `minGroupSize`, or while an anonymous
226
- * survey is still open. For those who run it,
229
+ * survey is still open. A built-in validated survey carries its
230
+ * publishers' own reading in `research`; one combining several carries
231
+ * each one's in `instrumentResearch`. For those who run it,
227
232
  * and (signed in) for people a closed survey's results were shared with.
228
233
  * Has a rate limit of its own.
229
234
  *
@@ -304,11 +309,11 @@ export declare class GeistClient {
304
309
  listMyLeadershipFeedback(requestOptions?: GeistClient.RequestOptions): core.HttpResponsePromise<Taktoria.SurveyLeaderFeedbackList>;
305
310
  private __listMyLeadershipFeedback;
306
311
  /**
307
- * The built-in surveys: validated instruments free for commercial use
308
- * (HSE Management Standards, Copenhagen Burnout Inventory, NIOSH
309
- * WellBQ's public-domain items, US federal workforce surveys) and
310
- * Taktoria's own, marked `validated: false`, each with the credit its
311
- * sources require.
312
+ * The built-in surveys: validated instruments (HSE Management
313
+ * Standards, Copenhagen Burnout Inventory, NIOSH WellBQ, US federal
314
+ * workforce surveys) and Taktoria's own, marked `validated: false`,
315
+ * each with the credit its sources require. Start a survey from one
316
+ * with `builtin`, or from several combined into one with `builtins`.
312
317
  *
313
318
  * @param {GeistClient.RequestOptions} requestOptions - Request-specific configuration.
314
319
  *
@@ -136,9 +136,10 @@ export class GeistClient {
136
136
  });
137
137
  }
138
138
  /**
139
- * A new draft, from a built-in instrument (`builtin`), a workspace
140
- * template (`templateId`), the `questions` given, or none yet. Nobody
141
- * is asked until it is published.
139
+ * A new draft, from a built-in instrument (`builtin`), several combined
140
+ * into one (`builtins`: a page each, each still read as its publishers
141
+ * read it), a workspace template (`templateId`), the `questions` given,
142
+ * or none yet. Nobody is asked until it is published.
142
143
  *
143
144
  * @param {Taktoria.CreateSurveyRequest} request
144
145
  * @param {GeistClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -510,7 +511,9 @@ export class GeistClient {
510
511
  });
511
512
  }
512
513
  /**
513
- * Replace a draft's (or a scheduled survey's) questions, in order. `409` once it has opened.
514
+ * Replace a draft's (or a scheduled survey's) questions, in order. A
515
+ * question's `section` starts a new page there; respondents see one
516
+ * page at a time. `409` once it has opened.
514
517
  *
515
518
  * @param {string} surveyId
516
519
  * @param {Taktoria.SetQuestionsRequest} request
@@ -1027,7 +1030,9 @@ export class GeistClient {
1027
1030
  /**
1028
1031
  * A survey's results, as its results page shows them. Aggregates only;
1029
1032
  * nothing but the counts below its `minGroupSize`, or while an anonymous
1030
- * survey is still open. For those who run it,
1033
+ * survey is still open. A built-in validated survey carries its
1034
+ * publishers' own reading in `research`; one combining several carries
1035
+ * each one's in `instrumentResearch`. For those who run it,
1031
1036
  * and (signed in) for people a closed survey's results were shared with.
1032
1037
  * Has a rate limit of its own.
1033
1038
  *
@@ -1380,11 +1385,11 @@ export class GeistClient {
1380
1385
  });
1381
1386
  }
1382
1387
  /**
1383
- * The built-in surveys: validated instruments free for commercial use
1384
- * (HSE Management Standards, Copenhagen Burnout Inventory, NIOSH
1385
- * WellBQ's public-domain items, US federal workforce surveys) and
1386
- * Taktoria's own, marked `validated: false`, each with the credit its
1387
- * sources require.
1388
+ * The built-in surveys: validated instruments (HSE Management
1389
+ * Standards, Copenhagen Burnout Inventory, NIOSH WellBQ, US federal
1390
+ * workforce surveys) and Taktoria's own, marked `validated: false`,
1391
+ * each with the credit its sources require. Start a survey from one
1392
+ * with `builtin`, or from several combined into one with `builtins`.
1388
1393
  *
1389
1394
  * @param {GeistClient.RequestOptions} requestOptions - Request-specific configuration.
1390
1395
  *
@@ -4,6 +4,15 @@ export interface CreateSurveyRequest {
4
4
  description?: string;
5
5
  /** Start from a built-in instrument's questions. */
6
6
  builtin?: string;
7
+ /**
8
+ * Two to six built-in instruments' keys, combined into one survey in
9
+ * this order: each on a page of its own, its questions and their
10
+ * order as published, so each validated one is still read as its
11
+ * publishers read it (`instrumentResearch` in the results). A
12
+ * question two of them share is asked once. Refused past 60
13
+ * questions.
14
+ */
15
+ builtins?: string[];
7
16
  /** Start from a workspace template's questions and settings. */
8
17
  templateId?: string;
9
18
  /** Or give the questions. */
@@ -0,0 +1,9 @@
1
+ import type * as Taktoria from "../../../index.mjs";
2
+ /**
3
+ * One built-in instrument's reading, in a survey combining several.
4
+ */
5
+ export interface SurveyInstrumentResearch {
6
+ /** The instrument's key (`GET /geist/instruments`). */
7
+ builtin: string;
8
+ research: Taktoria.SurveyResearch;
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -34,9 +34,16 @@ export interface SurveyResults {
34
34
  * What the instrument's own publishers say these results mean, for a
35
35
  * survey from a built-in validated instrument. Absent for other
36
36
  * surveys, when the results are hidden, or when nothing in it has
37
- * enough answers to show.
37
+ * enough answers to show. A survey combining several has
38
+ * `instrumentResearch` instead.
38
39
  */
39
40
  research?: Taktoria.SurveyResearch;
41
+ /**
42
+ * For a survey combining several built-in instruments: each one's
43
+ * own reading, from its own items wherever they were asked, under
44
+ * the same rules as `research`. Empty for any other survey.
45
+ */
46
+ instrumentResearch: Taktoria.SurveyInstrumentResearch[];
40
47
  /** Each level of leadership its `aboutLeader` questions asked about; empty with none. */
41
48
  leadership: Taktoria.SurveyLeaderLevelResult[];
42
49
  }
@@ -6,6 +6,8 @@ export interface SurveyResultsSurvey {
6
6
  anonymous: boolean;
7
7
  minGroupSize: number;
8
8
  builtin?: string;
9
+ /** Every built-in instrument it asks, in order. */
10
+ builtins: string[];
9
11
  openedAt?: Date;
10
12
  closesAt?: Date;
11
13
  closedAt?: Date;
@@ -9,6 +9,11 @@ export interface SurveySummary {
9
9
  status: Taktoria.SurveyStatus;
10
10
  /** The built-in instrument it started from (`GET /geist/instruments`). */
11
11
  builtin?: string;
12
+ /**
13
+ * Every built-in instrument it asks, in order: one for a survey from
14
+ * one, several for a survey combining them, none otherwise.
15
+ */
16
+ builtins: string[];
12
17
  /** The workspace template it started from. */
13
18
  templateId?: string;
14
19
  /** No answer is tied to anybody. Fixed once it opens. */
@@ -12,6 +12,7 @@ export * from "./SurveyDimensionResult.mjs";
12
12
  export * from "./SurveyInstrument.mjs";
13
13
  export * from "./SurveyInstrumentDimension.mjs";
14
14
  export * from "./SurveyInstrumentList.mjs";
15
+ export * from "./SurveyInstrumentResearch.mjs";
15
16
  export * from "./SurveyLeaderFeedback.mjs";
16
17
  export * from "./SurveyLeaderFeedbackLevel.mjs";
17
18
  export * from "./SurveyLeaderFeedbackList.mjs";
@@ -12,6 +12,7 @@ export * from "./SurveyDimensionResult.mjs";
12
12
  export * from "./SurveyInstrument.mjs";
13
13
  export * from "./SurveyInstrumentDimension.mjs";
14
14
  export * from "./SurveyInstrumentList.mjs";
15
+ export * from "./SurveyInstrumentResearch.mjs";
15
16
  export * from "./SurveyLeaderFeedback.mjs";
16
17
  export * from "./SurveyLeaderFeedbackLevel.mjs";
17
18
  export * from "./SurveyLeaderFeedbackList.mjs";
@@ -8,6 +8,7 @@ export declare namespace CreateSurveyRequest {
8
8
  title: string;
9
9
  description?: string | null;
10
10
  builtin?: string | null;
11
+ builtins?: string[] | null;
11
12
  templateId?: string | null;
12
13
  questions?: SurveyQuestionInput.Raw[] | null;
13
14
  }
@@ -5,6 +5,7 @@ export const CreateSurveyRequest = core.serialization.object({
5
5
  title: core.serialization.string(),
6
6
  description: core.serialization.string().optional(),
7
7
  builtin: core.serialization.string().optional(),
8
+ builtins: core.serialization.list(core.serialization.string()).optional(),
8
9
  templateId: core.serialization.string().optional(),
9
10
  questions: core.serialization.list(SurveyQuestionInput).optional(),
10
11
  });
@@ -0,0 +1,11 @@
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 { SurveyResearch } from "./SurveyResearch.mjs";
5
+ export declare const SurveyInstrumentResearch: core.serialization.ObjectSchema<serializers.SurveyInstrumentResearch.Raw, Taktoria.SurveyInstrumentResearch>;
6
+ export declare namespace SurveyInstrumentResearch {
7
+ interface Raw {
8
+ builtin: string;
9
+ research: SurveyResearch.Raw;
10
+ }
11
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ import { SurveyResearch } from "./SurveyResearch.mjs";
4
+ export const SurveyInstrumentResearch = core.serialization.object({
5
+ builtin: core.serialization.string(),
6
+ research: SurveyResearch,
7
+ });
@@ -3,6 +3,7 @@ import * as core from "../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../index.mjs";
4
4
  import { SurveyComparison } from "./SurveyComparison.mjs";
5
5
  import { SurveyDimensionResult } from "./SurveyDimensionResult.mjs";
6
+ import { SurveyInstrumentResearch } from "./SurveyInstrumentResearch.mjs";
6
7
  import { SurveyLeaderLevelResult } from "./SurveyLeaderLevelResult.mjs";
7
8
  import { SurveyQuestionResult } from "./SurveyQuestionResult.mjs";
8
9
  import { SurveyResearch } from "./SurveyResearch.mjs";
@@ -28,6 +29,7 @@ export declare namespace SurveyResults {
28
29
  comparison?: SurveyComparison.Raw | null;
29
30
  respondents?: SurveyRespondent.Raw[] | null;
30
31
  research?: SurveyResearch.Raw | null;
32
+ instrumentResearch: SurveyInstrumentResearch.Raw[];
31
33
  leadership: SurveyLeaderLevelResult.Raw[];
32
34
  }
33
35
  }
@@ -2,6 +2,7 @@
2
2
  import * as core from "../../../../core/index.mjs";
3
3
  import { SurveyComparison } from "./SurveyComparison.mjs";
4
4
  import { SurveyDimensionResult } from "./SurveyDimensionResult.mjs";
5
+ import { SurveyInstrumentResearch } from "./SurveyInstrumentResearch.mjs";
5
6
  import { SurveyLeaderLevelResult } from "./SurveyLeaderLevelResult.mjs";
6
7
  import { SurveyQuestionResult } from "./SurveyQuestionResult.mjs";
7
8
  import { SurveyResearch } from "./SurveyResearch.mjs";
@@ -25,5 +26,6 @@ export const SurveyResults = core.serialization.object({
25
26
  comparison: SurveyComparison.optional(),
26
27
  respondents: core.serialization.list(SurveyRespondent).optional(),
27
28
  research: SurveyResearch.optional(),
29
+ instrumentResearch: core.serialization.list(SurveyInstrumentResearch),
28
30
  leadership: core.serialization.list(SurveyLeaderLevelResult),
29
31
  });
@@ -11,6 +11,7 @@ export declare namespace SurveyResultsSurvey {
11
11
  anonymous: boolean;
12
12
  minGroupSize: number;
13
13
  builtin?: string | null;
14
+ builtins: string[];
14
15
  openedAt?: string | null;
15
16
  closesAt?: string | null;
16
17
  closedAt?: string | null;
@@ -8,6 +8,7 @@ export const SurveyResultsSurvey = core.serialization.object({
8
8
  anonymous: core.serialization.boolean(),
9
9
  minGroupSize: core.serialization.number(),
10
10
  builtin: core.serialization.string().optional(),
11
+ builtins: core.serialization.list(core.serialization.string()),
11
12
  openedAt: core.serialization.date().optional(),
12
13
  closesAt: core.serialization.date().optional(),
13
14
  closedAt: core.serialization.date().optional(),
@@ -14,6 +14,7 @@ export declare namespace SurveySummary {
14
14
  description?: string | null;
15
15
  status: SurveyStatus.Raw;
16
16
  builtin?: string | null;
17
+ builtins: string[];
17
18
  templateId?: string | null;
18
19
  anonymous: boolean;
19
20
  minGroupSize: number;
@@ -11,6 +11,7 @@ export const SurveySummary = core.serialization.object({
11
11
  description: core.serialization.string().optional(),
12
12
  status: SurveyStatus,
13
13
  builtin: core.serialization.string().optional(),
14
+ builtins: core.serialization.list(core.serialization.string()),
14
15
  templateId: core.serialization.string().optional(),
15
16
  anonymous: core.serialization.boolean(),
16
17
  minGroupSize: core.serialization.number(),
@@ -12,6 +12,7 @@ export * from "./SurveyDimensionResult.mjs";
12
12
  export * from "./SurveyInstrument.mjs";
13
13
  export * from "./SurveyInstrumentDimension.mjs";
14
14
  export * from "./SurveyInstrumentList.mjs";
15
+ export * from "./SurveyInstrumentResearch.mjs";
15
16
  export * from "./SurveyLeaderFeedback.mjs";
16
17
  export * from "./SurveyLeaderFeedbackLevel.mjs";
17
18
  export * from "./SurveyLeaderFeedbackList.mjs";
@@ -12,6 +12,7 @@ export * from "./SurveyDimensionResult.mjs";
12
12
  export * from "./SurveyInstrument.mjs";
13
13
  export * from "./SurveyInstrumentDimension.mjs";
14
14
  export * from "./SurveyInstrumentList.mjs";
15
+ export * from "./SurveyInstrumentResearch.mjs";
15
16
  export * from "./SurveyLeaderFeedback.mjs";
16
17
  export * from "./SurveyLeaderFeedbackLevel.mjs";
17
18
  export * from "./SurveyLeaderFeedbackList.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.6.0";
1
+ export declare const SDK_VERSION = "0.8.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.6.0";
1
+ export const SDK_VERSION = "0.8.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taktoria/sdk",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "main": "./dist/cjs/index.js",
package/reference.md CHANGED
@@ -4141,9 +4141,10 @@ await client.geist.listSurveys();
4141
4141
  <dl>
4142
4142
  <dd>
4143
4143
 
4144
- A new draft, from a built-in instrument (`builtin`), a workspace
4145
- template (`templateId`), the `questions` given, or none yet. Nobody
4146
- is asked until it is published.
4144
+ A new draft, from a built-in instrument (`builtin`), several combined
4145
+ into one (`builtins`: a page each, each still read as its publishers
4146
+ read it), a workspace template (`templateId`), the `questions` given,
4147
+ or none yet. Nobody is asked until it is published.
4147
4148
  </dd>
4148
4149
  </dl>
4149
4150
  </dd>
@@ -4387,7 +4388,9 @@ await client.geist.deleteSurvey("surveyId");
4387
4388
  <dl>
4388
4389
  <dd>
4389
4390
 
4390
- Replace a draft's (or a scheduled survey's) questions, in order. `409` once it has opened.
4391
+ Replace a draft's (or a scheduled survey's) questions, in order. A
4392
+ question's `section` starts a new page there; respondents see one
4393
+ page at a time. `409` once it has opened.
4391
4394
  </dd>
4392
4395
  </dl>
4393
4396
  </dd>
@@ -4785,7 +4788,9 @@ await client.geist.restoreSurvey("surveyId");
4785
4788
 
4786
4789
  A survey's results, as its results page shows them. Aggregates only;
4787
4790
  nothing but the counts below its `minGroupSize`, or while an anonymous
4788
- survey is still open. For those who run it,
4791
+ survey is still open. A built-in validated survey carries its
4792
+ publishers' own reading in `research`; one combining several carries
4793
+ each one's in `instrumentResearch`. For those who run it,
4789
4794
  and (signed in) for people a closed survey's results were shared with.
4790
4795
  Has a rate limit of its own.
4791
4796
  </dd>
@@ -5092,11 +5097,11 @@ await client.geist.listMyLeadershipFeedback();
5092
5097
  <dl>
5093
5098
  <dd>
5094
5099
 
5095
- The built-in surveys: validated instruments free for commercial use
5096
- (HSE Management Standards, Copenhagen Burnout Inventory, NIOSH
5097
- WellBQ's public-domain items, US federal workforce surveys) and
5098
- Taktoria's own, marked `validated: false`, each with the credit its
5099
- sources require.
5100
+ The built-in surveys: validated instruments (HSE Management
5101
+ Standards, Copenhagen Burnout Inventory, NIOSH WellBQ, US federal
5102
+ workforce surveys) and Taktoria's own, marked `validated: false`,
5103
+ each with the credit its sources require. Start a survey from one
5104
+ with `builtin`, or from several combined into one with `builtins`.
5100
5105
  </dd>
5101
5106
  </dl>
5102
5107
  </dd>