scryfall-api 3.2.2 → 3.2.4
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/README.md +3 -1
- package/dist/index.d.ts +591 -0
- package/dist/scryfall-api.mjs +113 -113
- package/dist/scryfall-api.umd.js +1 -1
- package/package.json +8 -15
- package/dist/scryfall-api.js +0 -1
- package/dist/types/src/api/CardIdentifierBuilder.d.ts +0 -28
- package/dist/types/src/api/Cards.d.ts +0 -17
- package/dist/types/src/api/Catalog.d.ts +0 -18
- package/dist/types/src/api/Rulings.d.ts +0 -10
- package/dist/types/src/api/Sets.d.ts +0 -9
- package/dist/types/src/api/Symbology.d.ts +0 -7
- package/dist/types/src/error/MagicQueryError.d.ts +0 -3
- package/dist/types/src/index.d.ts +0 -10
- package/dist/types/src/query/MagicPageResult.d.ts +0 -12
- package/dist/types/src/query/MagicQuery.d.ts +0 -13
- package/dist/types/src/types/Border.d.ts +0 -1
- package/dist/types/src/types/BulkDataDefinition.d.ts +0 -0
- package/dist/types/src/types/BulkDataType.d.ts +0 -0
- package/dist/types/src/types/BulkDataTypes.d.ts +0 -1
- package/dist/types/src/types/Card.d.ts +0 -0
- package/dist/types/src/types/CardFace.d.ts +0 -0
- package/dist/types/src/types/CardIdentifier.d.ts +0 -0
- package/dist/types/src/types/CardSymbol.d.ts +0 -0
- package/dist/types/src/types/Color.d.ts +0 -1
- package/dist/types/src/types/Format.d.ts +0 -1
- package/dist/types/src/types/FrameEffect.d.ts +0 -1
- package/dist/types/src/types/Game.d.ts +0 -1
- package/dist/types/src/types/HomepageLink.d.ts +0 -0
- package/dist/types/src/types/ImageUris.d.ts +0 -0
- package/dist/types/src/types/Layout.d.ts +0 -1
- package/dist/types/src/types/Legalties.d.ts +0 -0
- package/dist/types/src/types/Legalty.d.ts +0 -1
- package/dist/types/src/types/ManaCost.d.ts +0 -0
- package/dist/types/src/types/PageQuery.d.ts +0 -0
- package/dist/types/src/types/PageQueryValue.d.ts +0 -0
- package/dist/types/src/types/Preview.d.ts +0 -0
- package/dist/types/src/types/Prices.d.ts +0 -0
- package/dist/types/src/types/PromoType.d.ts +0 -1
- package/dist/types/src/types/PurchaseUris.d.ts +0 -0
- package/dist/types/src/types/Query.d.ts +0 -0
- package/dist/types/src/types/Rarity.d.ts +0 -1
- package/dist/types/src/types/RelatedCard.d.ts +0 -0
- package/dist/types/src/types/RelatedCardComponent.d.ts +0 -1
- package/dist/types/src/types/RelatedUris.d.ts +0 -0
- package/dist/types/src/types/ResultCatalog.d.ts +0 -0
- package/dist/types/src/types/ResultData.d.ts +0 -0
- package/dist/types/src/types/ResultList.d.ts +0 -0
- package/dist/types/src/types/RetryStrategy.d.ts +0 -0
- package/dist/types/src/types/Ruling.d.ts +0 -0
- package/dist/types/src/types/SearchError.d.ts +0 -0
- package/dist/types/src/types/SearchOptions.d.ts +0 -0
- package/dist/types/src/types/Set.d.ts +0 -0
- package/dist/types/src/types/SetType.d.ts +0 -1
- package/dist/types/src/types/Sort.d.ts +0 -1
- package/dist/types/src/types/SortDirection.d.ts +0 -1
- package/dist/types/src/types/TOrArrayOfT.d.ts +0 -0
- package/dist/types/src/types/UniqueStrategy.d.ts +0 -1
- package/dist/types/src/types/index.d.ts +0 -42
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from "./api/CardIdentifierBuilder";
|
|
2
|
-
export { default as Cards } from "./api/Cards";
|
|
3
|
-
export { default as Catalog } from "./api/Catalog";
|
|
4
|
-
export { default as Rulings } from "./api/Rulings";
|
|
5
|
-
export { default as Sets } from "./api/Sets";
|
|
6
|
-
export { default as Symbology } from "./api/Symbology";
|
|
7
|
-
export * from "./error/MagicQueryError";
|
|
8
|
-
export * from "./query/MagicPageResult";
|
|
9
|
-
export * from "./query/MagicQuery";
|
|
10
|
-
export * from "./types";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default class MagicPageResult {
|
|
2
|
-
constructor(q: any, apiPath: any, query: any, post: any);
|
|
3
|
-
_hasMore: boolean;
|
|
4
|
-
_count: number;
|
|
5
|
-
get count(): number;
|
|
6
|
-
get hasMore(): boolean;
|
|
7
|
-
all(): Promise<any[]>;
|
|
8
|
-
get(limit: any): Promise<any[]>;
|
|
9
|
-
next(): Promise<any>;
|
|
10
|
-
page(page: any): Promise<any>;
|
|
11
|
-
setNextPage(): void;
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default class MagicQuery {
|
|
2
|
-
static retry: {
|
|
3
|
-
attempts: number;
|
|
4
|
-
};
|
|
5
|
-
static endpoint: string;
|
|
6
|
-
static lastQuery: number;
|
|
7
|
-
static rateLimit: number;
|
|
8
|
-
static canRetry(error: any): any;
|
|
9
|
-
static debounce(): Promise<void>;
|
|
10
|
-
static sleep(ms?: number): Promise<unknown>;
|
|
11
|
-
static tryQuery(apiPath: any, query: any, post: any, requestOptions: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
12
|
-
query(apiPath: any, query: any, post: any, requestOptions: any): Promise<any>;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare var Border: any;
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare var BulkDataTypes: any;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare var Colors: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare var Format: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare var FrameEffect: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare var Game: any;
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare var Layout: any;
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare var Legality: any;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare var PromoType: any;
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare var Rarity: any;
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare var RelatedCardComponent: any;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare var SetType: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare var Sort: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare var SortDirection: any;
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare var UniqueStrategy: any;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export * from "./Border";
|
|
2
|
-
export * from "./BulkDataDefinition";
|
|
3
|
-
export * from "./BulkDataType";
|
|
4
|
-
export * from "./BulkDataTypes";
|
|
5
|
-
export * from "./Card";
|
|
6
|
-
export * from "./CardFace";
|
|
7
|
-
export * from "./CardIdentifier";
|
|
8
|
-
export * from "./CardSymbol";
|
|
9
|
-
export * from "./Color";
|
|
10
|
-
export * from "./Format";
|
|
11
|
-
export * from "./FrameEffect";
|
|
12
|
-
export * from "./Game";
|
|
13
|
-
export * from "./HomepageLink";
|
|
14
|
-
export * from "./ImageUris";
|
|
15
|
-
export * from "./Layout";
|
|
16
|
-
export * from "./Legalties";
|
|
17
|
-
export * from "./Legalty";
|
|
18
|
-
export * from "./ManaCost";
|
|
19
|
-
export * from "./PageQuery";
|
|
20
|
-
export * from "./PageQueryValue";
|
|
21
|
-
export * from "./Preview";
|
|
22
|
-
export * from "./Prices";
|
|
23
|
-
export * from "./PromoType";
|
|
24
|
-
export * from "./PurchaseUris";
|
|
25
|
-
export * from "./Query";
|
|
26
|
-
export * from "./Rarity";
|
|
27
|
-
export * from "./RelatedCard";
|
|
28
|
-
export * from "./RelatedCardComponent";
|
|
29
|
-
export * from "./RelatedUris";
|
|
30
|
-
export * from "./ResultCatalog";
|
|
31
|
-
export * from "./ResultData";
|
|
32
|
-
export * from "./ResultList";
|
|
33
|
-
export * from "./RetryStrategy";
|
|
34
|
-
export * from "./Ruling";
|
|
35
|
-
export * from "./SearchError";
|
|
36
|
-
export * from "./SearchOptions";
|
|
37
|
-
export * from "./Set";
|
|
38
|
-
export * from "./SetType";
|
|
39
|
-
export * from "./Sort";
|
|
40
|
-
export * from "./SortDirection";
|
|
41
|
-
export * from "./TOrArrayOfT";
|
|
42
|
-
export * from "./UniqueStrategy";
|