This documentation was automatically generated on commit 99029e2 with npm run gen-docs-api
, don't edit this file directly.
- array
- boolean
- cluster
- events
- groups
- AssignGroups
- AssignmentSet
- ByMatchingValue<T>
- ByFilters
- StationAssignmentRule<T>
- GroupNumber
- Stage
- AssignedGroup
- AssignedGroups
- GroupName
- StartTime
- EndTime
- Date
- AssignmentAtTime
- Code
- Group
- GroupForActivityId
- Round
- Event
- Groups
- CreateGroups
- ManuallyAssign
- FixGroupNames
- CheckForMissingGroups
- FixGroupNumbers
- help
- math
- persons
- sheets
- staff
- table
- time
- tuple
- udf
- util
- wcif
TODO
Makes an array containing the provided elements. Can be invoked as a literal expression via [vals].
-
Args:
- $T vals (can be null)(variadic)
-
Returns: Array<$T>
-
WCIF changes: none
Constructs an array containing zero elements. Can be invoked as a literal expression via [].
-
Args: none
-
Returns: Array<Any>
-
WCIF changes: none
Returns whether the provided element is in the given array.
-
Args:
- $T value (can be null)(can be external)
- Array<$T> array
-
Returns: Boolean
-
WCIF changes: none
Returns whether the provided element is in the given array, overloaded for activity codes.
-
Args:
- Event value (can be null)(can be external)
- Array<Event> array
-
Returns: Boolean
-
WCIF changes: none
Returns whether the provided element is in the given array, overloaded for activity codes.
-
Args:
- Round value (can be null)(can be external)
- Array<Round> array
-
Returns: Boolean
-
WCIF changes: none
In, overloaded for DateTime.
-
Args:
- DateTime value (can be null)(can be external)
- Array<DateTime> array
-
Returns: Boolean
-
WCIF changes: none
Returns the length of the provided array.
-
Args:
- Array<$T> array
-
Returns: Number
-
WCIF changes: none
Transforms the provided array using the provided function.
-
Args:
- Array<$T> array
- $U($T) operation (lazy evaluated)
-
Returns: Array<$U>
-
WCIF changes: none
Filters an array to those satisfying a property.
-
Args:
- Array<$T> array
- Boolean($T) condition (lazy evaluated)
-
Returns: Array<$T>
-
WCIF changes: none
Flattens an array of arrays into a single array.
-
Args:
- Array<Array<$T>> args
-
Returns: Array<$T>
-
WCIF changes: none
Concatenates multiple arrays into a single array.
-
Args:
- Array<$T> args (variadic)
-
Returns: Array<$T>
-
WCIF changes: none
TODO
-
Args:
- Array<$ValType> vals
- $SortType($ValType) sortFns (variadic)(lazy evaluated)
-
Returns: Array<$ValType>
-
WCIF changes: none
TODO
Returns true if all of the provided arguments are true.
-
Args:
- Boolean param (variadic)
-
Returns: Boolean
-
WCIF changes: none
Returns true if any of the provided arguments are true.
-
Args:
- Boolean param (variadic)
-
Returns: Boolean
-
WCIF changes: none
Returns true if the provided argument is false.
-
Args:
- Boolean param
-
Returns: Boolean
-
WCIF changes: none
TODO
Arranges the provided Persons into clusters, and sets a property on each person to indicate which cluster they are in.
-
Args:
-
String name
The name of the property where the result should be stored.
-
Number numClusters
The number of clusters to create.
-
Array<Person> persons
The people to be clustered.
-
String(Person) preCluster (lazy evaluated)
People with the same value for this function will be assigned to the same cluster.
-
Array<Constraint> constraints
Constraints that should be applied to the clustering.
-
-
Returns: ClusteringResult
-
WCIF changes: persons
A clustering constraint which balances the number of people in each Cluster with a given property, or the total of a given property.
-
Args:
-
String name
The name of the constraint
-
Number(Person) value (lazy evaluated)
The value of the constraint to be evaluated for each person
-
Number weight
The weighting value to assign to this cluster
-
-
Returns: Constraint
-
WCIF changes: none
A clustering constraint which balances the number of people in each Cluster with a given property, or the total of a given property.
-
Args:
-
String name
The name of the constraint
-
Boolean(Person) value (lazy evaluated)
The value of the constraint to be evaluated for each person
-
Number weight
The weighting value to assign to this cluster
-
-
Returns: Constraint
-
WCIF changes: none
A constraint that limits the sum of a given property across all people in a cluster.
-
Args:
-
String name
The name of the constraint
-
Number(Person) value (lazy evaluated)
The value of the constraint to be evaluated for each person
-
Number min
The minimum value per cluster
-
Number weight
The weighting value to assign to this cluster
-
-
Returns: Constraint
-
WCIF changes: none
A constraint that limits the sum of a given property across all people in a cluster.
-
Args:
-
String name
The name of the constraint
-
Boolean(Person) value (lazy evaluated)
The value of the constraint to be evaluated for each person
-
Number min
The minimum value per cluster
-
Number weight
The weighting value to assign to this cluster
-
-
Returns: Constraint
-
WCIF changes: none
TODO
Returns a list of all events in a competition
-
Args: none
-
Returns: Array<Event>
-
WCIF changes: none
Returns a list of all rounds in a competition
-
Args: none
-
Returns: Array<Round>
-
WCIF changes: none
Returns the string event ID for an event
-
Args:
- Event event (can be external)
-
Returns: String
-
WCIF changes: none
Returns the ID for a round
-
Args:
- Round round (can be external)
-
Returns: String
-
WCIF changes: none
Returns true if the specified person is competing in the specified event
-
Args:
- Event event (can be external)
- Person person (can be external)
-
Returns: Boolean
-
WCIF changes: none
Returns true if the specified person is competing in the specified round
-
Args:
- Round round (can be external)
- Person person (can be external)
-
Returns: Boolean
-
WCIF changes: none
TODO
-
Args:
- Round round (can be external)
- Person person (can be external)
-
Returns: Integer
-
WCIF changes: none
Returns an array of events that the person is registered for
-
Args:
- Person person (can be external)
-
Returns: Array<Event>
-
WCIF changes: none
Returns the personal best for an event
-
Args:
- Event event (can be external)
- String type=default
- Person person (can be external)
-
Returns: AttemptResult
-
WCIF changes: none
Returns this person's position on the psych sheet for an event
-
Args:
- Event event (can be external)
- String type=default
- Person person (can be external)
-
Returns: Number
-
WCIF changes: none
Returns this person's placement in a round that has already happened
-
Args:
- Round round
- Person person (can be external)
-
Returns: Number
-
WCIF changes: none
Add fake results for the given persons in the given round
-
Args:
- Round round
- Array<Person> persons
- AttemptResult(Person) result= (lazy evaluated)
-
Returns: String
-
WCIF changes: events
Returns true if the provided round is a final
-
Args:
- Round round (can be external)
-
Returns: Boolean
-
WCIF changes: none
Returns the number of a round
-
Args:
- Round round
-
Returns: Number
-
WCIF changes: none
Returns a round for the specified event.
-
Args:
- Number number
- Event event (can be external)
-
Returns: Round
-
WCIF changes: none
Returns the event for the round.
-
Args:
- Round round (can be external)
-
Returns: Event
-
WCIF changes: none
TODO
Assigns groups for the given round
-
Args:
-
Round round
The round to assign groups for
-
Array<AssignmentSet> assignmentSets
An ordered array of sets of people that should be evenly assigned
-
Array<AssignmentScorer> scorers=
A list of scoring functions to use
-
Array<StationAssignmentRule> stationRules=
Rules for assigning fixed stations
-
Number attemptNumber=null (can be null)
If specified, assign groups for only this attempt number
-
Boolean overwrite=false
If groups are already assigned, overwrite them
-
-
Returns: GroupAssignmentResult
-
WCIF changes: persons, schedule
TODO
-
Args:
-
String name
The name of this assignment set (for debug only)
-
Boolean(Person) personFilter (lazy evaluated)
Which poeple are in this assignment set
-
Boolean(Group) groupFilter (lazy evaluated)
Which groups can be assigned
-
Boolean featured=false
Whether people in this assignment set should be marked as "featured" on their scorecard
-
-
Returns: AssignmentSet
-
WCIF changes: none
Score people based on how many people in each group match on a certain property
-
Args:
-
$T(Person) value (lazy evaluated)
The property to consider
-
Number score
The score to assign for each matching person
-
-
Returns: AssignmentScorer
-
WCIF changes: none
Score people based on whether the group satisfies a certain condition
-
Args:
-
Boolean(Person) personFilter (lazy evaluated)
The people to consider for this scoring function
-
Boolean(Group) groupFilter (lazy evaluated)
The groups to consider for this scoring function
-
Number score
The score to assign if the person and group satisfy the filter
-
-
Returns: AssignmentScorer
-
WCIF changes: none
A rule to assign people to stations
-
Args:
-
Boolean(Group) groupFilter (lazy evaluated)
The groups for which this should apply
-
String mode
The station assignment mode to use, either "ascending", "descending", or "arbitrary"
-
$T(Person) sortKey=0 (lazy evaluated)
If "mode" is either "ascending" or "descending", the sort key to use
-
-
Returns: StationAssignmentRule
-
WCIF changes: none
The number of a group
-
Args:
- Group group (can be external)
-
Returns: Number
-
WCIF changes: none
The stage name for a group
-
Args:
- Group group (can be external)
-
Returns: String
-
WCIF changes: none
A person's assigned group for a round
-
Args:
- Round round (can be external)
- Person person (can be external)
-
Returns: Group
-
WCIF changes: none
All of a person's assigned groups
-
Args:
- Person person (can be external)
-
Returns: Array<Group>
-
WCIF changes: none
The full name of a group
-
Args:
- Group group (can be external)
-
Returns: String
-
WCIF changes: none
The start time of a group
-
Args:
- Group group (can be external)
-
Returns: DateTime
-
WCIF changes: none
The end time of a group
-
Args:
- Group group (can be external)
-
Returns: DateTime
-
WCIF changes: none
The date of a group
-
Args:
- Group group (can be external)
-
Returns: Date
-
WCIF changes: none
The assignment that a person has at a particular time
-
Args:
- DateTime time
- Person person (can be external)
-
Returns: Assignment
-
WCIF changes: none
The AssignmentCode for an Assignment
-
Args:
- Assignment assignment
-
Returns: String
-
WCIF changes: none
The Group for an Assignment
-
Args:
- Assignment assignment
-
Returns: Group
-
WCIF changes: none
Returns the group with the specified id
-
Args:
- Number id
-
Returns: Group
-
WCIF changes: none
The Round for a Group
-
Args:
- Group group (can be external)
-
Returns: Round
-
WCIF changes: none
The Event for a Group
-
Args:
- Group group (can be external)
-
Returns: Event
-
WCIF changes: none
All groups in a round
-
Args:
- Round round (can be external)
-
Returns: Array<Group>
-
WCIF changes: none
Inserts groups into the schudle.
-
Args:
- Round round
- Number count
- String stage
- DateTime start
- DateTime end
-
Returns: Array<String>
-
WCIF changes: schedule
Manually assign the provided competitors to the provided groups.
-
Args:
- Array<Person> persons
- Round round
- String stage
- Number number
-
Returns: String
-
WCIF changes: persons
TODO
-
Args: none
-
Returns: Array<String>
-
WCIF changes: schedule
TODO
-
Args: none
-
Returns: Array<String>
-
WCIF changes: none
TODO
-
Args: none
-
Returns: Array<String>
-
WCIF changes: schedule
TODO
Provide a list of all functions
-
Args: none
-
Returns: ListFunctionsOutput
-
WCIF changes: none
Provide documentation about a single function
-
Args:
- String functionName
-
Returns: FunctionHelp
-
WCIF changes: none
TODO
Return true if val1 > val2 (maybe invoked with ">")
-
Args:
- $T val1 (can be null)
- $T val2 (can be null)
-
Returns: Boolean
-
WCIF changes: none
Return true if val1 >= val2 (maybe invoked with ">=")
-
Args:
- $T val1 (can be null)
- $T val2 (can be null)
-
Returns: Boolean
-
WCIF changes: none
Return true if val1 == val2 (maybe invoked with "==")
-
Args:
- $T val1 (can be null)
- $T val2 (can be null)
-
Returns: Boolean
-
WCIF changes: none
Override of EqualTo for Date objects
-
Args:
- Date val1 (can be null)
- Date val2 (can be null)
-
Returns: Boolean
-
WCIF changes: none
If the condition is true, return the first value, else the second value
-
Args:
- Boolean condition
- $T ifTrue (can be null)
- $T ifFalse (can be null)
-
Returns: $T
-
WCIF changes: none
Adds two numbers (may be invoked with "+")
-
Args:
- Number val1
- Number val2
-
Returns: Number
-
WCIF changes: none
Concatenates two strings (may be invoked with "+")
-
Args:
- String val1 (can be null)
- String val2 (can be null)
-
Returns: String
-
WCIF changes: none
Concatenates two arrays (may be invoked with "+")
-
Args:
- Array<$T> array1
- Array<$T> array2
-
Returns: Array<$T>
-
WCIF changes: none
Subtracts two numbers (may be invoked with "-")
-
Args:
- Number val1
- Number val2
-
Returns: Number
-
WCIF changes: none
Returns true if the number is even
-
Args:
- Number val (can be null)
-
Returns: Boolean
-
WCIF changes: none
Returns true if the number is odd
-
Args:
- Number val (can be null)
-
Returns: Boolean
-
WCIF changes: none
TODO
Returns the person's name
-
Args:
- Person person (can be external)
-
Returns: String
-
WCIF changes: none
Returns the person's WCA ID
-
Args:
- Person person (can be external)
-
Returns: String
-
WCIF changes: none
Returns a link to the person's WCA profile
-
Args:
- Person person (can be external)
-
Returns: String
-
WCIF changes: none
Returns a link to competitiongroups.com for the person
-
Args:
- Person person (can be external)
-
Returns: String
-
WCIF changes: none
Returns true if the person is registered for the competition
-
Args:
- Person person (can be external)
-
Returns: Boolean
-
WCIF changes: none
Returns the year component of the person's WCA ID
-
Args:
- Person person (can be external)
-
Returns: Number
-
WCIF changes: none
Returns the person's email
-
Args:
- Person person (can be external)
-
Returns: String
-
WCIF changes: none
Returns the person's country
-
Args:
- Person person (can be external)
-
Returns: String
-
WCIF changes: none
Returns the person's first name
-
Args:
- Person person (can be external)
-
Returns: String
-
WCIF changes: none
Returns the person's last name
-
Args:
- Person person (can be external)
-
Returns: String
-
WCIF changes: none
Gets a property attached to the person's WCIF
-
Args:
- String name
- Person person (can be external)
- Boolean defaultValue=false
-
Returns: Boolean
-
WCIF changes: none
Gets a property attached to the person's WCIF
-
Args:
- String name
- Person person (can be external)
- String defaultValue=
-
Returns: String
-
WCIF changes: none
Gets a property attached to the person's WCIF
-
Args:
- String name
- Person person (can be external)
- Number defaultValue=0
-
Returns: Number
-
WCIF changes: none
Gets a property attached to the person's WCIF
-
Args:
- String name
- Person person (can be external)
- Array<String> defaultValue=
-
Returns: Array<String>
-
WCIF changes: none
Sets the given property on the provided people
-
Args:
- Array<Person> persons
- String property
- $T(Person) value (lazy evaluated)
-
Returns: String
-
WCIF changes: persons
Deletes the given property on the provided people
-
Args:
- Array<Person> persons
- String property
-
Returns: String
-
WCIF changes: persons
Adds the given person as a staff member
-
Args:
- Number wcaUserId
-
Returns: String
-
WCIF changes: persons
Returns all persons matching a property
-
Args:
- Boolean(Person) filter (lazy evaluated)
-
Returns: Array<Person>
-
WCIF changes: none
Adds the provided Role to the given people
-
Args:
- Array<Person> persons
- String role
-
Returns: String
-
WCIF changes: persons
Deletes the provided Role from the given people
-
Args:
- Array<Person> persons
- String role
-
Returns: String
-
WCIF changes: persons
Returns whether the given person has the given role
-
Args:
- Person person (can be external)
- String role
-
Returns: Boolean
-
WCIF changes: none
Returns the registration.status field in WCIF.
-
Args:
- Person person (can be external)
-
Returns: String
-
WCIF changes: none
Clears assignments.
-
Args:
- Array<Person> persons
- Boolean clearStaff
- Boolean clearGroups
-
Returns: String
-
WCIF changes: persons
Returns true if the person appears in the results
-
Args:
- Person person (can be external)
-
Returns: Boolean
-
WCIF changes: none
Returns true if the competitor has not competed and has missed at least one event
-
Args:
- Person person (can be external)
-
Returns: Boolean
-
WCIF changes: none
TODO
-
Args:
- Person person (can be external)
-
Returns: String
-
WCIF changes: none
TODO
Reads data from the provided Google Sheet
-
Args:
- String spreadsheetId
-
Returns: ReadSpreadsheetResult
-
WCIF changes: persons
TODO
TODO
-
Args:
- Round round
- Boolean(Group) groupFilter (lazy evaluated)
- Array<Person> persons
- Array<AssignmentJob> jobs
- Array<AssignmentScorer> scorers
- Boolean overwrite=false
- Boolean avoidConflicts=true
-
Returns: StaffAssignmentResult
-
WCIF changes: persons
TODO
-
Args:
- Number activityId
- Array<Person> persons
- Array<AssignmentJob> jobs
- Array<AssignmentScorer> scorers
- Boolean overwrite=false
- Boolean avoidConflicts=true
-
Returns: StaffAssignmentResult
-
WCIF changes: persons
TODO
-
Args:
- String name
- Number count
- Boolean assignStations=false
- Boolean(Person) eligibility=true (lazy evaluated)
-
Returns: AssignmentJob
-
WCIF changes: none
TODO
-
Args:
- Number weight
-
Returns: AssignmentScorer
-
WCIF changes: none
TODO
-
Args:
- Number weight
- String prefix
- Number prior
- Array<String> allJobs
-
Returns: AssignmentScorer
-
WCIF changes: none
TODO
-
Args:
- Number center
- Number posWeight
- Number negWeight
-
Returns: AssignmentScorer
-
WCIF changes: none
TODO
-
Args:
- Number center
- Number posWeight
- Number negWeight
-
Returns: AssignmentScorer
-
WCIF changes: none
TODO
-
Args:
- Number weight
-
Returns: AssignmentScorer
-
WCIF changes: none
TODO
-
Args:
- Event event
- AttemptResult maxTime
- Number weight
-
Returns: AssignmentScorer
-
WCIF changes: none
TODO
-
Args:
- Boolean(Person, Group) condition (lazy evaluated)
- Number weight
-
Returns: AssignmentScorer
-
WCIF changes: none
TODO
-
Args:
- Number weight
-
Returns: AssignmentScorer
-
WCIF changes: none
Marks the provided staff members as unavailable at the given time
-
Args:
- Array<Person> persons
- Array<StaffUnavailability> times
-
Returns: String
-
WCIF changes: persons
Indicates that the staff member is unavailable at the given time
-
Args:
- DateTime start
- DateTime end
-
Returns: StaffUnavailability
-
WCIF changes: none
Indicates that the staff member is unavailable on the given date
-
Args:
- Date date
-
Returns: StaffUnavailability
-
WCIF changes: none
Indicates the staff member is unavailable during groups that end in the provided times
-
Args:
- Array<DateTime> times
-
Returns: StaffUnavailability
-
WCIF changes: none
Indicates the staff member is unavailable during groups that start in the provided times
-
Args:
- Array<DateTime> times
-
Returns: StaffUnavailability
-
WCIF changes: none
The number of jobs for a given person. If type is not provided, all jobs are included.
-
Args:
- Person person (can be external)
- String type=null (can be null)
-
Returns: Number
-
WCIF changes: none
TODO
TODO
-
Args:
- Array<$ArgType> keys
- Array<Column>($ArgType) columns (lazy evaluated)
-
Returns: Table
-
WCIF changes: none
TODO
-
Args:
- String title
- $T value (can be null)
- String link=null (can be null)
-
Returns: Column
-
WCIF changes: none
TODO
TODO
-
Args:
- DateTime time
-
Returns: String
-
WCIF changes: none
TODO
-
Args:
- DateTime time
-
Returns: Number
-
WCIF changes: none
TODO
TODO
-
Args:
- $T0 arg_T0
-
Returns: Tuple<$T0>
-
WCIF changes: none
TODO
-
Args:
- Tuple<$T0> tuple (can be external)
-
Returns: $T0
-
WCIF changes: none
TODO
-
Args:
- $T0 arg_T0
- $T1 arg_T1
-
Returns: Tuple<$T0, $T1>
-
WCIF changes: none
TODO
-
Args:
- Tuple<$T0, $T1> tuple (can be external)
-
Returns: $T0
-
WCIF changes: none
TODO
-
Args:
- Tuple<$T0, $T1> tuple (can be external)
-
Returns: $T1
-
WCIF changes: none
TODO
TODO
-
Args:
- String name
- $T() implementation
- Boolean public=false
-
Returns: Void
-
WCIF changes: none
TODO
-
Args:
- String name
- $T($U0) implementation
- Boolean public=false
-
Returns: Void
-
WCIF changes: none
TODO
-
Args: none
-
Returns: ListScriptsOutput
-
WCIF changes: none
TODO
TODO
-
Args:
- $T arg
-
Returns: String
-
WCIF changes: none
TODO
-
Args: none
-
Returns: String
-
WCIF changes: none
Sets a property in a competition-level extension.
-
Args:
- String property
- $T value
- String type
- String namespace=org.cubingusa.natshelper.v1
-
Returns: String
-
WCIF changes: extensions
Sets a property in a group extension.
-
Args:
- String property
- $T value
- String type
- Group group (can be external)
- String namespace=org.cubingusa.natshelper.v1
-
Returns: String
-
WCIF changes: schedule
TODO
-
Args: none
-
Returns: String
-
WCIF changes: persons
TODO
-
Args:
- Array<Person> persons
-
Returns: Array<String>
-
WCIF changes: none
TODO
-
Args:
- Array<Person> persons
- Number activityId
- String assignmentCode
-
Returns: String
-
WCIF changes: persons
TODO
-
Args:
- Array<Person> persons
- Array<Group> groups
- String label
-
Returns: Multi
-
WCIF changes: none
TODO
-
Args:
- $T arg
-
Returns: String
-
WCIF changes: none
TODO
-
Args:
- Person person1
- Person person2
- Array<Group> groups
-
Returns: String
-
WCIF changes: persons
TODO
-
Args:
- Person person
- Array<Group> groups
-
Returns: String
-
WCIF changes: persons
This category gathers all functions regarding high level WCIF manipulation
Remove all childActivities keeping only the main schedule, remove all assignments, cleanup roles, cleanup NatsHelper extension data.
-
Args:
-
Boolean clearExternalExtensions=false
Also cleanup external tools extensions.
-
-
Returns: Void
-
WCIF changes: schedule, persons
Export the WCIF to a json file
-
Args:
-
String filename=wcif.json
WCIF filename (emitted in WCIF_DATA_FOLDER/competitionId)
-
-
Returns: String
-
WCIF changes: none
Import the WCIF from a json file
-
Args:
-
String filename
WCIF filename (relative to WCIF_DATA_FOLDER/competitionId)
-
-
Returns: String
-
WCIF changes: none