opticedge-types 1.0.81 → 1.0.83

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.
@@ -42,6 +42,8 @@ export declare enum CardRejectType {
42
42
  MODEL_FAILURE = "Model failure"
43
43
  }
44
44
  export declare enum CardRescanType {
45
+ ENVIRONMENT_LOW_SCORE = "Environment - Low Score",
46
+ ACCURACY_LOW_SCORE = "Accuracy - Low Score",
45
47
  ENVIRONMENT_LIGHTING = "Environment - Lighting",
46
48
  ENVIRONMENT_ARTEFACTS = "Environment - Artefacts",
47
49
  CARD_IN_SLAB_SLEEVE = "Card in Slab/Sleeve",
@@ -50,6 +50,8 @@ var CardRejectType;
50
50
  })(CardRejectType || (exports.CardRejectType = CardRejectType = {}));
51
51
  var CardRescanType;
52
52
  (function (CardRescanType) {
53
+ CardRescanType["ENVIRONMENT_LOW_SCORE"] = "Environment - Low Score";
54
+ CardRescanType["ACCURACY_LOW_SCORE"] = "Accuracy - Low Score";
53
55
  CardRescanType["ENVIRONMENT_LIGHTING"] = "Environment - Lighting";
54
56
  CardRescanType["ENVIRONMENT_ARTEFACTS"] = "Environment - Artefacts";
55
57
  CardRescanType["CARD_IN_SLAB_SLEEVE"] = "Card in Slab/Sleeve";
@@ -14,6 +14,15 @@ type MarketReport = {
14
14
  max: number;
15
15
  };
16
16
  };
17
+ export type ResalePrices = {
18
+ productId: number;
19
+ rawPrice: number;
20
+ gradingFee: number;
21
+ resale7: number;
22
+ resale8: number;
23
+ resale9: number;
24
+ resale10: number;
25
+ };
17
26
  export type FbCard = {
18
27
  _createdAt: number;
19
28
  _pendingAt?: number;
@@ -68,6 +77,7 @@ export type FbCard = {
68
77
  releaseDate?: number;
69
78
  rescanReasons?: CardRescanType[];
70
79
  resultInvisible: boolean;
80
+ roi?: ResalePrices;
71
81
  saleNote: string;
72
82
  series: string;
73
83
  setName?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticedge-types",
3
- "version": "1.0.81",
3
+ "version": "1.0.83",
4
4
  "description": "Common type for opticedge",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/enums/card.ts CHANGED
@@ -48,6 +48,8 @@ export enum CardRejectType {
48
48
  }
49
49
 
50
50
  export enum CardRescanType {
51
+ ENVIRONMENT_LOW_SCORE = 'Environment - Low Score',
52
+ ACCURACY_LOW_SCORE = 'Accuracy - Low Score',
51
53
  ENVIRONMENT_LIGHTING = 'Environment - Lighting',
52
54
  ENVIRONMENT_ARTEFACTS = 'Environment - Artefacts',
53
55
  CARD_IN_SLAB_SLEEVE = 'Card in Slab/Sleeve',
package/src/types/card.ts CHANGED
@@ -16,6 +16,17 @@ type MarketReport = {
16
16
  }
17
17
  }
18
18
 
19
+ export type ResalePrices = {
20
+ productId: number
21
+ rawPrice: number
22
+ gradingFee: number
23
+ resale7: number
24
+ resale8: number
25
+ resale9: number
26
+ resale10: number
27
+ }
28
+
29
+
19
30
  export type FbCard = {
20
31
  _createdAt: number
21
32
  _pendingAt?: number
@@ -70,6 +81,7 @@ export type FbCard = {
70
81
  releaseDate?: number
71
82
  rescanReasons?: CardRescanType[]
72
83
  resultInvisible: boolean
84
+ roi?: ResalePrices
73
85
  saleNote: string
74
86
  series: string
75
87
  setName?: string