@sportsbroker/firebase-structure 3.37.0 → 3.39.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.
@@ -12,6 +12,7 @@ export interface SeasonOverview {
12
12
  name: string; // examples: "English Premier League", "Major League Soccer", "Germany Bundesliga"
13
13
  startDate: ISODate;
14
14
  shouldDisplay: boolean;
15
+ shouldDisplayTable?: boolean;
15
16
  state: SeasonState;
16
17
  type: SeasonType;
17
18
  code: string;
@@ -1,9 +1,9 @@
1
- import { Orders } from "./orders";
2
- import { Status } from "./status";
3
- import { Wallet } from "./wallet";
4
- import { Watchlist } from "./watchlist";
5
- import { Notifications } from "./notifications";
6
- import { OwnedShares } from "./ownedShares";
1
+ import { Orders } from './orders';
2
+ import { UserStatuses } from './status';
3
+ import { Wallet } from './wallet';
4
+ import { Watchlist } from './watchlist';
5
+ import { Notifications } from './notifications';
6
+ import { OwnedShares } from './ownedShares';
7
7
  import { Transactions } from './transactions';
8
8
  import { Messages } from './messages';
9
9
  import { PromoOffers } from './promoOffers';
@@ -11,7 +11,7 @@ import { UserVerificationStatuses } from './verificationStatus';
11
11
 
12
12
  export interface Users {
13
13
  orders: Orders;
14
- status: Status;
14
+ status: UserStatuses;
15
15
  wallet: Wallet;
16
16
  watchlist: Watchlist;
17
17
  notifications: Notifications;
@@ -16,10 +16,6 @@ export type NotificationType =
16
16
  | 'SHARE_SELL_UNSUCCESSFUL'
17
17
  | 'FOOTBALL_PASSPORT_STAMP_ACQUIRED'
18
18
  | 'APP_RATING'
19
- | 'APPSFLYER_BUY_ORDER_SUCCESSFUL'
20
- | 'APPSFLYER_DEPOSIT_SUCCESSFUL'
21
- | 'APPSFLYER_WITHDRAWAL_SUCCESSFUL'
22
- | 'APPSFLYER_USER_REGISTRATION_SUCCESSFUL'
23
19
  ;
24
20
 
25
21
  export type VariablesMap = {
@@ -69,30 +65,6 @@ export type VariablesMap = {
69
65
  stampUrl: string;
70
66
  };
71
67
  ['APP_RATING']: {};
72
- ['APPSFLYER_BUY_ORDER_SUCCESSFUL']: {
73
- orderId: string;
74
- teamId: string;
75
- teamName: string;
76
- sharesAmount: number;
77
- price: number;
78
- currency: string;
79
- platform: string;
80
- };
81
- ['APPSFLYER_DEPOSIT_SUCCESSFUL']: {
82
- revenue: number;
83
- currency: string;
84
- transactionId: string;
85
- platform: string;
86
- };
87
- ['APPSFLYER_WITHDRAWAL_SUCCESSFUL']: {
88
- revenue: number;
89
- currency: string;
90
- transactionId: string;
91
- platform: string;
92
- };
93
- ['APPSFLYER_USER_REGISTRATION_SUCCESSFUL']: {
94
- platform: string;
95
- };
96
68
  }
97
69
 
98
70
  export interface Notification<T extends NotificationType> {
@@ -1,15 +1,13 @@
1
- export enum UserStatus {
2
- CREATED = "CREATED",
3
- EMAIL_CONFIRMED = "EMAIL_CONFIRMED",
4
- ACTIVATED = "ACTIVATED",
5
- DEACTIVATED = "DEACTIVATED",
6
- BANNED = "BANNED",
7
- SELF_EXCLUDED = "SELF_EXCLUDED",
8
- }
1
+ export type UserStatus =
2
+ | 'CREATED'
3
+ | 'ACTIVATED'
4
+ | 'EMAIL_CONFIRMED'
5
+ | 'VERIFICATION_FAILED'
6
+ | 'DEACTIVATED'
7
+ | 'SELF_EXCLUDED'
8
+ | 'BANNED'
9
+ | 'DUPLICATED';
9
10
 
10
- /**
11
- * userID: UserID
12
- */
13
- export interface Status {
11
+ export interface UserStatuses {
14
12
  [userID: string]: UserStatus;
15
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.37.0",
3
+ "version": "3.39.0",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {