herum-shared 1.0.10 → 1.0.12-ofir-beta
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/constants/index.d.ts
CHANGED
|
@@ -148,6 +148,7 @@ declare const defaultAuthorizationObject: {
|
|
|
148
148
|
questionGrade(): BackendMicroResourceAuthorization;
|
|
149
149
|
areAnswersCorrect(): BackendMicroResourceAuthorization;
|
|
150
150
|
answerNotes(): BackendMicroResourceAuthorization;
|
|
151
|
+
fileSubmissionNote(): BackendMicroResourceAuthorization;
|
|
151
152
|
isCorrect(): BackendMicroResourceAuthorization;
|
|
152
153
|
answerNote(): BackendMicroResourceAuthorization;
|
|
153
154
|
matchingSourceIndex(): BackendMicroResourceAuthorization;
|
|
@@ -213,6 +213,13 @@ const defaultAuthorizationObject = {
|
|
|
213
213
|
...closeStatus
|
|
214
214
|
});
|
|
215
215
|
},
|
|
216
|
+
fileSubmissionNote() {
|
|
217
|
+
return cloneDeep({
|
|
218
|
+
propertyPath: `ResourceSubscriptions[${resourceIdPlaceholder}].FileSubmissions.TeacherFeedbacks[]`,
|
|
219
|
+
authorizationType: MicroResourceAuthorizationType.view,
|
|
220
|
+
...closeStatus
|
|
221
|
+
});
|
|
222
|
+
},
|
|
216
223
|
isCorrect() {
|
|
217
224
|
return cloneDeep({
|
|
218
225
|
propertyPath: `[${resourceIdPlaceholder}]${correctAnswerPropertyPath}`,
|
|
@@ -245,7 +252,12 @@ function getResourceDefaultAuthorizations() {
|
|
|
245
252
|
return [defaultAuthorizationObject.view()];
|
|
246
253
|
}
|
|
247
254
|
function getPublishAuthorization() {
|
|
248
|
-
return [defaultAuthorizationObject.resourceGrade(), defaultAuthorizationObject.questionGrade(),
|
|
255
|
+
return [defaultAuthorizationObject.resourceGrade(), defaultAuthorizationObject.questionGrade(),
|
|
256
|
+
defaultAuthorizationObject.areAnswersCorrect(), defaultAuthorizationObject.answerNotes(),
|
|
257
|
+
defaultAuthorizationObject.isCorrect(), defaultAuthorizationObject.answerNote(),
|
|
258
|
+
defaultAuthorizationObject.matchingSourceIndex(),
|
|
259
|
+
defaultAuthorizationObject.fileSubmissionNote()
|
|
260
|
+
];
|
|
249
261
|
}
|
|
250
262
|
function getMediaDefaultAuthorizations() {
|
|
251
263
|
return [defaultAuthorizationObject.view(), defaultAuthorizationObject.edit()];
|