tods-competition-factory 2.3.0 → 2.3.2
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.
- package/dist/index.mjs +9 -9
- package/dist/tods-competition-factory.d.ts +55 -13
- package/dist/tods-competition-factory.development.cjs.js +405 -210
- package/dist/tods-competition-factory.development.cjs.js.map +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js.map +1 -1
- package/package.json +7 -7
|
@@ -1356,6 +1356,10 @@ declare const errorConditionConstants: {
|
|
|
1356
1356
|
message: string;
|
|
1357
1357
|
code: string;
|
|
1358
1358
|
};
|
|
1359
|
+
BOOKING_NOT_FOUND: {
|
|
1360
|
+
message: string;
|
|
1361
|
+
code: string;
|
|
1362
|
+
};
|
|
1359
1363
|
CANNOT_CHANGE_WINNING_SIDE: {
|
|
1360
1364
|
message: string;
|
|
1361
1365
|
code: string;
|
|
@@ -1388,6 +1392,10 @@ declare const errorConditionConstants: {
|
|
|
1388
1392
|
message: string;
|
|
1389
1393
|
code: string;
|
|
1390
1394
|
};
|
|
1395
|
+
EXISTING_MATCHUPS: {
|
|
1396
|
+
message: string;
|
|
1397
|
+
code: string;
|
|
1398
|
+
};
|
|
1391
1399
|
DRAW_DEFINITION_NOT_FOUND: {
|
|
1392
1400
|
message: string;
|
|
1393
1401
|
code: string;
|
|
@@ -6106,7 +6114,7 @@ declare function getMatchUpScheduleDetails(params: GetMatchUpScheduleDetailsArgs
|
|
|
6106
6114
|
endDate?: undefined;
|
|
6107
6115
|
} | {
|
|
6108
6116
|
schedule: any;
|
|
6109
|
-
endDate:
|
|
6117
|
+
endDate: string | undefined;
|
|
6110
6118
|
error?: undefined;
|
|
6111
6119
|
};
|
|
6112
6120
|
|
|
@@ -8139,8 +8147,8 @@ declare function getCompetitionPenalties({ tournamentRecords }: GetCompetitionPe
|
|
|
8139
8147
|
declare function getCompetitionDateRange({ tournamentRecords }: {
|
|
8140
8148
|
tournamentRecords: TournamentRecords;
|
|
8141
8149
|
}): {
|
|
8142
|
-
startDate?:
|
|
8143
|
-
endDate?:
|
|
8150
|
+
startDate?: string;
|
|
8151
|
+
endDate?: string;
|
|
8144
8152
|
error?: ErrorType;
|
|
8145
8153
|
};
|
|
8146
8154
|
|
|
@@ -8456,10 +8464,11 @@ type SetSchedulingProfileArgs = {
|
|
|
8456
8464
|
};
|
|
8457
8465
|
declare function setSchedulingProfile({ tournamentRecords, tournamentRecord, schedulingProfile, }: SetSchedulingProfileArgs): any;
|
|
8458
8466
|
|
|
8459
|
-
declare function courtGridRows({ courtPrefix, minRowsCount, courtsData }: {
|
|
8467
|
+
declare function courtGridRows({ courtPrefix, minRowsCount, courtsData, scheduledDate }: {
|
|
8460
8468
|
courtPrefix?: string | undefined;
|
|
8461
8469
|
minRowsCount: any;
|
|
8462
8470
|
courtsData: any;
|
|
8471
|
+
scheduledDate: any;
|
|
8463
8472
|
}): {
|
|
8464
8473
|
error: {
|
|
8465
8474
|
message: string;
|
|
@@ -9405,9 +9414,9 @@ declare function generateBookings({ defaultRecoveryMinutes, averageMatchUpMinute
|
|
|
9405
9414
|
recoveryMinutes: number | undefined;
|
|
9406
9415
|
averageMinutes: number | undefined;
|
|
9407
9416
|
periodLength: number;
|
|
9408
|
-
startTime:
|
|
9417
|
+
startTime: string | undefined;
|
|
9409
9418
|
courtId: any;
|
|
9410
|
-
endTime:
|
|
9419
|
+
endTime: string;
|
|
9411
9420
|
venueId: any;
|
|
9412
9421
|
}[] | undefined;
|
|
9413
9422
|
relevantMatchUps: HydratedMatchUp[] | undefined;
|
|
@@ -9448,6 +9457,31 @@ declare function findMatchUpFormatTiming({ defaultRecoveryMinutes, defaultAverag
|
|
|
9448
9457
|
error?: undefined;
|
|
9449
9458
|
};
|
|
9450
9459
|
|
|
9460
|
+
type AddCourtGridBookingArgs = {
|
|
9461
|
+
tournamentRecord: Tournament;
|
|
9462
|
+
disableNotice?: boolean;
|
|
9463
|
+
bookingType: string;
|
|
9464
|
+
courtOrder: number;
|
|
9465
|
+
scheduledDate: string;
|
|
9466
|
+
courtId: string;
|
|
9467
|
+
rowCount?: number;
|
|
9468
|
+
notes?: string;
|
|
9469
|
+
};
|
|
9470
|
+
declare function addCourtGridBooking(params: AddCourtGridBookingArgs): ResultType & {
|
|
9471
|
+
booking?: any;
|
|
9472
|
+
};
|
|
9473
|
+
|
|
9474
|
+
type RemoveCourtGridBookingArgs = {
|
|
9475
|
+
tournamentRecord: Tournament;
|
|
9476
|
+
disableNotice?: boolean;
|
|
9477
|
+
scheduledDate: string;
|
|
9478
|
+
courtOrder: number;
|
|
9479
|
+
courtId: string;
|
|
9480
|
+
};
|
|
9481
|
+
declare function removeCourtGridBooking(params: RemoveCourtGridBookingArgs): ResultType & {
|
|
9482
|
+
booking?: any;
|
|
9483
|
+
};
|
|
9484
|
+
|
|
9451
9485
|
type AddMatchUpScheduleItemsArgs = {
|
|
9452
9486
|
inContextMatchUps?: HydratedMatchUp[];
|
|
9453
9487
|
drawMatchUps?: HydratedMatchUp[];
|
|
@@ -9490,6 +9524,7 @@ declare function addMatchUpResumeTime({ removePriorValues, tournamentRecord, dra
|
|
|
9490
9524
|
resumeTime?: string;
|
|
9491
9525
|
}): any;
|
|
9492
9526
|
|
|
9527
|
+
declare const mutate$4_addCourtGridBooking: typeof addCourtGridBooking;
|
|
9493
9528
|
declare const mutate$4_addMatchUpCourtOrder: typeof addMatchUpCourtOrder;
|
|
9494
9529
|
declare const mutate$4_addMatchUpEndTime: typeof addMatchUpEndTime;
|
|
9495
9530
|
declare const mutate$4_addMatchUpOfficial: typeof addMatchUpOfficial;
|
|
@@ -9517,6 +9552,7 @@ declare const mutate$4_matchUpScheduleChange: typeof matchUpScheduleChange;
|
|
|
9517
9552
|
declare const mutate$4_modifyMatchUpFormatTiming: typeof modifyMatchUpFormatTiming;
|
|
9518
9553
|
declare const mutate$4_proAutoSchedule: typeof proAutoSchedule;
|
|
9519
9554
|
declare const mutate$4_proConflicts: typeof proConflicts;
|
|
9555
|
+
declare const mutate$4_removeCourtGridBooking: typeof removeCourtGridBooking;
|
|
9520
9556
|
declare const mutate$4_removeEventMatchUpFormatTiming: typeof removeEventMatchUpFormatTiming;
|
|
9521
9557
|
declare const mutate$4_removeMatchUpCourtAssignment: typeof removeMatchUpCourtAssignment;
|
|
9522
9558
|
declare const mutate$4_reorderUpcomingMatchUps: typeof reorderUpcomingMatchUps;
|
|
@@ -9529,6 +9565,7 @@ declare const mutate$4_toggleParticipantCheckInState: typeof toggleParticipantCh
|
|
|
9529
9565
|
declare const mutate$4_validateSchedulingProfile: typeof validateSchedulingProfile;
|
|
9530
9566
|
declare namespace mutate$4 {
|
|
9531
9567
|
export {
|
|
9568
|
+
mutate$4_addCourtGridBooking as addCourtGridBooking,
|
|
9532
9569
|
mutate$4_addMatchUpCourtOrder as addMatchUpCourtOrder,
|
|
9533
9570
|
mutate$4_addMatchUpEndTime as addMatchUpEndTime,
|
|
9534
9571
|
mutate$4_addMatchUpOfficial as addMatchUpOfficial,
|
|
@@ -9556,6 +9593,7 @@ declare namespace mutate$4 {
|
|
|
9556
9593
|
mutate$4_modifyMatchUpFormatTiming as modifyMatchUpFormatTiming,
|
|
9557
9594
|
mutate$4_proAutoSchedule as proAutoSchedule,
|
|
9558
9595
|
mutate$4_proConflicts as proConflicts,
|
|
9596
|
+
mutate$4_removeCourtGridBooking as removeCourtGridBooking,
|
|
9559
9597
|
mutate$4_removeEventMatchUpFormatTiming as removeEventMatchUpFormatTiming,
|
|
9560
9598
|
mutate$4_removeMatchUpCourtAssignment as removeMatchUpCourtAssignment,
|
|
9561
9599
|
mutate$4_reorderUpcomingMatchUps as reorderUpcomingMatchUps,
|
|
@@ -9569,6 +9607,7 @@ declare namespace mutate$4 {
|
|
|
9569
9607
|
};
|
|
9570
9608
|
}
|
|
9571
9609
|
|
|
9610
|
+
declare const index$7_addCourtGridBooking: typeof addCourtGridBooking;
|
|
9572
9611
|
declare const index$7_addMatchUpCourtOrder: typeof addMatchUpCourtOrder;
|
|
9573
9612
|
declare const index$7_addMatchUpEndTime: typeof addMatchUpEndTime;
|
|
9574
9613
|
declare const index$7_addMatchUpOfficial: typeof addMatchUpOfficial;
|
|
@@ -9605,6 +9644,7 @@ declare const index$7_modifyMatchUpFormatTiming: typeof modifyMatchUpFormatTimin
|
|
|
9605
9644
|
declare const index$7_proAutoSchedule: typeof proAutoSchedule;
|
|
9606
9645
|
declare const index$7_proConflicts: typeof proConflicts;
|
|
9607
9646
|
declare const index$7_publicFindCourt: typeof publicFindCourt;
|
|
9647
|
+
declare const index$7_removeCourtGridBooking: typeof removeCourtGridBooking;
|
|
9608
9648
|
declare const index$7_removeEventMatchUpFormatTiming: typeof removeEventMatchUpFormatTiming;
|
|
9609
9649
|
declare const index$7_removeMatchUpCourtAssignment: typeof removeMatchUpCourtAssignment;
|
|
9610
9650
|
declare const index$7_reorderUpcomingMatchUps: typeof reorderUpcomingMatchUps;
|
|
@@ -9617,6 +9657,7 @@ declare const index$7_toggleParticipantCheckInState: typeof toggleParticipantChe
|
|
|
9617
9657
|
declare const index$7_validateSchedulingProfile: typeof validateSchedulingProfile;
|
|
9618
9658
|
declare namespace index$7 {
|
|
9619
9659
|
export {
|
|
9660
|
+
index$7_addCourtGridBooking as addCourtGridBooking,
|
|
9620
9661
|
index$7_addMatchUpCourtOrder as addMatchUpCourtOrder,
|
|
9621
9662
|
index$7_addMatchUpEndTime as addMatchUpEndTime,
|
|
9622
9663
|
index$7_addMatchUpOfficial as addMatchUpOfficial,
|
|
@@ -9655,6 +9696,7 @@ declare namespace index$7 {
|
|
|
9655
9696
|
index$7_proConflicts as proConflicts,
|
|
9656
9697
|
index$7_publicFindCourt as publicFindCourt,
|
|
9657
9698
|
query$2 as query,
|
|
9699
|
+
index$7_removeCourtGridBooking as removeCourtGridBooking,
|
|
9658
9700
|
index$7_removeEventMatchUpFormatTiming as removeEventMatchUpFormatTiming,
|
|
9659
9701
|
index$7_removeMatchUpCourtAssignment as removeMatchUpCourtAssignment,
|
|
9660
9702
|
index$7_reorderUpcomingMatchUps as reorderUpcomingMatchUps,
|
|
@@ -11160,7 +11202,7 @@ declare function dehydrateMatchUps({ tournamentRecord }: {
|
|
|
11160
11202
|
error?: ErrorType;
|
|
11161
11203
|
};
|
|
11162
11204
|
|
|
11163
|
-
declare function getIsoDateString(schedule: any):
|
|
11205
|
+
declare function getIsoDateString(schedule: any): string | undefined;
|
|
11164
11206
|
declare function validTimeValue(value: any): boolean;
|
|
11165
11207
|
declare function DateHHMM(date: any): string;
|
|
11166
11208
|
declare function timeUTC(date?: any): number;
|
|
@@ -11171,15 +11213,15 @@ declare function isDate(dateArg: any): boolean;
|
|
|
11171
11213
|
declare function generateDateRange(startDt?: any, endDt?: any): string[];
|
|
11172
11214
|
declare function isISODateString(dateString: any): boolean;
|
|
11173
11215
|
declare function isTimeString(timeString: any): boolean;
|
|
11174
|
-
declare function timeStringMinutes(timeString?: any):
|
|
11175
|
-
declare function extractTime(dateString: any):
|
|
11176
|
-
declare function extractDate(dateString: any):
|
|
11177
|
-
declare function convertTime(value: any, time24?: any, keepDate?: any):
|
|
11216
|
+
declare function timeStringMinutes(timeString?: any): number;
|
|
11217
|
+
declare function extractTime(dateString: any): string | undefined;
|
|
11218
|
+
declare function extractDate(dateString: any): string;
|
|
11219
|
+
declare function convertTime(value: any, time24?: any, keepDate?: any): string | undefined;
|
|
11178
11220
|
declare function addDays(date: any, days?: number): string;
|
|
11179
11221
|
declare function addWeek(date: any): string;
|
|
11180
11222
|
declare function getDateByWeek(week: any, year: any, dateFormat: any, sunday?: boolean): string;
|
|
11181
|
-
declare function timeToDate(timeString: any, date?: undefined): Date;
|
|
11182
|
-
declare function addMinutesToTimeString(timeString?: any, minutes?: any):
|
|
11223
|
+
declare function timeToDate(timeString: any, date?: string | undefined): Date;
|
|
11224
|
+
declare function addMinutesToTimeString(timeString?: any, minutes?: any): string;
|
|
11183
11225
|
declare function sameDay(date1: any, date2: any): boolean;
|
|
11184
11226
|
declare const dateTime: {
|
|
11185
11227
|
addDays: typeof addDays;
|