tods-competition-factory 2.0.20 → 2.0.21
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 +6 -6
- package/dist/tods-competition-factory.d.ts +11 -13
- package/dist/tods-competition-factory.development.cjs.js +427 -349
- 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 +1 -1
|
@@ -66,9 +66,11 @@ interface Tournament {
|
|
|
66
66
|
tournamentName?: string;
|
|
67
67
|
tournamentOtherIds?: UnifiedTournamentID[];
|
|
68
68
|
tournamentRank?: string;
|
|
69
|
+
tournamentStatus?: TournamentStatusUnion;
|
|
69
70
|
updatedAt?: Date | string;
|
|
70
71
|
venues?: Venue[];
|
|
71
72
|
}
|
|
73
|
+
type TournamentStatusUnion = 'ABANDONDED' | 'CANCELLED' | 'ACTIVE' | 'COMPLETED';
|
|
72
74
|
interface Organisation {
|
|
73
75
|
onlineResources?: OnlineResource[];
|
|
74
76
|
organisationAbbreviation: string;
|
|
@@ -2830,6 +2832,7 @@ declare function addPlayoffStructures(params: any): ResultType & {
|
|
|
2830
2832
|
|
|
2831
2833
|
type AutomatedPositioningArgs = {
|
|
2832
2834
|
inContextDrawMatchUps?: HydratedMatchUp[];
|
|
2835
|
+
participants?: HydratedParticipant[];
|
|
2833
2836
|
appliedPolicies?: PolicyDefinitions;
|
|
2834
2837
|
provisionalPositioning?: boolean;
|
|
2835
2838
|
seedingProfile?: SeedingProfile;
|
|
@@ -2847,7 +2850,7 @@ type AutomatedPositioningArgs = {
|
|
|
2847
2850
|
drawSize?: number;
|
|
2848
2851
|
event?: Event$1;
|
|
2849
2852
|
};
|
|
2850
|
-
declare function automatedPositioning(
|
|
2853
|
+
declare function automatedPositioning(params: AutomatedPositioningArgs): ResultType & {
|
|
2851
2854
|
positionAssignments?: PositionAssignment[];
|
|
2852
2855
|
positioningReport?: {
|
|
2853
2856
|
[key: string]: any;
|
|
@@ -7078,11 +7081,6 @@ declare namespace mutate$5 {
|
|
|
7078
7081
|
export { mutate$5_publishEvent as publishEvent, mutate$5_publishEventSeeding as publishEventSeeding, mutate$5_publishOrderOfPlay as publishOrderOfPlay, mutate$5_setEventDisplay as setEventDisplay, mutate$5_unPublishEvent as unPublishEvent, mutate$5_unPublishEventSeeding as unPublishEventSeeding, mutate$5_unPublishOrderOfPlay as unPublishOrderOfPlay };
|
|
7079
7082
|
}
|
|
7080
7083
|
|
|
7081
|
-
declare function getTournamentPublishStatus({ tournamentRecord, status }: {
|
|
7082
|
-
tournamentRecord: any;
|
|
7083
|
-
status?: string | undefined;
|
|
7084
|
-
}): any;
|
|
7085
|
-
|
|
7086
7084
|
declare function getEventPublishStatus({ event, status }: {
|
|
7087
7085
|
event: any;
|
|
7088
7086
|
status?: string | undefined;
|
|
@@ -7095,7 +7093,7 @@ type GetPublishStateArgs = {
|
|
|
7095
7093
|
drawIds?: string[];
|
|
7096
7094
|
eventId?: string;
|
|
7097
7095
|
drawId?: string;
|
|
7098
|
-
event
|
|
7096
|
+
event?: Event$1;
|
|
7099
7097
|
};
|
|
7100
7098
|
declare function getPublishState(params: GetPublishStateArgs): ResultType & {
|
|
7101
7099
|
publishState?: any;
|
|
@@ -7172,10 +7170,9 @@ declare const query$5_getDrawData: typeof getDrawData;
|
|
|
7172
7170
|
declare const query$5_getEventData: typeof getEventData;
|
|
7173
7171
|
declare const query$5_getEventPublishStatus: typeof getEventPublishStatus;
|
|
7174
7172
|
declare const query$5_getPublishState: typeof getPublishState;
|
|
7175
|
-
declare const query$5_getTournamentPublishStatus: typeof getTournamentPublishStatus;
|
|
7176
7173
|
declare const query$5_getVenueData: typeof getVenueData;
|
|
7177
7174
|
declare namespace query$5 {
|
|
7178
|
-
export { query$5_bulkUpdatePublishedEventIds as bulkUpdatePublishedEventIds, query$5_getAllEventData as getAllEventData, query$5_getCourtInfo as getCourtInfo, query$5_getDrawData as getDrawData, query$5_getEventData as getEventData, query$5_getEventPublishStatus as getEventPublishStatus, query$5_getPublishState as getPublishState, query$
|
|
7175
|
+
export { query$5_bulkUpdatePublishedEventIds as bulkUpdatePublishedEventIds, query$5_getAllEventData as getAllEventData, query$5_getCourtInfo as getCourtInfo, query$5_getDrawData as getDrawData, query$5_getEventData as getEventData, query$5_getEventPublishStatus as getEventPublishStatus, query$5_getPublishState as getPublishState, query$5_getVenueData as getVenueData };
|
|
7179
7176
|
}
|
|
7180
7177
|
|
|
7181
7178
|
declare const index$a_bulkUpdatePublishedEventIds: typeof bulkUpdatePublishedEventIds;
|
|
@@ -7185,7 +7182,6 @@ declare const index$a_getDrawData: typeof getDrawData;
|
|
|
7185
7182
|
declare const index$a_getEventData: typeof getEventData;
|
|
7186
7183
|
declare const index$a_getEventPublishStatus: typeof getEventPublishStatus;
|
|
7187
7184
|
declare const index$a_getPublishState: typeof getPublishState;
|
|
7188
|
-
declare const index$a_getTournamentPublishStatus: typeof getTournamentPublishStatus;
|
|
7189
7185
|
declare const index$a_getVenueData: typeof getVenueData;
|
|
7190
7186
|
declare const index$a_publishEvent: typeof publishEvent;
|
|
7191
7187
|
declare const index$a_publishEventSeeding: typeof publishEventSeeding;
|
|
@@ -7195,7 +7191,7 @@ declare const index$a_unPublishEvent: typeof unPublishEvent;
|
|
|
7195
7191
|
declare const index$a_unPublishEventSeeding: typeof unPublishEventSeeding;
|
|
7196
7192
|
declare const index$a_unPublishOrderOfPlay: typeof unPublishOrderOfPlay;
|
|
7197
7193
|
declare namespace index$a {
|
|
7198
|
-
export { index$a_bulkUpdatePublishedEventIds as bulkUpdatePublishedEventIds, index$a_getAllEventData as getAllEventData, index$a_getCourtInfo as getCourtInfo, index$a_getDrawData as getDrawData, index$a_getEventData as getEventData, index$a_getEventPublishStatus as getEventPublishStatus, index$a_getPublishState as getPublishState, index$
|
|
7194
|
+
export { index$a_bulkUpdatePublishedEventIds as bulkUpdatePublishedEventIds, index$a_getAllEventData as getAllEventData, index$a_getCourtInfo as getCourtInfo, index$a_getDrawData as getDrawData, index$a_getEventData as getEventData, index$a_getEventPublishStatus as getEventPublishStatus, index$a_getPublishState as getPublishState, index$a_getVenueData as getVenueData, mutate$5 as mutate, index$a_publishEvent as publishEvent, index$a_publishEventSeeding as publishEventSeeding, index$a_publishOrderOfPlay as publishOrderOfPlay, query$5 as query, index$a_setEventDisplay as setEventDisplay, index$a_unPublishEvent as unPublishEvent, index$a_unPublishEventSeeding as unPublishEventSeeding, index$a_unPublishOrderOfPlay as unPublishOrderOfPlay };
|
|
7199
7195
|
}
|
|
7200
7196
|
|
|
7201
7197
|
type FindExtensionType = {
|
|
@@ -7285,10 +7281,12 @@ declare function analyzeTournament({ tournamentRecord }: {
|
|
|
7285
7281
|
error?: undefined;
|
|
7286
7282
|
};
|
|
7287
7283
|
|
|
7288
|
-
declare function getTournamentInfo(
|
|
7289
|
-
tournamentRecord:
|
|
7284
|
+
declare function getTournamentInfo(params?: {
|
|
7285
|
+
tournamentRecord: Tournament;
|
|
7286
|
+
usePublishState?: boolean;
|
|
7290
7287
|
}): {
|
|
7291
7288
|
tournamentInfo?: any;
|
|
7289
|
+
eventInfo?: any[];
|
|
7292
7290
|
error?: ErrorType;
|
|
7293
7291
|
};
|
|
7294
7292
|
|