@sportsbroker/firebase-structure 3.45.0-0 → 3.46.0-0
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.
|
@@ -2,74 +2,75 @@ import { ISODate } from "../../global";
|
|
|
2
2
|
|
|
3
3
|
export type NotificationID = string;
|
|
4
4
|
|
|
5
|
-
export type OrderType =
|
|
6
|
-
| 'MARKET'
|
|
7
|
-
| 'LIMIT';
|
|
5
|
+
export type OrderType = "MARKET" | "LIMIT";
|
|
8
6
|
|
|
9
7
|
export type NotificationType =
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
;
|
|
8
|
+
| "CUSTOM"
|
|
9
|
+
| "TEAM_BANKRUPT"
|
|
10
|
+
| "SHARE_SPLIT"
|
|
11
|
+
| "SHARE_BUY_SUCCESSFUL"
|
|
12
|
+
| "SHARE_SELL_SUCCESSFUL"
|
|
13
|
+
| "SHARE_BUY_UNSUCCESSFUL"
|
|
14
|
+
| "SHARE_SELL_UNSUCCESSFUL"
|
|
15
|
+
| "FOOTBALL_PASSPORT_STAMP_ACQUIRED"
|
|
16
|
+
| "APP_RATING"
|
|
17
|
+
| "APPSFLYER_BUY_ORDER_SUCCESSFUL"
|
|
18
|
+
| "APPSFLYER_DEPOSIT_SUCCESSFUL"
|
|
19
|
+
| "APPSFLYER_WITHDRAWAL_SUCCESSFUL"
|
|
20
|
+
| "APPSFLYER_USER_REGISTRATION_SUCCESSFUL"
|
|
21
|
+
| "REFERRAL_BONUS_GRANTED";
|
|
24
22
|
|
|
25
23
|
export type VariablesMap = {
|
|
26
|
-
[
|
|
24
|
+
["REFERRAL_BONUS_GRANTED"]: {
|
|
25
|
+
bonusAmount: number;
|
|
26
|
+
};
|
|
27
|
+
["CUSTOM"]: {
|
|
27
28
|
title: string;
|
|
28
29
|
content: string;
|
|
29
30
|
icon?: string;
|
|
30
31
|
};
|
|
31
|
-
[
|
|
32
|
+
["TEAM_BANKRUPT"]: {
|
|
32
33
|
teamId: string;
|
|
33
34
|
teamName: string;
|
|
34
35
|
};
|
|
35
|
-
[
|
|
36
|
-
[
|
|
36
|
+
["SHARE_SPLIT"]: {};
|
|
37
|
+
["SHARE_BUY_SUCCESSFUL"]: {
|
|
37
38
|
orderId: number;
|
|
38
|
-
orderType: OrderType
|
|
39
|
+
orderType: OrderType;
|
|
39
40
|
shareAmount: number;
|
|
40
41
|
teamId: string;
|
|
41
42
|
teamName: string;
|
|
42
43
|
};
|
|
43
|
-
[
|
|
44
|
+
["SHARE_SELL_SUCCESSFUL"]: {
|
|
44
45
|
orderId: number;
|
|
45
|
-
orderType: OrderType
|
|
46
|
+
orderType: OrderType;
|
|
46
47
|
shareAmount: number;
|
|
47
48
|
teamId: string;
|
|
48
49
|
teamName: string;
|
|
49
50
|
};
|
|
50
|
-
[
|
|
51
|
+
["SHARE_BUY_UNSUCCESSFUL"]: {
|
|
51
52
|
orderId: number;
|
|
52
|
-
orderType: OrderType
|
|
53
|
+
orderType: OrderType;
|
|
53
54
|
shareAmount: number;
|
|
54
55
|
teamId: string;
|
|
55
56
|
teamName: string;
|
|
56
57
|
};
|
|
57
|
-
[
|
|
58
|
+
["SHARE_SELL_UNSUCCESSFUL"]: {
|
|
58
59
|
orderId: number;
|
|
59
|
-
orderType: OrderType
|
|
60
|
+
orderType: OrderType;
|
|
60
61
|
shareAmount: number;
|
|
61
62
|
teamId: string;
|
|
62
63
|
teamName: string;
|
|
63
64
|
};
|
|
64
|
-
[
|
|
65
|
+
["FOOTBALL_PASSPORT_STAMP_ACQUIRED"]: {
|
|
65
66
|
tournamentId: string;
|
|
66
67
|
tournamentName: string;
|
|
67
68
|
refundAmount: number;
|
|
68
69
|
promoEndDate: string;
|
|
69
70
|
stampUrl: string;
|
|
70
71
|
};
|
|
71
|
-
[
|
|
72
|
-
[
|
|
72
|
+
["APP_RATING"]: {};
|
|
73
|
+
["APPSFLYER_BUY_ORDER_SUCCESSFUL"]: {
|
|
73
74
|
orderId: string;
|
|
74
75
|
teamId: string;
|
|
75
76
|
teamName: string;
|
|
@@ -78,22 +79,22 @@ export type VariablesMap = {
|
|
|
78
79
|
currency: string;
|
|
79
80
|
platform: string;
|
|
80
81
|
};
|
|
81
|
-
[
|
|
82
|
+
["APPSFLYER_DEPOSIT_SUCCESSFUL"]: {
|
|
82
83
|
revenue: number;
|
|
83
84
|
currency: string;
|
|
84
85
|
transactionId: string;
|
|
85
86
|
platform: string;
|
|
86
87
|
};
|
|
87
|
-
[
|
|
88
|
+
["APPSFLYER_WITHDRAWAL_SUCCESSFUL"]: {
|
|
88
89
|
revenue: number;
|
|
89
90
|
currency: string;
|
|
90
91
|
transactionId: string;
|
|
91
92
|
platform: string;
|
|
92
93
|
};
|
|
93
|
-
[
|
|
94
|
+
["APPSFLYER_USER_REGISTRATION_SUCCESSFUL"]: {
|
|
94
95
|
platform: string;
|
|
95
96
|
};
|
|
96
|
-
}
|
|
97
|
+
};
|
|
97
98
|
|
|
98
99
|
export interface Notification<T extends NotificationType> {
|
|
99
100
|
type: T;
|
|
@@ -109,7 +110,8 @@ export interface Notification<T extends NotificationType> {
|
|
|
109
110
|
export interface Notifications {
|
|
110
111
|
[userId: string]: {
|
|
111
112
|
unreadCount: number;
|
|
112
|
-
en: {
|
|
113
|
+
en: {
|
|
114
|
+
// This is for backward compatibility
|
|
113
115
|
entries: {
|
|
114
116
|
[notificationId: string]: Notification<NotificationType>;
|
|
115
117
|
};
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
TeamSide,
|
|
12
12
|
TournamentType,
|
|
13
13
|
} from "../global";
|
|
14
|
+
import {MatchTime} from "../details/matches/overviews";
|
|
14
15
|
|
|
15
16
|
export interface Team {
|
|
16
17
|
id: TeamID;
|
|
@@ -50,10 +51,7 @@ export interface EventStatus {
|
|
|
50
51
|
matchStatus: MatchStatus;
|
|
51
52
|
period: MatchPeriod;
|
|
52
53
|
isActive: boolean;
|
|
53
|
-
matchTime:
|
|
54
|
-
minutes: number;
|
|
55
|
-
additionalMinutes: number;
|
|
56
|
-
};
|
|
54
|
+
matchTime: MatchTime
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
export interface MatchOverviewSnapshot {
|