opticedge-types 1.0.45 → 1.0.46
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PriceChartingPrice } from './pricecharting';
|
|
2
|
-
export type
|
|
2
|
+
export type PokemonTcgSet = {
|
|
3
3
|
id: string;
|
|
4
4
|
images: {
|
|
5
5
|
symbol: string;
|
|
@@ -18,7 +18,7 @@ export type PokemonTCGSet = {
|
|
|
18
18
|
total: number;
|
|
19
19
|
updatedAt: string;
|
|
20
20
|
};
|
|
21
|
-
export type
|
|
21
|
+
export type PokemonTcgCard = {
|
|
22
22
|
id: string;
|
|
23
23
|
abilities?: [
|
|
24
24
|
{
|
|
@@ -50,7 +50,7 @@ export type PokemonTCGCard = {
|
|
|
50
50
|
small: string;
|
|
51
51
|
large: string;
|
|
52
52
|
};
|
|
53
|
-
lastSyncedAt:
|
|
53
|
+
lastSyncedAt: Date;
|
|
54
54
|
legalities?: [
|
|
55
55
|
{
|
|
56
56
|
standard: string;
|
|
@@ -84,8 +84,11 @@ export type PokemonTCGCard = {
|
|
|
84
84
|
}
|
|
85
85
|
];
|
|
86
86
|
};
|
|
87
|
-
export type
|
|
88
|
-
|
|
87
|
+
export type PokemonTcgCardDto = Omit<PokemonTcgCard, 'lastSyncedAt'> & {
|
|
88
|
+
lastSyncedAt: string;
|
|
89
|
+
};
|
|
90
|
+
export type PokemonTcgApiCard = Omit<PokemonTcgCard, 'setId' | 'pricechartingId'> & {
|
|
91
|
+
set?: PokemonTcgSet;
|
|
89
92
|
pricecharting?: {
|
|
90
93
|
id: number;
|
|
91
94
|
prices: PriceChartingPrice;
|
|
@@ -32,7 +32,7 @@ type Image = {
|
|
|
32
32
|
small?: string;
|
|
33
33
|
normal?: string;
|
|
34
34
|
};
|
|
35
|
-
export type
|
|
35
|
+
export type PriceChartingDbCard = {
|
|
36
36
|
id: number;
|
|
37
37
|
consoleName: string;
|
|
38
38
|
productName: string;
|
|
@@ -47,7 +47,6 @@ export type PriceChartingDBCard = {
|
|
|
47
47
|
salesVolume: SalesVolume;
|
|
48
48
|
salesVolumeHistory: SalesVolumeEntry[];
|
|
49
49
|
images?: Image;
|
|
50
|
-
updatedAt: string;
|
|
51
50
|
uploadStatus?: {
|
|
52
51
|
imagesUploaded?: boolean;
|
|
53
52
|
noImage?: boolean;
|
|
@@ -56,8 +55,14 @@ export type PriceChartingDBCard = {
|
|
|
56
55
|
deleted?: boolean;
|
|
57
56
|
type: CardType;
|
|
58
57
|
ocrText?: string;
|
|
58
|
+
createdAt?: Date;
|
|
59
|
+
updatedAt: Date;
|
|
60
|
+
};
|
|
61
|
+
export type PriceChartingDbCardDto = Omit<PriceChartingDbCard, 'createdAt' | 'updatedAt'> & {
|
|
62
|
+
createdAt?: string;
|
|
63
|
+
updatedAt: string;
|
|
59
64
|
};
|
|
60
|
-
export type
|
|
65
|
+
export type PriceChartingApiCard = {
|
|
61
66
|
priceChartingId: number;
|
|
62
67
|
name: string;
|
|
63
68
|
set: string;
|
package/dist/types/user.d.ts
CHANGED
package/package.json
CHANGED
package/src/types/pokemontcg.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PriceChartingPrice } from './pricecharting'
|
|
2
2
|
|
|
3
|
-
export type
|
|
3
|
+
export type PokemonTcgSet = {
|
|
4
4
|
id: string
|
|
5
5
|
images: {
|
|
6
6
|
symbol: string
|
|
@@ -20,7 +20,7 @@ export type PokemonTCGSet = {
|
|
|
20
20
|
updatedAt: string
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export type
|
|
23
|
+
export type PokemonTcgCard = {
|
|
24
24
|
id: string
|
|
25
25
|
abilities?: [
|
|
26
26
|
{
|
|
@@ -52,7 +52,7 @@ export type PokemonTCGCard = {
|
|
|
52
52
|
small: string
|
|
53
53
|
large: string
|
|
54
54
|
}
|
|
55
|
-
lastSyncedAt:
|
|
55
|
+
lastSyncedAt: Date
|
|
56
56
|
legalities?: [
|
|
57
57
|
{
|
|
58
58
|
standard: string
|
|
@@ -87,8 +87,12 @@ export type PokemonTCGCard = {
|
|
|
87
87
|
]
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
export type
|
|
91
|
-
|
|
90
|
+
export type PokemonTcgCardDto = Omit<PokemonTcgCard, 'lastSyncedAt'> & {
|
|
91
|
+
lastSyncedAt: string
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export type PokemonTcgApiCard = Omit<PokemonTcgCard, 'setId' | 'pricechartingId'> & {
|
|
95
|
+
set?: PokemonTcgSet
|
|
92
96
|
pricecharting?: {
|
|
93
97
|
id: number
|
|
94
98
|
prices: PriceChartingPrice
|
|
@@ -38,7 +38,7 @@ type Image = {
|
|
|
38
38
|
normal?: string
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export type
|
|
41
|
+
export type PriceChartingDbCard = {
|
|
42
42
|
id: number
|
|
43
43
|
consoleName: string
|
|
44
44
|
productName: string
|
|
@@ -53,7 +53,6 @@ export type PriceChartingDBCard = {
|
|
|
53
53
|
salesVolume: SalesVolume
|
|
54
54
|
salesVolumeHistory: SalesVolumeEntry[]
|
|
55
55
|
images?: Image
|
|
56
|
-
updatedAt: string
|
|
57
56
|
uploadStatus?: {
|
|
58
57
|
imagesUploaded?: boolean
|
|
59
58
|
noImage?: boolean
|
|
@@ -62,9 +61,16 @@ export type PriceChartingDBCard = {
|
|
|
62
61
|
deleted?: boolean
|
|
63
62
|
type: CardType
|
|
64
63
|
ocrText?: string
|
|
64
|
+
createdAt?: Date
|
|
65
|
+
updatedAt: Date
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type PriceChartingDbCardDto = Omit<PriceChartingDbCard, 'createdAt' | 'updatedAt'> & {
|
|
69
|
+
createdAt?: string
|
|
70
|
+
updatedAt: string
|
|
65
71
|
}
|
|
66
72
|
|
|
67
|
-
export type
|
|
73
|
+
export type PriceChartingApiCard = {
|
|
68
74
|
priceChartingId: number
|
|
69
75
|
name: string
|
|
70
76
|
set: string
|
package/src/types/user.ts
CHANGED