herum-shared 0.1.62 → 0.1.64-ofir
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 +1 -0
- package/fesm2022/herum-shared-constants.mjs +25 -3
- package/fesm2022/herum-shared-constants.mjs.map +1 -1
- package/fesm2022/herum-shared-services.mjs +4 -1
- package/fesm2022/herum-shared-services.mjs.map +1 -1
- package/fesm2022/herum-shared.mjs +29 -4
- package/fesm2022/herum-shared.mjs.map +1 -1
- package/index.d.ts +3 -2
- package/package.json +1 -1
package/constants/index.d.ts
CHANGED
|
@@ -146,6 +146,7 @@ declare const defaultAuthorizationObject: {
|
|
|
146
146
|
questionGrade(): BackendMicroResourceAuthorization;
|
|
147
147
|
areAnswersCorrect(): BackendMicroResourceAuthorization;
|
|
148
148
|
answerNotes(): BackendMicroResourceAuthorization;
|
|
149
|
+
fileSubmissionNote(): BackendMicroResourceAuthorization;
|
|
149
150
|
isCorrect(): BackendMicroResourceAuthorization;
|
|
150
151
|
matchingSourceIndex(): BackendMicroResourceAuthorization;
|
|
151
152
|
};
|
|
@@ -211,6 +211,13 @@ const defaultAuthorizationObject = {
|
|
|
211
211
|
...closeStatus
|
|
212
212
|
});
|
|
213
213
|
},
|
|
214
|
+
fileSubmissionNote() {
|
|
215
|
+
return cloneDeep({
|
|
216
|
+
propertyPath: `ResourceSubscriptions[${resourceIdPlaceholder}].FileSubmissions.TeacherFeedbacks[]`,
|
|
217
|
+
authorizationType: MicroResourceAuthorizationType.view,
|
|
218
|
+
...closeStatus
|
|
219
|
+
});
|
|
220
|
+
},
|
|
214
221
|
isCorrect() {
|
|
215
222
|
return cloneDeep({
|
|
216
223
|
propertyPath: `[${resourceIdPlaceholder}]${correctAnswerPropertyPath}`,
|
|
@@ -235,14 +242,29 @@ function getResourceDefaultAuthorizations() {
|
|
|
235
242
|
return [defaultAuthorizationObject.view()];
|
|
236
243
|
}
|
|
237
244
|
function getPublishAuthorization() {
|
|
238
|
-
return [
|
|
245
|
+
return [
|
|
246
|
+
defaultAuthorizationObject.resourceGrade(),
|
|
247
|
+
defaultAuthorizationObject.questionGrade(),
|
|
248
|
+
defaultAuthorizationObject.areAnswersCorrect(),
|
|
249
|
+
defaultAuthorizationObject.answerNotes(),
|
|
250
|
+
defaultAuthorizationObject.fileSubmissionNote(),
|
|
251
|
+
defaultAuthorizationObject.isCorrect(),
|
|
252
|
+
defaultAuthorizationObject.matchingSourceIndex()
|
|
253
|
+
];
|
|
239
254
|
}
|
|
240
255
|
function getMediaDefaultAuthorizations() {
|
|
241
256
|
return [defaultAuthorizationObject.view(), defaultAuthorizationObject.edit()];
|
|
242
257
|
}
|
|
243
258
|
function getPropertyPathsOfPublishAuthorization() {
|
|
244
|
-
return ([
|
|
245
|
-
defaultAuthorizationObject.
|
|
259
|
+
return ([
|
|
260
|
+
defaultAuthorizationObject.resourceGrade().propertyPath,
|
|
261
|
+
defaultAuthorizationObject.questionGrade().propertyPath,
|
|
262
|
+
defaultAuthorizationObject.areAnswersCorrect().propertyPath,
|
|
263
|
+
defaultAuthorizationObject.answerNotes().propertyPath,
|
|
264
|
+
defaultAuthorizationObject.fileSubmissionNote().propertyPath,
|
|
265
|
+
defaultAuthorizationObject.isCorrect().propertyPath,
|
|
266
|
+
defaultAuthorizationObject.matchingSourceIndex().propertyPath
|
|
267
|
+
]);
|
|
246
268
|
}
|
|
247
269
|
const viewPermissionLabel = 'צפייה';
|
|
248
270
|
|