opticedge-types 1.0.21 → 1.0.23

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.
@@ -7,5 +7,8 @@ exports.CARD_COLLECTION_MAP = {
7
7
  [card_1.CardType.LORCANA]: 'lorcana_cards',
8
8
  [card_1.CardType.MAGIC]: 'magic_cards',
9
9
  [card_1.CardType.YUGIOH]: 'yugioh_cards',
10
- [card_1.CardType.VIDEO_GAMES]: 'video_games'
10
+ [card_1.CardType.VIDEO_GAMES]: 'video_games',
11
+ [card_1.CardType.DIGIMON]: 'digimon_cards',
12
+ [card_1.CardType.DRAGON_BALL]: 'dragon_ball_cards',
13
+ [card_1.CardType.ONE_PIECE]: 'one_piece_cards'
11
14
  };
@@ -3,7 +3,10 @@ export declare enum CardType {
3
3
  LORCANA = "lorcana",
4
4
  MAGIC = "magic",
5
5
  YUGIOH = "yugioh",
6
- VIDEO_GAMES = "video_games"
6
+ VIDEO_GAMES = "video_games",
7
+ DIGIMON = "digimon",
8
+ DRAGON_BALL = "dragon_ball",
9
+ ONE_PIECE = "one_piece"
7
10
  }
8
11
  export declare enum CardApprovalStatus {
9
12
  Rescan = -2,
@@ -8,6 +8,9 @@ var CardType;
8
8
  CardType["MAGIC"] = "magic";
9
9
  CardType["YUGIOH"] = "yugioh";
10
10
  CardType["VIDEO_GAMES"] = "video_games";
11
+ CardType["DIGIMON"] = "digimon";
12
+ CardType["DRAGON_BALL"] = "dragon_ball";
13
+ CardType["ONE_PIECE"] = "one_piece";
11
14
  })(CardType || (exports.CardType = CardType = {}));
12
15
  var CardApprovalStatus;
13
16
  (function (CardApprovalStatus) {
@@ -47,6 +47,12 @@ export type PriceChartingDBCard = {
47
47
  salesVolumeHistory: SalesVolumeEntry[];
48
48
  images?: Image;
49
49
  updatedAt: string;
50
+ uploadStatus?: {
51
+ imagesUploaded?: boolean;
52
+ noImage?: boolean;
53
+ };
54
+ cardNumber?: string | null;
55
+ deleted?: boolean;
50
56
  };
51
57
  export type PriceChartingCard = {
52
58
  id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticedge-types",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "Common type for opticedge",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -5,5 +5,8 @@ export const CARD_COLLECTION_MAP: Record<CardType, string> = {
5
5
  [CardType.LORCANA]: 'lorcana_cards',
6
6
  [CardType.MAGIC]: 'magic_cards',
7
7
  [CardType.YUGIOH]: 'yugioh_cards',
8
- [CardType.VIDEO_GAMES]: 'video_games'
8
+ [CardType.VIDEO_GAMES]: 'video_games',
9
+ [CardType.DIGIMON]: 'digimon_cards',
10
+ [CardType.DRAGON_BALL]: 'dragon_ball_cards',
11
+ [CardType.ONE_PIECE]: 'one_piece_cards'
9
12
  }
package/src/enums/card.ts CHANGED
@@ -3,7 +3,10 @@ export enum CardType {
3
3
  LORCANA = 'lorcana',
4
4
  MAGIC = 'magic',
5
5
  YUGIOH = 'yugioh',
6
- VIDEO_GAMES = 'video_games'
6
+ VIDEO_GAMES = 'video_games',
7
+ DIGIMON = 'digimon',
8
+ DRAGON_BALL = 'dragon_ball',
9
+ ONE_PIECE = 'one_piece'
7
10
  }
8
11
 
9
12
  export enum CardApprovalStatus {
@@ -52,6 +52,12 @@ export type PriceChartingDBCard = {
52
52
  salesVolumeHistory: SalesVolumeEntry[]
53
53
  images?: Image
54
54
  updatedAt: string
55
+ uploadStatus?: {
56
+ imagesUploaded?: boolean
57
+ noImage?: boolean
58
+ }
59
+ cardNumber?: string | null
60
+ deleted?: boolean
55
61
  }
56
62
 
57
63
  export type PriceChartingCard = {