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 PokemonTCGSet = {
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 PokemonTCGCard = {
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: string;
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 PokemonTCGAPICard = Omit<PokemonTCGCard, 'setId' | 'pricechartingId'> & {
88
- set?: PokemonTCGSet;
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 PriceChartingDBCard = {
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 PriceChartingAPICard = {
65
+ export type PriceChartingApiCard = {
61
66
  priceChartingId: number;
62
67
  name: string;
63
68
  set: string;
@@ -46,3 +46,11 @@ export type DbUser = {
46
46
  at: Date;
47
47
  };
48
48
  };
49
+ export type DbUserDto = Omit<DbUser, 'insertedAt' | 'updatedAt' | 'recovery'> & {
50
+ insertedAt: string;
51
+ updatedAt: string;
52
+ recovery?: {
53
+ id: string;
54
+ at: string;
55
+ };
56
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticedge-types",
3
- "version": "1.0.45",
3
+ "version": "1.0.46",
4
4
  "description": "Common type for opticedge",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  import { PriceChartingPrice } from './pricecharting'
2
2
 
3
- export type PokemonTCGSet = {
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 PokemonTCGCard = {
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: string
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 PokemonTCGAPICard = Omit<PokemonTCGCard, 'setId' | 'pricechartingId'> & {
91
- set?: PokemonTCGSet
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 PriceChartingDBCard = {
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 PriceChartingAPICard = {
73
+ export type PriceChartingApiCard = {
68
74
  priceChartingId: number
69
75
  name: string
70
76
  set: string
package/src/types/user.ts CHANGED
@@ -48,3 +48,12 @@ export type DbUser = {
48
48
  at: Date
49
49
  }
50
50
  }
51
+
52
+ export type DbUserDto = Omit<DbUser, 'insertedAt' | 'updatedAt' | 'recovery'> & {
53
+ insertedAt: string
54
+ updatedAt: string
55
+ recovery?: {
56
+ id: string
57
+ at: string
58
+ }
59
+ }