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.
@@ -48,7 +48,7 @@ const LessonStudentSubscription = {};
48
48
  const MediaSettings = {};
49
49
  const MenuItem = {};
50
50
  const MicroResourceAuthorizationBase = {};
51
- const MicroResourceAuthorizationType = {};
51
+ const microResourceAuthorizationType = {};
52
52
  const MicroResourceFrontData = {};
53
53
  const ModelInfo = {};
54
54
  const ModifiedResource = {};
@@ -97,10 +97,11 @@ const UserPreview = {};
97
97
  const UserQuestionData = {};
98
98
  const UsersLessonPermissionsDalResponse = {};
99
99
  const ViewModelType = {};
100
+ const HadrachaPage = {};
100
101
 
101
102
  /**
102
103
  * Generated bundle index. Do not edit.
103
104
  */
104
105
 
105
- export { AlignDir, Answer, AnswerNote, AudioVisualConfiguration, AuthenticationResponse, BackendLoginFormat, BackendMicroResourceAuthorization, BaseRowData, ClosedList, Collection, CollectionBase, CollectionSubscription, CommonDependentsToast, ComplexObservableArrowFunctions, DateTimePicker, DbActionResponse, DbListItem, DependentMetadata, DialogConfig, DisplayIdentifiedEntity, EntitiesLayoutProperties, FailedDependentsRequestMetadata, FailedDependentsRequestsContext, FeedPriority, FetchedMessage, FileData, FullHierarchyPartsPlaces, GQLVariable, Gender, GlobalKeyboardEvent, GraphQLFilter, GraphQLOrder, GraphQlOffsetPaging, GraphQlQuery, GraphQlResult, Group, HerumTableParams, HoveredHerumRowTable, IMediaPlayer, ISystemTrackTextChangesService, ISystemUserService, IdentifiedEntity, KeyValue, Lesson, LessonResourceSubscription, LessonStudentSubscription, MediaSettings, MenuItem, MicroResourceAuthorizationBase, MicroResourceAuthorizationType, MicroResourceFrontData, ModelInfo, ModifiedResource, NodeMenuItem, ObservableArrowFunction, PermissionTemplate, ProgressOverView, Question, QuizData, QuizHeaderState, RecursiveTitledOption, Resource, ResourceGradeUpdate, ResourcePreview, ResourceState, ResourceSubscription, SectionListItem, SecurityQuestion, SignInFormData, SignUpField, SignUpFormData, Step, StepStatus, SubscriptionStatus, SystemIdentifier, SystemTreeNodeData, TableActions, TextChange, TextChangeStyle, TimeRange, TimeUnit, Toast, ToastContext, ToastHttpResponseDependencies, ToastState, ToastStatus, ToastTemplate, TreeNode, TreeNodeAssignmentsData, UploadProgressMetadata, UploadProgressStatus, UploadProgressType, User, UserAnswer, UserPreview, UserQuestionData, UsersLessonPermissionsDalResponse, ViewModelType };
106
+ export { AlignDir, Answer, AnswerNote, AudioVisualConfiguration, AuthenticationResponse, BackendLoginFormat, BackendMicroResourceAuthorization, BaseRowData, ClosedList, Collection, CollectionBase, CollectionSubscription, CommonDependentsToast, ComplexObservableArrowFunctions, DateTimePicker, DbActionResponse, DbListItem, DependentMetadata, DialogConfig, DisplayIdentifiedEntity, EntitiesLayoutProperties, FailedDependentsRequestMetadata, FailedDependentsRequestsContext, FeedPriority, FetchedMessage, FileData, FullHierarchyPartsPlaces, GQLVariable, Gender, GlobalKeyboardEvent, GraphQLFilter, GraphQLOrder, GraphQlOffsetPaging, GraphQlQuery, GraphQlResult, Group, HadrachaPage, HerumTableParams, HoveredHerumRowTable, IMediaPlayer, ISystemTrackTextChangesService, ISystemUserService, IdentifiedEntity, KeyValue, Lesson, LessonResourceSubscription, LessonStudentSubscription, MediaSettings, MenuItem, MicroResourceAuthorizationBase, MicroResourceFrontData, ModelInfo, ModifiedResource, NodeMenuItem, ObservableArrowFunction, PermissionTemplate, ProgressOverView, Question, QuizData, QuizHeaderState, RecursiveTitledOption, Resource, ResourceGradeUpdate, ResourcePreview, ResourceState, ResourceSubscription, SectionListItem, SecurityQuestion, SignInFormData, SignUpField, SignUpFormData, Step, StepStatus, SubscriptionStatus, SystemIdentifier, SystemTreeNodeData, TableActions, TextChange, TextChangeStyle, TimeRange, TimeUnit, Toast, ToastContext, ToastHttpResponseDependencies, ToastState, ToastStatus, ToastTemplate, TreeNode, TreeNodeAssignmentsData, UploadProgressMetadata, UploadProgressStatus, UploadProgressType, User, UserAnswer, UserPreview, UserQuestionData, UsersLessonPermissionsDalResponse, ViewModelType, microResourceAuthorizationType };
106
107
  //# sourceMappingURL=herum-shared-herum-types.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"herum-shared-herum-types.mjs","sources":["../../../projects/herum-shared/herum-types/index.ts","../../../projects/herum-shared/herum-types/herum-shared-herum-types.ts"],"sourcesContent":["//temporary file to export all types from herum-shared package\n\nexport type AlignDir = any;\nexport const AlignDir: any = {};\n\nexport type Answer = any;\nexport const Answer: any = {};\n\nexport type AnswerNote = any;\nexport const AnswerNote: any = {};\n\nexport type AudioVisualConfiguration = any;\nexport const AudioVisualConfiguration: any = {};\n\nexport type AuthenticationResponse = any;\nexport const AuthenticationResponse: any = {};\n\nexport type BackendLoginFormat = any;\nexport const BackendLoginFormat: any = {};\n\nexport type BackendMicroResourceAuthorization = any;\nexport const BackendMicroResourceAuthorization: any = {};\n\nexport type BaseRowData = any;\nexport const BaseRowData: any = {};\n\nexport type ClosedList = any;\nexport const ClosedList: any = {};\n\nexport type Collection = any;\nexport const Collection: any = {};\n\nexport type CollectionBase = any;\nexport const CollectionBase: any = {};\n\nexport type CollectionSubscription = any;\nexport const CollectionSubscription: any = {};\n\nexport type CommonDependentsToast = any;\nexport const CommonDependentsToast: any = {};\n\nexport type ComplexObservableArrowFunctions = any;\nexport const ComplexObservableArrowFunctions: any = {};\n\nexport type DateTimePicker = any;\nexport const DateTimePicker: any = {};\n\nexport type DbActionResponse = any;\nexport const DbActionResponse: any = {};\n\nexport type DbListItem<T = any> = any;\nexport const DbListItem: any = {};\n\nexport type DependentMetadata = any;\nexport const DependentMetadata: any = {};\n\nexport type DialogConfig = any;\nexport const DialogConfig: any = {};\n\nexport type DisplayIdentifiedEntity = any;\nexport const DisplayIdentifiedEntity: any = {};\n\nexport type EntitiesLayoutProperties = any;\nexport const EntitiesLayoutProperties: any = {};\n\nexport type FailedDependentsRequestMetadata = any;\nexport const FailedDependentsRequestMetadata: any = {};\n\nexport type FailedDependentsRequestsContext = any;\nexport const FailedDependentsRequestsContext: any = {};\n\nexport type FeedPriority = any;\nexport const FeedPriority: any = {};\n\nexport type FetchedMessage = any;\nexport const FetchedMessage: any = {};\n\nexport type FileData = any;\nexport const FileData: any = {};\n\nexport type FullHierarchyPartsPlaces = any;\nexport const FullHierarchyPartsPlaces: any = {};\n\nexport type GQLVariable = any;\nexport const GQLVariable: any = {};\n\nexport type Gender = any;\nexport const Gender: any = {};\n\nexport type GlobalKeyboardEvent = any;\nexport const GlobalKeyboardEvent: any = {};\n\nexport type GraphQLFilter = any;\nexport const GraphQLFilter: any = {};\n\nexport type GraphQLOrder = any;\nexport const GraphQLOrder: any = {};\n\nexport type GraphQlOffsetPaging = any;\nexport const GraphQlOffsetPaging: any = {};\n\nexport type GraphQlQuery = any;\nexport const GraphQlQuery: any = {};\n\nexport type GraphQlResult = any;\nexport const GraphQlResult: any = {};\n\nexport type Group = any;\nexport const Group: any = {};\n\nexport type HerumTableParams = any;\nexport const HerumTableParams: any = {};\n\nexport type HoveredHerumRowTable = any;\nexport const HoveredHerumRowTable: any = {};\n\nexport type IMediaPlayer = any;\nexport const IMediaPlayer: any = {};\n\nexport type ISystemTrackTextChangesService = any;\nexport const ISystemTrackTextChangesService: any = {};\n\nexport type ISystemUserService = any;\nexport const ISystemUserService: any = {};\n\nexport type IdentifiedEntity = any;\nexport const IdentifiedEntity: any = {};\n\nexport type KeyValue = any;\nexport const KeyValue: any = {};\n\nexport type Lesson = any;\nexport const Lesson: any = {};\n\nexport type LessonResourceSubscription = any;\nexport const LessonResourceSubscription: any = {};\n\nexport type LessonStudentSubscription = any;\nexport const LessonStudentSubscription: any = {};\n\nexport type MediaSettings = any;\nexport const MediaSettings: any = {};\n\nexport type MenuItem = any;\nexport const MenuItem: any = {};\n\nexport type MicroResourceAuthorizationBase = any;\nexport const MicroResourceAuthorizationBase: any = {};\n\nexport type MicroResourceAuthorizationType = any;\nexport const MicroResourceAuthorizationType: any = {};\n\nexport type MicroResourceFrontData = any;\nexport const MicroResourceFrontData: any = {};\n\nexport type ModelInfo = any;\nexport const ModelInfo: any = {};\n\nexport type ModifiedResource = any;\nexport const ModifiedResource: any = {};\n\nexport type NodeMenuItem<T = any> = any;\nexport const NodeMenuItem: any = {};\n\nexport type ObservableArrowFunction = any;\nexport const ObservableArrowFunction: any = {};\n\nexport type PermissionTemplate = any;\nexport const PermissionTemplate: any = {};\n\nexport type ProgressOverView = any;\nexport const ProgressOverView: any = {};\n\nexport type Question = any;\nexport const Question: any = {};\n\nexport type QuizData = any;\nexport const QuizData: any = {};\n\nexport type QuizHeaderState = any;\nexport const QuizHeaderState: any = {};\n\nexport type RecursiveTitledOption = any;\nexport const RecursiveTitledOption: any = {};\n\nexport type Resource = any;\nexport const Resource: any = {};\n\nexport type ResourceGradeUpdate = any;\nexport const ResourceGradeUpdate: any = {};\n\nexport type ResourcePreview = any;\nexport const ResourcePreview: any = {};\n\nexport type ResourceState = any;\nexport const ResourceState: any = {};\n\nexport type ResourceSubscription = any;\nexport const ResourceSubscription: any = {};\n\nexport type SectionListItem = any;\nexport const SectionListItem: any = {};\n\nexport type SecurityQuestion = any;\nexport const SecurityQuestion: any = {};\n\nexport type SignInFormData = any;\nexport const SignInFormData: any = {};\n\nexport type SignUpField = any;\nexport const SignUpField: any = {};\n\nexport type SignUpFormData = any;\nexport const SignUpFormData: any = {};\n\nexport type Step = any;\nexport const Step: any = {};\n\nexport type StepStatus = any;\nexport const StepStatus: any = {};\n\nexport type SubscriptionStatus = any;\nexport const SubscriptionStatus: any = {};\n\nexport type SystemIdentifier = any;\nexport const SystemIdentifier: any = {};\n\nexport type SystemTreeNodeData = any;\nexport const SystemTreeNodeData: any = {};\n\nexport type TableActions = any;\nexport const TableActions: any = {};\n\nexport type TextChange = any;\nexport const TextChange: any = {};\n\nexport type TextChangeStyle = any;\nexport const TextChangeStyle: any = {};\n\nexport type TimeRange = any;\nexport const TimeRange: any = {};\n\nexport type TimeUnit = any;\nexport const TimeUnit: any = {};\n\nexport type Toast = any;\nexport const Toast: any = {};\n\nexport type ToastContext = any;\nexport const ToastContext: any = {};\n\nexport type ToastHttpResponseDependencies = any;\nexport const ToastHttpResponseDependencies: any = {};\n\nexport type ToastState = any;\nexport const ToastState: any = {};\n\nexport type ToastStatus = any;\nexport const ToastStatus: any = {};\n\nexport type ToastTemplate = any;\nexport const ToastTemplate: any = {};\n\nexport type TreeNode = any;\nexport const TreeNode: any = {};\n\nexport type TreeNodeAssignmentsData = any;\nexport const TreeNodeAssignmentsData: any = {};\n\nexport type UploadProgressMetadata = any;\nexport const UploadProgressMetadata: any = {};\n\nexport type UploadProgressStatus = any;\nexport const UploadProgressStatus: any = {};\n\nexport type UploadProgressType = any;\nexport const UploadProgressType: any = {};\n\nexport type User = any;\nexport const User: any = {};\n\nexport type UserAnswer = any;\nexport const UserAnswer: any = {};\n\nexport type UserPreview = any;\nexport const UserPreview: any = {};\n\nexport type UserQuestionData = any;\nexport const UserQuestionData: any = {};\n\nexport type UsersLessonPermissionsDalResponse = any;\nexport const UsersLessonPermissionsDalResponse: any = {};\n\nexport type ViewModelType = any;\nexport const ViewModelType: any = {};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AAGO,MAAM,QAAQ,GAAQ;AAGtB,MAAM,MAAM,GAAQ;AAGpB,MAAM,UAAU,GAAQ;AAGxB,MAAM,wBAAwB,GAAQ;AAGtC,MAAM,sBAAsB,GAAQ;AAGpC,MAAM,kBAAkB,GAAQ;AAGhC,MAAM,iCAAiC,GAAQ;AAG/C,MAAM,WAAW,GAAQ;AAGzB,MAAM,UAAU,GAAQ;AAGxB,MAAM,UAAU,GAAQ;AAGxB,MAAM,cAAc,GAAQ;AAG5B,MAAM,sBAAsB,GAAQ;AAGpC,MAAM,qBAAqB,GAAQ;AAGnC,MAAM,+BAA+B,GAAQ;AAG7C,MAAM,cAAc,GAAQ;AAG5B,MAAM,gBAAgB,GAAQ;A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AM,qBAAqB,GAAQ;AAGnC,MAAM,QAAQ,GAAQ;AAGtB,MAAM,mBAAmB,GAAQ;AAGjC,MAAM,eAAe,GAAQ;AAG7B,MAAM,aAAa,GAAQ;AAG3B,MAAM,oBAAoB,GAAQ;AAGlC,MAAM,eAAe,GAAQ;AAG7B,MAAM,gBAAgB,GAAQ;AAG9B,MAAM,cAAc,GAAQ;AAG5B,MAAM,WAAW,GAAQ;AAGzB,MAAM,cAAc,GAAQ;AAG5B,MAAM,IAAI,GAAQ;AAGlB,MAAM,UAAU,GAAQ;AAGxB,MAAM,kBAAkB,GAAQ;AAGhC,MAAM,gBAAgB,GAAQ;AAG9B,MAAM,kBAAkB,GAAQ;AAGhC,MAAM,YAAY,GAAQ;AAG1B,MAAM,UAAU,GAAQ;AAGxB,MAAM,eAAe,GAAQ;AAG7B,MAAM,SAAS,GAAQ;AAGvB,MAAM,QAAQ,GAAQ;AAGtB,MAAM,KAAK,GAAQ;AAGnB,MAAM,YAAY,GAAQ;AAG1B,MAAM,6BAA6B,GAAQ;AAG3C,MAAM,UAAU,GAAQ;AAGxB,MAAM,WAAW,GAAQ;AAGzB,MAAM,aAAa,GAAQ;AAG3B,MAAM,QAAQ,GAAQ;AAGtB,MAAM,uBAAuB,GAAQ;AAGrC,MAAM,sBAAsB,GAAQ;AAGpC,MAAM,oBAAoB,GAAQ;AAGlC,MAAM,kBAAkB,GAAQ;AAGhC,MAAM,IAAI,GAAQ;AAGlB,MAAM,UAAU,GAAQ;AAGxB,MAAM,WAAW,GAAQ;AAGzB,MAAM,gBAAgB,GAAQ;AAG9B,MAAM,iCAAiC,GAAQ;AAG/C,MAAM,aAAa,GAAQ;;ACtSlC;;AAEG;;;;"}
1
+ {"version":3,"file":"herum-shared-herum-types.mjs","sources":["../../../projects/herum-shared/herum-types/index.ts","../../../projects/herum-shared/herum-types/herum-shared-herum-types.ts"],"sourcesContent":["//temporary file to export all types from herum-shared package\n\nexport type AlignDir = any;\nexport const AlignDir: any = {};\n\nexport type Answer = any;\nexport const Answer: any = {};\n\nexport type AnswerNote = any;\nexport const AnswerNote: any = {};\n\nexport type AudioVisualConfiguration = any;\nexport const AudioVisualConfiguration: any = {};\n\nexport type AuthenticationResponse = any;\nexport const AuthenticationResponse: any = {};\n\nexport type BackendLoginFormat = any;\nexport const BackendLoginFormat: any = {};\n\nexport type BackendMicroResourceAuthorization = any;\nexport const BackendMicroResourceAuthorization: any = {};\n\nexport type BaseRowData = any;\nexport const BaseRowData: any = {};\n\nexport type ClosedList = any;\nexport const ClosedList: any = {};\n\nexport type Collection = any;\nexport const Collection: any = {};\n\nexport type CollectionBase = any;\nexport const CollectionBase: any = {};\n\nexport type CollectionSubscription = any;\nexport const CollectionSubscription: any = {};\n\nexport type CommonDependentsToast = any;\nexport const CommonDependentsToast: any = {};\n\nexport type ComplexObservableArrowFunctions = any;\nexport const ComplexObservableArrowFunctions: any = {};\n\nexport type DateTimePicker = any;\nexport const DateTimePicker: any = {};\n\nexport type DbActionResponse = any;\nexport const DbActionResponse: any = {};\n\nexport type DbListItem<T = any> = any;\nexport const DbListItem: any = {};\n\nexport type DependentMetadata = any;\nexport const DependentMetadata: any = {};\n\nexport type DialogConfig = any;\nexport const DialogConfig: any = {};\n\nexport type DisplayIdentifiedEntity = any;\nexport const DisplayIdentifiedEntity: any = {};\n\nexport type EntitiesLayoutProperties = any;\nexport const EntitiesLayoutProperties: any = {};\n\nexport type FailedDependentsRequestMetadata = any;\nexport const FailedDependentsRequestMetadata: any = {};\n\nexport type FailedDependentsRequestsContext = any;\nexport const FailedDependentsRequestsContext: any = {};\n\nexport type FeedPriority = any;\nexport const FeedPriority: any = {};\n\nexport type FetchedMessage = any;\nexport const FetchedMessage: any = {};\n\nexport type FileData = any;\nexport const FileData: any = {};\n\nexport type FullHierarchyPartsPlaces = any;\nexport const FullHierarchyPartsPlaces: any = {};\n\nexport type GQLVariable = any;\nexport const GQLVariable: any = {};\n\nexport type Gender = any;\nexport const Gender: any = {};\n\nexport type GlobalKeyboardEvent = any;\nexport const GlobalKeyboardEvent: any = {};\n\nexport type GraphQLFilter = any;\nexport const GraphQLFilter: any = {};\n\nexport type GraphQLOrder = any;\nexport const GraphQLOrder: any = {};\n\nexport type GraphQlOffsetPaging = any;\nexport const GraphQlOffsetPaging: any = {};\n\nexport type GraphQlQuery = any;\nexport const GraphQlQuery: any = {};\n\nexport type GraphQlResult = any;\nexport const GraphQlResult: any = {};\n\nexport type Group = any;\nexport const Group: any = {};\n\nexport type HerumTableParams = any;\nexport const HerumTableParams: any = {};\n\nexport type HoveredHerumRowTable = any;\nexport const HoveredHerumRowTable: any = {};\n\nexport type IMediaPlayer = any;\nexport const IMediaPlayer: any = {};\n\nexport type ISystemTrackTextChangesService = any;\nexport const ISystemTrackTextChangesService: any = {};\n\nexport type ISystemUserService = any;\nexport const ISystemUserService: any = {};\n\nexport type IdentifiedEntity = any;\nexport const IdentifiedEntity: any = {};\n\nexport type KeyValue = any;\nexport const KeyValue: any = {};\n\nexport type Lesson = any;\nexport const Lesson: any = {};\n\nexport type LessonResourceSubscription = any;\nexport const LessonResourceSubscription: any = {};\n\nexport type LessonStudentSubscription = any;\nexport const LessonStudentSubscription: any = {};\n\nexport type MediaSettings = any;\nexport const MediaSettings: any = {};\n\nexport type MenuItem = any;\nexport const MenuItem: any = {};\n\nexport type MicroResourceAuthorizationBase = any;\nexport const MicroResourceAuthorizationBase: any = {};\n\nexport type microResourceAuthorizationType = any;\nexport const microResourceAuthorizationType: any = {};\n\nexport type MicroResourceFrontData = any;\nexport const MicroResourceFrontData: any = {};\n\nexport type ModelInfo = any;\nexport const ModelInfo: any = {};\n\nexport type ModifiedResource = any;\nexport const ModifiedResource: any = {};\n\nexport type NodeMenuItem<T = any> = any;\nexport const NodeMenuItem: any = {};\n\nexport type ObservableArrowFunction = any;\nexport const ObservableArrowFunction: any = {};\n\nexport type PermissionTemplate = any;\nexport const PermissionTemplate: any = {};\n\nexport type ProgressOverView = any;\nexport const ProgressOverView: any = {};\n\nexport type Question = any;\nexport const Question: any = {};\n\nexport type QuizData = any;\nexport const QuizData: any = {};\n\nexport type QuizHeaderState = any;\nexport const QuizHeaderState: any = {};\n\nexport type RecursiveTitledOption = any;\nexport const RecursiveTitledOption: any = {};\n\nexport type Resource = any;\nexport const Resource: any = {};\n\nexport type ResourceGradeUpdate = any;\nexport const ResourceGradeUpdate: any = {};\n\nexport type ResourcePreview = any;\nexport const ResourcePreview: any = {};\n\nexport type ResourceState = any;\nexport const ResourceState: any = {};\n\nexport type ResourceSubscription = any;\nexport const ResourceSubscription: any = {};\n\nexport type SectionListItem = any;\nexport const SectionListItem: any = {};\n\nexport type SecurityQuestion = any;\nexport const SecurityQuestion: any = {};\n\nexport type SignInFormData = any;\nexport const SignInFormData: any = {};\n\nexport type SignUpField = any;\nexport const SignUpField: any = {};\n\nexport type SignUpFormData = any;\nexport const SignUpFormData: any = {};\n\nexport type Step = any;\nexport const Step: any = {};\n\nexport type StepStatus = any;\nexport const StepStatus: any = {};\n\nexport type SubscriptionStatus = any;\nexport const SubscriptionStatus: any = {};\n\nexport type SystemIdentifier = any;\nexport const SystemIdentifier: any = {};\n\nexport type SystemTreeNodeData = any;\nexport const SystemTreeNodeData: any = {};\n\nexport type TableActions = any;\nexport const TableActions: any = {};\n\nexport type TextChange = any;\nexport const TextChange: any = {};\n\nexport type TextChangeStyle = any;\nexport const TextChangeStyle: any = {};\n\nexport type TimeRange = any;\nexport const TimeRange: any = {};\n\nexport type TimeUnit = any;\nexport const TimeUnit: any = {};\n\nexport type Toast = any;\nexport const Toast: any = {};\n\nexport type ToastContext = any;\nexport const ToastContext: any = {};\n\nexport type ToastHttpResponseDependencies = any;\nexport const ToastHttpResponseDependencies: any = {};\n\nexport type ToastState = any;\nexport const ToastState: any = {};\n\nexport type ToastStatus = any;\nexport const ToastStatus: any = {};\n\nexport type ToastTemplate = any;\nexport const ToastTemplate: any = {};\n\nexport type TreeNode = any;\nexport const TreeNode: any = {};\n\nexport type TreeNodeAssignmentsData = any;\nexport const TreeNodeAssignmentsData: any = {};\n\nexport type UploadProgressMetadata = any;\nexport const UploadProgressMetadata: any = {};\n\nexport type UploadProgressStatus = any;\nexport const UploadProgressStatus: any = {};\n\nexport type UploadProgressType = any;\nexport const UploadProgressType: any = {};\n\nexport type User = any;\nexport const User: any = {};\n\nexport type UserAnswer = any;\nexport const UserAnswer: any = {};\n\nexport type UserPreview = any;\nexport const UserPreview: any = {};\n\nexport type UserQuestionData = any;\nexport const UserQuestionData: any = {};\n\nexport type UsersLessonPermissionsDalResponse = any;\nexport const UsersLessonPermissionsDalResponse: any = {};\n\nexport type ViewModelType = any;\nexport const ViewModelType: any = {};\n\nexport type HadrachaPage = any;\nexport const HadrachaPage: any = {};","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AAGO,MAAM,QAAQ,GAAQ;AAGtB,MAAM,MAAM,GAAQ;AAGpB,MAAM,UAAU,GAAQ;AAGxB,MAAM,wBAAwB,GAAQ;AAGtC,MAAM,sBAAsB,GAAQ;AAGpC,MAAM,kBAAkB,GAAQ;AAGhC,MAAM,iCAAiC,GAAQ;AAG/C,MAAM,WAAW,GAAQ;AAGzB,MAAM,UAAU,GAAQ;AAGxB,MAAM,UAAU,GAAQ;AAGxB,MAAM,cAAc,GAAQ;AAG5B,MAAM,sBAAsB,GAAQ;AAGpC,MAAM,qBAAqB,GAAQ;AAGnC,MAAM,+BAA+B,GAAQ;AAG7C,MAAM,cAAc,GAAQ;AAG5B,MAAM,gBAAgB,GAAQ;AAG9B,MAAM,UAAU,GAAQ;AAGxB,MAAM,iBAAiB,GAAQ;AAG/B,MAAM,YAAY,GAAQ;AAG1B,MAAM,uBAAuB,GAAQ;AAGrC,MAAM,wBAAwB,GAAQ;AAGtC,MAAM,+BAA+B,GAAQ;AAG7C,MAAM,+BAA+B,GAAQ;AAG7C,MAAM,YAAY,GAAQ;AAG1B,MAAM,cAAc,GAAQ;AAG5B,MAAM,QAAQ,GA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,MAAM,cAAc,GAAQ;AAG5B,MAAM,IAAI,GAAQ;AAGlB,MAAM,UAAU,GAAQ;AAGxB,MAAM,kBAAkB,GAAQ;AAGhC,MAAM,gBAAgB,GAAQ;AAG9B,MAAM,kBAAkB,GAAQ;AAGhC,MAAM,YAAY,GAAQ;AAG1B,MAAM,UAAU,GAAQ;AAGxB,MAAM,eAAe,GAAQ;AAG7B,MAAM,SAAS,GAAQ;AAGvB,MAAM,QAAQ,GAAQ;AAGtB,MAAM,KAAK,GAAQ;AAGnB,MAAM,YAAY,GAAQ;AAG1B,MAAM,6BAA6B,GAAQ;AAG3C,MAAM,UAAU,GAAQ;AAGxB,MAAM,WAAW,GAAQ;AAGzB,MAAM,aAAa,GAAQ;AAG3B,MAAM,QAAQ,GAAQ;AAGtB,MAAM,uBAAuB,GAAQ;AAGrC,MAAM,sBAAsB,GAAQ;AAGpC,MAAM,oBAAoB,GAAQ;AAGlC,MAAM,kBAAkB,GAAQ;AAGhC,MAAM,IAAI,GAAQ;AAGlB,MAAM,UAAU,GAAQ;AAGxB,MAAM,WAAW,GAAQ;AAGzB,MAAM,gBAAgB,GAAQ;AAG9B,MAAM,iCAAiC,GAAQ;AAG/C,MAAM,aAAa,GAAQ;AAG3B,MAAM,YAAY,GAAQ;;ACzSjC;;AAEG;;;;"}
@@ -6,9 +6,9 @@ import { Subject, EMPTY, forkJoin, BehaviorSubject } from 'rxjs';
6
6
  import { HERUM_SHARED_CONFIG_TOKEN } from 'herum-shared/environment';
7
7
  import * as i1 from '@angular/material/dialog';
8
8
  import * as i2 from '@angular/common/http';
9
- import * as i3 from 'herum-shared/static-services';
10
- import { StorageService } from 'herum-shared/static-services';
9
+ import * as i3 from 'herum-shared/services';
11
10
  import { catchError, switchMap } from 'rxjs/operators';
11
+ import { StorageService } from 'herum-shared/static-services';
12
12
 
13
13
  class ErrorsHandlerService {
14
14
  dialog;
@@ -1 +1 @@
1
- {"version":3,"file":"herum-shared-mongo-services.mjs","sources":["../../../projects/herum-shared/mongo/services/errors-handler.service.ts","../../../projects/herum-shared/mongo/services/dependents.service.ts","../../../projects/herum-shared/mongo/services/toasts.service.ts","../../../projects/herum-shared/mongo/services/uploads-manager.service.ts","../../../projects/herum-shared/mongo/services/herum-shared-mongo-services.ts"],"sourcesContent":["import { HttpClient, HttpErrorResponse, HttpRequest } from '@angular/common/http';\r\nimport { Inject, Injectable } from '@angular/core';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { ErrorMessageDialogComponent } from 'herum-shared/errors';\r\nimport { dialogsDescriptions, dialogsTitles } from 'herum-shared/constants';\r\nimport { Subject } from 'rxjs';\r\nimport { CommonDependentsToast, ToastHttpResponseDependencies } from 'herum-shared/herum-types';\r\nimport { FailedDependentsRequestsContext, ComplexObservableArrowFunctions } from 'herum-shared/herum-types';\r\nimport { EnvironmentConfig, HERUM_SHARED_CONFIG_TOKEN } from 'herum-shared/environment';\r\nimport { UtilsService } from 'herum-shared/static-services';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ErrorsHandlerService {\r\n\r\n isErrorPopupCurrentlyOpened: boolean = false;\r\n\r\n failedReportUploadProgressRequests: HttpRequest<any>[] = [];\r\n failedDependentsRequestsContext: FailedDependentsRequestsContext = {};\r\n\r\n dependentRequestId$: Subject<string> = new Subject();\r\n reportUploadProgressRequest$: Subject<string> = new Subject();\r\n\r\n commonDependentsErrorToast$: Subject<CommonDependentsToast> = new Subject();\r\n errorToast$: Subject<ToastHttpResponseDependencies> = new Subject();\r\n\r\n constructor(\r\n private dialog: MatDialog,\r\n private http: HttpClient,\r\n private utilsService: UtilsService,\r\n @Inject(HERUM_SHARED_CONFIG_TOKEN) private environmentConfig: EnvironmentConfig) { }\r\n\r\n handleError(errorStatus: number, errorData?: any) {\r\n if (!errorData)\r\n return;\r\n\r\n let url: string = errorData?.url;\r\n\r\n if (errorData.headers?.dependentId) {\r\n const commonDependentsErrorToast: CommonDependentsToast = { commonDependentsId: errorData.commonDependentsId, numberOfObservableArrowFunctions: errorData.numberOfObservableArrowFunctions, errorStatus }\r\n this.handleDependentRequestError(commonDependentsErrorToast, errorData.headers?.dependentId);\r\n }\r\n\r\n if (errorData.headers?.reportUploadProgressId)\r\n this.handleReportUploadProgressRequestError(errorData.headers.reportUploadProgressId);\r\n\r\n const isErrorToastNeeded: boolean = this.isErrorToastNeeded(errorData, errorStatus);\r\n\r\n if (isErrorToastNeeded)\r\n this.handleErrorToast(errorData)\r\n\r\n if (errorData == 'CRITICAL')\r\n this.handleInternalServerError(true);\r\n\r\n switch (errorStatus) {\r\n case 401: this.handleUnauthorizedError(); break;\r\n case 403: this.handleForbiddenError(!isErrorToastNeeded); break;\r\n case 409: this.handleConflictError(); break;\r\n case 500: this.handleInternalServerError(); break;\r\n case 504: this.handleTimeoutError(!isErrorToastNeeded); break;\r\n default: break;\r\n }\r\n\r\n if (!url?.includes('Activity'))\r\n this.http.post(this.environmentConfig?.environment?.userAction, errorData).subscribe();\r\n }\r\n\r\n setFailedReportUploadProgressRequests(failedReportUploadProgressRequest: HttpRequest<any>) {\r\n this.failedReportUploadProgressRequests.push(failedReportUploadProgressRequest);\r\n }\r\n\r\n private handleUnauthorizedError() {\r\n console.error(\"Unauthorized error\");\r\n }\r\n\r\n private handleConflictError() {\r\n console.error(\"Conflict error\");\r\n }\r\n\r\n private handleForbiddenError(isErrorPopupNeeded: boolean) {\r\n if (this.isErrorPopupCurrentlyOpened || !isErrorPopupNeeded) return;\r\n this.isErrorPopupCurrentlyOpened = true;\r\n\r\n const dialogRef = this.dialog.open(ErrorMessageDialogComponent, {\r\n data: { title: dialogsTitles.userError, description: dialogsDescriptions.forbiddenServerError }\r\n });\r\n\r\n dialogRef.afterClosed().subscribe(result => this.isErrorPopupCurrentlyOpened = false);\r\n }\r\n\r\n private handleTimeoutError(isErrorPopupNeeded: boolean) {\r\n if (this.isErrorPopupCurrentlyOpened || !isErrorPopupNeeded) return;\r\n this.isErrorPopupCurrentlyOpened = true;\r\n\r\n const dialogRef = this.dialog.open(ErrorMessageDialogComponent, {\r\n data: { title: dialogsTitles.timeoutError, description: dialogsDescriptions.timeoutError }\r\n });\r\n\r\n dialogRef.afterClosed().subscribe(result => this.isErrorPopupCurrentlyOpened = false);\r\n }\r\n\r\n private handleInternalServerError(isCritical: boolean = false) {\r\n if (this.isErrorPopupCurrentlyOpened)\r\n return;\r\n\r\n this.isErrorPopupCurrentlyOpened = true;\r\n\r\n const dialogRef = this.dialog.open(ErrorMessageDialogComponent, {\r\n data: {\r\n title: dialogsTitles.serverError, description: isCritical ?\r\n dialogsDescriptions.criticalServerError : dialogsDescriptions.serverError\r\n }\r\n });\r\n\r\n dialogRef.afterClosed().subscribe(result => {\r\n this.isErrorPopupCurrentlyOpened = false;\r\n });\r\n }\r\n\r\n private handleDependentRequestError(commonDependentsErrorToast: CommonDependentsToast, dependentRequestId: string) {\r\n this.dependentRequestId$.next(dependentRequestId);\r\n this.commonDependentsErrorToast$.next(commonDependentsErrorToast);\r\n }\r\n\r\n private handleReportUploadProgressRequestError(reportUploadProgressRequestId: string) {\r\n this.reportUploadProgressRequest$.next(reportUploadProgressRequestId);\r\n }\r\n\r\n private isErrorToastNeeded(errorData: any, errorCode: number): boolean {\r\n if (errorData === 'CRITICAL' || errorCode === 500 || errorData.headers?.skipToast)\r\n return false;\r\n\r\n return !!this.utilsService.getDisplayedNameForMongoMethodByUserActivity(errorData.url);\r\n }\r\n\r\n private handleErrorToast(errorData: any) {\r\n if (errorData.headers?.dependentId) {\r\n this.commonDependentsErrorToast$.next({\r\n commonDependentsId: errorData.headers.commonDependentsId,\r\n numberOfObservableArrowFunctions: Number(errorData.headers.numberOfObservableArrowFunctions),\r\n errorStatus: errorData.status\r\n })\r\n return;\r\n }\r\n this.errorToast$.next({\r\n url: errorData.url,\r\n status: errorData.status\r\n })\r\n }\r\n\r\n setChainedFailedObservableFunctions(dependentId: string, error: HttpErrorResponse, failedComplexObservableArrowFunctions: ComplexObservableArrowFunctions, initialValue?: any) {\r\n if (Array.isArray(failedComplexObservableArrowFunctions[0]) && this.failedDependentsRequestsContext[dependentId])\r\n this.failedDependentsRequestsContext[dependentId].failedComplexObservableArrowFunctions[0].push(failedComplexObservableArrowFunctions[0]);\r\n else\r\n this.failedDependentsRequestsContext[dependentId] = initialValue ? { error, failedComplexObservableArrowFunctions, initialValue } : { error, failedComplexObservableArrowFunctions };\r\n }\r\n}","import { Injectable } from '@angular/core';\r\nimport { EMPTY, Observable, forkJoin } from 'rxjs';\r\nimport { catchError, switchMap } from 'rxjs/operators';\r\nimport { ErrorsHandlerService } from './errors-handler.service';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\n\r\nimport { ComplexObservableArrowFunctions, ObservableArrowFunction, DependentMetadata } from 'herum-shared/herum-types';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class DependentsService {\r\n\r\n dependentMetadata: DependentMetadata = {\r\n dependentId: 0,\r\n commonDependentsId: 0,\r\n numberOfObservableArrowFunctions: 0\r\n };\r\n\r\n constructor(private errorsHandlerService: ErrorsHandlerService) { }\r\n\r\n chainObservableFunctions(complexFunctions: ComplexObservableArrowFunctions, initialValue?: any) {\r\n this.dependentMetadata.numberOfObservableArrowFunctions = 0;\r\n ++this.dependentMetadata.commonDependentsId;\r\n\r\n this.calculateNumberOfObservableFunctions(complexFunctions);\r\n\r\n if (!complexFunctions.length)\r\n return EMPTY;\r\n\r\n const initialFunction: ObservableArrowFunction[] | ObservableArrowFunction = complexFunctions[0];\r\n let initialObservable: Observable<any> = this.setInitialObservable(complexFunctions, initialFunction, initialValue);\r\n return this.chainObservables(complexFunctions, initialObservable);\r\n }\r\n\r\n private setInitialObservable(complexFunctions: ComplexObservableArrowFunctions, initialFunction: ObservableArrowFunction[] | ObservableArrowFunction, initialValue?: any) {\r\n return (Array.isArray(initialFunction)) ?\r\n this.handleInitialComplexFunction(complexFunctions, initialFunction, initialValue) :\r\n this.handleInitialFunction(complexFunctions, initialFunction, initialValue);\r\n }\r\n\r\n private handleInitialComplexFunction(complexFunctions: ComplexObservableArrowFunctions, initialFunctions: ObservableArrowFunction[], initialValue?: any): Observable<any[]> {\r\n let initialObservable: Observable<any>[] =\r\n initialFunctions.map((innerFunction: ObservableArrowFunction, initialFunctionIndex: number) => {\r\n const currentId: number = (++this.dependentMetadata.dependentId)\r\n const innerObservable: Observable<any> = initialValue ?\r\n innerFunction(initialValue, { ...this.dependentMetadata, dependentId: currentId })\r\n : innerFunction({ ...this.dependentMetadata, dependentId: currentId });\r\n\r\n return innerObservable.pipe(\r\n catchError((error: HttpErrorResponse) => {\r\n const hasNextDependentFunctionsExist: boolean = complexFunctions.slice(initialFunctionIndex + 1).length > 0;\r\n const slicedFunctions = hasNextDependentFunctionsExist ? [[initialFunctions[initialFunctionIndex]], ...complexFunctions.slice(initialFunctionIndex + 1)] : [[initialFunctions[initialFunctionIndex]]];\r\n this.errorsHandlerService.setChainedFailedObservableFunctions(currentId.toString(), error, slicedFunctions, initialValue);\r\n return EMPTY;\r\n })\r\n )\r\n });\r\n return forkJoin(initialObservable);\r\n }\r\n\r\n private handleInitialFunction(complexFunctions: ComplexObservableArrowFunctions, initialFunction: ObservableArrowFunction, initialValue?: any): Observable<any> {\r\n return (initialValue && !Array.isArray(initialFunction)) ?\r\n\r\n initialFunction(initialValue, { ...this.dependentMetadata, dependentId: ++this.dependentMetadata.dependentId }\r\n )\r\n : initialFunction({ ...this.dependentMetadata, dependentId: ++this.dependentMetadata.dependentId }\r\n )\r\n .pipe(\r\n catchError((error: HttpErrorResponse) => {\r\n initialValue ?\r\n this.errorsHandlerService.setChainedFailedObservableFunctions(this.dependentMetadata.dependentId.toString(), error, complexFunctions, initialValue) :\r\n this.errorsHandlerService.setChainedFailedObservableFunctions(this.dependentMetadata.dependentId.toString(), error, complexFunctions);\r\n return EMPTY;\r\n })\r\n )\r\n }\r\n\r\n private chainObservables(complexFunctions: ComplexObservableArrowFunctions, initialObservable: Observable<any>) {\r\n return complexFunctions.slice(1).reduce((acc, currentFunction, functionsIndex) => {\r\n return acc.pipe(\r\n switchMap((result: any) => {\r\n return (Array.isArray(currentFunction)) ?\r\n this.handleCurrentChainedComplexObservable(complexFunctions, currentFunction, result, functionsIndex)\r\n :\r\n this.handleCurrentChainedObservable(complexFunctions, currentFunction, result, functionsIndex);\r\n })\r\n );\r\n }, initialObservable);\r\n }\r\n\r\n private handleCurrentChainedComplexObservable(complexFunctions: ComplexObservableArrowFunctions, currentFunctions: ObservableArrowFunction[], result: any, functionsIndex: number) {\r\n const observables = currentFunctions.map((innerFunction: ObservableArrowFunction, innerFunctionIndex: number) => {\r\n const currentId: number = (++this.dependentMetadata.dependentId);\r\n return innerFunction(result, { ...this.dependentMetadata, dependentId: currentId }).pipe(\r\n catchError((error: HttpErrorResponse) => {\r\n const hasNextDependentFunctionsExist: boolean = complexFunctions.slice(functionsIndex + 2).length > 0;\r\n const slicedFunctions = hasNextDependentFunctionsExist ? [[currentFunctions[innerFunctionIndex]], ...complexFunctions.slice(functionsIndex + 2)] : [[currentFunctions[innerFunctionIndex]]];\r\n this.errorsHandlerService.setChainedFailedObservableFunctions(currentId.toString(), error, slicedFunctions, result);\r\n return EMPTY;\r\n })\r\n );\r\n });\r\n return forkJoin(observables);\r\n }\r\n\r\n handleCurrentChainedObservable(complexFunctions: ComplexObservableArrowFunctions, currentFunction: ObservableArrowFunction, result: any, functionsIndex: number) {\r\n return currentFunction(result, { ...this.dependentMetadata, dependentId: ++this.dependentMetadata.dependentId }).pipe(\r\n catchError((error: HttpErrorResponse) => {\r\n this.errorsHandlerService.setChainedFailedObservableFunctions(this.dependentMetadata.dependentId.toString(), error, complexFunctions.slice(functionsIndex + 1), result);\r\n return EMPTY;\r\n })\r\n );\r\n }\r\n\r\n private calculateNumberOfObservableFunctions(complexObservableArrowFunctions: ComplexObservableArrowFunctions) {\r\n complexObservableArrowFunctions.forEach(complexObservableArrowFunction => {\r\n if (!Array.isArray(complexObservableArrowFunction))\r\n ++this.dependentMetadata.numberOfObservableArrowFunctions;\r\n else\r\n this.calculateNumberOfObservableFunctions(complexObservableArrowFunction as ObservableArrowFunction[]);\r\n })\r\n }\r\n}","import { Inject, Injectable } from '@angular/core';\r\nimport { BehaviorSubject } from 'rxjs';\r\nimport { toastStates, toastStatuses, toastContext, getToastsTemplates } from 'herum-shared/constants';\r\nimport { Toast, ToastStatus, ToastHttpResponseDependencies, ToastTemplate } from 'herum-shared/herum-types';\r\nimport { StorageService, UtilsService } from 'herum-shared/static-services';\r\nimport { ErrorsHandlerService } from './errors-handler.service';\r\nimport { EnvironmentConfig, HERUM_SHARED_CONFIG_TOKEN } from 'herum-shared/environment';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ToastsService {\r\n\r\n toast$: BehaviorSubject<Toast> = new BehaviorSubject<Toast>(undefined);\r\n toastId: number = 0;\r\n toastsTemplates: { [key: string]: ToastTemplate };\r\n\r\n constructor(\r\n private errorsHandlerService: ErrorsHandlerService,\r\n private utilsService: UtilsService,\r\n @Inject(HERUM_SHARED_CONFIG_TOKEN) private environmentConfig: EnvironmentConfig\r\n ) {\r\n this.errorsHandlerService.errorToast$?.subscribe(toastHttpResponseDependencies => this.createToastBasedOnHttpResponse(toastHttpResponseDependencies));\r\n\r\n this.toastsTemplates = getToastsTemplates(this.environmentConfig?.mongoUpdates, this.environmentConfig?.authenticationPaths);\r\n }\r\n\r\n createToastBasedOnHttpResponse(toastHttpResponseDependencies: ToastHttpResponseDependencies) {\r\n if (!toastHttpResponseDependencies)\r\n return;\r\n\r\n let urlRequest: string = toastHttpResponseDependencies?.url;\r\n let mongoMethodDisplayedName: string | undefined = this.utilsService.getDisplayedNameForMongoMethodByUserActivity(urlRequest);\r\n\r\n if (!mongoMethodDisplayedName)\r\n return;\r\n\r\n let status: ToastStatus = this.setToastStatus(toastHttpResponseDependencies.status);\r\n let content: string = status === toastStatuses.success ?\r\n toastContext[status.toString()](mongoMethodDisplayedName) :\r\n this.findErrorMessageByStatusCode(toastHttpResponseDependencies.status.toString(), mongoMethodDisplayedName);\r\n\r\n this.showToast(toastContext.title(mongoMethodDisplayedName), content, status);\r\n }\r\n\r\n findErrorMessageByStatusCode(statusCode: string, mongoMethodDisplayedName: string): string {\r\n if (!toastContext.statusCodes[statusCode])\r\n statusCode = 'genericError'\r\n\r\n return toastContext.statusCodes[statusCode](mongoMethodDisplayedName);\r\n }\r\n\r\n showErrorToast(toastContextKey: string) {\r\n if (!this.toastsTemplates[toastContextKey])\r\n return;\r\n\r\n let content: string = this.toastsTemplates[toastContextKey][toastStatuses.error];\r\n let title: string = this.toastsTemplates[toastContextKey].title;\r\n\r\n this.showToast(title, content, toastStatuses.error);\r\n }\r\n\r\n showSuccessToast(toastContextKey: string) {\r\n if (!this.toastsTemplates[toastContextKey])\r\n return;\r\n\r\n let content: string = this.toastsTemplates[toastContextKey][toastStatuses.success];\r\n let title: string = this.toastsTemplates[toastContextKey].title;\r\n\r\n this.showToast(title, content, toastStatuses.success);\r\n }\r\n\r\n showInformationToast(toastContextKey: string) {\r\n if (!this.toastsTemplates[toastContextKey])\r\n return;\r\n\r\n let content: string = this.toastsTemplates[toastContextKey][toastStatuses.information];\r\n let title: string = this.toastsTemplates[toastContextKey].title;\r\n\r\n this.showToast(title, content, toastStatuses.information);\r\n }\r\n\r\n showOnDemandToast(toastContextKey: string, status: ToastStatus, toastStorageKey?: string) {\r\n if (!this.toastsTemplates[toastContextKey])\r\n return;\r\n\r\n if (this.hasToastAlreadyShownAndShouldShowOnce(toastStorageKey))\r\n return;\r\n\r\n let content: string = this.toastsTemplates[toastContextKey][status];\r\n let title: string = this.toastsTemplates[toastContextKey].title;\r\n\r\n this.showToast(title, content, status);\r\n }\r\n\r\n private hasToastAlreadyShownAndShouldShowOnce(toastStorageKey: string): boolean {\r\n if (!toastStorageKey)\r\n return false;\r\n\r\n if (StorageService.getItem(toastStorageKey))\r\n return true;\r\n\r\n StorageService.setItem(toastStorageKey, toastStorageKey);\r\n return false;\r\n }\r\n\r\n showToast(title: string, content: string, status: ToastStatus) {\r\n this.toast$.next({ title, content, status, id: ++this.toastId, state: toastStates.preEnter });\r\n }\r\n\r\n private setToastStatus(statusCode: number): ToastStatus {\r\n if (statusCode >= 200 && statusCode < 299)\r\n return toastStatuses.success;\r\n if (statusCode >= 400 && statusCode < 599)\r\n return toastStatuses.error;\r\n }\r\n}","import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject, Observable } from 'rxjs';\r\nimport { ErrorsHandlerService } from './errors-handler.service';\r\nimport { DependentsService } from './dependents.service';\r\nimport { HttpClient, HttpRequest } from '@angular/common/http';\r\nimport {\r\n ToastStatus, CommonDependentsToast\r\n} from 'herum-shared/herum-types';\r\nimport { uploadStatuses, uploadsManagerKeys, toastStatuses } from 'herum-shared/constants';\r\nimport { ToastsService } from './toasts.service';\r\nimport { ComplexObservableArrowFunctions, FailedDependentsRequestMetadata, UploadProgressMetadata, UploadProgressStatus } from 'herum-shared/herum-types';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class UploadsManagerService {\r\n\r\n uploadsManagerTitle$: BehaviorSubject<string> = new BehaviorSubject<string>(uploadsManagerKeys.defaultUploadsManagerTitle);\r\n uploadsProgressMetadata$: BehaviorSubject<UploadProgressMetadata[]> = new BehaviorSubject<UploadProgressMetadata[]>([]);\r\n\r\n constructor(private errorsHandlerService: ErrorsHandlerService,\r\n private dependentsService: DependentsService,\r\n private http: HttpClient,\r\n private toastsService: ToastsService\r\n ) { this.setSubscriptions(); }\r\n\r\n private setSubscriptions() {\r\n this.errorsHandlerService.dependentRequestId$?.subscribe(dependentRequestId =>\r\n this.updateUploadProgressStatus(dependentRequestId, uploadStatuses.error)\r\n );\r\n\r\n this.errorsHandlerService.reportUploadProgressRequest$.subscribe(reportUploadProgressRequestId =>\r\n this.updateUploadProgressStatus(reportUploadProgressRequestId, uploadStatuses.error));\r\n\r\n this.errorsHandlerService.commonDependentsErrorToast$?.subscribe(commonDependentsErrorToast =>\r\n this.createNewToastBasedOnHttpRequest(commonDependentsErrorToast));\r\n }\r\n\r\n private updateUploadProgressStatus(uploadProgressId: string, status: UploadProgressStatus) {\r\n let uploadsProgressMetadata: UploadProgressMetadata[] = this.uploadsProgressMetadata$.getValue();\r\n uploadsProgressMetadata.find(uploadProgressMetadata => uploadProgressMetadata.id === uploadProgressId).status = status;\r\n this.uploadsProgressMetadata$.next(uploadsProgressMetadata);\r\n }\r\n\r\n retryFailedUploads(): Observable<any>[] {\r\n const uploadsProgressMetadata = this.uploadsProgressMetadata$.getValue();\r\n const failedUploadsProgressIds: string[] = uploadsProgressMetadata\r\n .filter(uploadProgressMetadata => uploadProgressMetadata.status === uploadStatuses.error)\r\n .map(uploadProgressMetadata => uploadProgressMetadata.id);\r\n\r\n return failedUploadsProgressIds.map(failedUploadProgressId => this.retryFailedUpload(failedUploadProgressId));\r\n }\r\n\r\n retryFailedUpload(uploadProgressId: string): Observable<any> {\r\n this.uploadsProgressMetadata$.next(this.uploadsProgressMetadata$.getValue().filter(uploadProgressMetadata => uploadProgressMetadata.id !== uploadProgressId));\r\n\r\n return this.errorsHandlerService.failedDependentsRequestsContext[uploadProgressId] ?\r\n this.handleFailedDependentRequest(uploadProgressId) :\r\n this.handleFailedReportUploadRequest(uploadProgressId);\r\n }\r\n\r\n private handleFailedDependentRequest(uploadProgressId: string) {\r\n const failedDependentRequestContext: FailedDependentsRequestMetadata = this.errorsHandlerService.failedDependentsRequestsContext[uploadProgressId];\r\n const initialValue: any = failedDependentRequestContext.initialValue;\r\n const failedObservableFunctions: ComplexObservableArrowFunctions = failedDependentRequestContext.failedComplexObservableArrowFunctions;\r\n\r\n return initialValue ? this.dependentsService.chainObservableFunctions(failedObservableFunctions, initialValue) :\r\n this.dependentsService.chainObservableFunctions(failedObservableFunctions);\r\n }\r\n\r\n private handleFailedReportUploadRequest(uploadProgressId: string): Observable<string> {\r\n const uploadProgressRequestIndex: number = this.errorsHandlerService.failedReportUploadProgressRequests.findIndex(request => request.headers?.get(uploadsManagerKeys.reportUploadProgressIdHeader) === uploadProgressId);\r\n\r\n if (uploadProgressRequestIndex !== -1) {\r\n const failedUploadProgressRequestRequest: HttpRequest<any> = this.errorsHandlerService.failedReportUploadProgressRequests[uploadProgressRequestIndex];\r\n this.errorsHandlerService.failedReportUploadProgressRequests.splice(uploadProgressRequestIndex, 1);\r\n\r\n return this.http.request(failedUploadProgressRequestRequest.method, failedUploadProgressRequestRequest.url,\r\n {\r\n body: failedUploadProgressRequestRequest.body,\r\n responseType: 'text',\r\n reportProgress: true\r\n }\r\n );\r\n }\r\n }\r\n\r\n addOrUpdateUploadProgressMetadata(uploadProgressMetadata: UploadProgressMetadata) {\r\n let uploadsProgressMetadata = this.uploadsProgressMetadata$.value;\r\n\r\n if (uploadsProgressMetadata.some(existedUploadProgressMetadata => existedUploadProgressMetadata.id == uploadProgressMetadata.id))\r\n uploadsProgressMetadata = uploadsProgressMetadata.filter(exitedUploadProgressMetadata => exitedUploadProgressMetadata.id != uploadProgressMetadata.id);\r\n\r\n uploadsProgressMetadata.push(uploadProgressMetadata);\r\n uploadsProgressMetadata.sort((a, b) => b.requestTime - a.requestTime);\r\n\r\n this.uploadsProgressMetadata$.next(uploadsProgressMetadata);\r\n }\r\n\r\n getUploadProgressById(uploadProgressId: string): UploadProgressMetadata {\r\n return this.uploadsProgressMetadata$.getValue().find(uploadsProgressMetadata => uploadsProgressMetadata.id === uploadProgressId);\r\n }\r\n\r\n createNewToastBasedOnHttpRequest(commonDependentsToast: CommonDependentsToast) {\r\n const { commonDependentsId, numberOfObservableArrowFunctions, errorStatus } = commonDependentsToast;\r\n\r\n if (!commonDependentsId)\r\n return;\r\n\r\n const commonUploadsProgress: UploadProgressMetadata[] = this.uploadsProgressMetadata$.getValue().filter(uploadProgress => uploadProgress.commonDependentsId === commonDependentsId);\r\n let areCommonUploadsProgressFinished: boolean = false;\r\n const areAllCommonUploadsProgressWereSent: boolean = commonUploadsProgress.length === numberOfObservableArrowFunctions;\r\n const areAllCommonUploadsProgressFinishedSuccesfully: boolean = commonUploadsProgress.every(commonUploadProgress => commonUploadProgress.status === uploadStatuses.success);\r\n\r\n if (commonUploadsProgress.every(commonUploadProgress => commonUploadProgress.status !== uploadStatuses.loading) && areAllCommonUploadsProgressWereSent)\r\n areCommonUploadsProgressFinished = true;\r\n\r\n if (!areCommonUploadsProgressFinished && !errorStatus)\r\n return;\r\n\r\n let title: string = this.uploadsManagerTitle$.getValue();\r\n let content: string = areAllCommonUploadsProgressFinishedSuccesfully ? `פעולת ${title} הצליחה.` : this.toastsService.findErrorMessageByStatusCode(errorStatus?.toString(), `${title}`);\r\n let status: ToastStatus = areAllCommonUploadsProgressFinishedSuccesfully ? toastStatuses.success : toastStatuses.error;\r\n\r\n this.toastsService.showToast(title, content, status);\r\n }\r\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.ErrorsHandlerService","i2.DependentsService","i3","i4.ToastsService"],"mappings":";;;;;;;;;;;;MAca,oBAAoB,CAAA;AAcrB,IAAA,MAAA;AACA,IAAA,IAAA;AACA,IAAA,YAAA;AACmC,IAAA,iBAAA;IAf7C,2BAA2B,GAAY,KAAK;IAE5C,kCAAkC,GAAuB,EAAE;IAC3D,+BAA+B,GAAoC,EAAE;AAErE,IAAA,mBAAmB,GAAoB,IAAI,OAAO,EAAE;AACpD,IAAA,4BAA4B,GAAoB,IAAI,OAAO,EAAE;AAE7D,IAAA,2BAA2B,GAAmC,IAAI,OAAO,EAAE;AAC3E,IAAA,WAAW,GAA2C,IAAI,OAAO,EAAE;AAEnE,IAAA,WAAA,CACU,MAAiB,EACjB,IAAgB,EAChB,YAA0B,EACS,iBAAoC,EAAA;QAHvE,IAAA,CAAA,MAAM,GAAN,MAAM;QACN,IAAA,CAAA,IAAI,GAAJ,IAAI;QACJ,IAAA,CAAA,YAAY,GAAZ,YAAY;QACuB,IAAA,CAAA,iBAAiB,GAAjB,iBAAiB;IAAuB;IAErF,WAAW,CAAC,WAAmB,EAAE,SAAe,EA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GAAW,IAAI,CAAC,oBAAoB,CAAC,QAAQ,EAAE;QACxD,IAAI,OAAO,GAAW,8CAA8C,GAAG,CAAA,MAAA,EAAS,KAAK,CAAA,QAAA,CAAU,GAAG,IAAI,CAAC,aAAa,CAAC,4BAA4B,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE,CAAA,EAAG,KAAK,CAAA,CAAE,CAAC;AACtL,QAAA,IAAI,MAAM,GAAgB,8CAA8C,GAAG,aAAa,CAAC,OAAO,GAAG,aAAa,CAAC,KAAK;QAEtH,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;IACtD;wGA9GW,qBAAqB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,oBAAA,EAAA,EAAA,EAAA,KAAA,EAAAC,iBAAA,EAAA,EAAA,EAAA,KAAA,EAAAC,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAAC,aAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAArB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,cAFpB,MAAM,EAAA,CAAA;;4FAEP,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAHjC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACdD;;AAEG;;;;"}
1
+ {"version":3,"file":"herum-shared-mongo-services.mjs","sources":["../../../projects/herum-shared/mongo/services/errors-handler.service.ts","../../../projects/herum-shared/mongo/services/dependents.service.ts","../../../projects/herum-shared/mongo/services/toasts.service.ts","../../../projects/herum-shared/mongo/services/uploads-manager.service.ts","../../../projects/herum-shared/mongo/services/herum-shared-mongo-services.ts"],"sourcesContent":["import { HttpClient, HttpErrorResponse, HttpRequest } from '@angular/common/http';\r\nimport { Inject, Injectable } from '@angular/core';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { ErrorMessageDialogComponent } from 'herum-shared/errors';\r\nimport { dialogsDescriptions, dialogsTitles } from 'herum-shared/constants';\r\nimport { Subject } from 'rxjs';\r\nimport { CommonDependentsToast, ToastHttpResponseDependencies } from 'herum-shared/herum-types';\r\nimport { FailedDependentsRequestsContext, ComplexObservableArrowFunctions } from 'herum-shared/herum-types';\r\nimport { EnvironmentConfig, HERUM_SHARED_CONFIG_TOKEN } from 'herum-shared/environment';\r\nimport { UtilsService } from 'herum-shared/services';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ErrorsHandlerService {\r\n\r\n isErrorPopupCurrentlyOpened: boolean = false;\r\n\r\n failedReportUploadProgressRequests: HttpRequest<any>[] = [];\r\n failedDependentsRequestsContext: FailedDependentsRequestsContext = {};\r\n\r\n dependentRequestId$: Subject<string> = new Subject();\r\n reportUploadProgressRequest$: Subject<string> = new Subject();\r\n\r\n commonDependentsErrorToast$: Subject<CommonDependentsToast> = new Subject();\r\n errorToast$: Subject<ToastHttpResponseDependencies> = new Subject();\r\n\r\n constructor(\r\n private dialog: MatDialog,\r\n private http: HttpClient,\r\n private utilsService: UtilsService,\r\n @Inject(HERUM_SHARED_CONFIG_TOKEN) private environmentConfig: EnvironmentConfig) { }\r\n\r\n handleError(errorStatus: number, errorData?: any) {\r\n if (!errorData)\r\n return;\r\n\r\n let url: string = errorData?.url;\r\n\r\n if (errorData.headers?.dependentId) {\r\n const commonDependentsErrorToast: CommonDependentsToast = { commonDependentsId: errorData.commonDependentsId, numberOfObservableArrowFunctions: errorData.numberOfObservableArrowFunctions, errorStatus }\r\n this.handleDependentRequestError(commonDependentsErrorToast, errorData.headers?.dependentId);\r\n }\r\n\r\n if (errorData.headers?.reportUploadProgressId)\r\n this.handleReportUploadProgressRequestError(errorData.headers.reportUploadProgressId);\r\n\r\n const isErrorToastNeeded: boolean = this.isErrorToastNeeded(errorData, errorStatus);\r\n\r\n if (isErrorToastNeeded)\r\n this.handleErrorToast(errorData)\r\n\r\n if (errorData == 'CRITICAL')\r\n this.handleInternalServerError(true);\r\n\r\n switch (errorStatus) {\r\n case 401: this.handleUnauthorizedError(); break;\r\n case 403: this.handleForbiddenError(!isErrorToastNeeded); break;\r\n case 409: this.handleConflictError(); break;\r\n case 500: this.handleInternalServerError(); break;\r\n case 504: this.handleTimeoutError(!isErrorToastNeeded); break;\r\n default: break;\r\n }\r\n\r\n if (!url?.includes('Activity'))\r\n this.http.post(this.environmentConfig?.environment?.userAction, errorData).subscribe();\r\n }\r\n\r\n setFailedReportUploadProgressRequests(failedReportUploadProgressRequest: HttpRequest<any>) {\r\n this.failedReportUploadProgressRequests.push(failedReportUploadProgressRequest);\r\n }\r\n\r\n private handleUnauthorizedError() {\r\n console.error(\"Unauthorized error\");\r\n }\r\n\r\n private handleConflictError() {\r\n console.error(\"Conflict error\");\r\n }\r\n\r\n private handleForbiddenError(isErrorPopupNeeded: boolean) {\r\n if (this.isErrorPopupCurrentlyOpened || !isErrorPopupNeeded) return;\r\n this.isErrorPopupCurrentlyOpened = true;\r\n\r\n const dialogRef = this.dialog.open(ErrorMessageDialogComponent, {\r\n data: { title: dialogsTitles.userError, description: dialogsDescriptions.forbiddenServerError }\r\n });\r\n\r\n dialogRef.afterClosed().subscribe(result => this.isErrorPopupCurrentlyOpened = false);\r\n }\r\n\r\n private handleTimeoutError(isErrorPopupNeeded: boolean) {\r\n if (this.isErrorPopupCurrentlyOpened || !isErrorPopupNeeded) return;\r\n this.isErrorPopupCurrentlyOpened = true;\r\n\r\n const dialogRef = this.dialog.open(ErrorMessageDialogComponent, {\r\n data: { title: dialogsTitles.timeoutError, description: dialogsDescriptions.timeoutError }\r\n });\r\n\r\n dialogRef.afterClosed().subscribe(result => this.isErrorPopupCurrentlyOpened = false);\r\n }\r\n\r\n private handleInternalServerError(isCritical: boolean = false) {\r\n if (this.isErrorPopupCurrentlyOpened)\r\n return;\r\n\r\n this.isErrorPopupCurrentlyOpened = true;\r\n\r\n const dialogRef = this.dialog.open(ErrorMessageDialogComponent, {\r\n data: {\r\n title: dialogsTitles.serverError, description: isCritical ?\r\n dialogsDescriptions.criticalServerError : dialogsDescriptions.serverError\r\n }\r\n });\r\n\r\n dialogRef.afterClosed().subscribe(result => {\r\n this.isErrorPopupCurrentlyOpened = false;\r\n });\r\n }\r\n\r\n private handleDependentRequestError(commonDependentsErrorToast: CommonDependentsToast, dependentRequestId: string) {\r\n this.dependentRequestId$.next(dependentRequestId);\r\n this.commonDependentsErrorToast$.next(commonDependentsErrorToast);\r\n }\r\n\r\n private handleReportUploadProgressRequestError(reportUploadProgressRequestId: string) {\r\n this.reportUploadProgressRequest$.next(reportUploadProgressRequestId);\r\n }\r\n\r\n private isErrorToastNeeded(errorData: any, errorCode: number): boolean {\r\n if (errorData === 'CRITICAL' || errorCode === 500 || errorData.headers?.skipToast)\r\n return false;\r\n\r\n return !!this.utilsService.getDisplayedNameForMongoMethodByUserActivity(errorData.url);\r\n }\r\n\r\n private handleErrorToast(errorData: any) {\r\n if (errorData.headers?.dependentId) {\r\n this.commonDependentsErrorToast$.next({\r\n commonDependentsId: errorData.headers.commonDependentsId,\r\n numberOfObservableArrowFunctions: Number(errorData.headers.numberOfObservableArrowFunctions),\r\n errorStatus: errorData.status\r\n })\r\n return;\r\n }\r\n this.errorToast$.next({\r\n url: errorData.url,\r\n status: errorData.status\r\n })\r\n }\r\n\r\n setChainedFailedObservableFunctions(dependentId: string, error: HttpErrorResponse, failedComplexObservableArrowFunctions: ComplexObservableArrowFunctions, initialValue?: any) {\r\n if (Array.isArray(failedComplexObservableArrowFunctions[0]) && this.failedDependentsRequestsContext[dependentId])\r\n this.failedDependentsRequestsContext[dependentId].failedComplexObservableArrowFunctions[0].push(failedComplexObservableArrowFunctions[0]);\r\n else\r\n this.failedDependentsRequestsContext[dependentId] = initialValue ? { error, failedComplexObservableArrowFunctions, initialValue } : { error, failedComplexObservableArrowFunctions };\r\n }\r\n}","import { Injectable } from '@angular/core';\r\nimport { EMPTY, Observable, forkJoin } from 'rxjs';\r\nimport { catchError, switchMap } from 'rxjs/operators';\r\nimport { ErrorsHandlerService } from './errors-handler.service';\r\nimport { HttpErrorResponse } from '@angular/common/http';\r\n\r\nimport { ComplexObservableArrowFunctions, ObservableArrowFunction, DependentMetadata } from 'herum-shared/herum-types';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class DependentsService {\r\n\r\n dependentMetadata: DependentMetadata = {\r\n dependentId: 0,\r\n commonDependentsId: 0,\r\n numberOfObservableArrowFunctions: 0\r\n };\r\n\r\n constructor(private errorsHandlerService: ErrorsHandlerService) { }\r\n\r\n chainObservableFunctions(complexFunctions: ComplexObservableArrowFunctions, initialValue?: any) {\r\n this.dependentMetadata.numberOfObservableArrowFunctions = 0;\r\n ++this.dependentMetadata.commonDependentsId;\r\n\r\n this.calculateNumberOfObservableFunctions(complexFunctions);\r\n\r\n if (!complexFunctions.length)\r\n return EMPTY;\r\n\r\n const initialFunction: ObservableArrowFunction[] | ObservableArrowFunction = complexFunctions[0];\r\n let initialObservable: Observable<any> = this.setInitialObservable(complexFunctions, initialFunction, initialValue);\r\n return this.chainObservables(complexFunctions, initialObservable);\r\n }\r\n\r\n private setInitialObservable(complexFunctions: ComplexObservableArrowFunctions, initialFunction: ObservableArrowFunction[] | ObservableArrowFunction, initialValue?: any) {\r\n return (Array.isArray(initialFunction)) ?\r\n this.handleInitialComplexFunction(complexFunctions, initialFunction, initialValue) :\r\n this.handleInitialFunction(complexFunctions, initialFunction, initialValue);\r\n }\r\n\r\n private handleInitialComplexFunction(complexFunctions: ComplexObservableArrowFunctions, initialFunctions: ObservableArrowFunction[], initialValue?: any): Observable<any[]> {\r\n let initialObservable: Observable<any>[] =\r\n initialFunctions.map((innerFunction: ObservableArrowFunction, initialFunctionIndex: number) => {\r\n const currentId: number = (++this.dependentMetadata.dependentId)\r\n const innerObservable: Observable<any> = initialValue ?\r\n innerFunction(initialValue, { ...this.dependentMetadata, dependentId: currentId })\r\n : innerFunction({ ...this.dependentMetadata, dependentId: currentId });\r\n\r\n return innerObservable.pipe(\r\n catchError((error: HttpErrorResponse) => {\r\n const hasNextDependentFunctionsExist: boolean = complexFunctions.slice(initialFunctionIndex + 1).length > 0;\r\n const slicedFunctions = hasNextDependentFunctionsExist ? [[initialFunctions[initialFunctionIndex]], ...complexFunctions.slice(initialFunctionIndex + 1)] : [[initialFunctions[initialFunctionIndex]]];\r\n this.errorsHandlerService.setChainedFailedObservableFunctions(currentId.toString(), error, slicedFunctions, initialValue);\r\n return EMPTY;\r\n })\r\n )\r\n });\r\n return forkJoin(initialObservable);\r\n }\r\n\r\n private handleInitialFunction(complexFunctions: ComplexObservableArrowFunctions, initialFunction: ObservableArrowFunction, initialValue?: any): Observable<any> {\r\n return (initialValue && !Array.isArray(initialFunction)) ?\r\n\r\n initialFunction(initialValue, { ...this.dependentMetadata, dependentId: ++this.dependentMetadata.dependentId }\r\n )\r\n : initialFunction({ ...this.dependentMetadata, dependentId: ++this.dependentMetadata.dependentId }\r\n )\r\n .pipe(\r\n catchError((error: HttpErrorResponse) => {\r\n initialValue ?\r\n this.errorsHandlerService.setChainedFailedObservableFunctions(this.dependentMetadata.dependentId.toString(), error, complexFunctions, initialValue) :\r\n this.errorsHandlerService.setChainedFailedObservableFunctions(this.dependentMetadata.dependentId.toString(), error, complexFunctions);\r\n return EMPTY;\r\n })\r\n )\r\n }\r\n\r\n private chainObservables(complexFunctions: ComplexObservableArrowFunctions, initialObservable: Observable<any>) {\r\n return complexFunctions.slice(1).reduce((acc, currentFunction, functionsIndex) => {\r\n return acc.pipe(\r\n switchMap((result: any) => {\r\n return (Array.isArray(currentFunction)) ?\r\n this.handleCurrentChainedComplexObservable(complexFunctions, currentFunction, result, functionsIndex)\r\n :\r\n this.handleCurrentChainedObservable(complexFunctions, currentFunction, result, functionsIndex);\r\n })\r\n );\r\n }, initialObservable);\r\n }\r\n\r\n private handleCurrentChainedComplexObservable(complexFunctions: ComplexObservableArrowFunctions, currentFunctions: ObservableArrowFunction[], result: any, functionsIndex: number) {\r\n const observables = currentFunctions.map((innerFunction: ObservableArrowFunction, innerFunctionIndex: number) => {\r\n const currentId: number = (++this.dependentMetadata.dependentId);\r\n return innerFunction(result, { ...this.dependentMetadata, dependentId: currentId }).pipe(\r\n catchError((error: HttpErrorResponse) => {\r\n const hasNextDependentFunctionsExist: boolean = complexFunctions.slice(functionsIndex + 2).length > 0;\r\n const slicedFunctions = hasNextDependentFunctionsExist ? [[currentFunctions[innerFunctionIndex]], ...complexFunctions.slice(functionsIndex + 2)] : [[currentFunctions[innerFunctionIndex]]];\r\n this.errorsHandlerService.setChainedFailedObservableFunctions(currentId.toString(), error, slicedFunctions, result);\r\n return EMPTY;\r\n })\r\n );\r\n });\r\n return forkJoin(observables);\r\n }\r\n\r\n handleCurrentChainedObservable(complexFunctions: ComplexObservableArrowFunctions, currentFunction: ObservableArrowFunction, result: any, functionsIndex: number) {\r\n return currentFunction(result, { ...this.dependentMetadata, dependentId: ++this.dependentMetadata.dependentId }).pipe(\r\n catchError((error: HttpErrorResponse) => {\r\n this.errorsHandlerService.setChainedFailedObservableFunctions(this.dependentMetadata.dependentId.toString(), error, complexFunctions.slice(functionsIndex + 1), result);\r\n return EMPTY;\r\n })\r\n );\r\n }\r\n\r\n private calculateNumberOfObservableFunctions(complexObservableArrowFunctions: ComplexObservableArrowFunctions) {\r\n complexObservableArrowFunctions.forEach(complexObservableArrowFunction => {\r\n if (!Array.isArray(complexObservableArrowFunction))\r\n ++this.dependentMetadata.numberOfObservableArrowFunctions;\r\n else\r\n this.calculateNumberOfObservableFunctions(complexObservableArrowFunction as ObservableArrowFunction[]);\r\n })\r\n }\r\n}","import { Inject, Injectable } from '@angular/core';\r\nimport { BehaviorSubject } from 'rxjs';\r\nimport { toastStates, toastStatuses, toastContext, getToastsTemplates } from 'herum-shared/constants';\r\nimport { Toast, ToastStatus, ToastHttpResponseDependencies, ToastTemplate } from 'herum-shared/herum-types';\r\nimport { StorageService } from 'herum-shared/static-services';\r\nimport { UtilsService } from 'herum-shared/services';\r\nimport { ErrorsHandlerService } from './errors-handler.service';\r\nimport { EnvironmentConfig, HERUM_SHARED_CONFIG_TOKEN } from 'herum-shared/environment';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ToastsService {\r\n\r\n toast$: BehaviorSubject<Toast> = new BehaviorSubject<Toast>(undefined);\r\n toastId: number = 0;\r\n toastsTemplates: { [key: string]: ToastTemplate };\r\n\r\n constructor(\r\n private errorsHandlerService: ErrorsHandlerService,\r\n private utilsService: UtilsService,\r\n @Inject(HERUM_SHARED_CONFIG_TOKEN) private environmentConfig: EnvironmentConfig\r\n ) {\r\n this.errorsHandlerService.errorToast$?.subscribe(toastHttpResponseDependencies => this.createToastBasedOnHttpResponse(toastHttpResponseDependencies));\r\n\r\n this.toastsTemplates = getToastsTemplates(this.environmentConfig?.mongoUpdates, this.environmentConfig?.authenticationPaths);\r\n }\r\n\r\n createToastBasedOnHttpResponse(toastHttpResponseDependencies: ToastHttpResponseDependencies) {\r\n if (!toastHttpResponseDependencies)\r\n return;\r\n\r\n let urlRequest: string = toastHttpResponseDependencies?.url;\r\n let mongoMethodDisplayedName: string | undefined = this.utilsService.getDisplayedNameForMongoMethodByUserActivity(urlRequest);\r\n\r\n if (!mongoMethodDisplayedName)\r\n return;\r\n\r\n let status: ToastStatus = this.setToastStatus(toastHttpResponseDependencies.status);\r\n let content: string = status === toastStatuses.success ?\r\n toastContext[status.toString()](mongoMethodDisplayedName) :\r\n this.findErrorMessageByStatusCode(toastHttpResponseDependencies.status.toString(), mongoMethodDisplayedName);\r\n\r\n this.showToast(toastContext.title(mongoMethodDisplayedName), content, status);\r\n }\r\n\r\n findErrorMessageByStatusCode(statusCode: string, mongoMethodDisplayedName: string): string {\r\n if (!toastContext.statusCodes[statusCode])\r\n statusCode = 'genericError'\r\n\r\n return toastContext.statusCodes[statusCode](mongoMethodDisplayedName);\r\n }\r\n\r\n showErrorToast(toastContextKey: string) {\r\n if (!this.toastsTemplates[toastContextKey])\r\n return;\r\n\r\n let content: string = this.toastsTemplates[toastContextKey][toastStatuses.error];\r\n let title: string = this.toastsTemplates[toastContextKey].title;\r\n\r\n this.showToast(title, content, toastStatuses.error);\r\n }\r\n\r\n showSuccessToast(toastContextKey: string) {\r\n if (!this.toastsTemplates[toastContextKey])\r\n return;\r\n\r\n let content: string = this.toastsTemplates[toastContextKey][toastStatuses.success];\r\n let title: string = this.toastsTemplates[toastContextKey].title;\r\n\r\n this.showToast(title, content, toastStatuses.success);\r\n }\r\n\r\n showInformationToast(toastContextKey: string) {\r\n if (!this.toastsTemplates[toastContextKey])\r\n return;\r\n\r\n let content: string = this.toastsTemplates[toastContextKey][toastStatuses.information];\r\n let title: string = this.toastsTemplates[toastContextKey].title;\r\n\r\n this.showToast(title, content, toastStatuses.information);\r\n }\r\n\r\n showOnDemandToast(toastContextKey: string, status: ToastStatus, toastStorageKey?: string) {\r\n if (!this.toastsTemplates[toastContextKey])\r\n return;\r\n\r\n if (this.hasToastAlreadyShownAndShouldShowOnce(toastStorageKey))\r\n return;\r\n\r\n let content: string = this.toastsTemplates[toastContextKey][status];\r\n let title: string = this.toastsTemplates[toastContextKey].title;\r\n\r\n this.showToast(title, content, status);\r\n }\r\n\r\n private hasToastAlreadyShownAndShouldShowOnce(toastStorageKey: string): boolean {\r\n if (!toastStorageKey)\r\n return false;\r\n\r\n if (StorageService.getItem(toastStorageKey))\r\n return true;\r\n\r\n StorageService.setItem(toastStorageKey, toastStorageKey);\r\n return false;\r\n }\r\n\r\n showToast(title: string, content: string, status: ToastStatus) {\r\n this.toast$.next({ title, content, status, id: ++this.toastId, state: toastStates.preEnter });\r\n }\r\n\r\n private setToastStatus(statusCode: number): ToastStatus {\r\n if (statusCode >= 200 && statusCode < 299)\r\n return toastStatuses.success;\r\n if (statusCode >= 400 && statusCode < 599)\r\n return toastStatuses.error;\r\n }\r\n}","import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject, Observable } from 'rxjs';\r\nimport { ErrorsHandlerService } from './errors-handler.service';\r\nimport { DependentsService } from './dependents.service';\r\nimport { HttpClient, HttpRequest } from '@angular/common/http';\r\nimport {\r\n ToastStatus, CommonDependentsToast\r\n} from 'herum-shared/herum-types';\r\nimport { uploadStatuses, uploadsManagerKeys, toastStatuses } from 'herum-shared/constants';\r\nimport { ToastsService } from './toasts.service';\r\nimport { ComplexObservableArrowFunctions, FailedDependentsRequestMetadata, UploadProgressMetadata, UploadProgressStatus } from 'herum-shared/herum-types';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class UploadsManagerService {\r\n\r\n uploadsManagerTitle$: BehaviorSubject<string> = new BehaviorSubject<string>(uploadsManagerKeys.defaultUploadsManagerTitle);\r\n uploadsProgressMetadata$: BehaviorSubject<UploadProgressMetadata[]> = new BehaviorSubject<UploadProgressMetadata[]>([]);\r\n\r\n constructor(private errorsHandlerService: ErrorsHandlerService,\r\n private dependentsService: DependentsService,\r\n private http: HttpClient,\r\n private toastsService: ToastsService\r\n ) { this.setSubscriptions(); }\r\n\r\n private setSubscriptions() {\r\n this.errorsHandlerService.dependentRequestId$?.subscribe(dependentRequestId =>\r\n this.updateUploadProgressStatus(dependentRequestId, uploadStatuses.error)\r\n );\r\n\r\n this.errorsHandlerService.reportUploadProgressRequest$.subscribe(reportUploadProgressRequestId =>\r\n this.updateUploadProgressStatus(reportUploadProgressRequestId, uploadStatuses.error));\r\n\r\n this.errorsHandlerService.commonDependentsErrorToast$?.subscribe(commonDependentsErrorToast =>\r\n this.createNewToastBasedOnHttpRequest(commonDependentsErrorToast));\r\n }\r\n\r\n private updateUploadProgressStatus(uploadProgressId: string, status: UploadProgressStatus) {\r\n let uploadsProgressMetadata: UploadProgressMetadata[] = this.uploadsProgressMetadata$.getValue();\r\n uploadsProgressMetadata.find(uploadProgressMetadata => uploadProgressMetadata.id === uploadProgressId).status = status;\r\n this.uploadsProgressMetadata$.next(uploadsProgressMetadata);\r\n }\r\n\r\n retryFailedUploads(): Observable<any>[] {\r\n const uploadsProgressMetadata = this.uploadsProgressMetadata$.getValue();\r\n const failedUploadsProgressIds: string[] = uploadsProgressMetadata\r\n .filter(uploadProgressMetadata => uploadProgressMetadata.status === uploadStatuses.error)\r\n .map(uploadProgressMetadata => uploadProgressMetadata.id);\r\n\r\n return failedUploadsProgressIds.map(failedUploadProgressId => this.retryFailedUpload(failedUploadProgressId));\r\n }\r\n\r\n retryFailedUpload(uploadProgressId: string): Observable<any> {\r\n this.uploadsProgressMetadata$.next(this.uploadsProgressMetadata$.getValue().filter(uploadProgressMetadata => uploadProgressMetadata.id !== uploadProgressId));\r\n\r\n return this.errorsHandlerService.failedDependentsRequestsContext[uploadProgressId] ?\r\n this.handleFailedDependentRequest(uploadProgressId) :\r\n this.handleFailedReportUploadRequest(uploadProgressId);\r\n }\r\n\r\n private handleFailedDependentRequest(uploadProgressId: string) {\r\n const failedDependentRequestContext: FailedDependentsRequestMetadata = this.errorsHandlerService.failedDependentsRequestsContext[uploadProgressId];\r\n const initialValue: any = failedDependentRequestContext.initialValue;\r\n const failedObservableFunctions: ComplexObservableArrowFunctions = failedDependentRequestContext.failedComplexObservableArrowFunctions;\r\n\r\n return initialValue ? this.dependentsService.chainObservableFunctions(failedObservableFunctions, initialValue) :\r\n this.dependentsService.chainObservableFunctions(failedObservableFunctions);\r\n }\r\n\r\n private handleFailedReportUploadRequest(uploadProgressId: string): Observable<string> {\r\n const uploadProgressRequestIndex: number = this.errorsHandlerService.failedReportUploadProgressRequests.findIndex(request => request.headers?.get(uploadsManagerKeys.reportUploadProgressIdHeader) === uploadProgressId);\r\n\r\n if (uploadProgressRequestIndex !== -1) {\r\n const failedUploadProgressRequestRequest: HttpRequest<any> = this.errorsHandlerService.failedReportUploadProgressRequests[uploadProgressRequestIndex];\r\n this.errorsHandlerService.failedReportUploadProgressRequests.splice(uploadProgressRequestIndex, 1);\r\n\r\n return this.http.request(failedUploadProgressRequestRequest.method, failedUploadProgressRequestRequest.url,\r\n {\r\n body: failedUploadProgressRequestRequest.body,\r\n responseType: 'text',\r\n reportProgress: true\r\n }\r\n );\r\n }\r\n }\r\n\r\n addOrUpdateUploadProgressMetadata(uploadProgressMetadata: UploadProgressMetadata) {\r\n let uploadsProgressMetadata = this.uploadsProgressMetadata$.value;\r\n\r\n if (uploadsProgressMetadata.some(existedUploadProgressMetadata => existedUploadProgressMetadata.id == uploadProgressMetadata.id))\r\n uploadsProgressMetadata = uploadsProgressMetadata.filter(exitedUploadProgressMetadata => exitedUploadProgressMetadata.id != uploadProgressMetadata.id);\r\n\r\n uploadsProgressMetadata.push(uploadProgressMetadata);\r\n uploadsProgressMetadata.sort((a, b) => b.requestTime - a.requestTime);\r\n\r\n this.uploadsProgressMetadata$.next(uploadsProgressMetadata);\r\n }\r\n\r\n getUploadProgressById(uploadProgressId: string): UploadProgressMetadata {\r\n return this.uploadsProgressMetadata$.getValue().find(uploadsProgressMetadata => uploadsProgressMetadata.id === uploadProgressId);\r\n }\r\n\r\n createNewToastBasedOnHttpRequest(commonDependentsToast: CommonDependentsToast) {\r\n const { commonDependentsId, numberOfObservableArrowFunctions, errorStatus } = commonDependentsToast;\r\n\r\n if (!commonDependentsId)\r\n return;\r\n\r\n const commonUploadsProgress: UploadProgressMetadata[] = this.uploadsProgressMetadata$.getValue().filter(uploadProgress => uploadProgress.commonDependentsId === commonDependentsId);\r\n let areCommonUploadsProgressFinished: boolean = false;\r\n const areAllCommonUploadsProgressWereSent: boolean = commonUploadsProgress.length === numberOfObservableArrowFunctions;\r\n const areAllCommonUploadsProgressFinishedSuccesfully: boolean = commonUploadsProgress.every(commonUploadProgress => commonUploadProgress.status === uploadStatuses.success);\r\n\r\n if (commonUploadsProgress.every(commonUploadProgress => commonUploadProgress.status !== uploadStatuses.loading) && areAllCommonUploadsProgressWereSent)\r\n areCommonUploadsProgressFinished = true;\r\n\r\n if (!areCommonUploadsProgressFinished && !errorStatus)\r\n return;\r\n\r\n let title: string = this.uploadsManagerTitle$.getValue();\r\n let content: string = areAllCommonUploadsProgressFinishedSuccesfully ? `פעולת ${title} הצליחה.` : this.toastsService.findErrorMessageByStatusCode(errorStatus?.toString(), `${title}`);\r\n let status: ToastStatus = areAllCommonUploadsProgressFinishedSuccesfully ? toastStatuses.success : toastStatuses.error;\r\n\r\n this.toastsService.showToast(title, content, status);\r\n }\r\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.ErrorsHandlerService","i2.DependentsService","i3","i4.ToastsService"],"mappings":";;;;;;;;;;;;MAca,oBAAoB,CAAA;AAcrB,IAAA,MAAA;AACA,IAAA,IAAA;AACA,IAAA,YAAA;AACmC,IAAA,iBAAA;IAf7C,2BAA2B,GAAY,KAAK;IAE5C,kCAAkC,GAAuB,EAAE;IAC3D,+BAA+B,GAAoC,EAAE;AAErE,IAAA,mBAAmB,GAAoB,IAAI,OAAO,EAAE;AACpD,IAAA,4BAA4B,GAAoB,IAAI,OAAO,EAAE;AAE7D,IAAA,2BAA2B,GAAmC,IAAI,OAAO,EAAE;AAC3E,IAAA,WAAW,GAA2C,IAAI,OAAO,EAAE;AAEnE,IAAA,WAAA,CACU,MAAiB,EACjB,IAAgB,EAChB,YAA0B,EACS,iBAAoC,EAAA;QAHvE,IAAA,CAAA,MAAM,GAAN,MAAM;QACN,IAAA,CAAA,IAAI,GAAJ,IAAI;QACJ,IAAA,CAAA,YAAY,GAAZ,YAAY;QACuB,IAAA,CAAA,iBAAiB,GAAjB,iBAAiB;IAAuB;IAErF,WAAW,CAAC,WAAmB,EAAE,SAAe,EAAA;AAC9C,QAAA,IAAI,CAAC,SAAS;YACZ;AAEF,QAAA,IAAI,GAAG,GAAW,SAAS,EAAE,GAAG;AAEhC,QAAA,IAAI,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE;AAClC,YAAA,MAAM,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B,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE,CAAA,EAAG,KAAK,CAAA,CAAE,CAAC;AACtL,QAAA,IAAI,MAAM,GAAgB,8CAA8C,GAAG,aAAa,CAAC,OAAO,GAAG,aAAa,CAAC,KAAK;QAEtH,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;IACtD;wGA9GW,qBAAqB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,oBAAA,EAAA,EAAA,EAAA,KAAA,EAAAC,iBAAA,EAAA,EAAA,EAAA,KAAA,EAAAC,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAAC,aAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAArB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,cAFpB,MAAM,EAAA,CAAA;;4FAEP,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAHjC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACdD;;AAEG;;;;"}
@@ -6,9 +6,9 @@ import { Subject, EMPTY, forkJoin, BehaviorSubject } from 'rxjs';
6
6
  import { HERUM_SHARED_CONFIG_TOKEN } from 'herum-shared/environment';
7
7
  import * as i1 from '@angular/material/dialog';
8
8
  import * as i2 from '@angular/common/http';
9
- import * as i3 from 'herum-shared/static-services';
10
- import { StorageService } from 'herum-shared/static-services';
9
+ import * as i3 from 'herum-shared/services';
11
10
  import { catchError, switchMap, takeUntil, shareReplay } from 'rxjs/operators';
11
+ import { StorageService } from 'herum-shared/static-services';
12
12
  import * as i1$1 from 'herum-shared/mongo/services';
13
13
  import * as i2$1 from '@angular/common';
14
14
  import { CommonModule } from '@angular/common';