herum-shared 1.0.7 → 1.0.8
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 -1
- package/fesm2022/herum-shared-constants.mjs +3 -4
- package/fesm2022/herum-shared-constants.mjs.map +1 -1
- package/fesm2022/herum-shared.mjs +3 -4
- package/fesm2022/herum-shared.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/molecules/index.d.ts +1 -1
- package/package.json +1 -1
package/constants/index.d.ts
CHANGED
|
@@ -137,7 +137,7 @@ declare const resourceIdPlaceholder = "$resourceId";
|
|
|
137
137
|
declare const defaultCloseTime: Date;
|
|
138
138
|
declare const defaultOpenTime: Date;
|
|
139
139
|
declare const answersPath = ".Quiz.Questions[].ClosedContent.Answers[]";
|
|
140
|
-
declare const answerNotePropertyPath = ".Quiz.Questions[].ClosedContent.Answers[].
|
|
140
|
+
declare const answerNotePropertyPath = ".Quiz.Questions[].ClosedContent.Answers[].Note";
|
|
141
141
|
declare const correctAnswerPropertyPath = ".Quiz.Questions[].ClosedContent.Answers[].IsCorrect";
|
|
142
142
|
declare const matchingSourceIndexPropertyPath = ".Quiz.Questions[].MatchingContent.Sources[].Index";
|
|
143
143
|
declare const defaultAuthorizationObject: {
|
|
@@ -148,7 +148,7 @@ const resourceIdPlaceholder = "$resourceId";
|
|
|
148
148
|
const defaultCloseTime = new Date('01-01-2999');
|
|
149
149
|
const defaultOpenTime = new Date('01-01-1999');
|
|
150
150
|
const answersPath = `.Quiz.Questions[].ClosedContent.Answers[]`;
|
|
151
|
-
const answerNotePropertyPath = `${answersPath}.
|
|
151
|
+
const answerNotePropertyPath = `${answersPath}.Note`;
|
|
152
152
|
const correctAnswerPropertyPath = `${answersPath}.IsCorrect`;
|
|
153
153
|
const matchingSourceIndexPropertyPath = `.Quiz.Questions[].MatchingContent.Sources[].Index`;
|
|
154
154
|
const openStatus = {
|
|
@@ -245,14 +245,13 @@ function getResourceDefaultAuthorizations() {
|
|
|
245
245
|
return [defaultAuthorizationObject.view()];
|
|
246
246
|
}
|
|
247
247
|
function getPublishAuthorization() {
|
|
248
|
-
return [defaultAuthorizationObject.resourceGrade(), defaultAuthorizationObject.questionGrade(), defaultAuthorizationObject.areAnswersCorrect(), defaultAuthorizationObject.answerNotes(), defaultAuthorizationObject.isCorrect(), defaultAuthorizationObject.matchingSourceIndex()];
|
|
248
|
+
return [defaultAuthorizationObject.resourceGrade(), defaultAuthorizationObject.questionGrade(), defaultAuthorizationObject.areAnswersCorrect(), defaultAuthorizationObject.answerNotes(), defaultAuthorizationObject.isCorrect(), defaultAuthorizationObject.answerNote(), defaultAuthorizationObject.matchingSourceIndex()];
|
|
249
249
|
}
|
|
250
250
|
function getMediaDefaultAuthorizations() {
|
|
251
251
|
return [defaultAuthorizationObject.view(), defaultAuthorizationObject.edit()];
|
|
252
252
|
}
|
|
253
253
|
function getPropertyPathsOfPublishAuthorization() {
|
|
254
|
-
return (
|
|
255
|
-
defaultAuthorizationObject.areAnswersCorrect().propertyPath, defaultAuthorizationObject.answerNotes().propertyPath, defaultAuthorizationObject.isCorrect().propertyPath, defaultAuthorizationObject.matchingSourceIndex().propertyPath]);
|
|
254
|
+
return getPublishAuthorization().map(publishAuthorization => publishAuthorization.propertyPath);
|
|
256
255
|
}
|
|
257
256
|
const viewPermissionLabel = 'צפייה';
|
|
258
257
|
|