Module: group_headers

Copyright 2020 Parsable, Inc
API address: /api/group_headers

ModuleServicesData typesConstants
group_headersGroupHeaderContentService
CategoryDiff
EquipmentIcon
IconDiff
NoticeHeader
NoticeIcon
StepGroupCategory
StepGroupCategoryParams
StepGroupHeaders

Data structures

Struct: EquipmentIcon

KeyFieldTypeDescriptionRequirednessDefault value
1idstringunique identifier for the icon default
2iconDocumentdocument.Documentdefault
3descripstringdefault
200latestChangediff.Changeoptional

An equipment icon for a tool/PPE needed

Struct: NoticeIcon

KeyFieldTypeDescriptionRequirednessDefault value
1idstringunique identifier for the icon default
2iconDocumentdocument.Documentdefault
3descripstringdefault

Icon for notice header

Struct: IconDiff

KeyFieldTypeDescriptionRequirednessDefault value
1latestChangediff.Changedefault
10otherIconNoticeIconoptional

Struct: NoticeHeader

KeyFieldTypeDescriptionRequirednessDefault value
1idstringunique identifier for this notice including description default
2iconNoticeIcondefault
3descripstringdeprecated, use descripWrapper default
4descripWrapperreference.StringWrapperoptional
100descriptionDiffdiff.StringDiffoptional
101iconDiffIconDiffoptional
200latestChangediff.Changeoptional

A notice represents a message at the top of a step group containing a standard icon and a description.

Struct: StepGroupCategory

KeyFieldTypeDescriptionRequirednessDefault value
1idstringdefault
2namestringdefault
3colorstring6-digit hex RGB value w/ '#', e.g. #ff5599 default
4archivedAti64default

A step group category contains a color and name

Struct: StepGroupCategoryParams

KeyFieldTypeDescriptionRequirednessDefault value
1namestringoptional
2colorstring6-digit hex RGB value w/ '#', e.g. #ff5599 optional

Struct: CategoryDiff

KeyFieldTypeDescriptionRequirednessDefault value
1latestChangediff.Changedefault
10otherCategoryStepGroupCategoryoptional

Struct: StepGroupHeaders

KeyFieldTypeDescriptionRequirednessDefault value
1categoryStepGroupCategoryoptional
2equipmentlist<EquipmentIcon>optional
3noticeslist<NoticeHeader>optional
4conditionstringoptional
100categoryDiffCategoryDiffoptional
101conditionDiffdiff.StringDiffoptional

Step group header contains the set of headers for a step group

Services

Service: GroupHeaderContentService

Function: GroupHeaderContentService.indexEquipment

list<EquipmentIcon> indexEquipment(string teamId)
Get a list of all valid equipment icons for a team

Function: GroupHeaderContentService.indexNoticeIcons

list<NoticeIcon> indexNoticeIcons(string teamId)
Get a list of all valid notice icons for a team

Function: GroupHeaderContentService.indexCategories

list<StepGroupCategory> indexCategories(string teamId)
Get a list of all valid categories for a team

Function: GroupHeaderContentService.createCategory

StepGroupCategory createCategory(string teamId,
                                 StepGroupCategoryParams params)
    throws common.SystemException
Create a step group category for a team

Function: GroupHeaderContentService.updateCategory

StepGroupCategory updateCategory(string teamId,
                                 string categoryId,
                                 StepGroupCategoryParams params)
    throws common.SystemException
Update a step group category

Function: GroupHeaderContentService.getCategory

StepGroupCategory getCategory(string teamId,
                              string categoryId)
    throws common.SystemException
Get a step group category

Function: GroupHeaderContentService.archiveCategory

void archiveCategory(string teamId,
                     string categoryId)
    throws common.SystemException
Archive a step group category

Function: GroupHeaderContentService.unarchiveCategory

void unarchiveCategory(string teamId,
                       string categoryId)
    throws common.SystemException
Unarchive a step group category