scryfall-sdk
Version:
A Node.js SDK for https://scryfall.com/docs/api written in Typescript.
33 lines (32 loc) • 1.3 kB
TypeScript
import MagicEmitter from "../util/MagicEmitter";
import MagicQuerier from "../util/MagicQuerier";
export declare enum MigrationStrategy {
/**
* You should update your records to replace the given old Scryfall ID with the new ID. The old ID is being discarded, and an existing record should be used to replace all instances of it.
*/
Merge = "merge",
/**
* The given UUID is being discarded, and no replacement data is being provided. This likely means the old records are fully invalid. This migration exists to provide evidence that cards were removed from Scryfall’s database.
*/
Delete = "delete"
}
export interface Migration {
object: "migration";
uri: string;
id: string;
performed_at: string;
migration_strategy: MigrationStrategy;
old_scryfall_id: string;
new_scryfall_id?: string | null;
note?: string | null;
/**
* Do not rely on this data. This is additional context Scryfall has provided for this migration, designed to be human-read only.
*/
metadata?: unknown;
}
declare class Migrations extends MagicQuerier {
all(page?: number): MagicEmitter<Migration, never>;
byId(id: string): Promise<Migration>;
}
declare const _default: Migrations;
export default _default;