@taktoria/sdk 0.4.0 → 0.4.1
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/geist/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/geist/client/Client.js +2 -1
- package/dist/cjs/api/resources/geist/types/SurveyResults.d.ts +5 -2
- package/dist/cjs/api/resources/geist/types/SurveyResultsHiddenReason.d.ts +9 -0
- package/dist/cjs/api/resources/geist/types/SurveyResultsHiddenReason.js +12 -0
- package/dist/cjs/api/resources/geist/types/SurveyTeamResult.d.ts +3 -2
- package/dist/cjs/api/resources/geist/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/geist/types/index.js +1 -0
- package/dist/cjs/serialization/resources/geist/types/SurveyResults.d.ts +2 -0
- package/dist/cjs/serialization/resources/geist/types/SurveyResults.js +2 -0
- package/dist/cjs/serialization/resources/geist/types/SurveyResultsHiddenReason.d.ts +7 -0
- package/dist/cjs/serialization/resources/geist/types/SurveyResultsHiddenReason.js +39 -0
- package/dist/cjs/serialization/resources/geist/types/SurveyTeamResult.d.ts +1 -1
- package/dist/cjs/serialization/resources/geist/types/SurveyTeamResult.js +1 -1
- package/dist/cjs/serialization/resources/geist/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/geist/types/index.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/geist/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/geist/client/Client.mjs +2 -1
- package/dist/esm/api/resources/geist/types/SurveyResults.d.mts +5 -2
- package/dist/esm/api/resources/geist/types/SurveyResultsHiddenReason.d.mts +9 -0
- package/dist/esm/api/resources/geist/types/SurveyResultsHiddenReason.mjs +9 -0
- package/dist/esm/api/resources/geist/types/SurveyTeamResult.d.mts +3 -2
- package/dist/esm/api/resources/geist/types/index.d.mts +1 -0
- package/dist/esm/api/resources/geist/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/geist/types/SurveyResults.d.mts +2 -0
- package/dist/esm/serialization/resources/geist/types/SurveyResults.mjs +2 -0
- package/dist/esm/serialization/resources/geist/types/SurveyResultsHiddenReason.d.mts +7 -0
- package/dist/esm/serialization/resources/geist/types/SurveyResultsHiddenReason.mjs +3 -0
- package/dist/esm/serialization/resources/geist/types/SurveyTeamResult.d.mts +1 -1
- package/dist/esm/serialization/resources/geist/types/SurveyTeamResult.mjs +1 -1
- package/dist/esm/serialization/resources/geist/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/geist/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +2 -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.4.
|
|
47
|
-
"User-Agent": "@taktoria/sdk/0.4.
|
|
46
|
+
"X-Fern-SDK-Version": "0.4.1",
|
|
47
|
+
"User-Agent": "@taktoria/sdk/0.4.1",
|
|
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);
|
|
@@ -222,7 +222,8 @@ export declare class GeistClient {
|
|
|
222
222
|
private __restoreSurvey;
|
|
223
223
|
/**
|
|
224
224
|
* A survey's results, as its results page shows them. Aggregates only;
|
|
225
|
-
* nothing but the counts below its `minGroupSize
|
|
225
|
+
* nothing but the counts below its `minGroupSize`, or while an anonymous
|
|
226
|
+
* survey is still open. For those who run it,
|
|
226
227
|
* and (signed in) for people a closed survey's results were shared with.
|
|
227
228
|
* Has a rate limit of its own.
|
|
228
229
|
*
|
|
@@ -1062,7 +1062,8 @@ class GeistClient {
|
|
|
1062
1062
|
}
|
|
1063
1063
|
/**
|
|
1064
1064
|
* A survey's results, as its results page shows them. Aggregates only;
|
|
1065
|
-
* nothing but the counts below its `minGroupSize
|
|
1065
|
+
* nothing but the counts below its `minGroupSize`, or while an anonymous
|
|
1066
|
+
* survey is still open. For those who run it,
|
|
1066
1067
|
* and (signed in) for people a closed survey's results were shared with.
|
|
1067
1068
|
* Has a rate limit of its own.
|
|
1068
1069
|
*
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type * as Taktoria from "../../../index.js";
|
|
2
2
|
/**
|
|
3
3
|
* Aggregates only: never one person's answers. When `hidden` is true,
|
|
4
|
-
* fewer than `minGroupSize` have
|
|
5
|
-
*
|
|
4
|
+
* nothing but the counts is given: fewer than `minGroupSize` have
|
|
5
|
+
* answered, or the survey is anonymous and still open (`hiddenReason`),
|
|
6
|
+
* as an open anonymous survey's results are released only once it closes.
|
|
6
7
|
*/
|
|
7
8
|
export interface SurveyResults {
|
|
8
9
|
survey: Taktoria.SurveyResultsSurvey;
|
|
@@ -11,6 +12,8 @@ export interface SurveyResults {
|
|
|
11
12
|
/** Percent of those asked who answered. Absent for a survey answered through its share link. */
|
|
12
13
|
responseRate?: number;
|
|
13
14
|
hidden: boolean;
|
|
15
|
+
/** Why `hidden` is true. */
|
|
16
|
+
hiddenReason?: Taktoria.SurveyResultsHiddenReason;
|
|
14
17
|
/** The mean of the dimensions (or of every scale question), when none is a burnout scale. */
|
|
15
18
|
overall?: number;
|
|
16
19
|
dimensions: Taktoria.SurveyDimensionResult[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const SurveyResultsHiddenReason: {
|
|
2
|
+
/**
|
|
3
|
+
* Fewer than `minGroupSize` have answered. */
|
|
4
|
+
readonly TooFew: "TOO_FEW";
|
|
5
|
+
/**
|
|
6
|
+
* An anonymous survey still taking answers. Its results are released when it closes, as comparing them from one moment to the next would show what the latest person answered. */
|
|
7
|
+
readonly Open: "OPEN";
|
|
8
|
+
};
|
|
9
|
+
export type SurveyResultsHiddenReason = (typeof SurveyResultsHiddenReason)[keyof typeof SurveyResultsHiddenReason];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SurveyResultsHiddenReason = void 0;
|
|
5
|
+
exports.SurveyResultsHiddenReason = {
|
|
6
|
+
/**
|
|
7
|
+
* Fewer than `minGroupSize` have answered. */
|
|
8
|
+
TooFew: "TOO_FEW",
|
|
9
|
+
/**
|
|
10
|
+
* An anonymous survey still taking answers. Its results are released when it closes, as comparing them from one moment to the next would show what the latest person answered. */
|
|
11
|
+
Open: "OPEN",
|
|
12
|
+
};
|
|
@@ -2,8 +2,9 @@ import type * as Taktoria from "../../../index.js";
|
|
|
2
2
|
export interface SurveyTeamResult {
|
|
3
3
|
teamId: string;
|
|
4
4
|
name: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/** How many on the team answered. Absent for a hidden team, whose count alone could say who answered. */
|
|
6
|
+
responses?: number;
|
|
7
|
+
/** Hidden so nobody on it can be worked out, alone or set against another group's results; nothing else is given. */
|
|
7
8
|
hidden: boolean;
|
|
8
9
|
overall?: number;
|
|
9
10
|
dimensions?: Taktoria.SurveyDimensionResult[];
|
|
@@ -16,6 +16,7 @@ export * from "./SurveyRecurrence.js";
|
|
|
16
16
|
export * from "./SurveyRespondent.js";
|
|
17
17
|
export * from "./SurveyResults.js";
|
|
18
18
|
export * from "./SurveyResultsAccess.js";
|
|
19
|
+
export * from "./SurveyResultsHiddenReason.js";
|
|
19
20
|
export * from "./SurveyResultsSurvey.js";
|
|
20
21
|
export * from "./SurveyRoundResult.js";
|
|
21
22
|
export * from "./SurveyScaleKey.js";
|
|
@@ -32,6 +32,7 @@ __exportStar(require("./SurveyRecurrence.js"), exports);
|
|
|
32
32
|
__exportStar(require("./SurveyRespondent.js"), exports);
|
|
33
33
|
__exportStar(require("./SurveyResults.js"), exports);
|
|
34
34
|
__exportStar(require("./SurveyResultsAccess.js"), exports);
|
|
35
|
+
__exportStar(require("./SurveyResultsHiddenReason.js"), exports);
|
|
35
36
|
__exportStar(require("./SurveyResultsSurvey.js"), exports);
|
|
36
37
|
__exportStar(require("./SurveyRoundResult.js"), exports);
|
|
37
38
|
__exportStar(require("./SurveyScaleKey.js"), exports);
|
|
@@ -4,6 +4,7 @@ import type * as serializers from "../../../index.js";
|
|
|
4
4
|
import { SurveyDimensionResult } from "./SurveyDimensionResult.js";
|
|
5
5
|
import { SurveyQuestionResult } from "./SurveyQuestionResult.js";
|
|
6
6
|
import { SurveyRespondent } from "./SurveyRespondent.js";
|
|
7
|
+
import { SurveyResultsHiddenReason } from "./SurveyResultsHiddenReason.js";
|
|
7
8
|
import { SurveyResultsSurvey } from "./SurveyResultsSurvey.js";
|
|
8
9
|
import { SurveyRoundResult } from "./SurveyRoundResult.js";
|
|
9
10
|
import { SurveyTeamResult } from "./SurveyTeamResult.js";
|
|
@@ -15,6 +16,7 @@ export declare namespace SurveyResults {
|
|
|
15
16
|
responses: number;
|
|
16
17
|
responseRate?: number | null;
|
|
17
18
|
hidden: boolean;
|
|
19
|
+
hiddenReason?: SurveyResultsHiddenReason.Raw | null;
|
|
18
20
|
overall?: number | null;
|
|
19
21
|
dimensions: SurveyDimensionResult.Raw[];
|
|
20
22
|
questions: SurveyQuestionResult.Raw[];
|
|
@@ -39,6 +39,7 @@ const core = __importStar(require("../../../../core/index.js"));
|
|
|
39
39
|
const SurveyDimensionResult_js_1 = require("./SurveyDimensionResult.js");
|
|
40
40
|
const SurveyQuestionResult_js_1 = require("./SurveyQuestionResult.js");
|
|
41
41
|
const SurveyRespondent_js_1 = require("./SurveyRespondent.js");
|
|
42
|
+
const SurveyResultsHiddenReason_js_1 = require("./SurveyResultsHiddenReason.js");
|
|
42
43
|
const SurveyResultsSurvey_js_1 = require("./SurveyResultsSurvey.js");
|
|
43
44
|
const SurveyRoundResult_js_1 = require("./SurveyRoundResult.js");
|
|
44
45
|
const SurveyTeamResult_js_1 = require("./SurveyTeamResult.js");
|
|
@@ -48,6 +49,7 @@ exports.SurveyResults = core.serialization.object({
|
|
|
48
49
|
responses: core.serialization.number(),
|
|
49
50
|
responseRate: core.serialization.number().optional(),
|
|
50
51
|
hidden: core.serialization.boolean(),
|
|
52
|
+
hiddenReason: SurveyResultsHiddenReason_js_1.SurveyResultsHiddenReason.optional(),
|
|
51
53
|
overall: core.serialization.number().optional(),
|
|
52
54
|
dimensions: core.serialization.list(SurveyDimensionResult_js_1.SurveyDimensionResult),
|
|
53
55
|
questions: core.serialization.list(SurveyQuestionResult_js_1.SurveyQuestionResult),
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
export declare const SurveyResultsHiddenReason: core.serialization.Schema<serializers.SurveyResultsHiddenReason.Raw, Taktoria.SurveyResultsHiddenReason>;
|
|
5
|
+
export declare namespace SurveyResultsHiddenReason {
|
|
6
|
+
type Raw = "TOO_FEW" | "OPEN";
|
|
7
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.SurveyResultsHiddenReason = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.SurveyResultsHiddenReason = core.serialization.enum_(["TOO_FEW", "OPEN"]);
|
|
@@ -40,7 +40,7 @@ const SurveyDimensionResult_js_1 = require("./SurveyDimensionResult.js");
|
|
|
40
40
|
exports.SurveyTeamResult = core.serialization.object({
|
|
41
41
|
teamId: core.serialization.string(),
|
|
42
42
|
name: core.serialization.string(),
|
|
43
|
-
responses: core.serialization.number(),
|
|
43
|
+
responses: core.serialization.number().optional(),
|
|
44
44
|
hidden: core.serialization.boolean(),
|
|
45
45
|
overall: core.serialization.number().optional(),
|
|
46
46
|
dimensions: core.serialization.list(SurveyDimensionResult_js_1.SurveyDimensionResult).optional(),
|
|
@@ -16,6 +16,7 @@ export * from "./SurveyRecurrence.js";
|
|
|
16
16
|
export * from "./SurveyRespondent.js";
|
|
17
17
|
export * from "./SurveyResults.js";
|
|
18
18
|
export * from "./SurveyResultsAccess.js";
|
|
19
|
+
export * from "./SurveyResultsHiddenReason.js";
|
|
19
20
|
export * from "./SurveyResultsSurvey.js";
|
|
20
21
|
export * from "./SurveyRoundResult.js";
|
|
21
22
|
export * from "./SurveyScaleKey.js";
|
|
@@ -32,6 +32,7 @@ __exportStar(require("./SurveyRecurrence.js"), exports);
|
|
|
32
32
|
__exportStar(require("./SurveyRespondent.js"), exports);
|
|
33
33
|
__exportStar(require("./SurveyResults.js"), exports);
|
|
34
34
|
__exportStar(require("./SurveyResultsAccess.js"), exports);
|
|
35
|
+
__exportStar(require("./SurveyResultsHiddenReason.js"), exports);
|
|
35
36
|
__exportStar(require("./SurveyResultsSurvey.js"), exports);
|
|
36
37
|
__exportStar(require("./SurveyRoundResult.js"), exports);
|
|
37
38
|
__exportStar(require("./SurveyScaleKey.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.4.
|
|
1
|
+
export declare const SDK_VERSION = "0.4.1";
|
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.4.
|
|
10
|
-
"User-Agent": "@taktoria/sdk/0.4.
|
|
9
|
+
"X-Fern-SDK-Version": "0.4.1",
|
|
10
|
+
"User-Agent": "@taktoria/sdk/0.4.1",
|
|
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);
|
|
@@ -222,7 +222,8 @@ export declare class GeistClient {
|
|
|
222
222
|
private __restoreSurvey;
|
|
223
223
|
/**
|
|
224
224
|
* A survey's results, as its results page shows them. Aggregates only;
|
|
225
|
-
* nothing but the counts below its `minGroupSize
|
|
225
|
+
* nothing but the counts below its `minGroupSize`, or while an anonymous
|
|
226
|
+
* survey is still open. For those who run it,
|
|
226
227
|
* and (signed in) for people a closed survey's results were shared with.
|
|
227
228
|
* Has a rate limit of its own.
|
|
228
229
|
*
|
|
@@ -1026,7 +1026,8 @@ export class GeistClient {
|
|
|
1026
1026
|
}
|
|
1027
1027
|
/**
|
|
1028
1028
|
* A survey's results, as its results page shows them. Aggregates only;
|
|
1029
|
-
* nothing but the counts below its `minGroupSize
|
|
1029
|
+
* nothing but the counts below its `minGroupSize`, or while an anonymous
|
|
1030
|
+
* survey is still open. For those who run it,
|
|
1030
1031
|
* and (signed in) for people a closed survey's results were shared with.
|
|
1031
1032
|
* Has a rate limit of its own.
|
|
1032
1033
|
*
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type * as Taktoria from "../../../index.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* Aggregates only: never one person's answers. When `hidden` is true,
|
|
4
|
-
* fewer than `minGroupSize` have
|
|
5
|
-
*
|
|
4
|
+
* nothing but the counts is given: fewer than `minGroupSize` have
|
|
5
|
+
* answered, or the survey is anonymous and still open (`hiddenReason`),
|
|
6
|
+
* as an open anonymous survey's results are released only once it closes.
|
|
6
7
|
*/
|
|
7
8
|
export interface SurveyResults {
|
|
8
9
|
survey: Taktoria.SurveyResultsSurvey;
|
|
@@ -11,6 +12,8 @@ export interface SurveyResults {
|
|
|
11
12
|
/** Percent of those asked who answered. Absent for a survey answered through its share link. */
|
|
12
13
|
responseRate?: number;
|
|
13
14
|
hidden: boolean;
|
|
15
|
+
/** Why `hidden` is true. */
|
|
16
|
+
hiddenReason?: Taktoria.SurveyResultsHiddenReason;
|
|
14
17
|
/** The mean of the dimensions (or of every scale question), when none is a burnout scale. */
|
|
15
18
|
overall?: number;
|
|
16
19
|
dimensions: Taktoria.SurveyDimensionResult[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const SurveyResultsHiddenReason: {
|
|
2
|
+
/**
|
|
3
|
+
* Fewer than `minGroupSize` have answered. */
|
|
4
|
+
readonly TooFew: "TOO_FEW";
|
|
5
|
+
/**
|
|
6
|
+
* An anonymous survey still taking answers. Its results are released when it closes, as comparing them from one moment to the next would show what the latest person answered. */
|
|
7
|
+
readonly Open: "OPEN";
|
|
8
|
+
};
|
|
9
|
+
export type SurveyResultsHiddenReason = (typeof SurveyResultsHiddenReason)[keyof typeof SurveyResultsHiddenReason];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export const SurveyResultsHiddenReason = {
|
|
3
|
+
/**
|
|
4
|
+
* Fewer than `minGroupSize` have answered. */
|
|
5
|
+
TooFew: "TOO_FEW",
|
|
6
|
+
/**
|
|
7
|
+
* An anonymous survey still taking answers. Its results are released when it closes, as comparing them from one moment to the next would show what the latest person answered. */
|
|
8
|
+
Open: "OPEN",
|
|
9
|
+
};
|
|
@@ -2,8 +2,9 @@ import type * as Taktoria from "../../../index.mjs";
|
|
|
2
2
|
export interface SurveyTeamResult {
|
|
3
3
|
teamId: string;
|
|
4
4
|
name: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/** How many on the team answered. Absent for a hidden team, whose count alone could say who answered. */
|
|
6
|
+
responses?: number;
|
|
7
|
+
/** Hidden so nobody on it can be worked out, alone or set against another group's results; nothing else is given. */
|
|
7
8
|
hidden: boolean;
|
|
8
9
|
overall?: number;
|
|
9
10
|
dimensions?: Taktoria.SurveyDimensionResult[];
|
|
@@ -16,6 +16,7 @@ export * from "./SurveyRecurrence.mjs";
|
|
|
16
16
|
export * from "./SurveyRespondent.mjs";
|
|
17
17
|
export * from "./SurveyResults.mjs";
|
|
18
18
|
export * from "./SurveyResultsAccess.mjs";
|
|
19
|
+
export * from "./SurveyResultsHiddenReason.mjs";
|
|
19
20
|
export * from "./SurveyResultsSurvey.mjs";
|
|
20
21
|
export * from "./SurveyRoundResult.mjs";
|
|
21
22
|
export * from "./SurveyScaleKey.mjs";
|
|
@@ -16,6 +16,7 @@ export * from "./SurveyRecurrence.mjs";
|
|
|
16
16
|
export * from "./SurveyRespondent.mjs";
|
|
17
17
|
export * from "./SurveyResults.mjs";
|
|
18
18
|
export * from "./SurveyResultsAccess.mjs";
|
|
19
|
+
export * from "./SurveyResultsHiddenReason.mjs";
|
|
19
20
|
export * from "./SurveyResultsSurvey.mjs";
|
|
20
21
|
export * from "./SurveyRoundResult.mjs";
|
|
21
22
|
export * from "./SurveyScaleKey.mjs";
|
|
@@ -4,6 +4,7 @@ import type * as serializers from "../../../index.mjs";
|
|
|
4
4
|
import { SurveyDimensionResult } from "./SurveyDimensionResult.mjs";
|
|
5
5
|
import { SurveyQuestionResult } from "./SurveyQuestionResult.mjs";
|
|
6
6
|
import { SurveyRespondent } from "./SurveyRespondent.mjs";
|
|
7
|
+
import { SurveyResultsHiddenReason } from "./SurveyResultsHiddenReason.mjs";
|
|
7
8
|
import { SurveyResultsSurvey } from "./SurveyResultsSurvey.mjs";
|
|
8
9
|
import { SurveyRoundResult } from "./SurveyRoundResult.mjs";
|
|
9
10
|
import { SurveyTeamResult } from "./SurveyTeamResult.mjs";
|
|
@@ -15,6 +16,7 @@ export declare namespace SurveyResults {
|
|
|
15
16
|
responses: number;
|
|
16
17
|
responseRate?: number | null;
|
|
17
18
|
hidden: boolean;
|
|
19
|
+
hiddenReason?: SurveyResultsHiddenReason.Raw | null;
|
|
18
20
|
overall?: number | null;
|
|
19
21
|
dimensions: SurveyDimensionResult.Raw[];
|
|
20
22
|
questions: SurveyQuestionResult.Raw[];
|
|
@@ -3,6 +3,7 @@ import * as core from "../../../../core/index.mjs";
|
|
|
3
3
|
import { SurveyDimensionResult } from "./SurveyDimensionResult.mjs";
|
|
4
4
|
import { SurveyQuestionResult } from "./SurveyQuestionResult.mjs";
|
|
5
5
|
import { SurveyRespondent } from "./SurveyRespondent.mjs";
|
|
6
|
+
import { SurveyResultsHiddenReason } from "./SurveyResultsHiddenReason.mjs";
|
|
6
7
|
import { SurveyResultsSurvey } from "./SurveyResultsSurvey.mjs";
|
|
7
8
|
import { SurveyRoundResult } from "./SurveyRoundResult.mjs";
|
|
8
9
|
import { SurveyTeamResult } from "./SurveyTeamResult.mjs";
|
|
@@ -12,6 +13,7 @@ export const SurveyResults = core.serialization.object({
|
|
|
12
13
|
responses: core.serialization.number(),
|
|
13
14
|
responseRate: core.serialization.number().optional(),
|
|
14
15
|
hidden: core.serialization.boolean(),
|
|
16
|
+
hiddenReason: SurveyResultsHiddenReason.optional(),
|
|
15
17
|
overall: core.serialization.number().optional(),
|
|
16
18
|
dimensions: core.serialization.list(SurveyDimensionResult),
|
|
17
19
|
questions: core.serialization.list(SurveyQuestionResult),
|
|
@@ -0,0 +1,7 @@
|
|
|
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 SurveyResultsHiddenReason: core.serialization.Schema<serializers.SurveyResultsHiddenReason.Raw, Taktoria.SurveyResultsHiddenReason>;
|
|
5
|
+
export declare namespace SurveyResultsHiddenReason {
|
|
6
|
+
type Raw = "TOO_FEW" | "OPEN";
|
|
7
|
+
}
|
|
@@ -4,7 +4,7 @@ import { SurveyDimensionResult } from "./SurveyDimensionResult.mjs";
|
|
|
4
4
|
export const SurveyTeamResult = core.serialization.object({
|
|
5
5
|
teamId: core.serialization.string(),
|
|
6
6
|
name: core.serialization.string(),
|
|
7
|
-
responses: core.serialization.number(),
|
|
7
|
+
responses: core.serialization.number().optional(),
|
|
8
8
|
hidden: core.serialization.boolean(),
|
|
9
9
|
overall: core.serialization.number().optional(),
|
|
10
10
|
dimensions: core.serialization.list(SurveyDimensionResult).optional(),
|
|
@@ -16,6 +16,7 @@ export * from "./SurveyRecurrence.mjs";
|
|
|
16
16
|
export * from "./SurveyRespondent.mjs";
|
|
17
17
|
export * from "./SurveyResults.mjs";
|
|
18
18
|
export * from "./SurveyResultsAccess.mjs";
|
|
19
|
+
export * from "./SurveyResultsHiddenReason.mjs";
|
|
19
20
|
export * from "./SurveyResultsSurvey.mjs";
|
|
20
21
|
export * from "./SurveyRoundResult.mjs";
|
|
21
22
|
export * from "./SurveyScaleKey.mjs";
|
|
@@ -16,6 +16,7 @@ export * from "./SurveyRecurrence.mjs";
|
|
|
16
16
|
export * from "./SurveyRespondent.mjs";
|
|
17
17
|
export * from "./SurveyResults.mjs";
|
|
18
18
|
export * from "./SurveyResultsAccess.mjs";
|
|
19
|
+
export * from "./SurveyResultsHiddenReason.mjs";
|
|
19
20
|
export * from "./SurveyResultsSurvey.mjs";
|
|
20
21
|
export * from "./SurveyRoundResult.mjs";
|
|
21
22
|
export * from "./SurveyScaleKey.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.4.
|
|
1
|
+
export declare const SDK_VERSION = "0.4.1";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.4.
|
|
1
|
+
export const SDK_VERSION = "0.4.1";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -4784,7 +4784,8 @@ await client.geist.restoreSurvey("surveyId");
|
|
|
4784
4784
|
<dd>
|
|
4785
4785
|
|
|
4786
4786
|
A survey's results, as its results page shows them. Aggregates only;
|
|
4787
|
-
nothing but the counts below its `minGroupSize
|
|
4787
|
+
nothing but the counts below its `minGroupSize`, or while an anonymous
|
|
4788
|
+
survey is still open. For those who run it,
|
|
4788
4789
|
and (signed in) for people a closed survey's results were shared with.
|
|
4789
4790
|
Has a rate limit of its own.
|
|
4790
4791
|
</dd>
|