@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,238 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
export declare class RubricTemplates extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new rubric template
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const rubricTemplate =
|
|
11
|
+
* await client.v1.assignmentGrader.rubricTemplates.create({
|
|
12
|
+
* criteria: [{ pointsPossible: 0, title: 'title' }],
|
|
13
|
+
* name: 'name',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
create(body: RubricTemplateCreateParams, options?: RequestOptions): APIPromise<RubricTemplateCreateResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get all rubric templates
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const rubricTemplates =
|
|
24
|
+
* await client.v1.assignmentGrader.rubricTemplates.list();
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
list(options?: RequestOptions): APIPromise<RubricTemplateListResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Delete a rubric template by ID
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* await client.v1.assignmentGrader.rubricTemplates.delete(
|
|
34
|
+
* 'id',
|
|
35
|
+
* );
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Get a rubric template by ID
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const response =
|
|
45
|
+
* await client.v1.assignmentGrader.rubricTemplates.getByID(
|
|
46
|
+
* 'id',
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
getByID(id: string, options?: RequestOptions): APIPromise<RubricTemplateGetByIDResponse>;
|
|
51
|
+
}
|
|
52
|
+
export interface RubricTemplateCreateResponse {
|
|
53
|
+
/**
|
|
54
|
+
* Template ID
|
|
55
|
+
*/
|
|
56
|
+
_id: string;
|
|
57
|
+
/**
|
|
58
|
+
* Creation timestamp
|
|
59
|
+
*/
|
|
60
|
+
createdAt: string;
|
|
61
|
+
/**
|
|
62
|
+
* Created by user ID
|
|
63
|
+
*/
|
|
64
|
+
createdBy: string;
|
|
65
|
+
/**
|
|
66
|
+
* Grading criteria
|
|
67
|
+
*/
|
|
68
|
+
criteria: Array<RubricTemplateCreateResponse.Criterion>;
|
|
69
|
+
/**
|
|
70
|
+
* Template name
|
|
71
|
+
*/
|
|
72
|
+
name: string;
|
|
73
|
+
/**
|
|
74
|
+
* Organization ID
|
|
75
|
+
*/
|
|
76
|
+
organizationId: string;
|
|
77
|
+
/**
|
|
78
|
+
* Update timestamp
|
|
79
|
+
*/
|
|
80
|
+
updatedAt: string;
|
|
81
|
+
/**
|
|
82
|
+
* Template description
|
|
83
|
+
*/
|
|
84
|
+
description?: string;
|
|
85
|
+
}
|
|
86
|
+
export declare namespace RubricTemplateCreateResponse {
|
|
87
|
+
interface Criterion {
|
|
88
|
+
/**
|
|
89
|
+
* Points possible for this criterion
|
|
90
|
+
*/
|
|
91
|
+
pointsPossible: number;
|
|
92
|
+
/**
|
|
93
|
+
* Title of the criterion
|
|
94
|
+
*/
|
|
95
|
+
title: string;
|
|
96
|
+
/**
|
|
97
|
+
* Description of the criterion
|
|
98
|
+
*/
|
|
99
|
+
description?: string;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
export type RubricTemplateListResponse = Array<RubricTemplateListResponse.RubricTemplateListResponseItem>;
|
|
103
|
+
export declare namespace RubricTemplateListResponse {
|
|
104
|
+
interface RubricTemplateListResponseItem {
|
|
105
|
+
/**
|
|
106
|
+
* Template ID
|
|
107
|
+
*/
|
|
108
|
+
_id: string;
|
|
109
|
+
/**
|
|
110
|
+
* Creation timestamp
|
|
111
|
+
*/
|
|
112
|
+
createdAt: string;
|
|
113
|
+
/**
|
|
114
|
+
* Created by user ID
|
|
115
|
+
*/
|
|
116
|
+
createdBy: string;
|
|
117
|
+
/**
|
|
118
|
+
* Grading criteria
|
|
119
|
+
*/
|
|
120
|
+
criteria: Array<RubricTemplateListResponseItem.Criterion>;
|
|
121
|
+
/**
|
|
122
|
+
* Template name
|
|
123
|
+
*/
|
|
124
|
+
name: string;
|
|
125
|
+
/**
|
|
126
|
+
* Organization ID
|
|
127
|
+
*/
|
|
128
|
+
organizationId: string;
|
|
129
|
+
/**
|
|
130
|
+
* Update timestamp
|
|
131
|
+
*/
|
|
132
|
+
updatedAt: string;
|
|
133
|
+
/**
|
|
134
|
+
* Template description
|
|
135
|
+
*/
|
|
136
|
+
description?: string;
|
|
137
|
+
}
|
|
138
|
+
namespace RubricTemplateListResponseItem {
|
|
139
|
+
interface Criterion {
|
|
140
|
+
/**
|
|
141
|
+
* Points possible for this criterion
|
|
142
|
+
*/
|
|
143
|
+
pointsPossible: number;
|
|
144
|
+
/**
|
|
145
|
+
* Title of the criterion
|
|
146
|
+
*/
|
|
147
|
+
title: string;
|
|
148
|
+
/**
|
|
149
|
+
* Description of the criterion
|
|
150
|
+
*/
|
|
151
|
+
description?: string;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
export interface RubricTemplateGetByIDResponse {
|
|
156
|
+
/**
|
|
157
|
+
* Template ID
|
|
158
|
+
*/
|
|
159
|
+
_id: string;
|
|
160
|
+
/**
|
|
161
|
+
* Creation timestamp
|
|
162
|
+
*/
|
|
163
|
+
createdAt: string;
|
|
164
|
+
/**
|
|
165
|
+
* Created by user ID
|
|
166
|
+
*/
|
|
167
|
+
createdBy: string;
|
|
168
|
+
/**
|
|
169
|
+
* Grading criteria
|
|
170
|
+
*/
|
|
171
|
+
criteria: Array<RubricTemplateGetByIDResponse.Criterion>;
|
|
172
|
+
/**
|
|
173
|
+
* Template name
|
|
174
|
+
*/
|
|
175
|
+
name: string;
|
|
176
|
+
/**
|
|
177
|
+
* Organization ID
|
|
178
|
+
*/
|
|
179
|
+
organizationId: string;
|
|
180
|
+
/**
|
|
181
|
+
* Update timestamp
|
|
182
|
+
*/
|
|
183
|
+
updatedAt: string;
|
|
184
|
+
/**
|
|
185
|
+
* Template description
|
|
186
|
+
*/
|
|
187
|
+
description?: string;
|
|
188
|
+
}
|
|
189
|
+
export declare namespace RubricTemplateGetByIDResponse {
|
|
190
|
+
interface Criterion {
|
|
191
|
+
/**
|
|
192
|
+
* Points possible for this criterion
|
|
193
|
+
*/
|
|
194
|
+
pointsPossible: number;
|
|
195
|
+
/**
|
|
196
|
+
* Title of the criterion
|
|
197
|
+
*/
|
|
198
|
+
title: string;
|
|
199
|
+
/**
|
|
200
|
+
* Description of the criterion
|
|
201
|
+
*/
|
|
202
|
+
description?: string;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
export interface RubricTemplateCreateParams {
|
|
206
|
+
/**
|
|
207
|
+
* Grading criteria
|
|
208
|
+
*/
|
|
209
|
+
criteria: Array<RubricTemplateCreateParams.Criterion>;
|
|
210
|
+
/**
|
|
211
|
+
* Name of the rubric template
|
|
212
|
+
*/
|
|
213
|
+
name: string;
|
|
214
|
+
/**
|
|
215
|
+
* Description of the rubric template
|
|
216
|
+
*/
|
|
217
|
+
description?: string;
|
|
218
|
+
}
|
|
219
|
+
export declare namespace RubricTemplateCreateParams {
|
|
220
|
+
interface Criterion {
|
|
221
|
+
/**
|
|
222
|
+
* Points possible for this criterion
|
|
223
|
+
*/
|
|
224
|
+
pointsPossible: number;
|
|
225
|
+
/**
|
|
226
|
+
* Title of the criterion
|
|
227
|
+
*/
|
|
228
|
+
title: string;
|
|
229
|
+
/**
|
|
230
|
+
* Description of the criterion
|
|
231
|
+
*/
|
|
232
|
+
description?: string;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
export declare namespace RubricTemplates {
|
|
236
|
+
export { type RubricTemplateCreateResponse as RubricTemplateCreateResponse, type RubricTemplateListResponse as RubricTemplateListResponse, type RubricTemplateGetByIDResponse as RubricTemplateGetByIDResponse, type RubricTemplateCreateParams as RubricTemplateCreateParams, };
|
|
237
|
+
}
|
|
238
|
+
//# sourceMappingURL=rubric-templates.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rubric-templates.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/assignment-grader/rubric-templates.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAItE;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO9D;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;CAGzF;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,4BAA4B,CAAC,SAAS,CAAC,CAAC;IAExD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,yBAAiB,4BAA4B,CAAC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,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,yBAAiB,6BAA6B,CAAC;IAC7C,UAAiB,SAAS;QACxB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,0BAA0B,CAAC,SAAS,CAAC,CAAC;IAEtD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,SAAS;QACxB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
export declare class RubricTemplates extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new rubric template
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const rubricTemplate =
|
|
11
|
+
* await client.v1.assignmentGrader.rubricTemplates.create({
|
|
12
|
+
* criteria: [{ pointsPossible: 0, title: 'title' }],
|
|
13
|
+
* name: 'name',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
create(body: RubricTemplateCreateParams, options?: RequestOptions): APIPromise<RubricTemplateCreateResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get all rubric templates
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const rubricTemplates =
|
|
24
|
+
* await client.v1.assignmentGrader.rubricTemplates.list();
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
list(options?: RequestOptions): APIPromise<RubricTemplateListResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Delete a rubric template by ID
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* await client.v1.assignmentGrader.rubricTemplates.delete(
|
|
34
|
+
* 'id',
|
|
35
|
+
* );
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Get a rubric template by ID
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const response =
|
|
45
|
+
* await client.v1.assignmentGrader.rubricTemplates.getByID(
|
|
46
|
+
* 'id',
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
getByID(id: string, options?: RequestOptions): APIPromise<RubricTemplateGetByIDResponse>;
|
|
51
|
+
}
|
|
52
|
+
export interface RubricTemplateCreateResponse {
|
|
53
|
+
/**
|
|
54
|
+
* Template ID
|
|
55
|
+
*/
|
|
56
|
+
_id: string;
|
|
57
|
+
/**
|
|
58
|
+
* Creation timestamp
|
|
59
|
+
*/
|
|
60
|
+
createdAt: string;
|
|
61
|
+
/**
|
|
62
|
+
* Created by user ID
|
|
63
|
+
*/
|
|
64
|
+
createdBy: string;
|
|
65
|
+
/**
|
|
66
|
+
* Grading criteria
|
|
67
|
+
*/
|
|
68
|
+
criteria: Array<RubricTemplateCreateResponse.Criterion>;
|
|
69
|
+
/**
|
|
70
|
+
* Template name
|
|
71
|
+
*/
|
|
72
|
+
name: string;
|
|
73
|
+
/**
|
|
74
|
+
* Organization ID
|
|
75
|
+
*/
|
|
76
|
+
organizationId: string;
|
|
77
|
+
/**
|
|
78
|
+
* Update timestamp
|
|
79
|
+
*/
|
|
80
|
+
updatedAt: string;
|
|
81
|
+
/**
|
|
82
|
+
* Template description
|
|
83
|
+
*/
|
|
84
|
+
description?: string;
|
|
85
|
+
}
|
|
86
|
+
export declare namespace RubricTemplateCreateResponse {
|
|
87
|
+
interface Criterion {
|
|
88
|
+
/**
|
|
89
|
+
* Points possible for this criterion
|
|
90
|
+
*/
|
|
91
|
+
pointsPossible: number;
|
|
92
|
+
/**
|
|
93
|
+
* Title of the criterion
|
|
94
|
+
*/
|
|
95
|
+
title: string;
|
|
96
|
+
/**
|
|
97
|
+
* Description of the criterion
|
|
98
|
+
*/
|
|
99
|
+
description?: string;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
export type RubricTemplateListResponse = Array<RubricTemplateListResponse.RubricTemplateListResponseItem>;
|
|
103
|
+
export declare namespace RubricTemplateListResponse {
|
|
104
|
+
interface RubricTemplateListResponseItem {
|
|
105
|
+
/**
|
|
106
|
+
* Template ID
|
|
107
|
+
*/
|
|
108
|
+
_id: string;
|
|
109
|
+
/**
|
|
110
|
+
* Creation timestamp
|
|
111
|
+
*/
|
|
112
|
+
createdAt: string;
|
|
113
|
+
/**
|
|
114
|
+
* Created by user ID
|
|
115
|
+
*/
|
|
116
|
+
createdBy: string;
|
|
117
|
+
/**
|
|
118
|
+
* Grading criteria
|
|
119
|
+
*/
|
|
120
|
+
criteria: Array<RubricTemplateListResponseItem.Criterion>;
|
|
121
|
+
/**
|
|
122
|
+
* Template name
|
|
123
|
+
*/
|
|
124
|
+
name: string;
|
|
125
|
+
/**
|
|
126
|
+
* Organization ID
|
|
127
|
+
*/
|
|
128
|
+
organizationId: string;
|
|
129
|
+
/**
|
|
130
|
+
* Update timestamp
|
|
131
|
+
*/
|
|
132
|
+
updatedAt: string;
|
|
133
|
+
/**
|
|
134
|
+
* Template description
|
|
135
|
+
*/
|
|
136
|
+
description?: string;
|
|
137
|
+
}
|
|
138
|
+
namespace RubricTemplateListResponseItem {
|
|
139
|
+
interface Criterion {
|
|
140
|
+
/**
|
|
141
|
+
* Points possible for this criterion
|
|
142
|
+
*/
|
|
143
|
+
pointsPossible: number;
|
|
144
|
+
/**
|
|
145
|
+
* Title of the criterion
|
|
146
|
+
*/
|
|
147
|
+
title: string;
|
|
148
|
+
/**
|
|
149
|
+
* Description of the criterion
|
|
150
|
+
*/
|
|
151
|
+
description?: string;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
export interface RubricTemplateGetByIDResponse {
|
|
156
|
+
/**
|
|
157
|
+
* Template ID
|
|
158
|
+
*/
|
|
159
|
+
_id: string;
|
|
160
|
+
/**
|
|
161
|
+
* Creation timestamp
|
|
162
|
+
*/
|
|
163
|
+
createdAt: string;
|
|
164
|
+
/**
|
|
165
|
+
* Created by user ID
|
|
166
|
+
*/
|
|
167
|
+
createdBy: string;
|
|
168
|
+
/**
|
|
169
|
+
* Grading criteria
|
|
170
|
+
*/
|
|
171
|
+
criteria: Array<RubricTemplateGetByIDResponse.Criterion>;
|
|
172
|
+
/**
|
|
173
|
+
* Template name
|
|
174
|
+
*/
|
|
175
|
+
name: string;
|
|
176
|
+
/**
|
|
177
|
+
* Organization ID
|
|
178
|
+
*/
|
|
179
|
+
organizationId: string;
|
|
180
|
+
/**
|
|
181
|
+
* Update timestamp
|
|
182
|
+
*/
|
|
183
|
+
updatedAt: string;
|
|
184
|
+
/**
|
|
185
|
+
* Template description
|
|
186
|
+
*/
|
|
187
|
+
description?: string;
|
|
188
|
+
}
|
|
189
|
+
export declare namespace RubricTemplateGetByIDResponse {
|
|
190
|
+
interface Criterion {
|
|
191
|
+
/**
|
|
192
|
+
* Points possible for this criterion
|
|
193
|
+
*/
|
|
194
|
+
pointsPossible: number;
|
|
195
|
+
/**
|
|
196
|
+
* Title of the criterion
|
|
197
|
+
*/
|
|
198
|
+
title: string;
|
|
199
|
+
/**
|
|
200
|
+
* Description of the criterion
|
|
201
|
+
*/
|
|
202
|
+
description?: string;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
export interface RubricTemplateCreateParams {
|
|
206
|
+
/**
|
|
207
|
+
* Grading criteria
|
|
208
|
+
*/
|
|
209
|
+
criteria: Array<RubricTemplateCreateParams.Criterion>;
|
|
210
|
+
/**
|
|
211
|
+
* Name of the rubric template
|
|
212
|
+
*/
|
|
213
|
+
name: string;
|
|
214
|
+
/**
|
|
215
|
+
* Description of the rubric template
|
|
216
|
+
*/
|
|
217
|
+
description?: string;
|
|
218
|
+
}
|
|
219
|
+
export declare namespace RubricTemplateCreateParams {
|
|
220
|
+
interface Criterion {
|
|
221
|
+
/**
|
|
222
|
+
* Points possible for this criterion
|
|
223
|
+
*/
|
|
224
|
+
pointsPossible: number;
|
|
225
|
+
/**
|
|
226
|
+
* Title of the criterion
|
|
227
|
+
*/
|
|
228
|
+
title: string;
|
|
229
|
+
/**
|
|
230
|
+
* Description of the criterion
|
|
231
|
+
*/
|
|
232
|
+
description?: string;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
export declare namespace RubricTemplates {
|
|
236
|
+
export { type RubricTemplateCreateResponse as RubricTemplateCreateResponse, type RubricTemplateListResponse as RubricTemplateListResponse, type RubricTemplateGetByIDResponse as RubricTemplateGetByIDResponse, type RubricTemplateCreateParams as RubricTemplateCreateParams, };
|
|
237
|
+
}
|
|
238
|
+
//# sourceMappingURL=rubric-templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rubric-templates.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/assignment-grader/rubric-templates.ts"],"names":[],"mappings":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C,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,0BAA0B,CAAC,SAAS,CAAC,CAAC;IAEtD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,SAAS;QACxB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.RubricTemplates = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
8
|
+
class RubricTemplates extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a new rubric template
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const rubricTemplate =
|
|
15
|
+
* await client.v1.assignmentGrader.rubricTemplates.create({
|
|
16
|
+
* criteria: [{ pointsPossible: 0, title: 'title' }],
|
|
17
|
+
* name: 'name',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
create(body, options) {
|
|
22
|
+
return this._client.post('/api/v1/assignment-grader/rubric-templates', { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get all rubric templates
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const rubricTemplates =
|
|
30
|
+
* await client.v1.assignmentGrader.rubricTemplates.list();
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
list(options) {
|
|
34
|
+
return this._client.get('/api/v1/assignment-grader/rubric-templates', options);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Delete a rubric template by ID
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* await client.v1.assignmentGrader.rubricTemplates.delete(
|
|
42
|
+
* 'id',
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
delete(id, options) {
|
|
47
|
+
return this._client.delete((0, path_1.path) `/api/v1/assignment-grader/rubric-templates/${id}`, {
|
|
48
|
+
...options,
|
|
49
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Get a rubric template by ID
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const response =
|
|
58
|
+
* await client.v1.assignmentGrader.rubricTemplates.getByID(
|
|
59
|
+
* 'id',
|
|
60
|
+
* );
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
getByID(id, options) {
|
|
64
|
+
return this._client.get((0, path_1.path) `/api/v1/assignment-grader/rubric-templates/${id}`, options);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.RubricTemplates = RubricTemplates;
|
|
68
|
+
//# sourceMappingURL=rubric-templates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rubric-templates.js","sourceRoot":"","sources":["../../../src/resources/v1/assignment-grader/rubric-templates.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4CAA4C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4CAA4C,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,8CAA8C,EAAE,EAAE,EAAE;YACjF,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,OAAO,CAAC,EAAU,EAAE,OAAwB;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,8CAA8C,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;CACF;AAhED,0CAgEC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
5
|
+
export class RubricTemplates extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a new rubric template
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const rubricTemplate =
|
|
12
|
+
* await client.v1.assignmentGrader.rubricTemplates.create({
|
|
13
|
+
* criteria: [{ pointsPossible: 0, title: 'title' }],
|
|
14
|
+
* name: 'name',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(body, options) {
|
|
19
|
+
return this._client.post('/api/v1/assignment-grader/rubric-templates', { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Get all rubric templates
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const rubricTemplates =
|
|
27
|
+
* await client.v1.assignmentGrader.rubricTemplates.list();
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
list(options) {
|
|
31
|
+
return this._client.get('/api/v1/assignment-grader/rubric-templates', options);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Delete a rubric template by ID
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* await client.v1.assignmentGrader.rubricTemplates.delete(
|
|
39
|
+
* 'id',
|
|
40
|
+
* );
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
delete(id, options) {
|
|
44
|
+
return this._client.delete(path `/api/v1/assignment-grader/rubric-templates/${id}`, {
|
|
45
|
+
...options,
|
|
46
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Get a rubric template by ID
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const response =
|
|
55
|
+
* await client.v1.assignmentGrader.rubricTemplates.getByID(
|
|
56
|
+
* 'id',
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
getByID(id, options) {
|
|
61
|
+
return this._client.get(path `/api/v1/assignment-grader/rubric-templates/${id}`, options);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=rubric-templates.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rubric-templates.mjs","sourceRoot":"","sources":["../../../src/resources/v1/assignment-grader/rubric-templates.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4CAA4C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4CAA4C,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,8CAA8C,EAAE,EAAE,EAAE;YACjF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAU,EAAE,OAAwB;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,8CAA8C,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;CACF"}
|