tods-competition-factory 2.3.2 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4634,11 +4634,11 @@ declare function deleteFlightProfileAndFlightDraws({ autoPublish, tournamentReco
4634
4634
  event: any;
4635
4635
  force: any;
4636
4636
  }): {
4637
- error: any;
4638
- } | {
4639
4637
  success?: boolean;
4640
4638
  error?: ErrorType;
4641
4639
  info?: any;
4640
+ } | {
4641
+ error: any;
4642
4642
  };
4643
4643
 
4644
4644
  type ModifyEventMatchUpFormatTimingArgs = {
@@ -4652,13 +4652,13 @@ type ModifyEventMatchUpFormatTimingArgs = {
4652
4652
  event?: Event$1;
4653
4653
  };
4654
4654
  declare function modifyEventMatchUpFormatTiming(params: ModifyEventMatchUpFormatTimingArgs): {
4655
- success: boolean;
4656
- error?: undefined;
4657
- } | {
4658
4655
  error: {
4659
4656
  message: string;
4660
4657
  code: string;
4661
4658
  };
4659
+ } | {
4660
+ success: boolean;
4661
+ error?: undefined;
4662
4662
  };
4663
4663
 
4664
4664
  type RemoveEventMatchUpFormatTimingArgs = {
@@ -12696,6 +12696,9 @@ declare const scheduleConstants: {
12696
12696
  SCHEDULE_ERROR: string;
12697
12697
  SCHEDULE_ISSUE: string;
12698
12698
  SCHEDULE_STATE: string;
12699
+ BLOCKED: string;
12700
+ PRACTICE: string;
12701
+ MAINTENANCE: string;
12699
12702
  };
12700
12703
 
12701
12704
  declare const sortingConstants: {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  function factoryVersion() {
6
- return '2.3.2';
6
+ return '2.3.3';
7
7
  }
8
8
 
9
9
  const SINGLES_MATCHUP = 'SINGLES';
@@ -9460,6 +9460,9 @@ const SCHEDULE_WARNING = 'WARNING';
9460
9460
  const SCHEDULE_ERROR = 'ERROR';
9461
9461
  const SCHEDULE_ISSUE = 'ISSUE';
9462
9462
  const SCHEDULE_STATE = 'STATE';
9463
+ const BLOCKED = 'BLOCKED';
9464
+ const PRACTICE = 'PRACTICE';
9465
+ const MAINTENANCE = 'MAINTENANCE';
9463
9466
  const scheduleConstants = {
9464
9467
  SINGLES_DOUBLES,
9465
9468
  DOUBLES_SINGLES,
@@ -9472,6 +9475,9 @@ const scheduleConstants = {
9472
9475
  SCHEDULE_ERROR,
9473
9476
  SCHEDULE_ISSUE,
9474
9477
  SCHEDULE_STATE,
9478
+ BLOCKED,
9479
+ PRACTICE,
9480
+ MAINTENANCE,
9475
9481
  };
9476
9482
 
9477
9483
  function getMatchUpFormatTiming({ defaultAverageMinutes = 90, defaultRecoveryMinutes = 0, tournamentRecord, matchUpFormat, categoryName, categoryType, eventType, event, }) {
@@ -36727,10 +36733,10 @@ function courtGridRows({ courtPrefix = 'C|', minRowsCount, courtsData, scheduled
36727
36733
  const rowBuilder = generateRange(0, rowsCount).map((rowIndex) => ({
36728
36734
  matchUps: generateRange(0, courtsData.length).map((courtIndex) => {
36729
36735
  const courtInfo = courtsData[courtIndex];
36730
- const { courtId, venueId, court } = courtInfo;
36731
- if (scheduledDate && court) {
36736
+ const { courtId, venueId } = courtInfo;
36737
+ if (scheduledDate) {
36732
36738
  const { gridBookings } = getGridBookings({
36733
- court,
36739
+ court: courtInfo,
36734
36740
  date: scheduledDate,
36735
36741
  });
36736
36742
  if (gridBookings.has(rowIndex + 1)) {