@manabrew/protocol 4.1.3 → 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/game/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/lobby/index.d.ts +2 -2
- package/dist/prompts/index.js +1 -1
- package/dist/transport/index.js +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.js +3 -3
- 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/game/index.d.ts
CHANGED
|
@@ -73,6 +73,8 @@ export type CombatAssignmentDto = {
|
|
|
73
73
|
attackerId: string;
|
|
74
74
|
};
|
|
75
75
|
export type DayTime = "neither" | "day" | "night";
|
|
76
|
+
export type EngineKind = "Manabrew" | "Forge" | "Ironsmith";
|
|
77
|
+
export type GameFormat = "Any" | "Standard" | "Pioneer" | "Modern" | "Legacy" | "Vintage" | "Pauper" | "Commander" | "Brawl" | "Oathbreaker" | "Draft" | "Sealed";
|
|
76
78
|
export type GameViewDto = {
|
|
77
79
|
gameId: string;
|
|
78
80
|
turn: number;
|
|
@@ -109,6 +111,7 @@ export type PlayerDto = {
|
|
|
109
111
|
};
|
|
110
112
|
commanderDamage: Record<string, number>;
|
|
111
113
|
hasCityBlessing: boolean;
|
|
114
|
+
hasEnduringStory: boolean;
|
|
112
115
|
ringLevel: number;
|
|
113
116
|
speed: number;
|
|
114
117
|
};
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
// AUTO-GENERATED by `cargo run -p manabrew-protocol --bin gen-protocol`. Do not edit.
|
|
17
|
+
// AUTO-GENERATED by `cargo run -p manabrew-relay-protocol --bin gen-protocol`. Do not edit.
|
|
18
18
|
__exportStar(require("./prompts"), exports);
|
|
19
19
|
__exportStar(require("./transport"), exports);
|
|
20
20
|
__exportStar(require("./version"), exports);
|
package/dist/lobby/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Deck } from "../deck/index";
|
|
2
|
+
import type { EngineKind } from "../game/index";
|
|
3
|
+
import type { GameFormat } from "../game/index";
|
|
2
4
|
export type DraftConfig = {
|
|
3
5
|
set_code?: string;
|
|
4
6
|
cube_id?: string;
|
|
@@ -8,8 +10,6 @@ export type DraftConfig = {
|
|
|
8
10
|
seed?: number;
|
|
9
11
|
fill_with_bots: boolean;
|
|
10
12
|
};
|
|
11
|
-
export type EngineKind = "Manabrew" | "Forge" | "Ironsmith";
|
|
12
|
-
export type GameFormat = "Any" | "Standard" | "Pioneer" | "Modern" | "Legacy" | "Vintage" | "Pauper" | "Commander" | "Brawl" | "Oathbreaker" | "Draft" | "Sealed";
|
|
13
13
|
export type PlayerDeckInfo = {
|
|
14
14
|
username: string;
|
|
15
15
|
deck_name: string;
|
package/dist/prompts/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
// AUTO-GENERATED by `cargo run -p manabrew-protocol --bin gen-protocol`. Do not edit.
|
|
17
|
+
// AUTO-GENERATED by `cargo run -p manabrew-relay-protocol --bin gen-protocol`. Do not edit.
|
|
18
18
|
__exportStar(require("./chooseAction"), exports);
|
|
19
19
|
__exportStar(require("./chooseAttackers"), exports);
|
|
20
20
|
__exportStar(require("./chooseBlockers"), exports);
|
package/dist/transport/index.js
CHANGED
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
// AUTO-GENERATED by `cargo run -p manabrew-protocol --bin gen-protocol`. Do not edit.
|
|
17
|
+
// AUTO-GENERATED by `cargo run -p manabrew-relay-protocol --bin gen-protocol`. Do not edit.
|
|
18
18
|
__exportStar(require("./messages"), exports);
|
|
19
19
|
__exportStar(require("./envelope"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
2
|
-
export declare const PROTOCOL_VERSION =
|
|
1
|
+
export declare const VERSION = "5.0.1";
|
|
2
|
+
export declare const PROTOCOL_VERSION = 5;
|
package/dist/version.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PROTOCOL_VERSION = exports.VERSION = void 0;
|
|
4
|
-
// AUTO-GENERATED by `cargo run -p manabrew-protocol --bin gen-protocol`. Do not edit.
|
|
5
|
-
exports.VERSION = "
|
|
6
|
-
exports.PROTOCOL_VERSION =
|
|
4
|
+
// AUTO-GENERATED by `cargo run -p manabrew-relay-protocol --bin gen-protocol`. Do not edit.
|
|
5
|
+
exports.VERSION = "5.0.1";
|
|
6
|
+
exports.PROTOCOL_VERSION = 5;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manabrew/protocol",
|
|
3
|
-
"version": "
|
|
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": {
|