@studyfetch/sdk 1.32.0 → 1.34.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 +82 -0
- package/README.md +1 -1
- package/package.json +4 -5
- package/resources/v1/assignment-grader/assignment-grader.d.mts +313 -0
- package/resources/v1/assignment-grader/assignment-grader.d.mts.map +1 -0
- package/resources/v1/assignment-grader/assignment-grader.d.ts +313 -0
- package/resources/v1/assignment-grader/assignment-grader.d.ts.map +1 -0
- package/resources/v1/assignment-grader/assignment-grader.js +87 -0
- package/resources/v1/assignment-grader/assignment-grader.js.map +1 -0
- package/resources/v1/assignment-grader/assignment-grader.mjs +82 -0
- package/resources/v1/assignment-grader/assignment-grader.mjs.map +1 -0
- package/resources/v1/assignment-grader/index.d.mts +3 -0
- package/resources/v1/assignment-grader/index.d.mts.map +1 -0
- package/resources/v1/assignment-grader/index.d.ts +3 -0
- package/resources/v1/assignment-grader/index.d.ts.map +1 -0
- package/resources/v1/assignment-grader/index.js +9 -0
- package/resources/v1/assignment-grader/index.js.map +1 -0
- package/resources/v1/assignment-grader/index.mjs +4 -0
- package/resources/v1/assignment-grader/index.mjs.map +1 -0
- package/resources/v1/assignment-grader/rubric-templates.d.mts +238 -0
- package/resources/v1/assignment-grader/rubric-templates.d.mts.map +1 -0
- package/resources/v1/assignment-grader/rubric-templates.d.ts +238 -0
- package/resources/v1/assignment-grader/rubric-templates.d.ts.map +1 -0
- package/resources/v1/assignment-grader/rubric-templates.js +68 -0
- package/resources/v1/assignment-grader/rubric-templates.js.map +1 -0
- package/resources/v1/assignment-grader/rubric-templates.mjs +64 -0
- package/resources/v1/assignment-grader/rubric-templates.mjs.map +1 -0
- package/resources/v1/assignment-grader.d.mts +1 -152
- package/resources/v1/assignment-grader.d.mts.map +1 -1
- package/resources/v1/assignment-grader.d.ts +1 -152
- package/resources/v1/assignment-grader.d.ts.map +1 -1
- package/resources/v1/assignment-grader.js +2 -62
- package/resources/v1/assignment-grader.js.map +1 -1
- package/resources/v1/assignment-grader.mjs +1 -60
- package/resources/v1/assignment-grader.mjs.map +1 -1
- package/resources/v1/chat-analytics.d.mts +316 -0
- package/resources/v1/chat-analytics.d.mts.map +1 -0
- package/resources/v1/chat-analytics.d.ts +316 -0
- package/resources/v1/chat-analytics.d.ts.map +1 -0
- package/resources/v1/chat-analytics.js +50 -0
- package/resources/v1/chat-analytics.js.map +1 -0
- package/resources/v1/chat-analytics.mjs +46 -0
- package/resources/v1/chat-analytics.mjs.map +1 -0
- package/resources/v1/components.d.mts +184 -10
- package/resources/v1/components.d.mts.map +1 -1
- package/resources/v1/components.d.ts +184 -10
- package/resources/v1/components.d.ts.map +1 -1
- package/resources/v1/components.js.map +1 -1
- package/resources/v1/components.mjs.map +1 -1
- package/resources/v1/index.d.mts +6 -4
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +6 -4
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +13 -9
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +4 -2
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/materials/index.d.mts +3 -3
- package/resources/v1/materials/index.d.mts.map +1 -1
- package/resources/v1/materials/index.d.ts +3 -3
- 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 +548 -92
- package/resources/v1/materials/materials.d.mts.map +1 -1
- package/resources/v1/materials/materials.d.ts +548 -92
- package/resources/v1/materials/materials.d.ts.map +1 -1
- package/resources/v1/materials/materials.js +36 -34
- package/resources/v1/materials/materials.js.map +1 -1
- package/resources/v1/materials/materials.mjs +36 -34
- package/resources/v1/materials/materials.mjs.map +1 -1
- package/resources/v1/materials/test.d.mts +29 -30
- package/resources/v1/materials/test.d.mts.map +1 -1
- package/resources/v1/materials/test.d.ts +29 -30
- package/resources/v1/materials/test.d.ts.map +1 -1
- package/resources/v1/materials/test.js +14 -15
- package/resources/v1/materials/test.js.map +1 -1
- package/resources/v1/materials/test.mjs +14 -15
- package/resources/v1/materials/test.mjs.map +1 -1
- package/resources/v1/materials/upload.d.mts +312 -23
- package/resources/v1/materials/upload.d.mts.map +1 -1
- package/resources/v1/materials/upload.d.ts +312 -23
- package/resources/v1/materials/upload.d.ts.map +1 -1
- package/resources/v1/materials/upload.js +9 -9
- package/resources/v1/materials/upload.js.map +1 -1
- package/resources/v1/materials/upload.mjs +9 -9
- package/resources/v1/materials/upload.mjs.map +1 -1
- package/resources/v1/usage-analyst.d.mts +99 -0
- package/resources/v1/usage-analyst.d.mts.map +1 -0
- package/resources/v1/usage-analyst.d.ts +99 -0
- package/resources/v1/usage-analyst.d.ts.map +1 -0
- package/resources/v1/{usage/analyst.js → usage-analyst.js} +9 -9
- package/resources/v1/usage-analyst.js.map +1 -0
- package/resources/v1/{usage/analyst.mjs → usage-analyst.mjs} +7 -7
- package/resources/v1/usage-analyst.mjs.map +1 -0
- package/resources/v1/usage.d.mts +109 -1
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +109 -1
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +55 -2
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +53 -1
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +18 -10
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +18 -10
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +14 -6
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +14 -6
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/assignment-grader/assignment-grader.ts +421 -0
- package/src/resources/v1/assignment-grader/index.ts +16 -0
- package/src/resources/v1/assignment-grader/rubric-templates.ts +305 -0
- package/src/resources/v1/assignment-grader.ts +1 -196
- package/src/resources/v1/chat-analytics.ts +413 -0
- package/src/resources/v1/components.ts +265 -10
- package/src/resources/v1/index.ts +34 -10
- package/src/resources/v1/materials/index.ts +23 -14
- package/src/resources/v1/materials/materials.ts +824 -216
- package/src/resources/v1/materials/test.ts +38 -39
- package/src/resources/v1/materials/upload.ts +411 -30
- package/src/resources/v1/{usage/analyst.ts → usage-analyst.ts} +24 -23
- package/src/resources/v1/usage.ts +179 -1
- package/src/resources/v1/v1.ts +84 -28
- 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/usage/analyst.d.mts +0 -99
- package/resources/v1/usage/analyst.d.mts.map +0 -1
- package/resources/v1/usage/analyst.d.ts +0 -99
- package/resources/v1/usage/analyst.d.ts.map +0 -1
- package/resources/v1/usage/analyst.js.map +0 -1
- package/resources/v1/usage/analyst.mjs.map +0 -1
- package/resources/v1/usage/index.d.mts +0 -3
- package/resources/v1/usage/index.d.mts.map +0 -1
- package/resources/v1/usage/index.d.ts +0 -3
- package/resources/v1/usage/index.d.ts.map +0 -1
- package/resources/v1/usage/index.js +0 -9
- package/resources/v1/usage/index.js.map +0 -1
- package/resources/v1/usage/index.mjs +0 -4
- package/resources/v1/usage/index.mjs.map +0 -1
- package/resources/v1/usage/usage.d.mts +0 -114
- package/resources/v1/usage/usage.d.mts.map +0 -1
- package/resources/v1/usage/usage.d.ts +0 -114
- package/resources/v1/usage/usage.d.ts.map +0 -1
- package/resources/v1/usage/usage.js +0 -67
- package/resources/v1/usage/usage.js.map +0 -1
- package/resources/v1/usage/usage.mjs +0 -62
- package/resources/v1/usage/usage.mjs.map +0 -1
- package/src/resources/v1/usage/index.ts +0 -15
- package/src/resources/v1/usage/usage.ts +0 -200
|
@@ -0,0 +1,305 @@
|
|
|
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 RubricTemplates extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create a new rubric template
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const rubricTemplate =
|
|
16
|
+
* await client.v1.assignmentGrader.rubricTemplates.create({
|
|
17
|
+
* criteria: [{ pointsPossible: 0, title: 'title' }],
|
|
18
|
+
* name: 'name',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(
|
|
23
|
+
body: RubricTemplateCreateParams,
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): APIPromise<RubricTemplateCreateResponse> {
|
|
26
|
+
return this._client.post('/api/v1/assignment-grader/rubric-templates', { body, ...options });
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Get all rubric templates
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const rubricTemplates =
|
|
35
|
+
* await client.v1.assignmentGrader.rubricTemplates.list();
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
list(options?: RequestOptions): APIPromise<RubricTemplateListResponse> {
|
|
39
|
+
return this._client.get('/api/v1/assignment-grader/rubric-templates', options);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Delete a rubric template by ID
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* await client.v1.assignmentGrader.rubricTemplates.delete(
|
|
48
|
+
* 'id',
|
|
49
|
+
* );
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
53
|
+
return this._client.delete(path`/api/v1/assignment-grader/rubric-templates/${id}`, {
|
|
54
|
+
...options,
|
|
55
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Get a rubric template by ID
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```ts
|
|
64
|
+
* const response =
|
|
65
|
+
* await client.v1.assignmentGrader.rubricTemplates.getByID(
|
|
66
|
+
* 'id',
|
|
67
|
+
* );
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
getByID(id: string, options?: RequestOptions): APIPromise<RubricTemplateGetByIDResponse> {
|
|
71
|
+
return this._client.get(path`/api/v1/assignment-grader/rubric-templates/${id}`, options);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface RubricTemplateCreateResponse {
|
|
76
|
+
/**
|
|
77
|
+
* Template ID
|
|
78
|
+
*/
|
|
79
|
+
_id: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Creation timestamp
|
|
83
|
+
*/
|
|
84
|
+
createdAt: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Created by user ID
|
|
88
|
+
*/
|
|
89
|
+
createdBy: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Grading criteria
|
|
93
|
+
*/
|
|
94
|
+
criteria: Array<RubricTemplateCreateResponse.Criterion>;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Template name
|
|
98
|
+
*/
|
|
99
|
+
name: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Organization ID
|
|
103
|
+
*/
|
|
104
|
+
organizationId: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Update timestamp
|
|
108
|
+
*/
|
|
109
|
+
updatedAt: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Template description
|
|
113
|
+
*/
|
|
114
|
+
description?: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export namespace RubricTemplateCreateResponse {
|
|
118
|
+
export interface Criterion {
|
|
119
|
+
/**
|
|
120
|
+
* Points possible for this criterion
|
|
121
|
+
*/
|
|
122
|
+
pointsPossible: number;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Title of the criterion
|
|
126
|
+
*/
|
|
127
|
+
title: string;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Description of the criterion
|
|
131
|
+
*/
|
|
132
|
+
description?: string;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export type RubricTemplateListResponse = Array<RubricTemplateListResponse.RubricTemplateListResponseItem>;
|
|
137
|
+
|
|
138
|
+
export namespace RubricTemplateListResponse {
|
|
139
|
+
export interface RubricTemplateListResponseItem {
|
|
140
|
+
/**
|
|
141
|
+
* Template ID
|
|
142
|
+
*/
|
|
143
|
+
_id: string;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Creation timestamp
|
|
147
|
+
*/
|
|
148
|
+
createdAt: string;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Created by user ID
|
|
152
|
+
*/
|
|
153
|
+
createdBy: string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Grading criteria
|
|
157
|
+
*/
|
|
158
|
+
criteria: Array<RubricTemplateListResponseItem.Criterion>;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Template name
|
|
162
|
+
*/
|
|
163
|
+
name: string;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Organization ID
|
|
167
|
+
*/
|
|
168
|
+
organizationId: string;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Update timestamp
|
|
172
|
+
*/
|
|
173
|
+
updatedAt: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Template description
|
|
177
|
+
*/
|
|
178
|
+
description?: string;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export namespace RubricTemplateListResponseItem {
|
|
182
|
+
export interface Criterion {
|
|
183
|
+
/**
|
|
184
|
+
* Points possible for this criterion
|
|
185
|
+
*/
|
|
186
|
+
pointsPossible: number;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Title of the criterion
|
|
190
|
+
*/
|
|
191
|
+
title: string;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Description of the criterion
|
|
195
|
+
*/
|
|
196
|
+
description?: string;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface RubricTemplateGetByIDResponse {
|
|
202
|
+
/**
|
|
203
|
+
* Template ID
|
|
204
|
+
*/
|
|
205
|
+
_id: string;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Creation timestamp
|
|
209
|
+
*/
|
|
210
|
+
createdAt: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Created by user ID
|
|
214
|
+
*/
|
|
215
|
+
createdBy: string;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Grading criteria
|
|
219
|
+
*/
|
|
220
|
+
criteria: Array<RubricTemplateGetByIDResponse.Criterion>;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Template name
|
|
224
|
+
*/
|
|
225
|
+
name: string;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Organization ID
|
|
229
|
+
*/
|
|
230
|
+
organizationId: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Update timestamp
|
|
234
|
+
*/
|
|
235
|
+
updatedAt: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Template description
|
|
239
|
+
*/
|
|
240
|
+
description?: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export namespace RubricTemplateGetByIDResponse {
|
|
244
|
+
export interface Criterion {
|
|
245
|
+
/**
|
|
246
|
+
* Points possible for this criterion
|
|
247
|
+
*/
|
|
248
|
+
pointsPossible: number;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Title of the criterion
|
|
252
|
+
*/
|
|
253
|
+
title: string;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Description of the criterion
|
|
257
|
+
*/
|
|
258
|
+
description?: string;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export interface RubricTemplateCreateParams {
|
|
263
|
+
/**
|
|
264
|
+
* Grading criteria
|
|
265
|
+
*/
|
|
266
|
+
criteria: Array<RubricTemplateCreateParams.Criterion>;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Name of the rubric template
|
|
270
|
+
*/
|
|
271
|
+
name: string;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Description of the rubric template
|
|
275
|
+
*/
|
|
276
|
+
description?: string;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export namespace RubricTemplateCreateParams {
|
|
280
|
+
export interface Criterion {
|
|
281
|
+
/**
|
|
282
|
+
* Points possible for this criterion
|
|
283
|
+
*/
|
|
284
|
+
pointsPossible: number;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Title of the criterion
|
|
288
|
+
*/
|
|
289
|
+
title: string;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Description of the criterion
|
|
293
|
+
*/
|
|
294
|
+
description?: string;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export declare namespace RubricTemplates {
|
|
299
|
+
export {
|
|
300
|
+
type RubricTemplateCreateResponse as RubricTemplateCreateResponse,
|
|
301
|
+
type RubricTemplateListResponse as RubricTemplateListResponse,
|
|
302
|
+
type RubricTemplateGetByIDResponse as RubricTemplateGetByIDResponse,
|
|
303
|
+
type RubricTemplateCreateParams as RubricTemplateCreateParams,
|
|
304
|
+
};
|
|
305
|
+
}
|
|
@@ -1,198 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
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 AssignmentGrader extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Grade a new assignment
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const assignmentGraderResponse =
|
|
16
|
-
* await client.v1.assignmentGrader.create({
|
|
17
|
-
* rubric: {
|
|
18
|
-
* criteria: [{ pointsPossible: 0, title: 'title' }],
|
|
19
|
-
* },
|
|
20
|
-
* title: 'title',
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
create(body: AssignmentGraderCreateParams, options?: RequestOptions): APIPromise<AssignmentGraderResponse> {
|
|
25
|
-
return this._client.post('/api/v1/assignment-grader/create', { body, ...options });
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Delete an assignment grader by ID
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* await client.v1.assignmentGrader.delete('id');
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
37
|
-
return this._client.delete(path`/api/v1/assignment-grader/delete/${id}`, {
|
|
38
|
-
...options,
|
|
39
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Get all assignment graders
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* const assignmentGraderResponses =
|
|
49
|
-
* await client.v1.assignmentGrader.getAll();
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
getAll(options?: RequestOptions): APIPromise<AssignmentGraderGetAllResponse> {
|
|
53
|
-
return this._client.get('/api/v1/assignment-grader/get', options);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Get an assignment grader by ID
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* ```ts
|
|
61
|
-
* const assignmentGraderResponse =
|
|
62
|
-
* await client.v1.assignmentGrader.getByID('id');
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
getByID(id: string, options?: RequestOptions): APIPromise<AssignmentGraderResponse> {
|
|
66
|
-
return this._client.get(path`/api/v1/assignment-grader/get/${id}`, options);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export interface AssignmentGraderResponse {
|
|
71
|
-
/**
|
|
72
|
-
* Version key
|
|
73
|
-
*/
|
|
74
|
-
__v: number;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Assignment grader ID
|
|
78
|
-
*/
|
|
79
|
-
_id: string;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Creation timestamp
|
|
83
|
-
*/
|
|
84
|
-
createdAt: string;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Overall grade percentage
|
|
88
|
-
*/
|
|
89
|
-
grade: number;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Organization ID
|
|
93
|
-
*/
|
|
94
|
-
organizationId: string;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Grading results
|
|
98
|
-
*/
|
|
99
|
-
rubric: unknown;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Assignment title
|
|
103
|
-
*/
|
|
104
|
-
title: string;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Update timestamp
|
|
108
|
-
*/
|
|
109
|
-
updatedAt: string;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Material ID
|
|
113
|
-
*/
|
|
114
|
-
materialId?: string;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Text that was graded
|
|
118
|
-
*/
|
|
119
|
-
textToGrade?: string;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* User ID
|
|
123
|
-
*/
|
|
124
|
-
userId?: string;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export type AssignmentGraderGetAllResponse = Array<AssignmentGraderResponse>;
|
|
128
|
-
|
|
129
|
-
export interface AssignmentGraderCreateParams {
|
|
130
|
-
/**
|
|
131
|
-
* Grading rubric
|
|
132
|
-
*/
|
|
133
|
-
rubric: AssignmentGraderCreateParams.Rubric;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Title of the assignment
|
|
137
|
-
*/
|
|
138
|
-
title: string;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Material ID to grade
|
|
142
|
-
*/
|
|
143
|
-
materialId?: string;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* AI model to use
|
|
147
|
-
*/
|
|
148
|
-
model?: string;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Text content to grade
|
|
152
|
-
*/
|
|
153
|
-
textToGrade?: string;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* User ID for tracking
|
|
157
|
-
*/
|
|
158
|
-
userId?: string;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export namespace AssignmentGraderCreateParams {
|
|
162
|
-
/**
|
|
163
|
-
* Grading rubric
|
|
164
|
-
*/
|
|
165
|
-
export interface Rubric {
|
|
166
|
-
/**
|
|
167
|
-
* Grading criteria
|
|
168
|
-
*/
|
|
169
|
-
criteria: Array<Rubric.Criterion>;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export namespace Rubric {
|
|
173
|
-
export interface Criterion {
|
|
174
|
-
/**
|
|
175
|
-
* Points possible for this criterion
|
|
176
|
-
*/
|
|
177
|
-
pointsPossible: number;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Title of the criterion
|
|
181
|
-
*/
|
|
182
|
-
title: string;
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Description of the criterion
|
|
186
|
-
*/
|
|
187
|
-
description?: string;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export declare namespace AssignmentGrader {
|
|
193
|
-
export {
|
|
194
|
-
type AssignmentGraderResponse as AssignmentGraderResponse,
|
|
195
|
-
type AssignmentGraderGetAllResponse as AssignmentGraderGetAllResponse,
|
|
196
|
-
type AssignmentGraderCreateParams as AssignmentGraderCreateParams,
|
|
197
|
-
};
|
|
198
|
-
}
|
|
3
|
+
export * from './assignment-grader/index';
|