Skip to content

CalendarService

reference
1 min readUpdated

Kind: Class

Source: Frontend/src/app/services/dashboard/mydesk/calendar.service.ts (line 83)

Part of: Frontend

CalendarService groups calendar-related data access for the My Desk dashboard area. It exposes methods for priority data, type data, general data, and calendar retrieval so dashboard components can request each data set through one service.

Methods

MethodSignatureReturns
getPriorityDatagetPriorityData()void
getTypeDatagetTypeData()void
getDatagetData()void
GetCalendarGetCalendar(clientId: number, principleId: number, projectId: number, responsibleId: number, contact: number, team: number, includeTasks: undefined, includeMeetingActivity: undefined, includeVisitActivity: undefined, includeCallActivity: undefined, includeDeliveries: undefined, includeReceivables: undefined, includeBidDueDate: undefined)void

Diagram

mermaid
graph LR
  Dashboard[My Desk Dashboard] --> Service[CalendarService]
  Service --> Priority[getPriorityData()]
  Service --> Type[getTypeData()]
  Service --> Data[getData()]
  Service --> Calendar[GetCalendar()]

Usage

ts
import { CalendarService } from './calendar.service';

export class MyDeskComponent {
  constructor(private readonly calendarService: CalendarService) {}

  loadCalendarData() {
    const priorityData = this.calendarService.getPriorityData();
    const typeData = this.calendarService.getTypeData();
    const data = this.calendarService.getData();
    const calendar = this.calendarService.GetCalendar();

    return { priorityData, typeData, data, calendar };
  }
}

AI Coding Instructions

  • Keep calendar data access inside CalendarService instead of duplicating calls in dashboard components.
  • Preserve the existing method names and casing, including GetCalendar().
  • Check each method’s return type before subscribing, awaiting, or binding its result in a template.
  • Update consuming My Desk components when changing the data shape returned by any service method.

Used by

2 references from 2 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Imported by (2)

  • CalendarComponentFrontend/src/app/components/dashboard/my-desk/calendar/calendar.component.ts:1
  • PamsServicesModuleFrontend/src/app/services/pams-services.module.ts:1

Was this page helpful?

Download as PDF