@sportsbroker/firebase-structure 3.15.0 → 3.18.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,26 @@
|
|
|
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.18.0](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.17.0...v3.18.0) (2020-06-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add pay360 configuration in config ([40a0483](https://github.com/SportsBroker-HQ/firebase-structure/commit/40a04837520108ed439602bcf78f0c48a249cccf))
|
|
11
|
+
|
|
12
|
+
## 3.17.0 (2020-06-01)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* Add fee property to owned shares ([e9eaad6](https://github.com/SportsBroker-HQ/firebase-structure/commit/e9eaad684304eb9186ca353dbdab60d7f99ffc8f))
|
|
18
|
+
* add head to head collection [ch6576] ([fc8d167](https://github.com/SportsBroker-HQ/firebase-structure/commit/fc8d1672dc349759b789ef00cda009692d139b0d))
|
|
19
|
+
* add interceptions to stats [ch7168] ([17cd57a](https://github.com/SportsBroker-HQ/firebase-structure/commit/17cd57ac3c2cbc9794bdea25f838af042bf683f5))
|
|
20
|
+
* add order bankrupt type [ch8252] ([fd3d7aa](https://github.com/SportsBroker-HQ/firebase-structure/commit/fd3d7aa09788f512bc7816c4b913a9238912dbcd))
|
|
21
|
+
* **split-div:** change context of split-div to teams [ch8535] ([9065f2d](https://github.com/SportsBroker-HQ/firebase-structure/commit/9065f2d656b3f9f6441bf6627626999c4259b4b7))
|
|
22
|
+
* **static-messages:** bankrupt static use message [ch5732] ([5b13748](https://github.com/SportsBroker-HQ/firebase-structure/commit/5b13748059de3a2929afe2f615efbafda92de50f))
|
|
23
|
+
* **stats:** add new match stats [ch6571] ([01c4fef](https://github.com/SportsBroker-HQ/firebase-structure/commit/01c4fef433247f10078951cd7e6df12678f4e1a3))
|
|
24
|
+
* Add Pay360 transaction provider ([12331bb](https://github.com/SportsBroker-HQ/firebase-structure/commit/12331bbaa4c23041ecf665789791b520723d7407))
|
|
25
|
+
* Add VAR trading status inactivity reason [ch6594] ([d361375](https://github.com/SportsBroker-HQ/firebase-structure/commit/d361375d78deaa4d0ae9aba9cd4cf340d070938d))
|
|
26
|
+
* add vat to order details [ch9857] ([bad8562](https://github.com/SportsBroker-HQ/firebase-structure/commit/bad8562805f45b42b97cfaffa3b11ef2f64e9db3))
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {Percentage} from "../global";
|
|
1
|
+
import { Platforms, Percentage } from "../global";
|
|
2
2
|
|
|
3
3
|
export interface Config {
|
|
4
4
|
statusCheckRequired: boolean;
|
|
5
5
|
buyPriceFee: Percentage;
|
|
6
6
|
instantSellPriceFactor: Percentage;
|
|
7
|
+
maximumOwnedCards: number;
|
|
8
|
+
publisherId: Record<Platforms, string>;
|
|
7
9
|
}
|
|
@@ -1,31 +1,18 @@
|
|
|
1
|
-
import { ISODate
|
|
1
|
+
import { ISODate } from "../../global";
|
|
2
2
|
|
|
3
3
|
type TransactionID = string;
|
|
4
4
|
|
|
5
|
-
export
|
|
6
|
-
WITHDRAW = "WITHDRAW",
|
|
7
|
-
DEPOSIT = "DEPOSIT",
|
|
8
|
-
}
|
|
5
|
+
export type TransactionType = 'WITHDRAW' | 'DEPOSIT';
|
|
9
6
|
|
|
10
|
-
|
|
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
|
|
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
|
|
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]:
|
|
34
|
+
[transactionID: string]: Transaction;
|
|
48
35
|
};
|
|
49
36
|
}
|
package/models/global.d.ts
CHANGED