herum-shared 0.1.25 → 0.1.28
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/fesm2022/herum-shared-constants.mjs +9 -9
- package/fesm2022/herum-shared-constants.mjs.map +1 -1
- package/fesm2022/herum-shared-herum-types.mjs +3 -2
- package/fesm2022/herum-shared-herum-types.mjs.map +1 -1
- package/fesm2022/herum-shared-mongo-services.mjs +2 -2
- package/fesm2022/herum-shared-mongo-services.mjs.map +1 -1
- package/fesm2022/herum-shared-mongo.mjs +2 -2
- package/fesm2022/herum-shared-mongo.mjs.map +1 -1
- package/fesm2022/herum-shared-services.mjs +129 -22
- package/fesm2022/herum-shared-services.mjs.map +1 -1
- package/fesm2022/herum-shared-static-services.mjs +1 -69
- package/fesm2022/herum-shared-static-services.mjs.map +1 -1
- package/fesm2022/herum-shared-table.mjs +17 -4
- package/fesm2022/herum-shared-table.mjs.map +1 -1
- package/fesm2022/herum-shared-utils.mjs +34 -40
- package/fesm2022/herum-shared-utils.mjs.map +1 -1
- package/fesm2022/herum-shared.mjs +156 -166
- package/fesm2022/herum-shared.mjs.map +1 -1
- package/herum-types/index.d.ts +5 -3
- package/index.d.ts +6 -4
- package/mongo/index.d.ts +1 -1
- package/mongo/services/index.d.ts +1 -1
- package/package.json +1 -1
- package/services/index.d.ts +17 -4
- package/static-services/index.d.ts +1 -14
- package/table/index.d.ts +3 -1
- package/utils/index.d.ts +2 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { microResourceAuthorizationType } from 'herum-shared/herum-types';
|
|
2
2
|
import { cloneDeep } from 'lodash';
|
|
3
3
|
import { HttpHeaders } from '@angular/common/http';
|
|
4
4
|
|
|
@@ -164,56 +164,56 @@ const defaultAuthorizationObject = {
|
|
|
164
164
|
view() {
|
|
165
165
|
return cloneDeep({
|
|
166
166
|
propertyPath: `ResourceSubscriptions[${resourceIdPlaceholder}]`,
|
|
167
|
-
authorizationType:
|
|
167
|
+
authorizationType: microResourceAuthorizationType.view,
|
|
168
168
|
...openStatus
|
|
169
169
|
});
|
|
170
170
|
},
|
|
171
171
|
edit() {
|
|
172
172
|
return cloneDeep({
|
|
173
173
|
propertyPath: `ResourceSubscriptions[${resourceIdPlaceholder}]`,
|
|
174
|
-
authorizationType:
|
|
174
|
+
authorizationType: microResourceAuthorizationType.update,
|
|
175
175
|
...closeStatus
|
|
176
176
|
});
|
|
177
177
|
},
|
|
178
178
|
fill() {
|
|
179
179
|
return cloneDeep({
|
|
180
180
|
propertyPath: `ResourceSubscriptions[${resourceIdPlaceholder}]`,
|
|
181
|
-
authorizationType:
|
|
181
|
+
authorizationType: microResourceAuthorizationType.fill,
|
|
182
182
|
...openStatus
|
|
183
183
|
});
|
|
184
184
|
},
|
|
185
185
|
resourceGrade() {
|
|
186
186
|
return cloneDeep({
|
|
187
187
|
propertyPath: `ResourceSubscriptions[${resourceIdPlaceholder}].Grade.Grade`,
|
|
188
|
-
authorizationType:
|
|
188
|
+
authorizationType: microResourceAuthorizationType.view,
|
|
189
189
|
...closeStatus
|
|
190
190
|
});
|
|
191
191
|
},
|
|
192
192
|
questionGrade() {
|
|
193
193
|
return cloneDeep({
|
|
194
194
|
propertyPath: `ResourceSubscriptions[${resourceIdPlaceholder}].QuizData.UserQuestionsData[].Grade`,
|
|
195
|
-
authorizationType:
|
|
195
|
+
authorizationType: microResourceAuthorizationType.view,
|
|
196
196
|
...closeStatus
|
|
197
197
|
});
|
|
198
198
|
},
|
|
199
199
|
areAnswersCorrect() {
|
|
200
200
|
return cloneDeep({
|
|
201
201
|
propertyPath: `ResourceSubscriptions[${resourceIdPlaceholder}].QuizData.UserQuestionsData[].AreAnswersCorrect`,
|
|
202
|
-
authorizationType:
|
|
202
|
+
authorizationType: microResourceAuthorizationType.view,
|
|
203
203
|
...closeStatus
|
|
204
204
|
});
|
|
205
205
|
},
|
|
206
206
|
answerNotes() {
|
|
207
207
|
return cloneDeep({
|
|
208
208
|
propertyPath: `ResourceSubscriptions[${resourceIdPlaceholder}].QuizData.UserQuestionsData[].AnswerNotes[]`,
|
|
209
|
-
authorizationType:
|
|
209
|
+
authorizationType: microResourceAuthorizationType.view,
|
|
210
210
|
...closeStatus
|
|
211
211
|
});
|
|
212
212
|
},
|
|
213
213
|
isCorrect() {
|
|
214
214
|
return cloneDeep({
|
|
215
215
|
propertyPath: `[${resourceIdPlaceholder}].Quiz.Questions[].Answers[].IsCorrect`,
|
|
216
|
-
authorizationType:
|
|
216
|
+
authorizationType: microResourceAuthorizationType.view,
|
|
217
217
|
...closeStatus,
|
|
218
218
|
collectionItemType: 'Resources'
|
|
219
219
|
});
|