Constructors

Properties

_currentUserImage: string | Blob = '/assets/user.png'
_navigationService: null | NavigationService = null
_resourceTypeMap: {
    name: string;
    routeSegment: string;
}[] = ...

Type declaration

  • name: string
  • routeSegment: string
injector: Injector
mjNotificationsService: MJNotificationService
notificationService: NotificationService
tabChange: Subject<unknown> = ...
tabChange$: Observable<unknown> = ...
_instance: SharedService
_loaded: boolean = false
_resourceTypes: ResourceTypeEntity[] = []
isLoading$: BehaviorSubject<boolean> = ...

Accessors

Methods

  • Creates a notification in the database and refreshes the UI. Returns the notification object.

    Parameters

    • title: string
    • message: string
    • resourceTypeId: null | string
    • resourceRecordId: null | string
    • resourceConfiguration: any

      Any object, it is converted to a string by JSON.stringify and stored in the database

    • displayToUser: boolean = true

    Returns Promise<UserNotificationEntity>

    Deprecated

    Use MJNotificationService.CreateNotification instead

  • Creates a message that is not saved to the User Notifications table, but is displayed to the user.

    Parameters

    • message: string

      text to display

    • style: "none" | "error" | "success" | "warning" | "info" = "success"

      display styling

    • Optional hideAfter: number

      option to auto hide after the specified delay in milliseconds

    Returns void

    Deprecated

    Use MJNotificationService.CreateSimpleNotification instead

  • Maps a Resource Type record Name column to the corresponding route segment

    Parameters

    • resourceTypeName: string

    Returns null | string

  • Maps a route segment to the corresponding Resource Type record Name column

    Parameters

    • resourceRouteSegment: string

    Returns null | string

  • Utility method that returns true if child is a descendant of parent, false otherwise.

    Parameters

    • parent: ElementRef<any>
    • child: ElementRef<any>

    Returns boolean

  • Refreshes the data for the service. If OnlyIfNeeded is true, then the data is only refreshed if it hasn't been loaded yet.

    Parameters

    • OnlyIfNeeded: boolean = false

    Returns Promise<void>

  • Pre-warms commonly used engines in the background after login. This reduces perceived latency when users navigate to features like Conversations, Dashboards, or Artifacts. Fire-and-forget pattern - errors are logged but don't block the UI.

    Returns void