Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Accumulation properties specify when the Sanction is applicable and behaviour properties specify what the resulting Suspension will be defined as.

Yellow Blue properties to be added with automation.

exclusive

Property

Type

Description

id

uuid

seasonId

string

Season

name

string

With i18n

code

string

Usually the rule number or an accumulation code

officeId

id

parentId

id

Optional - To override parent sanctions

externalId

uuid

For syncing with Spordle ID

Behaviour

durationType

enum

Definite or Indefinite

totalGames

number

Optional - Total games required in all cases

endGames

number

Optional - Total games required when end of game or overtime (defined by office settings)

injuryGames

number

Optional - Total games required when penalty has an injury

Accumulation

positionGroups

enum[]

Optional - Applicable to players or coachesbench staff

priority

number

Priority precedence order for accumulations

boolean

If an infraction matches this sanction it doesn’t count towards other sanctions

Not sure if this is necessary

minCount

number

Minimum number of infractions (>=)

maxCount

number

Maximum number of infractions (<=)

resetCount

boolean

Accumulation count resets to 0 after reaching last accumulation

SanctionMember

List of infractions that may trigger a sanction

...

Property

Type

Description

id

uuid

gameId

id

Game the suspension originated in

participantId

id

Participant that was suspended

teamId

id

Team that the participant is suspended in

sanctionId

id

Sanction that was determined by the rulebook sanction rules

penaltyId

id

Penalty that resulted in the suspension

positionGroup

enum

Position that this participant was suspended in. Player, Staff

durationType

enum

Definite or Indefinite. This is required to be the same as the sanction duration

minimumGames

number

Minimum number of games required for this suspension

Optional when indefinite. Set by system.

requiredGames

number

Number of games required to complete the suspension.

Optional when Indefinite. Required to be >= minimumGames

expiry

date

Optional - Date when the suspension will expire if the games requirement isn’t met

status

enum

Pending, Appealed, Active, Completed, Cancelled, Expired

externalId

uuid

For syncing with Spordle ID

Legacy suspension options (deprecated)

code

enum

Deprecated, replaced by sanctionId

...

Implementation

Unhardcoding
Status
colourBlue
titletodo

...