opticedge-cloud-utils 1.0.17 → 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.
@@ -122,7 +122,12 @@ export type PokemonTCGCard = {
122
122
  export type PokemonPriceHistory = {
123
123
  _id: string;
124
124
  card_id: string;
125
- card_data: Partial<PokemonTCGCard>;
125
+ card_data: {
126
+ name: string;
127
+ number: string;
128
+ setName: string;
129
+ setSeries: string;
130
+ };
126
131
  pricehistory: [
127
132
  {
128
133
  date: string;
@@ -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.17",
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",
@@ -125,7 +125,12 @@ export type PokemonTCGCard = {
125
125
  export type PokemonPriceHistory = {
126
126
  _id: string
127
127
  card_id: string
128
- card_data: Partial<PokemonTCGCard>
128
+ card_data: {
129
+ name: string
130
+ number: string
131
+ setName: string
132
+ setSeries: string
133
+ }
129
134
  pricehistory: [
130
135
  {
131
136
  date: string
@@ -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