opticedge-types 1.0.25 → 1.0.27
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.
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/types/pricecharting.d.ts +4 -0
- package/package.json +1 -1
- package/src/index.ts +0 -1
- package/src/types/pricecharting.ts +6 -1
- package/dist/constants/card.d.ts +0 -2
- package/dist/constants/card.js +0 -14
- package/src/constants/card.ts +0 -12
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./constants/payment"), exports);
|
|
18
|
-
__exportStar(require("./constants/card"), exports);
|
|
19
18
|
__exportStar(require("./enums/card"), exports);
|
|
20
19
|
__exportStar(require("./enums/rc"), exports);
|
|
21
20
|
__exportStar(require("./enums/user"), exports);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CardType } from "../enums/card";
|
|
1
2
|
export type PriceChartingPrice = {
|
|
2
3
|
loose: number | null;
|
|
3
4
|
cib: number | null;
|
|
@@ -53,6 +54,7 @@ export type PriceChartingDBCard = {
|
|
|
53
54
|
};
|
|
54
55
|
cardNumber?: string | null;
|
|
55
56
|
deleted?: boolean;
|
|
57
|
+
type: CardType;
|
|
56
58
|
};
|
|
57
59
|
export type PriceChartingAPICard = {
|
|
58
60
|
priceChartingId: number;
|
|
@@ -62,5 +64,7 @@ export type PriceChartingAPICard = {
|
|
|
62
64
|
releaseDate?: string;
|
|
63
65
|
price: PriceChartingPrice;
|
|
64
66
|
images?: Image;
|
|
67
|
+
type: CardType;
|
|
68
|
+
version: string;
|
|
65
69
|
};
|
|
66
70
|
export {};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CardType } from "../enums/card"
|
|
2
|
+
|
|
1
3
|
export type PriceChartingPrice = {
|
|
2
4
|
loose: number | null
|
|
3
5
|
cib: number | null
|
|
@@ -58,6 +60,7 @@ export type PriceChartingDBCard = {
|
|
|
58
60
|
}
|
|
59
61
|
cardNumber?: string | null
|
|
60
62
|
deleted?: boolean
|
|
63
|
+
type: CardType
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
export type PriceChartingAPICard = {
|
|
@@ -67,5 +70,7 @@ export type PriceChartingAPICard = {
|
|
|
67
70
|
number: string | null
|
|
68
71
|
releaseDate?: string
|
|
69
72
|
price: PriceChartingPrice
|
|
70
|
-
images?: Image
|
|
73
|
+
images?: Image,
|
|
74
|
+
type: CardType,
|
|
75
|
+
version: string
|
|
71
76
|
}
|
package/dist/constants/card.d.ts
DELETED
package/dist/constants/card.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CARD_COLLECTION_MAP = void 0;
|
|
4
|
-
const card_1 = require("../enums/card");
|
|
5
|
-
exports.CARD_COLLECTION_MAP = {
|
|
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',
|
|
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'
|
|
14
|
-
};
|
package/src/constants/card.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CardType } from "../enums/card";
|
|
2
|
-
|
|
3
|
-
export const CARD_COLLECTION_MAP: Record<CardType, 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',
|
|
9
|
-
[CardType.DIGIMON]: 'digimon_cards',
|
|
10
|
-
[CardType.DRAGON_BALL]: 'dragon_ball_cards',
|
|
11
|
-
[CardType.ONE_PIECE]: 'one_piece_cards'
|
|
12
|
-
}
|