TESSA Web API
    Preparing search index...

    Service for working with a business calendar.

    Implements

    Index

    Constructors

    Methods

    • Offsets from the specified date/time by the specified number of estimated business days..

      Parameters

      • dateTime: string

        Date and time.

      • daysOffset: number

        Offset in working days. Can be a non-integer number.

      • calendarCardId: string

        Calendar card ID.

      • OptionaltimeZoneUtcOffsetMinutes: number

        Time zone offset in minutes.

      Returns Promise<string>

      New date and time.

    • Adds the specified working time in quants to the specified date/time.

      Parameters

      • dateTime: string

        Date and time.

      • calendarCardId: string

        Calendar card ID.

      • quants: number

        Working time in quants.

      • OptionaltimeZoneUtcOffsetMinutes: number

        Time zone offset in minutes.

      Returns Promise<string>

      New date and time.

    • Adds the specified number of actual business days to the specified date/time.

      Parameters

      • dateTime: string

        Date and time.

      • interval: number

        Number of working days.

      • calendarCardId: string

        Calendar card ID.

      • OptionaltimeZoneUtcOffsetMinutes: number

        Time zone offset in minutes.

      Returns Promise<string>

      New date and time.

    • Retrieves information about a calendar by its numeric identifier.

      Parameters

      • calendarIntId: number

        Calendar numeric identifier.

      Returns Promise<null | CalendarInfo>

    • Calculates working hours between two specified dates.

      Parameters

      • dateTimeStart: string

        Start date.

      • dateTimeEnd: string

        End date (must be greater than start date).

      • calendarCardId: string

        Calendar card ID.

      • OptionaltimeZoneUtcOffsetMinutes: number

        Time zone offset in minutes.

      Returns Promise<number>

      Working time in quants between two specified dates.

    • Gets the start of the first work quant of the workday, obtained as an offset from the given date.

      Parameters

      • dateTime: string

        Date in abstract calendar time.

      • daysOffset: number

        Offset in working days.

      • calendarCardId: string

        Calendar card ID.

      • OptionaltimeZoneUtcOffsetMinutes: number

        Time zone offset in minutes.

      Returns Promise<string>

      The date/time in abstract calendar time of the beginning of the first working quant of the working day.

    • Gets the end of the last working quant of the working day, obtained by offset from the given date.

      Parameters

      • dateTime: string

        Date in abstract calendar time.

      • daysOffset: number

        Offset in working days.

      • calendarCardId: string

        Calendar card ID.

      • OptionaltimeZoneUtcOffsetMinutes: number

        Time zone offset in minutes.

      Returns Promise<string>

      Date\time in abstract calendar time of the end of the last working quant of the working day.

    • Checks whether the specified date/time in the abstract calendar time is working date/time.

      Parameters

      • dateTime: string

        Date and time to check.

      • calendarCardId: string

        Calendar card ID.

      • OptionaltimeZoneUtcOffsetMinutes: number

        Time zone offset in minutes.

      Returns Promise<boolean>

      true if the specified date\time is working; otherwise - false.

    • Rebuilds the calendar based on the specified settings, incl. list of exceptions.

      Parameters

      • operationId: string

        Operation ID.

      • calendarCardId: string

        Calendar card ID.

      • rebuildIndexes: boolean = false

        A sign that indexes in calendars need to be rebuilt.

      Returns Promise<void>

    • Checks the calendar for absence of gaps between quants.

      Parameters

      • calendarCardId: string

        Calendar card ID.

      Returns Promise<ValidationResult>

      Validation result.