@sportsbroker/firebase-structure 3.17.0 → 3.19.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 CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
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
4
 
5
+ ## [3.19.0](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.18.0...v3.19.0) (2020-09-02)
6
+
7
+
8
+ ### Features
9
+
10
+ * Recently aborted and order child id ([49a302d](https://github.com/SportsBroker-HQ/firebase-structure/commit/49a302d43163685f2492dcf555a64e83101b9d5d))
11
+
12
+ ## [3.18.0](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.17.0...v3.18.0) (2020-06-19)
13
+
14
+
15
+ ### Features
16
+
17
+ * add pay360 configuration in config ([40a0483](https://github.com/SportsBroker-HQ/firebase-structure/commit/40a04837520108ed439602bcf78f0c48a249cccf))
18
+
5
19
  ## 3.17.0 (2020-06-01)
6
20
 
7
21
 
@@ -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
  }
@@ -28,6 +28,7 @@ export interface Order {
28
28
  id: OrderID;
29
29
  vatPercentage?: number;
30
30
  vatProcessed?: number;
31
+ childId?: OrderID;
31
32
  }
32
33
 
33
34
  /**
@@ -57,3 +57,5 @@ export interface WithSeasons {
57
57
  [seasonsName: string]: boolean; // Firebase will treat it as an array. Available: "BUND2018" | "EPL2018"
58
58
  };
59
59
  }
60
+
61
+ export type Platforms = 'IOS' | 'WEB' | 'ANDROID';
@@ -21,6 +21,11 @@ interface Orders {
21
21
  [orderID: string]: OrderQueryData; //any status except Active
22
22
  };
23
23
  };
24
+ recentlyAborted: {
25
+ [userID: string]: {
26
+ [orderID: string]: ISODate;
27
+ };
28
+ };
24
29
  };
25
30
  }
26
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.17.0",
3
+ "version": "3.19.0",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {