@manabrew/protocol 5.0.0 → 5.1.0
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/deck/index.d.ts +61 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/deck/index.d.ts
CHANGED
|
@@ -38,6 +38,9 @@ export type Deck = {
|
|
|
38
38
|
maybeboard?: Array<DeckCard>;
|
|
39
39
|
draft?: boolean;
|
|
40
40
|
labels?: Array<DeckLabel>;
|
|
41
|
+
customTags?: Array<string>;
|
|
42
|
+
cardTags?: Record<string, Array<string>>;
|
|
43
|
+
editor?: DeckEditorMetadata;
|
|
41
44
|
coverCardName?: string;
|
|
42
45
|
coverCardFace?: number;
|
|
43
46
|
playmat?: string;
|
|
@@ -80,8 +83,66 @@ export type DeckCardIdentity = {
|
|
|
80
83
|
tokenScript?: TokenScript;
|
|
81
84
|
foil?: boolean;
|
|
82
85
|
};
|
|
86
|
+
export type DeckEditorCollectionFilter = "all" | "exact" | "other" | "partial" | "missing";
|
|
87
|
+
export type DeckEditorDestination = "main" | "side" | "maybe";
|
|
88
|
+
export type DeckEditorGoals = {
|
|
89
|
+
minLands?: number;
|
|
90
|
+
maxLands?: number;
|
|
91
|
+
maxMissingCards?: number;
|
|
92
|
+
maxAverageManaValue?: number;
|
|
93
|
+
tagTargets?: Record<string, number>;
|
|
94
|
+
};
|
|
95
|
+
export type DeckEditorGroup = {
|
|
96
|
+
id: string;
|
|
97
|
+
name: string;
|
|
98
|
+
cardNames: Array<string>;
|
|
99
|
+
collapsed?: boolean;
|
|
100
|
+
pinned?: boolean;
|
|
101
|
+
};
|
|
102
|
+
export type DeckEditorGroupBy = "type" | "cmc" | "color" | "custom";
|
|
103
|
+
export type DeckEditorLayout = {
|
|
104
|
+
id: string;
|
|
105
|
+
name: string;
|
|
106
|
+
groupBy: DeckEditorGroupBy;
|
|
107
|
+
sortBy: DeckEditorSortBy;
|
|
108
|
+
groups: Array<DeckEditorGroup>;
|
|
109
|
+
filter?: string;
|
|
110
|
+
cardSize?: number;
|
|
111
|
+
viewMode?: DeckEditorViewMode;
|
|
112
|
+
collectionFilter?: DeckEditorCollectionFilter;
|
|
113
|
+
defaultDestination?: DeckEditorDestination;
|
|
114
|
+
};
|
|
115
|
+
export type DeckEditorMetadata = {
|
|
116
|
+
version: number;
|
|
117
|
+
tags: Array<DeckEditorTag>;
|
|
118
|
+
layouts: Array<DeckEditorLayout>;
|
|
119
|
+
activeLayoutId?: string;
|
|
120
|
+
sideboardPlans?: Array<DeckSideboardPlan>;
|
|
121
|
+
budgetUsd?: number;
|
|
122
|
+
budgetAmount?: number;
|
|
123
|
+
priceProvider?: DeckPriceProvider;
|
|
124
|
+
goals?: DeckEditorGoals;
|
|
125
|
+
dismissedHints?: Array<string>;
|
|
126
|
+
acquisition?: Record<string, "ordered" | "proxy">;
|
|
127
|
+
};
|
|
128
|
+
export type DeckEditorSortBy = "name" | "mana-value" | "quantity" | "owned" | "not-owned";
|
|
129
|
+
export type DeckEditorTag = {
|
|
130
|
+
id: string;
|
|
131
|
+
name: string;
|
|
132
|
+
color?: string;
|
|
133
|
+
icon?: string;
|
|
134
|
+
};
|
|
135
|
+
export type DeckEditorViewMode = "list" | "visual" | "stack";
|
|
83
136
|
export type DeckFormat = "standard" | "pioneer" | "modern" | "legacy" | "vintage" | "pauper" | "commander" | "brawl" | "oathbreaker" | "draft" | "sealed";
|
|
84
137
|
export type DeckLabel = {
|
|
85
138
|
name: string;
|
|
86
139
|
color?: string;
|
|
87
140
|
};
|
|
141
|
+
export type DeckPriceProvider = "tcgplayer" | "cardmarket" | "cardhoarder";
|
|
142
|
+
export type DeckSideboardPlan = {
|
|
143
|
+
id: string;
|
|
144
|
+
matchup: string;
|
|
145
|
+
bringIn: string;
|
|
146
|
+
takeOut: string;
|
|
147
|
+
notes: string;
|
|
148
|
+
};
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "5.0.
|
|
1
|
+
export declare const VERSION = "5.0.1";
|
|
2
2
|
export declare const PROTOCOL_VERSION = 5;
|
package/dist/version.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PROTOCOL_VERSION = exports.VERSION = void 0;
|
|
4
4
|
// AUTO-GENERATED by `cargo run -p manabrew-relay-protocol --bin gen-protocol`. Do not edit.
|
|
5
|
-
exports.VERSION = "5.0.
|
|
5
|
+
exports.VERSION = "5.0.1";
|
|
6
6
|
exports.PROTOCOL_VERSION = 5;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manabrew/protocol",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "TypeScript types for the Manabrew wire protocol — the engine↔client message contract for the Manabrew Magic: The Gathering client.",
|
|
5
5
|
"license": "AGPL-3.0-or-later",
|
|
6
6
|
"repository": {
|