-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMigration.ts
56 lines (54 loc) · 1.21 KB
/
Migration.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import { ScryfallObject } from "../Object";
export enum ScryfallMigrationStrategy {
Merge = "merge",
Delete = "delete",
}
/**
* A data migration.
*
* @see {@link https://scryfall.com/docs/api/migrations}
*/
export type ScryfallMigration = ScryfallObject.Object<ScryfallObject.ObjectType.Migration> & {
/**
* A link to the current object on Scryfall's API
*
* @type URI
*/
uri: string;
/**
* This migration's unique UUID
*
* @type UUID
*/
id: string;
/**
* The date this migration was performed
*
* @type IsoDate
*/
performed_at: string;
/**
* A computer-readable indicator of the migration strategy.
*/
migration_strategy: `${ScryfallMigrationStrategy}`;
/**
* The `id` of the affected API Card object
*
* @type UUID
*/
old_scryfall_id: string;
/**
* The replacement `id` of the API Card object if this is a `merge`
*
* @type UUID
*/
new_scryfall_id?: string;
/**
* A note left by the Scryfall team about this migration
*/
note?: string;
/**
* Additional context Scryfall has provided for this migration, designed to be human-read only
*/
metadata?: object;
};