opticedge-cloud-utils 1.0.11 → 1.0.14

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;
@@ -116,7 +122,7 @@ export type PokemonTCGCard = {
116
122
  export type PokemonPriceHistory = {
117
123
  _id: string;
118
124
  card_id: string;
119
- card_num: string;
125
+ card_data: Partial<PokemonTCGCard>;
120
126
  pricehistory: [
121
127
  {
122
128
  date: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticedge-cloud-utils",
3
- "version": "1.0.11",
3
+ "version": "1.0.14",
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
@@ -119,7 +125,7 @@ export type PokemonTCGCard = {
119
125
  export type PokemonPriceHistory = {
120
126
  _id: string
121
127
  card_id: string
122
- card_num: string
128
+ card_data: Partial<PokemonTCGCard>
123
129
  pricehistory: [
124
130
  {
125
131
  date: string
@@ -131,6 +137,6 @@ export type PokemonPriceHistory = {
131
137
  firstEditionNormal: TCGPlayerPrices | null
132
138
  }
133
139
  cardmarket: CardMarketPrices
134
- },
140
+ }
135
141
  ]
136
142
  }