@mediahub-bg/ott-objects 0.4.8 → 0.4.9
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/package.json +1 -1
- package/web/types.ts +208 -0
package/package.json
CHANGED
package/web/types.ts
CHANGED
|
@@ -604,6 +604,214 @@ export interface PubPic {
|
|
|
604
604
|
url: string;
|
|
605
605
|
}
|
|
606
606
|
|
|
607
|
+
//////////
|
|
608
|
+
// source: sport_pub.go
|
|
609
|
+
/*
|
|
610
|
+
Copyright (C) MediaHub Ltd - All Rights Reserved
|
|
611
|
+
* Unauthorized copying of this file, via any medium is strictly prohibited
|
|
612
|
+
* Proprietary and confidential
|
|
613
|
+
* Written by Peter Gerasimov <gerasimov@mediahub.eu>, April 2026
|
|
614
|
+
*/
|
|
615
|
+
|
|
616
|
+
export interface SportObjectCommon {
|
|
617
|
+
n: number /* int */;
|
|
618
|
+
ut: number /* int64 */;
|
|
619
|
+
id: number /* int64 */;
|
|
620
|
+
updatedAt: number /* int64 */;
|
|
621
|
+
}
|
|
622
|
+
export interface SportImage {
|
|
623
|
+
SportObjectCommon: SportObjectCommon;
|
|
624
|
+
object: string;
|
|
625
|
+
objectFK: number /* int64 */;
|
|
626
|
+
type: string;
|
|
627
|
+
contentType: string;
|
|
628
|
+
name: string;
|
|
629
|
+
value: string;
|
|
630
|
+
}
|
|
631
|
+
export interface SportParticipant {
|
|
632
|
+
SportObjectCommon: SportObjectCommon;
|
|
633
|
+
name: string;
|
|
634
|
+
gender: string;
|
|
635
|
+
type: string;
|
|
636
|
+
countryFK: number /* int64 */;
|
|
637
|
+
countryName: string;
|
|
638
|
+
}
|
|
639
|
+
export interface SportStandingData {
|
|
640
|
+
SportObjectCommon: SportObjectCommon;
|
|
641
|
+
standingTypeParamFK: number /* int64 */;
|
|
642
|
+
value: string;
|
|
643
|
+
code: string;
|
|
644
|
+
subParam?: string;
|
|
645
|
+
}
|
|
646
|
+
export interface SportStandingParticipant {
|
|
647
|
+
SportObjectCommon: SportObjectCommon;
|
|
648
|
+
standingFK: number /* int64 */;
|
|
649
|
+
participantFK: number /* int64 */;
|
|
650
|
+
rank: number /* int */;
|
|
651
|
+
participant: SportParticipant;
|
|
652
|
+
data: SportStandingData[];
|
|
653
|
+
}
|
|
654
|
+
export interface SportStandingEventStats {
|
|
655
|
+
SportObjectCommon: SportObjectCommon;
|
|
656
|
+
object: string;
|
|
657
|
+
objectFK: number /* int64 */;
|
|
658
|
+
standingTypeFK: number /* int64 */;
|
|
659
|
+
name: string;
|
|
660
|
+
participants: SportStandingParticipant[];
|
|
661
|
+
}
|
|
662
|
+
export interface SportEventProperty {
|
|
663
|
+
SportObjectCommon: SportObjectCommon;
|
|
664
|
+
type: string;
|
|
665
|
+
name: string;
|
|
666
|
+
value: string;
|
|
667
|
+
}
|
|
668
|
+
export interface SportTeamParticipant {
|
|
669
|
+
SportObjectCommon: SportObjectCommon;
|
|
670
|
+
name: string;
|
|
671
|
+
gender: string;
|
|
672
|
+
type: string;
|
|
673
|
+
countryFK: number /* int64 */;
|
|
674
|
+
countryName: string;
|
|
675
|
+
isNationalTeam: boolean;
|
|
676
|
+
toBeDecided: boolean;
|
|
677
|
+
homepage: string;
|
|
678
|
+
homeShirtColor1: string;
|
|
679
|
+
customRank: number /* int */;
|
|
680
|
+
properties?: SportEventProperty[];
|
|
681
|
+
}
|
|
682
|
+
export interface SportEventElapsed {
|
|
683
|
+
SportObjectCommon: SportObjectCommon;
|
|
684
|
+
elapsed: number /* int */;
|
|
685
|
+
injuryTime: boolean;
|
|
686
|
+
injuryTimeElapsed: number /* int */;
|
|
687
|
+
timeType: string;
|
|
688
|
+
}
|
|
689
|
+
export interface SportEventVideoProvider {
|
|
690
|
+
type: string;
|
|
691
|
+
epg?: PubEPG;
|
|
692
|
+
vodEPG?: PubVodEPG;
|
|
693
|
+
}
|
|
694
|
+
export interface SportEventParticipantResult {
|
|
695
|
+
SportObjectCommon: SportObjectCommon;
|
|
696
|
+
typeFK: number /* int64 */;
|
|
697
|
+
eventParticipantFK: number /* int64 */;
|
|
698
|
+
code: string;
|
|
699
|
+
value: string;
|
|
700
|
+
}
|
|
701
|
+
export interface SportEventParticipantIncident {
|
|
702
|
+
SportObjectCommon: SportObjectCommon;
|
|
703
|
+
typeFK: number /* int64 */;
|
|
704
|
+
incidentCode: string;
|
|
705
|
+
elapsed: number /* int */;
|
|
706
|
+
elapsedPlus: number /* int */;
|
|
707
|
+
sortOrder: number /* int */;
|
|
708
|
+
eventParticipantFK: number /* int64 */;
|
|
709
|
+
eventIncidentFK: number /* int64 */;
|
|
710
|
+
refParticipantFK: number /* int64 */;
|
|
711
|
+
incidentMinute: number /* int */;
|
|
712
|
+
playerName: string;
|
|
713
|
+
reason: string;
|
|
714
|
+
properties?: SportEventProperty[];
|
|
715
|
+
participant: SportParticipant;
|
|
716
|
+
}
|
|
717
|
+
export interface SportEventParticipantLineup {
|
|
718
|
+
SportObjectCommon: SportObjectCommon;
|
|
719
|
+
typeFK: number /* int64 */;
|
|
720
|
+
shirtNumber: number /* int */;
|
|
721
|
+
position: number /* int */;
|
|
722
|
+
eventParticipantFK: number /* int64 */;
|
|
723
|
+
participantFK: number /* int64 */;
|
|
724
|
+
properties?: SportEventProperty[];
|
|
725
|
+
participant: SportParticipant;
|
|
726
|
+
}
|
|
727
|
+
export interface SportEventParticipant {
|
|
728
|
+
SportObjectCommon: SportObjectCommon;
|
|
729
|
+
number: number /* int */;
|
|
730
|
+
participantFK: number /* int64 */;
|
|
731
|
+
eventFK: number /* int64 */;
|
|
732
|
+
kit: string;
|
|
733
|
+
formation: string;
|
|
734
|
+
participant: SportTeamParticipant;
|
|
735
|
+
results: SportEventParticipantResult[];
|
|
736
|
+
lineups: SportEventParticipantLineup[];
|
|
737
|
+
incidents: SportEventParticipantIncident[];
|
|
738
|
+
properties?: SportEventProperty[];
|
|
739
|
+
}
|
|
740
|
+
export interface SportEventIncidentDetail {
|
|
741
|
+
SportObjectCommon: SportObjectCommon;
|
|
742
|
+
type: string;
|
|
743
|
+
participantFK: number /* int64 */;
|
|
744
|
+
eventIncidentFK: number /* int64 */;
|
|
745
|
+
value: string;
|
|
746
|
+
}
|
|
747
|
+
export interface SportEventIncident {
|
|
748
|
+
SportObjectCommon: SportObjectCommon;
|
|
749
|
+
eventFK: number /* int64 */;
|
|
750
|
+
sportFK: number /* int64 */;
|
|
751
|
+
incidentTypeFK: number /* int64 */;
|
|
752
|
+
elapsed: number /* int */;
|
|
753
|
+
elapsedPlus: number /* int */;
|
|
754
|
+
comment: string;
|
|
755
|
+
sortOrder: number /* int */;
|
|
756
|
+
details: SportEventIncidentDetail[];
|
|
757
|
+
}
|
|
758
|
+
export interface SportEventBase {
|
|
759
|
+
SportObjectCommon: SportObjectCommon;
|
|
760
|
+
sportId: number /* int */;
|
|
761
|
+
name: string;
|
|
762
|
+
startDate: number /* int64 */;
|
|
763
|
+
tournamentFK: number /* int64 */;
|
|
764
|
+
tournamentStageFK: number /* int64 */;
|
|
765
|
+
tournamentTemplateFK: number /* int64 */;
|
|
766
|
+
statusType: string;
|
|
767
|
+
statusDescFK: number /* int64 */;
|
|
768
|
+
roundTypeFK: number /* int64 */;
|
|
769
|
+
locked: boolean;
|
|
770
|
+
tournamentStageName: string;
|
|
771
|
+
tournamentName: string;
|
|
772
|
+
tournamentTemplateName: string;
|
|
773
|
+
sportName: string;
|
|
774
|
+
venueName: string;
|
|
775
|
+
gender: string;
|
|
776
|
+
round: string;
|
|
777
|
+
live: boolean;
|
|
778
|
+
verified: boolean;
|
|
779
|
+
realStart: number /* int64 */;
|
|
780
|
+
realEnd: number /* int64 */;
|
|
781
|
+
spectators: number /* int */;
|
|
782
|
+
commentary: string;
|
|
783
|
+
videoProvider?: SportEventVideoProvider;
|
|
784
|
+
properties: SportEventProperty[];
|
|
785
|
+
participants: SportEventParticipant[];
|
|
786
|
+
elapsed: SportEventElapsed[];
|
|
787
|
+
incidents: SportEventIncident[];
|
|
788
|
+
}
|
|
789
|
+
export interface SportEventSoccer {
|
|
790
|
+
SportEventBase: SportEventBase;
|
|
791
|
+
refereeFK: number /* int64 */;
|
|
792
|
+
assistant1RefereeFK: number /* int64 */;
|
|
793
|
+
fourthRefereeFK: number /* int64 */;
|
|
794
|
+
var1RefereeFK: number /* int64 */;
|
|
795
|
+
var2RefereeFK: number /* int64 */;
|
|
796
|
+
assistant2RefereeFK: number /* int64 */;
|
|
797
|
+
firstHalfEnd: number /* int64 */;
|
|
798
|
+
secondHalfStart: number /* int64 */;
|
|
799
|
+
secondHalfEnd: number /* int64 */;
|
|
800
|
+
lineupConfirmed: boolean;
|
|
801
|
+
}
|
|
802
|
+
export interface SportEventSoccerResult {
|
|
803
|
+
event: SportEventSoccer;
|
|
804
|
+
standing?: SportStandingEventStats;
|
|
805
|
+
}
|
|
806
|
+
export interface SportSoccerTeamRank {
|
|
807
|
+
id: number /* int64 */;
|
|
808
|
+
rank: number /* int */;
|
|
809
|
+
}
|
|
810
|
+
export interface PubSportConfig {
|
|
811
|
+
id: number /* int */;
|
|
812
|
+
name: string;
|
|
813
|
+
}
|
|
814
|
+
|
|
607
815
|
//////////
|
|
608
816
|
// source: token_pub.go
|
|
609
817
|
|