tods-competition-factory 2.0.30 → 2.0.32

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.
@@ -1399,6 +1399,10 @@ declare const errorConditionConstants: {
1399
1399
  message: string;
1400
1400
  code: string;
1401
1401
  };
1402
+ DUPLICATE_ENTRY: {
1403
+ message: string;
1404
+ code: string;
1405
+ };
1402
1406
  DUPLICATE_VALUE: {
1403
1407
  message: string;
1404
1408
  code: string;
@@ -2448,6 +2452,7 @@ type GenerateDrawDefinitionArgs = {
2448
2452
  };
2449
2453
  playoffAttributes?: PlayoffAttributes;
2450
2454
  policyDefinitions?: PolicyDefinitions;
2455
+ appliedPolicies?: PolicyDefinitions;
2451
2456
  voluntaryConsolation?: {
2452
2457
  structureAbbreviation?: string;
2453
2458
  structureName?: string;
@@ -3352,11 +3357,15 @@ type TimeItemResult = {
3352
3357
  };
3353
3358
  type TimeItemArgs = {
3354
3359
  returnPreviousValues?: boolean;
3360
+ tournamentRecord?: Tournament;
3361
+ drawDefinition?: DrawDefinition;
3355
3362
  itemSubTypes?: string[];
3363
+ participantId?: string;
3356
3364
  itemType: string;
3365
+ event?: Event$1;
3357
3366
  element: any;
3358
3367
  };
3359
- declare function getTimeItem({ returnPreviousValues, itemSubTypes, itemType, element, }: TimeItemArgs): TimeItemResult & ResultType;
3368
+ declare function getTimeItem(params: TimeItemArgs): TimeItemResult & ResultType;
3360
3369
  declare function getDrawDefinitionTimeItem({ returnPreviousValues, drawDefinition, itemSubTypes, itemType }: {
3361
3370
  returnPreviousValues: any;
3362
3371
  drawDefinition: any;
@@ -4114,7 +4123,8 @@ type ModifyEventEntriesArgs = {
4114
4123
  };
4115
4124
  declare function modifyEventEntries({ entryStatus, unpairedParticipantIds, participantIdPairs, entryStage, tournamentRecord, event, }: ModifyEventEntriesArgs): any;
4116
4125
 
4117
- declare function addDrawEntries({ autoEntryPositions, entryStageSequence, ignoreStageSpace, drawDefinition, participantIds, entryStatus, roundTarget, entryStage, extension, drawId, event, }: {
4126
+ declare function addDrawEntries({ suppressDuplicateEntries, autoEntryPositions, entryStageSequence, ignoreStageSpace, drawDefinition, participantIds, entryStatus, roundTarget, entryStage, extension, drawId, event, }: {
4127
+ suppressDuplicateEntries?: boolean | undefined;
4118
4128
  autoEntryPositions?: boolean | undefined;
4119
4129
  entryStageSequence: any;
4120
4130
  ignoreStageSpace: any;
@@ -4135,8 +4145,9 @@ declare function addDrawEntries({ autoEntryPositions, entryStageSequence, ignore
4135
4145
 
4136
4146
  type AddEventEntriesArgs = {
4137
4147
  policyDefinitions?: PolicyDefinitions;
4138
- drawDefinition?: DrawDefinition;
4148
+ suppressDuplicateEntries?: boolean;
4139
4149
  entryStatus?: EntryStatusUnion;
4150
+ drawDefinition?: DrawDefinition;
4140
4151
  autoEntryPositions?: boolean;
4141
4152
  tournamentRecord: Tournament;
4142
4153
  entryStageSequence?: number;
@@ -4222,10 +4233,7 @@ declare function deleteFlightProfileAndFlightDraws({ autoPublish, tournamentReco
4222
4233
  error?: ErrorType | undefined;
4223
4234
  info?: any;
4224
4235
  } | {
4225
- error: {
4226
- message: string;
4227
- code: string;
4228
- };
4236
+ error: any;
4229
4237
  };
4230
4238
 
4231
4239
  type ModifyEventMatchUpFormatTimingArgs = {
@@ -4320,10 +4328,7 @@ declare function deleteFlightAndFlightDraw({ autoPublish, tournamentRecord, audi
4320
4328
  event: any;
4321
4329
  force: any;
4322
4330
  }): ResultType | {
4323
- error: {
4324
- message: string;
4325
- code: string;
4326
- };
4331
+ error: any;
4327
4332
  } | {
4328
4333
  success: boolean;
4329
4334
  error?: undefined;
@@ -4411,10 +4416,7 @@ type DeleteDrawDefinitionArgs = {
4411
4416
  event?: Event$1;
4412
4417
  };
4413
4418
  declare function deleteDrawDefinitions(params: DeleteDrawDefinitionArgs): ResultType | {
4414
- error: {
4415
- message: string;
4416
- code: string;
4417
- };
4419
+ error: any;
4418
4420
  };
4419
4421
 
4420
4422
  type AssignSeedPositionsArgs = {
@@ -4556,12 +4558,14 @@ type ModifyEventArgs = {
4556
4558
  eventUpdates: {
4557
4559
  eventType?: EventTypeUnion;
4558
4560
  gender?: GenderUnion;
4561
+ startDate?: string;
4562
+ endDate?: string;
4559
4563
  eventName?: string;
4560
4564
  };
4561
4565
  eventId: string;
4562
4566
  event: Event$1;
4563
4567
  };
4564
- declare function modifyEvent({ tournamentRecord, eventUpdates, eventId, event }: ModifyEventArgs): ResultType;
4568
+ declare function modifyEvent(params: ModifyEventArgs): ResultType;
4565
4569
 
4566
4570
  type AddFlightArgs = {
4567
4571
  qualifyingPositions?: number;
@@ -6288,44 +6292,7 @@ declare function modifyParticipantsSignInStatus({ tournamentRecord, participantI
6288
6292
  tournamentRecord: any;
6289
6293
  participantIds: any;
6290
6294
  signInState: any;
6291
- }): {
6292
- participant?: Participant | undefined;
6293
- tournamentId?: string | undefined;
6294
- error?: ErrorType | undefined;
6295
- } | {
6296
- error: {
6297
- message: string;
6298
- code: string;
6299
- };
6300
- info?: undefined;
6301
- } | {
6302
- error: {
6303
- message: string;
6304
- code: string;
6305
- };
6306
- info: string;
6307
- } | {
6308
- error: {
6309
- message: string;
6310
- code: string;
6311
- };
6312
- signInState: any;
6313
- context?: undefined;
6314
- } | {
6315
- error: {
6316
- message: string;
6317
- code: string;
6318
- };
6319
- context: {
6320
- invalidParticipantIds: any[];
6321
- };
6322
- signInState?: undefined;
6323
- } | {
6324
- success: boolean;
6325
- error?: undefined;
6326
- signInState?: undefined;
6327
- context?: undefined;
6328
- };
6295
+ }): any;
6329
6296
 
6330
6297
  type AddIndividualParticipantIdsType = {
6331
6298
  individualParticipantIds: string[];
@@ -7915,26 +7882,7 @@ declare function generateVirtualCourts(params: any): {
7915
7882
  courts?: undefined;
7916
7883
  };
7917
7884
 
7918
- declare function removeMatchUpCourtAssignment(params: any): {
7919
- error: {
7920
- message: string;
7921
- code: string;
7922
- };
7923
- info?: undefined;
7924
- } | {
7925
- error: {
7926
- message: string;
7927
- code: string;
7928
- };
7929
- info: string;
7930
- } | {
7931
- matchUp?: HydratedMatchUp | undefined;
7932
- structure?: Structure | undefined;
7933
- error?: ErrorType | undefined;
7934
- } | {
7935
- error?: ErrorType | undefined;
7936
- success?: boolean | undefined;
7937
- };
7885
+ declare function removeMatchUpCourtAssignment(params: any): any;
7938
7886
 
7939
7887
  type ProAutoScheduleArgs = {
7940
7888
  tournamentRecords: {
@@ -8006,38 +7954,7 @@ type AllocateTeamMatchUpCourtsArgs = {
8006
7954
  matchUpId: string;
8007
7955
  courtIds: any;
8008
7956
  };
8009
- declare function allocateTeamMatchUpCourts({ removePriorValues, tournamentRecords, tournamentRecord, drawDefinition, disableNotice, courtDayDate, matchUpId, courtIds, }: AllocateTeamMatchUpCourtsArgs): {
8010
- error: {
8011
- message: string;
8012
- code: string;
8013
- };
8014
- info?: undefined;
8015
- } | {
8016
- error: {
8017
- message: string;
8018
- code: string;
8019
- };
8020
- info: string;
8021
- } | {
8022
- success: boolean;
8023
- error?: undefined;
8024
- info?: undefined;
8025
- } | {
8026
- matchUp?: HydratedMatchUp | undefined;
8027
- structure?: Structure | undefined;
8028
- error?: ErrorType | undefined;
8029
- } | (ResultType & {
8030
- venues?: HydratedVenue[] | undefined;
8031
- courts?: HydratedCourt[] | undefined;
8032
- }) | {
8033
- error: {
8034
- message: string;
8035
- code: string;
8036
- };
8037
- context: {
8038
- courtIds: any;
8039
- };
8040
- };
7957
+ declare function allocateTeamMatchUpCourts({ removePriorValues, tournamentRecords, tournamentRecord, drawDefinition, disableNotice, courtDayDate, matchUpId, courtIds, }: AllocateTeamMatchUpCourtsArgs): any;
8041
7958
 
8042
7959
  declare function scheduleMatchUps(params: any): (ResultType & {
8043
7960
  valid?: boolean | undefined;
@@ -8298,27 +8215,7 @@ type AssignMatchUpVenueArgs = {
8298
8215
  matchUpId: string;
8299
8216
  venueId?: string;
8300
8217
  };
8301
- declare function assignMatchUpVenue({ removePriorValues, tournamentRecords, tournamentRecord, drawDefinition, disableNotice, matchUpId, venueId, }: AssignMatchUpVenueArgs): {
8302
- success?: boolean | undefined;
8303
- venue?: Venue | undefined;
8304
- error?: ErrorType | undefined;
8305
- } | {
8306
- error: {
8307
- message: string;
8308
- code: string;
8309
- };
8310
- info?: undefined;
8311
- } | {
8312
- error: {
8313
- message: string;
8314
- code: string;
8315
- };
8316
- info: string;
8317
- } | {
8318
- success: boolean;
8319
- error?: undefined;
8320
- info?: undefined;
8321
- };
8218
+ declare function assignMatchUpVenue({ removePriorValues, tournamentRecords, tournamentRecord, drawDefinition, disableNotice, matchUpId, venueId, }: AssignMatchUpVenueArgs): any;
8322
8219
 
8323
8220
  declare function validateSchedulingProfile({ tournamentRecords, schedulingProfile }: {
8324
8221
  tournamentRecords: any;
@@ -8398,120 +8295,24 @@ declare function addMatchUpScheduledDate({ scheduledDate: dateToSchedule, remove
8398
8295
  }): ResultType;
8399
8296
  declare function addMatchUpCourtOrder({ removePriorValues, tournamentRecord, drawDefinition, disableNotice, courtOrder, matchUpId, }: AddScheduleAttributeArgs & {
8400
8297
  courtOrder?: number;
8401
- }): {
8402
- error: {
8403
- message: string;
8404
- code: string;
8405
- };
8406
- info?: undefined;
8407
- } | {
8408
- error: {
8409
- message: string;
8410
- code: string;
8411
- };
8412
- info: string;
8413
- } | {
8414
- success: boolean;
8415
- error?: undefined;
8416
- info?: undefined;
8417
- };
8298
+ }): any;
8418
8299
  declare function addMatchUpOfficial({ removePriorValues, tournamentRecord, drawDefinition, disableNotice, participantId, officialType, matchUpId, }: AddScheduleAttributeArgs & {
8419
8300
  participantId?: string;
8420
8301
  officialType?: string;
8421
- }): {
8422
- error: {
8423
- message: string;
8424
- code: string;
8425
- };
8426
- info?: undefined;
8427
- } | {
8428
- error: {
8429
- message: string;
8430
- code: string;
8431
- };
8432
- info: string;
8433
- } | {
8434
- success: boolean;
8435
- error?: undefined;
8436
- info?: undefined;
8437
- };
8302
+ }): any;
8438
8303
  declare function addMatchUpStartTime({ removePriorValues, tournamentRecord, drawDefinition, disableNotice, matchUpId, startTime, event, }: AddScheduleAttributeArgs & {
8439
8304
  startTime?: string;
8440
- }): {
8441
- error: {
8442
- message: string;
8443
- code: string;
8444
- };
8445
- info?: undefined;
8446
- } | {
8447
- error: {
8448
- message: string;
8449
- code: string;
8450
- };
8451
- info: string;
8452
- } | {
8453
- success: boolean;
8454
- error?: undefined;
8455
- info?: undefined;
8456
- };
8305
+ }): any;
8457
8306
  declare function addMatchUpEndTime({ validateTimeSeries, removePriorValues, tournamentRecord, drawDefinition, disableNotice, matchUpId, endTime, event, }: AddScheduleAttributeArgs & {
8458
8307
  validateTimeSeries?: boolean;
8459
8308
  endTime?: string;
8460
- }): {
8461
- error: {
8462
- message: string;
8463
- code: string;
8464
- };
8465
- info?: undefined;
8466
- } | {
8467
- error: {
8468
- message: string;
8469
- code: string;
8470
- };
8471
- info: string;
8472
- } | {
8473
- success: boolean;
8474
- error?: undefined;
8475
- info?: undefined;
8476
- };
8309
+ }): any;
8477
8310
  declare function addMatchUpStopTime({ removePriorValues, tournamentRecord, drawDefinition, disableNotice, matchUpId, stopTime, event, }: AddScheduleAttributeArgs & {
8478
8311
  stopTime?: string;
8479
- }): {
8480
- error: {
8481
- message: string;
8482
- code: string;
8483
- };
8484
- info?: undefined;
8485
- } | {
8486
- error: {
8487
- message: string;
8488
- code: string;
8489
- };
8490
- info: string;
8491
- } | {
8492
- success: boolean;
8493
- error?: undefined;
8494
- info?: undefined;
8495
- };
8312
+ }): any;
8496
8313
  declare function addMatchUpResumeTime({ removePriorValues, tournamentRecord, drawDefinition, disableNotice, resumeTime, matchUpId, event, }: AddScheduleAttributeArgs & {
8497
8314
  resumeTime?: string;
8498
- }): {
8499
- error: {
8500
- message: string;
8501
- code: string;
8502
- };
8503
- info?: undefined;
8504
- } | {
8505
- error: {
8506
- message: string;
8507
- code: string;
8508
- };
8509
- info: string;
8510
- } | {
8511
- success: boolean;
8512
- error?: undefined;
8513
- info?: undefined;
8514
- };
8315
+ }): any;
8515
8316
 
8516
8317
  declare const mutate$4_addMatchUpCourtOrder: typeof addMatchUpCourtOrder;
8517
8318
  declare const mutate$4_addMatchUpEndTime: typeof addMatchUpEndTime;
@@ -9274,29 +9075,17 @@ declare function setTournamentEndDate({ tournamentRecord, endDate }: {
9274
9075
  };
9275
9076
 
9276
9077
  type AddTimeItemArgs = {
9078
+ tournamentRecord?: Tournament;
9079
+ drawDefinition?: DrawDefinition;
9277
9080
  removePriorValues?: boolean;
9278
9081
  duplicateValues?: boolean;
9082
+ participantId?: string;
9279
9083
  creationTime?: boolean;
9280
9084
  timeItem: TimeItem;
9085
+ event?: Event$1;
9281
9086
  element: any;
9282
9087
  };
9283
- declare function addTimeItem(params: AddTimeItemArgs): {
9284
- error: {
9285
- message: string;
9286
- code: string;
9287
- };
9288
- info?: undefined;
9289
- } | {
9290
- error: {
9291
- message: string;
9292
- code: string;
9293
- };
9294
- info: string;
9295
- } | {
9296
- success: boolean;
9297
- error?: undefined;
9298
- info?: undefined;
9299
- };
9088
+ declare function addTimeItem(params: AddTimeItemArgs): any;
9300
9089
  type AddParticipantTimeItemArgs = {
9301
9090
  tournamentRecord: Tournament;
9302
9091
  removePriorValues?: boolean;
@@ -9305,61 +9094,9 @@ type AddParticipantTimeItemArgs = {
9305
9094
  participantId: string;
9306
9095
  timeItem: TimeItem;
9307
9096
  };
9308
- declare function addParticipantTimeItem({ creationTime, removePriorValues, tournamentRecord, duplicateValues, participantId, timeItem, }: AddParticipantTimeItemArgs): {
9309
- participant?: Participant | undefined;
9310
- tournamentId?: string | undefined;
9311
- error?: ErrorType | undefined;
9312
- } | {
9313
- error: {
9314
- message: string;
9315
- code: string;
9316
- };
9317
- info?: undefined;
9318
- } | {
9319
- error: {
9320
- message: string;
9321
- code: string;
9322
- };
9323
- info: string;
9324
- } | {
9325
- success: boolean;
9326
- error?: undefined;
9327
- info?: undefined;
9328
- };
9329
- declare function addTournamentTimeItem(params: any): {
9330
- error: {
9331
- message: string;
9332
- code: string;
9333
- };
9334
- info?: undefined;
9335
- } | {
9336
- error: {
9337
- message: string;
9338
- code: string;
9339
- };
9340
- info: string;
9341
- } | {
9342
- success: boolean;
9343
- error?: undefined;
9344
- info?: undefined;
9345
- };
9346
- declare function addEventTimeItem(params: any): {
9347
- error: {
9348
- message: string;
9349
- code: string;
9350
- };
9351
- info?: undefined;
9352
- } | {
9353
- error: {
9354
- message: string;
9355
- code: string;
9356
- };
9357
- info: string;
9358
- } | {
9359
- success: boolean;
9360
- error?: undefined;
9361
- info?: undefined;
9362
- };
9097
+ declare function addParticipantTimeItem({ creationTime, removePriorValues, tournamentRecord, duplicateValues, participantId, timeItem, }: AddParticipantTimeItemArgs): any;
9098
+ declare function addTournamentTimeItem(params: any): any;
9099
+ declare function addEventTimeItem(params: any): any;
9363
9100
 
9364
9101
  type AddExtensionArgs = {
9365
9102
  tournamentRecord?: Tournament;
@@ -11304,6 +11041,7 @@ declare const topicConstants: {
11304
11041
  ADD_SCALE_ITEMS: string;
11305
11042
  ADD_VENUE: string;
11306
11043
  AUDIT: string;
11044
+ DATA_ISSUE: string;
11307
11045
  DELETE_PARTICIPANTS: string;
11308
11046
  DELETE_VENUE: string;
11309
11047
  DELETED_DRAW_IDS: string;