@sportsbroker/firebase-structure 3.15.0 → 3.17.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,19 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
+
5
+ ## 3.17.0 (2020-06-01)
6
+
7
+
8
+ ### Features
9
+
10
+ * Add fee property to owned shares ([e9eaad6](https://github.com/SportsBroker-HQ/firebase-structure/commit/e9eaad684304eb9186ca353dbdab60d7f99ffc8f))
11
+ * add head to head collection [ch6576] ([fc8d167](https://github.com/SportsBroker-HQ/firebase-structure/commit/fc8d1672dc349759b789ef00cda009692d139b0d))
12
+ * add interceptions to stats [ch7168] ([17cd57a](https://github.com/SportsBroker-HQ/firebase-structure/commit/17cd57ac3c2cbc9794bdea25f838af042bf683f5))
13
+ * add order bankrupt type [ch8252] ([fd3d7aa](https://github.com/SportsBroker-HQ/firebase-structure/commit/fd3d7aa09788f512bc7816c4b913a9238912dbcd))
14
+ * **split-div:** change context of split-div to teams [ch8535] ([9065f2d](https://github.com/SportsBroker-HQ/firebase-structure/commit/9065f2d656b3f9f6441bf6627626999c4259b4b7))
15
+ * **static-messages:** bankrupt static use message [ch5732] ([5b13748](https://github.com/SportsBroker-HQ/firebase-structure/commit/5b13748059de3a2929afe2f615efbafda92de50f))
16
+ * **stats:** add new match stats [ch6571] ([01c4fef](https://github.com/SportsBroker-HQ/firebase-structure/commit/01c4fef433247f10078951cd7e6df12678f4e1a3))
17
+ * Add Pay360 transaction provider ([12331bb](https://github.com/SportsBroker-HQ/firebase-structure/commit/12331bbaa4c23041ecf665789791b520723d7407))
18
+ * Add VAR trading status inactivity reason [ch6594] ([d361375](https://github.com/SportsBroker-HQ/firebase-structure/commit/d361375d78deaa4d0ae9aba9cd4cf340d070938d))
19
+ * add vat to order details [ch9857] ([bad8562](https://github.com/SportsBroker-HQ/firebase-structure/commit/bad8562805f45b42b97cfaffa3b11ef2f64e9db3))
@@ -26,6 +26,8 @@ export interface Order {
26
26
  updatedAt: ISODate;
27
27
  status: OrderStatus;
28
28
  id: OrderID;
29
+ vatPercentage?: number;
30
+ vatProcessed?: number;
29
31
  }
30
32
 
31
33
  /**
@@ -1,31 +1,18 @@
1
- import { ISODate, SportID, UserID } from "../../global";
1
+ import { ISODate } from "../../global";
2
2
 
3
3
  type TransactionID = string;
4
4
 
5
- export enum TransactionType {
6
- WITHDRAW = "WITHDRAW",
7
- DEPOSIT = "DEPOSIT",
8
- }
5
+ export type TransactionType = 'WITHDRAW' | 'DEPOSIT';
9
6
 
10
- // currently only one supported, but will be more
11
- export enum TransactionPaymentMethod {
12
- SKRILL = "SKRILL"
13
- }
7
+ export type TransactionPaymentMethod = 'SKRILL' | 'SPORTSBROKER' | 'PAY360';
14
8
 
15
9
  /**
16
10
  * unified statuses for all transactions
17
11
  * (internally backend uses different statuses, per each provider)
18
12
  */
19
- export enum TransactionStatus {
20
- PREPARED = "PREPARED",
21
- PENDING = "PENDING",
22
- SUCCEED = "SUCCEED",
23
- FAILED = "FAILED",
24
- CANCELLED = "CANCELLED",
25
- IN_REVIEW = "IN_REVIEW",
26
- }
13
+ export type TransactionStatus = "PREPARED" | "PENDING" | "SUCCEED" | "FAILED" | "CANCELLED" | "IN_REVIEW";
27
14
 
28
- export interface Transation {
15
+ export interface Transaction {
29
16
  createdAt: ISODate;
30
17
  updatedAt: ISODate;
31
18
  executedAt?: ISODate;
@@ -44,6 +31,6 @@ export interface Transation {
44
31
  */
45
32
  export interface Transactions {
46
33
  [userID: string]: {
47
- [transactionID: string]: Transation;
34
+ [transactionID: string]: Transaction;
48
35
  };
49
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.15.0",
3
+ "version": "3.17.0",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {