@sportsbroker/firebase-structure 3.37.0 → 3.38.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.
@@ -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;
@@ -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.38.0",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {