All files / shared/config eventConfig.ts

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109                      618x 618x   618x                                                                                                                                                                                            
import {
  AssignmentAlgorithm,
  EventConfig,
  EventName,
  EventSignupStrategy,
  LoginProvider,
  RemoveLotterySignupsStrategy,
} from "shared/config/eventConfigTypes";
import { ProgramType, SignupType } from "shared/types/models/programItem";
 
// Event days
const friday = "2026-09-04";
const saturday = "2026-09-05";
 
export const eventConfig: EventConfig = {
  // Event info
  eventName: EventName.TRACON,
  eventYear: "2026",
 
  // Event settings
  enableRevolvingDoor: false,
  enableTagDropdown: false,
  assignmentAlgorithm: AssignmentAlgorithm.RANDOM,
  enableGroups: true,
  removeLotterySignupsStrategy: RemoveLotterySignupsStrategy.ALL_UPCOMING,
  programGuideUrlFi: "https://tracon.fi/opas",
  programGuideUrlEn: "https://tracon.fi/opas",
 
  activeProgramTypes: [
    ProgramType.TABLETOP_RPG,
    ProgramType.WORKSHOP,
    ProgramType.FLEAMARKET,
  ],
 
  twoPhaseSignupProgramTypes: [ProgramType.FLEAMARKET],
 
  // Event start at 15:00 GMT+3 but lottery sign-ups start at 08:00 GMT+3
  eventStartTime: `${friday}T05:00:00Z`, // Fri 08:00 GMT+3
  preConventionWeekSignupStartTime: null,
  mainEventProgramVisibleTime: null,
 
  directSignupWindows: {},
 
  rollingDirectSignupProgramTypes: [
    ProgramType.TABLETOP_RPG,
    ProgramType.WORKSHOP,
  ],
  enableRollingDirectSignupPreviousDay: true,
 
  hideParticipantListProgramTypes: [ProgramType.FLEAMARKET],
 
  // These program items have their sign-up always open even if sign-up mode is set to lottery
  directSignupAlwaysOpenIds: [],
 
  // Add these to Konsti under 'other' program type
  addToKonstiOther: [],
 
  // These program items have hand picked revolving door status
  addRevolvingDoorIds: [],
 
  // These program items are imported to Konsti but don't have Konsti sign-up
  noKonstiSignupIds: [],
 
  // Don't import these program items from Kompassi - this is program item id, not schedule item
  ignoreProgramItemsIds: [],
 
  signupQuestions: [],
 
  tournamentSignupQuestion: null,
 
  tournamentSignupQuestionExcludeIds: [],
 
  customDetailsProgramItems: {},
 
  // Require checkbox to be checked before signing up
  entryConditions: [],
 
  // Two phase sign-up settings
  preSignupStart: 60 * 4, // minutes
  directSignupPhaseStart: 60 * 2, // minutes
  phaseGap: 15, // minutes
 
  // Use fixed time to open all lottery sign-ups for the whole event
  fixedLotterySignupTime: `${friday}T05:00:00Z`, // Fri 08:00 GMT+3
 
  // Program items with parentId use startTime configured here
  startTimesByParentIds: new Map([
    [
      "kirpputori-perjantai-alkuilta",
      `${friday}T13:00:00Z`, // Fri 16:00 GMT+3
    ],
    [
      "kirpputori-perjantai-loppuilta",
      `${friday}T16:00:00Z`, // Fri 19:00 GMT+3
    ],
    [
      "kirpputori-lauantai",
      `${saturday}T06:30:00Z`, // Sat 09:30 GMT+3
    ],
  ]),
 
  // What sign-up type is set if sign-up type is missing
  defaultSignupType: SignupType.KONSTI,
 
  // Default DB values
  defaultSignupStrategy: EventSignupStrategy.LOTTERY_AND_DIRECT,
  defaultLoginProvider: LoginProvider.KOMPASSI,
};