opticedge-cloud-utils 1.0.18 → 1.0.19

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.
@@ -17,6 +17,10 @@ type PriceChartingPrice = {
17
17
  retailNewBuy: number | null;
18
18
  retailNewSell: number | null;
19
19
  };
20
+ type PriceChartingPriceEntry = {
21
+ date: string;
22
+ price: PriceChartingPrice;
23
+ };
20
24
  export type PriceChartingCard = {
21
25
  id: number;
22
26
  consoleName: string;
@@ -28,7 +32,7 @@ export type PriceChartingCard = {
28
32
  epid: string;
29
33
  releaseDate: string;
30
34
  price: PriceChartingPrice;
31
- priceHistory: [PriceChartingPrice];
35
+ priceHistory: [PriceChartingPriceEntry];
32
36
  salesVolume: number | null;
33
37
  salesVolumeHistory: [number | null];
34
38
  updatedAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticedge-cloud-utils",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "Common utilities for cloud functions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,6 +18,11 @@ type PriceChartingPrice = {
18
18
  retailNewSell: number | null
19
19
  }
20
20
 
21
+ type PriceChartingPriceEntry = {
22
+ date: string
23
+ price: PriceChartingPrice
24
+ }
25
+
21
26
  export type PriceChartingCard = {
22
27
  id: number
23
28
  consoleName: string
@@ -29,7 +34,7 @@ export type PriceChartingCard = {
29
34
  epid: string
30
35
  releaseDate: string
31
36
  price: PriceChartingPrice
32
- priceHistory: [PriceChartingPrice]
37
+ priceHistory: [PriceChartingPriceEntry]
33
38
  salesVolume: number | null
34
39
  salesVolumeHistory: [number | null]
35
40
  updatedAt: string