@studyfetch/sdk 1.25.0 → 1.27.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.
- package/CHANGELOG.md +22 -0
- package/package.json +1 -1
- package/resources/v1/assignment-grader.d.mts +34 -1
- package/resources/v1/assignment-grader.d.mts.map +1 -1
- package/resources/v1/assignment-grader.d.ts +34 -1
- package/resources/v1/assignment-grader.d.ts.map +1 -1
- package/resources/v1/assignment-grader.js +15 -0
- package/resources/v1/assignment-grader.js.map +1 -1
- package/resources/v1/assignment-grader.mjs +15 -0
- package/resources/v1/assignment-grader.mjs.map +1 -1
- package/resources/v1/components.d.mts +102 -4
- package/resources/v1/components.d.mts.map +1 -1
- package/resources/v1/components.d.ts +102 -4
- package/resources/v1/components.d.ts.map +1 -1
- package/resources/v1/index.d.mts +1 -7
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -7
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +9 -21
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +0 -6
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/materials/index.d.mts +2 -2
- package/resources/v1/materials/index.d.mts.map +1 -1
- package/resources/v1/materials/index.d.ts +2 -2
- package/resources/v1/materials/index.d.ts.map +1 -1
- package/resources/v1/materials/index.js.map +1 -1
- package/resources/v1/materials/index.mjs.map +1 -1
- package/resources/v1/materials/materials.d.mts +59 -27
- package/resources/v1/materials/materials.d.mts.map +1 -1
- package/resources/v1/materials/materials.d.ts +59 -27
- package/resources/v1/materials/materials.d.ts.map +1 -1
- package/resources/v1/materials/materials.js +17 -0
- package/resources/v1/materials/materials.js.map +1 -1
- package/resources/v1/materials/materials.mjs +17 -0
- package/resources/v1/materials/materials.mjs.map +1 -1
- package/resources/v1/materials/upload.d.mts +96 -1
- package/resources/v1/materials/upload.d.mts.map +1 -1
- package/resources/v1/materials/upload.d.ts +96 -1
- package/resources/v1/materials/upload.d.ts.map +1 -1
- package/resources/v1/materials/upload.js +32 -0
- package/resources/v1/materials/upload.js.map +1 -1
- package/resources/v1/materials/upload.mjs +32 -0
- package/resources/v1/materials/upload.mjs.map +1 -1
- package/resources/v1/usage/analyst.d.mts +51 -6
- package/resources/v1/usage/analyst.d.mts.map +1 -1
- package/resources/v1/usage/analyst.d.ts +51 -6
- package/resources/v1/usage/analyst.d.ts.map +1 -1
- package/resources/v1/usage/analyst.js +8 -9
- package/resources/v1/usage/analyst.js.map +1 -1
- package/resources/v1/usage/analyst.mjs +8 -9
- package/resources/v1/usage/analyst.mjs.map +1 -1
- package/resources/v1/usage/index.d.mts +1 -1
- package/resources/v1/usage/index.d.mts.map +1 -1
- package/resources/v1/usage/index.d.ts +1 -1
- package/resources/v1/usage/index.d.ts.map +1 -1
- package/resources/v1/usage/index.js.map +1 -1
- package/resources/v1/usage/index.mjs +1 -1
- package/resources/v1/usage/index.mjs.map +1 -1
- package/resources/v1/usage/usage.d.mts +2 -2
- package/resources/v1/usage/usage.d.mts.map +1 -1
- package/resources/v1/usage/usage.d.ts +2 -2
- package/resources/v1/usage/usage.d.ts.map +1 -1
- package/resources/v1/usage/usage.js.map +1 -1
- package/resources/v1/usage/usage.mjs +1 -1
- package/resources/v1/usage/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +13 -26
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +13 -26
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +15 -24
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +15 -24
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/assignment-grader.ts +47 -1
- package/src/resources/v1/components.ts +125 -0
- package/src/resources/v1/index.ts +2 -38
- package/src/resources/v1/materials/index.ts +5 -0
- package/src/resources/v1/materials/materials.ts +76 -28
- package/src/resources/v1/materials/upload.ts +129 -0
- package/src/resources/v1/usage/analyst.ts +80 -10
- package/src/resources/v1/usage/index.ts +7 -1
- package/src/resources/v1/usage/usage.ts +14 -2
- package/src/resources/v1/v1.ts +22 -99
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/v1/audio-recaps/audio-recaps.d.mts +0 -44
- package/resources/v1/audio-recaps/audio-recaps.d.mts.map +0 -1
- package/resources/v1/audio-recaps/audio-recaps.d.ts +0 -44
- package/resources/v1/audio-recaps/audio-recaps.d.ts.map +0 -1
- package/resources/v1/audio-recaps/audio-recaps.js +0 -63
- package/resources/v1/audio-recaps/audio-recaps.js.map +0 -1
- package/resources/v1/audio-recaps/audio-recaps.mjs +0 -58
- package/resources/v1/audio-recaps/audio-recaps.mjs.map +0 -1
- package/resources/v1/audio-recaps/index.d.mts +0 -3
- package/resources/v1/audio-recaps/index.d.mts.map +0 -1
- package/resources/v1/audio-recaps/index.d.ts +0 -3
- package/resources/v1/audio-recaps/index.d.ts.map +0 -1
- package/resources/v1/audio-recaps/index.js +0 -9
- package/resources/v1/audio-recaps/index.js.map +0 -1
- package/resources/v1/audio-recaps/index.mjs +0 -4
- package/resources/v1/audio-recaps/index.mjs.map +0 -1
- package/resources/v1/audio-recaps/sections.d.mts +0 -35
- package/resources/v1/audio-recaps/sections.d.mts.map +0 -1
- package/resources/v1/audio-recaps/sections.d.ts +0 -35
- package/resources/v1/audio-recaps/sections.d.ts.map +0 -1
- package/resources/v1/audio-recaps/sections.js +0 -42
- package/resources/v1/audio-recaps/sections.js.map +0 -1
- package/resources/v1/audio-recaps/sections.mjs +0 -38
- package/resources/v1/audio-recaps/sections.mjs.map +0 -1
- package/resources/v1/audio-recaps.d.mts +0 -2
- package/resources/v1/audio-recaps.d.mts.map +0 -1
- package/resources/v1/audio-recaps.d.ts +0 -2
- package/resources/v1/audio-recaps.d.ts.map +0 -1
- package/resources/v1/audio-recaps.js +0 -6
- package/resources/v1/audio-recaps.js.map +0 -1
- package/resources/v1/audio-recaps.mjs +0 -3
- package/resources/v1/audio-recaps.mjs.map +0 -1
- package/resources/v1/chat/chat.d.mts +0 -156
- package/resources/v1/chat/chat.d.mts.map +0 -1
- package/resources/v1/chat/chat.d.ts +0 -156
- package/resources/v1/chat/chat.d.ts.map +0 -1
- package/resources/v1/chat/chat.js +0 -99
- package/resources/v1/chat/chat.js.map +0 -1
- package/resources/v1/chat/chat.mjs +0 -94
- package/resources/v1/chat/chat.mjs.map +0 -1
- package/resources/v1/chat/index.d.mts +0 -4
- package/resources/v1/chat/index.d.mts.map +0 -1
- package/resources/v1/chat/index.d.ts +0 -4
- package/resources/v1/chat/index.d.ts.map +0 -1
- package/resources/v1/chat/index.js +0 -11
- package/resources/v1/chat/index.js.map +0 -1
- package/resources/v1/chat/index.mjs +0 -5
- package/resources/v1/chat/index.mjs.map +0 -1
- package/resources/v1/chat/sessions.d.mts +0 -28
- package/resources/v1/chat/sessions.d.mts.map +0 -1
- package/resources/v1/chat/sessions.d.ts +0 -28
- package/resources/v1/chat/sessions.d.ts.map +0 -1
- package/resources/v1/chat/sessions.js +0 -38
- package/resources/v1/chat/sessions.js.map +0 -1
- package/resources/v1/chat/sessions.mjs +0 -34
- package/resources/v1/chat/sessions.mjs.map +0 -1
- package/resources/v1/chat/test.d.mts +0 -20
- package/resources/v1/chat/test.d.mts.map +0 -1
- package/resources/v1/chat/test.d.ts +0 -20
- package/resources/v1/chat/test.d.ts.map +0 -1
- package/resources/v1/chat/test.js +0 -34
- package/resources/v1/chat/test.js.map +0 -1
- package/resources/v1/chat/test.mjs +0 -30
- package/resources/v1/chat/test.mjs.map +0 -1
- package/resources/v1/chat.d.mts +0 -2
- package/resources/v1/chat.d.mts.map +0 -1
- package/resources/v1/chat.d.ts +0 -2
- package/resources/v1/chat.d.ts.map +0 -1
- package/resources/v1/chat.js +0 -6
- package/resources/v1/chat.js.map +0 -1
- package/resources/v1/chat.mjs +0 -3
- package/resources/v1/chat.mjs.map +0 -1
- package/resources/v1/explainers.d.mts +0 -152
- package/resources/v1/explainers.d.mts.map +0 -1
- package/resources/v1/explainers.d.ts +0 -152
- package/resources/v1/explainers.d.ts.map +0 -1
- package/resources/v1/explainers.js +0 -64
- package/resources/v1/explainers.js.map +0 -1
- package/resources/v1/explainers.mjs +0 -60
- package/resources/v1/explainers.mjs.map +0 -1
- package/resources/v1/flashcards.d.mts +0 -256
- package/resources/v1/flashcards.d.mts.map +0 -1
- package/resources/v1/flashcards.d.ts +0 -256
- package/resources/v1/flashcards.d.ts.map +0 -1
- package/resources/v1/flashcards.js +0 -112
- package/resources/v1/flashcards.js.map +0 -1
- package/resources/v1/flashcards.mjs +0 -108
- package/resources/v1/flashcards.mjs.map +0 -1
- package/resources/v1/scenarios/component.d.mts +0 -84
- package/resources/v1/scenarios/component.d.mts.map +0 -1
- package/resources/v1/scenarios/component.d.ts +0 -84
- package/resources/v1/scenarios/component.d.ts.map +0 -1
- package/resources/v1/scenarios/component.js +0 -56
- package/resources/v1/scenarios/component.js.map +0 -1
- package/resources/v1/scenarios/component.mjs +0 -52
- package/resources/v1/scenarios/component.mjs.map +0 -1
- package/resources/v1/scenarios/index.d.mts +0 -5
- package/resources/v1/scenarios/index.d.mts.map +0 -1
- package/resources/v1/scenarios/index.d.ts +0 -5
- package/resources/v1/scenarios/index.d.ts.map +0 -1
- package/resources/v1/scenarios/index.js +0 -13
- package/resources/v1/scenarios/index.js.map +0 -1
- package/resources/v1/scenarios/index.mjs +0 -6
- package/resources/v1/scenarios/index.mjs.map +0 -1
- package/resources/v1/scenarios/scenarios.d.mts +0 -289
- package/resources/v1/scenarios/scenarios.d.mts.map +0 -1
- package/resources/v1/scenarios/scenarios.d.ts +0 -289
- package/resources/v1/scenarios/scenarios.d.ts.map +0 -1
- package/resources/v1/scenarios/scenarios.js +0 -131
- package/resources/v1/scenarios/scenarios.js.map +0 -1
- package/resources/v1/scenarios/scenarios.mjs +0 -126
- package/resources/v1/scenarios/scenarios.mjs.map +0 -1
- package/resources/v1/scenarios/sessions.d.mts +0 -20
- package/resources/v1/scenarios/sessions.d.mts.map +0 -1
- package/resources/v1/scenarios/sessions.d.ts +0 -20
- package/resources/v1/scenarios/sessions.d.ts.map +0 -1
- package/resources/v1/scenarios/sessions.js +0 -35
- package/resources/v1/scenarios/sessions.js.map +0 -1
- package/resources/v1/scenarios/sessions.mjs +0 -31
- package/resources/v1/scenarios/sessions.mjs.map +0 -1
- package/resources/v1/scenarios/submissions/index.d.mts +0 -3
- package/resources/v1/scenarios/submissions/index.d.mts.map +0 -1
- package/resources/v1/scenarios/submissions/index.d.ts +0 -3
- package/resources/v1/scenarios/submissions/index.d.ts.map +0 -1
- package/resources/v1/scenarios/submissions/index.js +0 -9
- package/resources/v1/scenarios/submissions/index.js.map +0 -1
- package/resources/v1/scenarios/submissions/index.mjs +0 -4
- package/resources/v1/scenarios/submissions/index.mjs.map +0 -1
- package/resources/v1/scenarios/submissions/submissions.d.mts +0 -10
- package/resources/v1/scenarios/submissions/submissions.d.mts.map +0 -1
- package/resources/v1/scenarios/submissions/submissions.d.ts +0 -10
- package/resources/v1/scenarios/submissions/submissions.d.ts.map +0 -1
- package/resources/v1/scenarios/submissions/submissions.js +0 -17
- package/resources/v1/scenarios/submissions/submissions.js.map +0 -1
- package/resources/v1/scenarios/submissions/submissions.mjs +0 -12
- package/resources/v1/scenarios/submissions/submissions.mjs.map +0 -1
- package/resources/v1/scenarios/submissions/user.d.mts +0 -22
- package/resources/v1/scenarios/submissions/user.d.mts.map +0 -1
- package/resources/v1/scenarios/submissions/user.d.ts +0 -22
- package/resources/v1/scenarios/submissions/user.d.ts.map +0 -1
- package/resources/v1/scenarios/submissions/user.js +0 -37
- package/resources/v1/scenarios/submissions/user.js.map +0 -1
- package/resources/v1/scenarios/submissions/user.mjs +0 -33
- package/resources/v1/scenarios/submissions/user.mjs.map +0 -1
- package/resources/v1/scenarios/submissions.d.mts +0 -2
- package/resources/v1/scenarios/submissions.d.mts.map +0 -1
- package/resources/v1/scenarios/submissions.d.ts +0 -2
- package/resources/v1/scenarios/submissions.d.ts.map +0 -1
- package/resources/v1/scenarios/submissions.js +0 -6
- package/resources/v1/scenarios/submissions.js.map +0 -1
- package/resources/v1/scenarios/submissions.mjs +0 -3
- package/resources/v1/scenarios/submissions.mjs.map +0 -1
- package/resources/v1/scenarios.d.mts +0 -2
- package/resources/v1/scenarios.d.mts.map +0 -1
- package/resources/v1/scenarios.d.ts +0 -2
- package/resources/v1/scenarios.d.ts.map +0 -1
- package/resources/v1/scenarios.js +0 -6
- package/resources/v1/scenarios.js.map +0 -1
- package/resources/v1/scenarios.mjs +0 -3
- package/resources/v1/scenarios.mjs.map +0 -1
- package/resources/v1/tests/component.d.mts +0 -13
- package/resources/v1/tests/component.d.mts.map +0 -1
- package/resources/v1/tests/component.d.ts +0 -13
- package/resources/v1/tests/component.d.ts.map +0 -1
- package/resources/v1/tests/component.js +0 -23
- package/resources/v1/tests/component.js.map +0 -1
- package/resources/v1/tests/component.mjs +0 -19
- package/resources/v1/tests/component.mjs.map +0 -1
- package/resources/v1/tests/index.d.mts +0 -3
- package/resources/v1/tests/index.d.mts.map +0 -1
- package/resources/v1/tests/index.d.ts +0 -3
- package/resources/v1/tests/index.d.ts.map +0 -1
- package/resources/v1/tests/index.js +0 -9
- package/resources/v1/tests/index.js.map +0 -1
- package/resources/v1/tests/index.mjs +0 -4
- package/resources/v1/tests/index.mjs.map +0 -1
- package/resources/v1/tests/tests.d.mts +0 -112
- package/resources/v1/tests/tests.d.mts.map +0 -1
- package/resources/v1/tests/tests.d.ts +0 -112
- package/resources/v1/tests/tests.d.ts.map +0 -1
- package/resources/v1/tests/tests.js +0 -112
- package/resources/v1/tests/tests.js.map +0 -1
- package/resources/v1/tests/tests.mjs +0 -107
- package/resources/v1/tests/tests.mjs.map +0 -1
- package/resources/v1/tests.d.mts +0 -2
- package/resources/v1/tests.d.mts.map +0 -1
- package/resources/v1/tests.d.ts +0 -2
- package/resources/v1/tests.d.ts.map +0 -1
- package/resources/v1/tests.js +0 -6
- package/resources/v1/tests.js.map +0 -1
- package/resources/v1/tests.mjs +0 -3
- package/resources/v1/tests.mjs.map +0 -1
- package/src/resources/v1/audio-recaps/audio-recaps.ts +0 -79
- package/src/resources/v1/audio-recaps/index.ts +0 -4
- package/src/resources/v1/audio-recaps/sections.ts +0 -53
- package/src/resources/v1/audio-recaps.ts +0 -3
- package/src/resources/v1/chat/chat.ts +0 -229
- package/src/resources/v1/chat/index.ts +0 -5
- package/src/resources/v1/chat/sessions.ts +0 -46
- package/src/resources/v1/chat/test.ts +0 -34
- package/src/resources/v1/chat.ts +0 -3
- package/src/resources/v1/explainers.ts +0 -203
- package/src/resources/v1/flashcards.ts +0 -353
- package/src/resources/v1/scenarios/component.ts +0 -118
- package/src/resources/v1/scenarios/index.ts +0 -13
- package/src/resources/v1/scenarios/scenarios.ts +0 -400
- package/src/resources/v1/scenarios/sessions.ts +0 -35
- package/src/resources/v1/scenarios/submissions/index.ts +0 -4
- package/src/resources/v1/scenarios/submissions/submissions.ts +0 -15
- package/src/resources/v1/scenarios/submissions/user.ts +0 -37
- package/src/resources/v1/scenarios/submissions.ts +0 -3
- package/src/resources/v1/scenarios.ts +0 -3
- package/src/resources/v1/tests/component.ts +0 -22
- package/src/resources/v1/tests/index.ts +0 -10
- package/src/resources/v1/tests/tests.ts +0 -173
- package/src/resources/v1/tests.ts +0 -3
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import * as ComponentAPI from "./component.js";
|
|
3
|
-
import { Component } from "./component.js";
|
|
4
|
-
import { APIPromise } from "../../../core/api-promise.js";
|
|
5
|
-
import { RequestOptions } from "../../../internal/request-options.js";
|
|
6
|
-
export declare class Tests extends APIResource {
|
|
7
|
-
component: ComponentAPI.Component;
|
|
8
|
-
/**
|
|
9
|
-
* Create a new test
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* await client.v1.tests.create({
|
|
14
|
-
* componentId: 'componentId',
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
create(body: TestCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
19
|
-
/**
|
|
20
|
-
* Get test by ID
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* await client.v1.tests.retrieve('testId');
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
retrieve(testID: string, options?: RequestOptions): APIPromise<void>;
|
|
28
|
-
/**
|
|
29
|
-
* Get test results
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* await client.v1.tests.getResults('testId');
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
getResults(testID: string, options?: RequestOptions): APIPromise<void>;
|
|
37
|
-
/**
|
|
38
|
-
* Retake a test
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* await client.v1.tests.retake('testId');
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
retake(testID: string, body: TestRetakeParams, options?: RequestOptions): APIPromise<void>;
|
|
46
|
-
/**
|
|
47
|
-
* Submit completed test
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```ts
|
|
51
|
-
* await client.v1.tests.submit('testId');
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
submit(testID: string, body: TestSubmitParams, options?: RequestOptions): APIPromise<void>;
|
|
55
|
-
/**
|
|
56
|
-
* Submit test answer
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```ts
|
|
60
|
-
* await client.v1.tests.submitAnswer('testId', {
|
|
61
|
-
* answer: 'answer',
|
|
62
|
-
* questionId: 'questionId',
|
|
63
|
-
* });
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
submitAnswer(testID: string, body: TestSubmitAnswerParams, options?: RequestOptions): APIPromise<void>;
|
|
67
|
-
}
|
|
68
|
-
export interface TestCreateParams {
|
|
69
|
-
/**
|
|
70
|
-
* Component ID
|
|
71
|
-
*/
|
|
72
|
-
componentId: string;
|
|
73
|
-
/**
|
|
74
|
-
* Test name (optional)
|
|
75
|
-
*/
|
|
76
|
-
name?: string;
|
|
77
|
-
/**
|
|
78
|
-
* User ID (optional)
|
|
79
|
-
*/
|
|
80
|
-
userId?: string;
|
|
81
|
-
}
|
|
82
|
-
export interface TestRetakeParams {
|
|
83
|
-
/**
|
|
84
|
-
* User ID (optional)
|
|
85
|
-
*/
|
|
86
|
-
userId?: string;
|
|
87
|
-
}
|
|
88
|
-
export interface TestSubmitParams {
|
|
89
|
-
/**
|
|
90
|
-
* User ID (optional)
|
|
91
|
-
*/
|
|
92
|
-
userId?: string;
|
|
93
|
-
}
|
|
94
|
-
export interface TestSubmitAnswerParams {
|
|
95
|
-
/**
|
|
96
|
-
* User answer
|
|
97
|
-
*/
|
|
98
|
-
answer: string;
|
|
99
|
-
/**
|
|
100
|
-
* Question ID
|
|
101
|
-
*/
|
|
102
|
-
questionId: string;
|
|
103
|
-
/**
|
|
104
|
-
* User ID (optional)
|
|
105
|
-
*/
|
|
106
|
-
userId?: string;
|
|
107
|
-
}
|
|
108
|
-
export declare namespace Tests {
|
|
109
|
-
export { type TestCreateParams as TestCreateParams, type TestRetakeParams as TestRetakeParams, type TestSubmitParams as TestSubmitParams, type TestSubmitAnswerParams as TestSubmitAnswerParams, };
|
|
110
|
-
export { Component as Component };
|
|
111
|
-
}
|
|
112
|
-
//# sourceMappingURL=tests.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tests.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/tests/tests.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,SAAS,EAAE;OACb,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,W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M,CAAC;IAEf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,CAAC;CACnC"}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Tests = void 0;
|
|
5
|
-
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
-
const resource_1 = require("../../../core/resource.js");
|
|
7
|
-
const ComponentAPI = tslib_1.__importStar(require("./component.js"));
|
|
8
|
-
const component_1 = require("./component.js");
|
|
9
|
-
const headers_1 = require("../../../internal/headers.js");
|
|
10
|
-
const path_1 = require("../../../internal/utils/path.js");
|
|
11
|
-
class Tests extends resource_1.APIResource {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this.component = new ComponentAPI.Component(this._client);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Create a new test
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* await client.v1.tests.create({
|
|
22
|
-
* componentId: 'componentId',
|
|
23
|
-
* });
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
create(body, options) {
|
|
27
|
-
return this._client.post('/api/v1/tests/create', {
|
|
28
|
-
body,
|
|
29
|
-
...options,
|
|
30
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Get test by ID
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* await client.v1.tests.retrieve('testId');
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
retrieve(testID, options) {
|
|
42
|
-
return this._client.get((0, path_1.path) `/api/v1/tests/${testID}`, {
|
|
43
|
-
...options,
|
|
44
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Get test results
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```ts
|
|
52
|
-
* await client.v1.tests.getResults('testId');
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
getResults(testID, options) {
|
|
56
|
-
return this._client.get((0, path_1.path) `/api/v1/tests/${testID}/results`, {
|
|
57
|
-
...options,
|
|
58
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Retake a test
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* ```ts
|
|
66
|
-
* await client.v1.tests.retake('testId');
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
retake(testID, body, options) {
|
|
70
|
-
return this._client.post((0, path_1.path) `/api/v1/tests/${testID}/retake`, {
|
|
71
|
-
body,
|
|
72
|
-
...options,
|
|
73
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Submit completed test
|
|
78
|
-
*
|
|
79
|
-
* @example
|
|
80
|
-
* ```ts
|
|
81
|
-
* await client.v1.tests.submit('testId');
|
|
82
|
-
* ```
|
|
83
|
-
*/
|
|
84
|
-
submit(testID, body, options) {
|
|
85
|
-
return this._client.post((0, path_1.path) `/api/v1/tests/${testID}/submit`, {
|
|
86
|
-
body,
|
|
87
|
-
...options,
|
|
88
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Submit test answer
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* ```ts
|
|
96
|
-
* await client.v1.tests.submitAnswer('testId', {
|
|
97
|
-
* answer: 'answer',
|
|
98
|
-
* questionId: 'questionId',
|
|
99
|
-
* });
|
|
100
|
-
* ```
|
|
101
|
-
*/
|
|
102
|
-
submitAnswer(testID, body, options) {
|
|
103
|
-
return this._client.post((0, path_1.path) `/api/v1/tests/${testID}/submit-answer`, {
|
|
104
|
-
body,
|
|
105
|
-
...options,
|
|
106
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
exports.Tests = Tests;
|
|
111
|
-
Tests.Component = component_1.Component;
|
|
112
|
-
//# sourceMappingURL=tests.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tests.js","sourceRoot":"","sources":["../../../src/resources/v1/tests/tests.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,qEAA4C;AAC5C,8CAAwC;AAExC,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoG/E,CAAC;IAlGC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA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J,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,YAAY,CAAC,MAAc,EAAE,IAA4B,EAAE,OAAwB;QACjF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,iBAAiB,MAAM,gBAAgB,EAAE;YACpE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AArGD,sBAqGC;AAkDD,KAAK,CAAC,SAAS,GAAG,qBAAS,CAAC"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
import * as ComponentAPI from "./component.mjs";
|
|
4
|
-
import { Component } from "./component.mjs";
|
|
5
|
-
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
6
|
-
import { path } from "../../../internal/utils/path.mjs";
|
|
7
|
-
export class Tests extends APIResource {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.component = new ComponentAPI.Component(this._client);
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Create a new test
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* await client.v1.tests.create({
|
|
18
|
-
* componentId: 'componentId',
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
create(body, options) {
|
|
23
|
-
return this._client.post('/api/v1/tests/create', {
|
|
24
|
-
body,
|
|
25
|
-
...options,
|
|
26
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Get test by ID
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```ts
|
|
34
|
-
* await client.v1.tests.retrieve('testId');
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
retrieve(testID, options) {
|
|
38
|
-
return this._client.get(path `/api/v1/tests/${testID}`, {
|
|
39
|
-
...options,
|
|
40
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Get test results
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* await client.v1.tests.getResults('testId');
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
getResults(testID, options) {
|
|
52
|
-
return this._client.get(path `/api/v1/tests/${testID}/results`, {
|
|
53
|
-
...options,
|
|
54
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Retake a test
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* await client.v1.tests.retake('testId');
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
retake(testID, body, options) {
|
|
66
|
-
return this._client.post(path `/api/v1/tests/${testID}/retake`, {
|
|
67
|
-
body,
|
|
68
|
-
...options,
|
|
69
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Submit completed test
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```ts
|
|
77
|
-
* await client.v1.tests.submit('testId');
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
submit(testID, body, options) {
|
|
81
|
-
return this._client.post(path `/api/v1/tests/${testID}/submit`, {
|
|
82
|
-
body,
|
|
83
|
-
...options,
|
|
84
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Submit test answer
|
|
89
|
-
*
|
|
90
|
-
* @example
|
|
91
|
-
* ```ts
|
|
92
|
-
* await client.v1.tests.submitAnswer('testId', {
|
|
93
|
-
* answer: 'answer',
|
|
94
|
-
* questionId: 'questionId',
|
|
95
|
-
* });
|
|
96
|
-
* ```
|
|
97
|
-
*/
|
|
98
|
-
submitAnswer(testID, body, options) {
|
|
99
|
-
return this._client.post(path `/api/v1/tests/${testID}/submit-answer`, {
|
|
100
|
-
body,
|
|
101
|
-
...options,
|
|
102
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
Tests.Component = Component;
|
|
107
|
-
//# sourceMappingURL=tests.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tests.mjs","sourceRoot":"","sources":["../../../src/resources/v1/tests/tests.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,SAAS,EAAE;OAEb,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoG/E,CAAC;IAlGC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EA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EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,YAAY,CAAC,MAAc,EAAE,IAA4B,EAAE,OAAwB;QACjF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,iBAAiB,MAAM,gBAAgB,EAAE;YACpE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAkDD,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC"}
|
package/resources/v1/tests.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tests.d.mts","sourceRoot":"","sources":["../../src/resources/v1/tests.ts"],"names":[],"mappings":""}
|
package/resources/v1/tests.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tests.d.ts","sourceRoot":"","sources":["../../src/resources/v1/tests.ts"],"names":[],"mappings":""}
|
package/resources/v1/tests.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
-
tslib_1.__exportStar(require("./tests/index.js"), exports);
|
|
6
|
-
//# sourceMappingURL=tests.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tests.js","sourceRoot":"","sources":["../../src/resources/v1/tests.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA8B"}
|
package/resources/v1/tests.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tests.mjs","sourceRoot":"","sources":["../../src/resources/v1/tests.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import * as SectionsAPI from './sections';
|
|
5
|
-
import { SectionRetrieveParams, Sections } from './sections';
|
|
6
|
-
import { APIPromise } from '../../../core/api-promise';
|
|
7
|
-
import { buildHeaders } from '../../../internal/headers';
|
|
8
|
-
import { RequestOptions } from '../../../internal/request-options';
|
|
9
|
-
import { path } from '../../../internal/utils/path';
|
|
10
|
-
|
|
11
|
-
export class AudioRecaps extends APIResource {
|
|
12
|
-
sections: SectionsAPI.Sections = new SectionsAPI.Sections(this._client);
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Create a new audio recap
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* await client.v1.audioRecaps.create();
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
create(body: AudioRecapCreateParams, options?: RequestOptions): APIPromise<void> {
|
|
23
|
-
return this._client.post('/api/v1/audio-recaps/create', {
|
|
24
|
-
body,
|
|
25
|
-
...options,
|
|
26
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Get audio recap by ID
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```ts
|
|
35
|
-
* await client.v1.audioRecaps.retrieve('recapId');
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
retrieve(recapID: string, options?: RequestOptions): APIPromise<void> {
|
|
39
|
-
return this._client.get(path`/api/v1/audio-recaps/${recapID}/get`, {
|
|
40
|
-
...options,
|
|
41
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Ask a question about the audio recap
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* await client.v1.audioRecaps.askQuestion('recapId');
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
askQuestion(
|
|
54
|
-
recapID: string,
|
|
55
|
-
body: AudioRecapAskQuestionParams,
|
|
56
|
-
options?: RequestOptions,
|
|
57
|
-
): APIPromise<void> {
|
|
58
|
-
return this._client.post(path`/api/v1/audio-recaps/${recapID}/ask-question`, {
|
|
59
|
-
body,
|
|
60
|
-
...options,
|
|
61
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface AudioRecapCreateParams {}
|
|
67
|
-
|
|
68
|
-
export interface AudioRecapAskQuestionParams {}
|
|
69
|
-
|
|
70
|
-
AudioRecaps.Sections = Sections;
|
|
71
|
-
|
|
72
|
-
export declare namespace AudioRecaps {
|
|
73
|
-
export {
|
|
74
|
-
type AudioRecapCreateParams as AudioRecapCreateParams,
|
|
75
|
-
type AudioRecapAskQuestionParams as AudioRecapAskQuestionParams,
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export { Sections as Sections, type SectionRetrieveParams as SectionRetrieveParams };
|
|
79
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
-
import { buildHeaders } from '../../../internal/headers';
|
|
6
|
-
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
-
import { path } from '../../../internal/utils/path';
|
|
8
|
-
|
|
9
|
-
export class Sections extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Get specific audio recap section
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* await client.v1.audioRecaps.sections.retrieve('sectionId', {
|
|
16
|
-
* recapId: 'recapId',
|
|
17
|
-
* });
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
retrieve(sectionID: string, params: SectionRetrieveParams, options?: RequestOptions): APIPromise<void> {
|
|
21
|
-
const { recapId } = params;
|
|
22
|
-
return this._client.get(path`/api/v1/audio-recaps/${recapId}/sections/${sectionID}`, {
|
|
23
|
-
...options,
|
|
24
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Get audio recap sections
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* await client.v1.audioRecaps.sections.list('recapId');
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
list(recapID: string, options?: RequestOptions): APIPromise<void> {
|
|
37
|
-
return this._client.get(path`/api/v1/audio-recaps/${recapID}/sections`, {
|
|
38
|
-
...options,
|
|
39
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface SectionRetrieveParams {
|
|
45
|
-
/**
|
|
46
|
-
* Audio recap ID
|
|
47
|
-
*/
|
|
48
|
-
recapId: string;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export declare namespace Sections {
|
|
52
|
-
export { type SectionRetrieveParams as SectionRetrieveParams };
|
|
53
|
-
}
|