opticedge-cloud-utils 1.0.10 → 1.0.13

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.
@@ -105,7 +105,13 @@ export type PokemonTCGCard = {
105
105
  tcgplayer: {
106
106
  url: string;
107
107
  updatedAt: string;
108
- prices: TCGPlayerPrices;
108
+ prices: {
109
+ normal?: TCGPlayerPrices;
110
+ holofoil?: TCGPlayerPrices;
111
+ reverseHolofoil?: TCGPlayerPrices;
112
+ '1stEditionHolofoil'?: TCGPlayerPrices;
113
+ '1stEditionNormal'?: TCGPlayerPrices;
114
+ };
109
115
  };
110
116
  cardmarket: {
111
117
  url: string;
@@ -113,3 +119,21 @@ export type PokemonTCGCard = {
113
119
  prices: CardMarketPrices;
114
120
  };
115
121
  };
122
+ export type PokemonPriceHistory = {
123
+ _id: string;
124
+ card_id: string;
125
+ card_num: string;
126
+ pricehistory: [
127
+ {
128
+ date: string;
129
+ tcgplayer: {
130
+ normal: TCGPlayerPrices | null;
131
+ holofoil: TCGPlayerPrices | null;
132
+ reverseHolofoil: TCGPlayerPrices | null;
133
+ firstEditionHolofoil: TCGPlayerPrices | null;
134
+ firstEditionNormal: TCGPlayerPrices | null;
135
+ };
136
+ cardmarket: CardMarketPrices;
137
+ }
138
+ ];
139
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticedge-cloud-utils",
3
- "version": "1.0.10",
3
+ "version": "1.0.13",
4
4
  "description": "Common utilities for cloud functions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -3,4 +3,4 @@ export * from './db/mongo'
3
3
  export * from './types/pokemontcg'
4
4
  export * from './utils/env'
5
5
  export * from './utils/secrets'
6
- export * from './utils/task'
6
+ export * from './utils/task'
@@ -43,7 +43,7 @@ export type PokemonTCGCard = {
43
43
  name: string
44
44
  text: string
45
45
  type: string
46
- },
46
+ }
47
47
  ]
48
48
  attacks: [
49
49
  {
@@ -52,19 +52,19 @@ export type PokemonTCGCard = {
52
52
  text: string
53
53
  damage: string
54
54
  convertedEnergyCost: number
55
- },
55
+ }
56
56
  ]
57
57
  weaknesses: [
58
58
  {
59
59
  type: string
60
60
  value: string
61
- },
61
+ }
62
62
  ]
63
63
  resistances: [
64
64
  {
65
65
  type: string
66
66
  value: string
67
- },
67
+ }
68
68
  ]
69
69
  retreatCost: string[]
70
70
  convertedRetreatCost: number
@@ -97,7 +97,7 @@ export type PokemonTCGCard = {
97
97
  standard: string
98
98
  expanded: string
99
99
  unlimited: string
100
- },
100
+ }
101
101
  ]
102
102
  regulationMark: string
103
103
  images: {
@@ -107,7 +107,13 @@ export type PokemonTCGCard = {
107
107
  tcgplayer: {
108
108
  url: string
109
109
  updatedAt: string
110
- prices: TCGPlayerPrices
110
+ prices: {
111
+ normal?: TCGPlayerPrices
112
+ holofoil?: TCGPlayerPrices
113
+ reverseHolofoil?: TCGPlayerPrices
114
+ '1stEditionHolofoil'?: TCGPlayerPrices
115
+ '1stEditionNormal'?: TCGPlayerPrices
116
+ }
111
117
  }
112
118
  cardmarket: {
113
119
  url: string
@@ -115,3 +121,22 @@ export type PokemonTCGCard = {
115
121
  prices: CardMarketPrices
116
122
  }
117
123
  }
124
+
125
+ export type PokemonPriceHistory = {
126
+ _id: string
127
+ card_id: string
128
+ card_num: string
129
+ pricehistory: [
130
+ {
131
+ date: string
132
+ tcgplayer: {
133
+ normal: TCGPlayerPrices | null
134
+ holofoil: TCGPlayerPrices | null
135
+ reverseHolofoil: TCGPlayerPrices | null
136
+ firstEditionHolofoil: TCGPlayerPrices | null
137
+ firstEditionNormal: TCGPlayerPrices | null
138
+ }
139
+ cardmarket: CardMarketPrices
140
+ }
141
+ ]
142
+ }