opticedge-types 1.0.18 → 1.0.20

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,7 +1 @@
1
- export declare const CARD_COLLECTION_MAP: {
2
- pokemon: string;
3
- lorcana: string;
4
- magic: string;
5
- yugioh: string;
6
- video_games: string;
7
- };
1
+ export declare const CARD_COLLECTION_MAP: Record<string, string>;
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CARD_COLLECTION_MAP = void 0;
4
+ const card_1 = require("../enums/card");
4
5
  exports.CARD_COLLECTION_MAP = {
5
- pokemon: 'pokemon_cards',
6
- lorcana: 'lorcana_cards',
7
- magic: 'magic_cards',
8
- yugioh: 'yugioh_cards',
9
- video_games: 'video_games'
6
+ [card_1.CardType.POKEMON]: 'pokemon_cards',
7
+ [card_1.CardType.LORCANA]: 'lorcana_cards',
8
+ [card_1.CardType.MAGIC]: 'magic_cards',
9
+ [card_1.CardType.YUGIOH]: 'yugioh_cards',
10
+ [card_1.CardType.VIDEO_GAMES]: 'video_games'
10
11
  };
@@ -1,3 +1,10 @@
1
+ export declare enum CardType {
2
+ POKEMON = "pokemon",
3
+ LORCANA = "lorcana",
4
+ MAGIC = "magic",
5
+ YUGIOH = "yugioh",
6
+ VIDEO_GAMES = "video_games"
7
+ }
1
8
  export declare enum CardApprovalStatus {
2
9
  Rescan = -2,
3
10
  Pending = -1,
@@ -1,6 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CardGradingType = exports.CardApprovalStatus = void 0;
3
+ exports.CardGradingType = exports.CardApprovalStatus = exports.CardType = void 0;
4
+ var CardType;
5
+ (function (CardType) {
6
+ CardType["POKEMON"] = "pokemon";
7
+ CardType["LORCANA"] = "lorcana";
8
+ CardType["MAGIC"] = "magic";
9
+ CardType["YUGIOH"] = "yugioh";
10
+ CardType["VIDEO_GAMES"] = "video_games";
11
+ })(CardType || (exports.CardType = CardType = {}));
4
12
  var CardApprovalStatus;
5
13
  (function (CardApprovalStatus) {
6
14
  CardApprovalStatus[CardApprovalStatus["Rescan"] = -2] = "Rescan";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticedge-types",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "Common type for opticedge",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,7 +1,9 @@
1
- export const CARD_COLLECTION_MAP = {
2
- pokemon: 'pokemon_cards',
3
- lorcana: 'lorcana_cards',
4
- magic: 'magic_cards',
5
- yugioh: 'yugioh_cards',
6
- video_games: 'video_games'
1
+ import { CardType } from "../enums/card";
2
+
3
+ export const CARD_COLLECTION_MAP: Record<string, string> = {
4
+ [CardType.POKEMON]: 'pokemon_cards',
5
+ [CardType.LORCANA]: 'lorcana_cards',
6
+ [CardType.MAGIC]: 'magic_cards',
7
+ [CardType.YUGIOH]: 'yugioh_cards',
8
+ [CardType.VIDEO_GAMES]: 'video_games'
7
9
  }
package/src/enums/card.ts CHANGED
@@ -1,3 +1,11 @@
1
+ export enum CardType {
2
+ POKEMON = 'pokemon',
3
+ LORCANA = 'lorcana',
4
+ MAGIC = 'magic',
5
+ YUGIOH = 'yugioh',
6
+ VIDEO_GAMES = 'video_games'
7
+ }
8
+
1
9
  export enum CardApprovalStatus {
2
10
  Rescan = -2,
3
11
  Pending,