Skip to main content

TourTemplate

Template corresponding to tour elements

type TourTemplate implements ShiftPlanTemplate {
abbreviation: String!
backgroundColor: String!
description: String
duration: Int
endTime: Time!
fontColor: String!
id: ShiftPlanTemplateID!
isActive: Boolean!
isDefault: Boolean!
maxWorkTime: Int!
standardForQualifications: [Qualification]
startTime: Time!
timeBlock: TimeBlock!
vehicleType: VehicleCategory
}

Fields​

TourTemplate.abbreviation ● String! non-null scalar​

Abbreviation, which is shown in the shift plan overview

TourTemplate.backgroundColor ● String! non-null scalar​

Background color when visualizing the element in the shift plan (as a hexadecimal number)

TourTemplate.description ● String scalar​

Description, which is shown in the shift plan overview

TourTemplate.duration ● Int scalar​

The default duration for the shifts generated by the templates (needed for the FE caching mechanism).

TourTemplate.endTime ● Time! non-null scalar​

Ending time of the shift

TourTemplate.fontColor ● String! non-null scalar​

Font color when visualizing the element in the shift plan (as a hexadecimal number)

TourTemplate.id ● ShiftPlanTemplateID! non-null scalar​

Unique identifier

TourTemplate.isActive ● Boolean! non-null scalar​

Is the template activated and could it be used in the shift plan?

TourTemplate.isDefault ● Boolean! non-null scalar​

Shows if the current template is the default one for the current residential park.

TourTemplate.maxWorkTime ● Int! non-null scalar​

The max total work time for a tour.

TourTemplate.standardForQualifications ● [Qualification] list scalar​

The qualifications for which the current template should be used as standard

TourTemplate.startTime ● Time! non-null scalar​

Starting time of the shift

TourTemplate.timeBlock ● TimeBlock! non-null enum​

Time block of the tour (early, late or night)

TourTemplate.vehicleType ● VehicleCategory enum​

The travel mode tours created from this template are routed with. null if the template sets none; the residential park's routingSettings.defaultVehicleType applies then.

Interfaces​

ShiftPlanTemplate interface​

A template used in the shift plan for the creation of shift elements

Returned By​

createTourTemplate mutation ● editDefaultTourTemplateTimes mutation ● tourTemplate query ● tourTemplateByName query ● tourTemplates query ● tourTemplatesForActivityBlock query ● updateTourTemplate mutation

Member Of​

DefaultTour object