@zthun/romulator-client 1.7.1 → 1.10.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/index.cjs +137 -80
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.js +136 -81
- package/dist/index.js.map +1 -1
- package/dist/system/system-content-type.d.mts +21 -0
- package/dist/system/{system-type.d.mts → system-hardware-type.d.mts} +2 -2
- package/dist/system/system-id.d.mts +0 -32
- package/dist/system/system-media-format-type.d.mts +23 -0
- package/dist/system/system.d.mts +83 -33
- package/package.json +6 -6
|
@@ -4,15 +4,12 @@
|
|
|
4
4
|
export declare enum ZRomulatorSystemId {
|
|
5
5
|
ThreeDo = "3do",
|
|
6
6
|
Adam = "adam",
|
|
7
|
-
AGS = "ags",
|
|
8
7
|
Amiga = "amiga",
|
|
9
8
|
Amiga1200 = "amiga1200",
|
|
10
9
|
Amiga600 = "amiga600",
|
|
11
10
|
AmigaCd32 = "amigacd32",
|
|
12
11
|
AmstradCpc = "amstradcpc",
|
|
13
12
|
Android = "android",
|
|
14
|
-
AndroidApps = "androidapps",
|
|
15
|
-
AndroidGames = "androidgames",
|
|
16
13
|
Apple2 = "apple2",
|
|
17
14
|
Apple2Gs = "apple2gs",
|
|
18
15
|
Arcade = "arcade",
|
|
@@ -28,37 +25,29 @@ export declare enum ZRomulatorSystemId {
|
|
|
28
25
|
AtariJaguarCd = "atarijaguarcd",
|
|
29
26
|
AtariLynx = "atarilynx",
|
|
30
27
|
AtariSt = "atarist",
|
|
31
|
-
AtariXe = "atarixe",
|
|
32
28
|
Atomiswave = "atomiswave",
|
|
33
29
|
BbcMicro = "bbcmicro",
|
|
34
30
|
C64 = "c64",
|
|
35
31
|
CdiMono1 = "cdimono1",
|
|
36
32
|
Cdtv = "cdtv",
|
|
37
|
-
ChaiLove = "chailove",
|
|
38
33
|
ChannelF = "channelf",
|
|
39
34
|
Coco = "coco",
|
|
40
35
|
Colecovision = "colecovision",
|
|
41
|
-
ConsoleArcade = "consolearcade",
|
|
42
36
|
Cps = "cps",
|
|
43
37
|
Cps1 = "cps1",
|
|
44
38
|
Cps2 = "cps2",
|
|
45
39
|
Cps3 = "cps3",
|
|
46
40
|
CrVision = "crvision",
|
|
47
41
|
Daphne = "daphne",
|
|
48
|
-
Desktop = "desktop",
|
|
49
|
-
Doom = "doom",
|
|
50
42
|
Dos = "dos",
|
|
51
43
|
Dragon32 = "dragon32",
|
|
52
44
|
Dreamcast = "dreamcast",
|
|
53
45
|
EasyRpg = "easyrpg",
|
|
54
46
|
Electron = "electron",
|
|
55
|
-
Emulators = "emulators",
|
|
56
|
-
Epic = "epic",
|
|
57
47
|
Famicom = "famicom",
|
|
58
48
|
FBA = "fba",
|
|
59
49
|
FBNeo = "fbneo",
|
|
60
50
|
FDS = "fds",
|
|
61
|
-
Flash = "flash",
|
|
62
51
|
FM7 = "fm7",
|
|
63
52
|
FMTowns = "fmtowns",
|
|
64
53
|
FPinball = "fpinball",
|
|
@@ -74,12 +63,7 @@ export declare enum ZRomulatorSystemId {
|
|
|
74
63
|
GMaster = "gmaster",
|
|
75
64
|
GX4000 = "gx4000",
|
|
76
65
|
Intellivision = "intellivision",
|
|
77
|
-
J2ME = "j2me",
|
|
78
|
-
Kodi = "kodi",
|
|
79
|
-
Laserdisc = "laserdisc",
|
|
80
|
-
LcdGames = "lcdgames",
|
|
81
66
|
LowResNx = "lowresnx",
|
|
82
|
-
Lutris = "lutris",
|
|
83
67
|
Lutro = "lutro",
|
|
84
68
|
Macintosh = "macintosh",
|
|
85
69
|
Mame = "mame",
|
|
@@ -87,20 +71,16 @@ export declare enum ZRomulatorSystemId {
|
|
|
87
71
|
Mark3 = "mark3",
|
|
88
72
|
MasterSystem = "mastersystem",
|
|
89
73
|
MegaCd = "megacd",
|
|
90
|
-
MegaCdJp = "megacdjp",
|
|
91
74
|
MegaDrive = "megadrive",
|
|
92
75
|
MegaDriveJp = "megadrivejp",
|
|
93
76
|
MegaDuck = "megaduck",
|
|
94
77
|
MESS = "mess",
|
|
95
78
|
Model2 = "model2",
|
|
96
79
|
Model3 = "model3",
|
|
97
|
-
Moto = "moto",
|
|
98
80
|
MSX = "msx",
|
|
99
81
|
MSX1 = "msx1",
|
|
100
82
|
MSX2 = "msx2",
|
|
101
83
|
MSXTurbor = "msxturbor",
|
|
102
|
-
Mugen = "mugen",
|
|
103
|
-
Multivision = "multivision",
|
|
104
84
|
N3DS = "n3ds",
|
|
105
85
|
Nintendo64 = "n64",
|
|
106
86
|
N64DD = "n64dd",
|
|
@@ -122,14 +102,12 @@ export declare enum ZRomulatorSystemId {
|
|
|
122
102
|
PC = "pc",
|
|
123
103
|
PC88 = "pc88",
|
|
124
104
|
PC98 = "pc98",
|
|
125
|
-
PcArcade = "pcarcade",
|
|
126
105
|
PcEngine = "pcengine",
|
|
127
106
|
PcEngineCd = "pcenginecd",
|
|
128
107
|
PCFx = "pcfx",
|
|
129
108
|
Pico8 = "pico8",
|
|
130
109
|
Plus4 = "plus4",
|
|
131
110
|
PokeMini = "pokemini",
|
|
132
|
-
Ports = "ports",
|
|
133
111
|
PS2 = "ps2",
|
|
134
112
|
PS3 = "ps3",
|
|
135
113
|
PS4 = "ps4",
|
|
@@ -137,7 +115,6 @@ export declare enum ZRomulatorSystemId {
|
|
|
137
115
|
PSVita = "psvita",
|
|
138
116
|
PSX = "psx",
|
|
139
117
|
PV1000 = "pv1000",
|
|
140
|
-
Quake = "quake",
|
|
141
118
|
SamCoupe = "samcoupe",
|
|
142
119
|
Satellaview = "satellaview",
|
|
143
120
|
Saturn = "saturn",
|
|
@@ -145,31 +122,23 @@ export declare enum ZRomulatorSystemId {
|
|
|
145
122
|
ScummVM = "scummvm",
|
|
146
123
|
SCV = "scv",
|
|
147
124
|
Sega32X = "sega32x",
|
|
148
|
-
Sega32XJp = "sega32xjp",
|
|
149
|
-
Sega32XNa = "sega32xna",
|
|
150
125
|
SegaCd = "segacd",
|
|
151
|
-
SFC = "sfc",
|
|
152
126
|
Sg1000 = "sg-1000",
|
|
153
127
|
SGB = "sgb",
|
|
154
128
|
SuperNintendo = "snes",
|
|
155
|
-
SnesNa = "snesna",
|
|
156
129
|
Solarus = "solarus",
|
|
157
130
|
SpectraVideo = "spectravideo",
|
|
158
|
-
Steam = "steam",
|
|
159
131
|
STV = "stv",
|
|
160
132
|
Sufami = "sufami",
|
|
161
133
|
SuperGrafx = "supergrafx",
|
|
162
134
|
SuperVision = "supervision",
|
|
163
135
|
SupraCan = "supracan",
|
|
164
136
|
Switch = "switch",
|
|
165
|
-
Symbian = "symbian",
|
|
166
|
-
TanoDragon = "tanodragon",
|
|
167
137
|
TgCd = "tg-cd",
|
|
168
138
|
TG16 = "tg16",
|
|
169
139
|
TI99 = "ti99",
|
|
170
140
|
TIC80 = "tic80",
|
|
171
141
|
TO8 = "to8",
|
|
172
|
-
Triforce = "triforce",
|
|
173
142
|
TRS80 = "trs-80",
|
|
174
143
|
TypeX = "type-x",
|
|
175
144
|
Uzebox = "uzebox",
|
|
@@ -195,7 +164,6 @@ export declare enum ZRomulatorSystemId {
|
|
|
195
164
|
XboxOne = "xboxone",
|
|
196
165
|
ZMachine = "zmachine",
|
|
197
166
|
Zx81 = "zx81",
|
|
198
|
-
ZxNext = "zxnext",
|
|
199
167
|
ZxSpectrum = "zxspectrum"
|
|
200
168
|
}
|
|
201
169
|
/**
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The type of media a system supports.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ZRomulatorSystemMediaFormatType {
|
|
5
|
+
/**
|
|
6
|
+
* Cartridge based systems.
|
|
7
|
+
*/
|
|
8
|
+
Cartridge = "cartridge",
|
|
9
|
+
/**
|
|
10
|
+
* Motherboard based systems.
|
|
11
|
+
*
|
|
12
|
+
* Usually for arcades.
|
|
13
|
+
*/
|
|
14
|
+
Pcb = "pcb",
|
|
15
|
+
/**
|
|
16
|
+
* CD/DVD based systems.
|
|
17
|
+
*/
|
|
18
|
+
Cd = "cd",
|
|
19
|
+
/**
|
|
20
|
+
* Floppy disk based systems.
|
|
21
|
+
*/
|
|
22
|
+
FloppyDisk = "floppy-disk"
|
|
23
|
+
}
|
package/dist/system/system.d.mts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { ZRomulatorSystemContentType } from './system-content-type.mjs';
|
|
2
|
+
import { ZRomulatorSystemHardwareType } from './system-hardware-type.mjs';
|
|
1
3
|
import { ZRomulatorSystemId } from './system-id.mjs';
|
|
2
|
-
import {
|
|
4
|
+
import { ZRomulatorSystemMediaFormatType } from './system-media-format-type.mjs';
|
|
3
5
|
/**
|
|
4
6
|
* Represents a system in romulator.
|
|
5
7
|
*
|
|
@@ -12,12 +14,18 @@ export interface IZRomulatorSystem {
|
|
|
12
14
|
* Unique identifier for the system.
|
|
13
15
|
*
|
|
14
16
|
* If you think about the directory structure
|
|
15
|
-
* for ES-DE, for example, the id
|
|
16
|
-
* the name of the system directory.
|
|
17
|
+
* for ES-DE or retro-pie, for example, the id
|
|
18
|
+
* would map to the name of the system directory.
|
|
17
19
|
*
|
|
18
20
|
* This is essentially a slug.
|
|
19
21
|
*/
|
|
20
22
|
id: ZRomulatorSystemId;
|
|
23
|
+
/**
|
|
24
|
+
* The list of file extensions that system supports.
|
|
25
|
+
*
|
|
26
|
+
* Extensions, zip and 7z, should always be in this list.
|
|
27
|
+
*/
|
|
28
|
+
extensions: string[];
|
|
21
29
|
/**
|
|
22
30
|
* The canonical name of the system.
|
|
23
31
|
*
|
|
@@ -27,13 +35,41 @@ export interface IZRomulatorSystem {
|
|
|
27
35
|
*/
|
|
28
36
|
name?: string;
|
|
29
37
|
/**
|
|
30
|
-
* The
|
|
38
|
+
* The company that published the system.
|
|
31
39
|
*/
|
|
32
|
-
|
|
40
|
+
company?: string;
|
|
33
41
|
/**
|
|
34
|
-
*
|
|
42
|
+
* Type classifications for the system.
|
|
35
43
|
*/
|
|
36
|
-
|
|
44
|
+
classification?: {
|
|
45
|
+
/**
|
|
46
|
+
* What type of system the hardware is.
|
|
47
|
+
*
|
|
48
|
+
* @example 'console'
|
|
49
|
+
*/
|
|
50
|
+
hardwareType?: ZRomulatorSystemHardwareType;
|
|
51
|
+
/**
|
|
52
|
+
* The type of media format.
|
|
53
|
+
*/
|
|
54
|
+
mediaFormat?: ZRomulatorSystemMediaFormatType;
|
|
55
|
+
/**
|
|
56
|
+
* The digital format of the game media.
|
|
57
|
+
*/
|
|
58
|
+
contentType?: ZRomulatorSystemContentType;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* The years the system was in production until.
|
|
62
|
+
*/
|
|
63
|
+
productionYears?: {
|
|
64
|
+
/**
|
|
65
|
+
* The first year the system went into production.
|
|
66
|
+
*/
|
|
67
|
+
start?: number;
|
|
68
|
+
/**
|
|
69
|
+
* The year when production stopped.
|
|
70
|
+
*/
|
|
71
|
+
end?: number;
|
|
72
|
+
};
|
|
37
73
|
}
|
|
38
74
|
/**
|
|
39
75
|
* A builder for creating an IZRomulatorSystem.
|
|
@@ -45,6 +81,7 @@ export declare class ZRomulatorSystemBuilder {
|
|
|
45
81
|
*
|
|
46
82
|
* @param id -
|
|
47
83
|
* The unique identifier for the system.
|
|
84
|
+
*
|
|
48
85
|
* @returns
|
|
49
86
|
* This instance.
|
|
50
87
|
*/
|
|
@@ -54,70 +91,83 @@ export declare class ZRomulatorSystemBuilder {
|
|
|
54
91
|
*
|
|
55
92
|
* @param name -
|
|
56
93
|
* The canonical name of the system.
|
|
94
|
+
*
|
|
57
95
|
* @returns
|
|
58
96
|
* This instance.
|
|
59
97
|
*/
|
|
60
98
|
name(name: string): this;
|
|
61
99
|
/**
|
|
62
|
-
* Sets the system
|
|
100
|
+
* Sets the company that published the system.
|
|
101
|
+
*
|
|
102
|
+
* @param name -
|
|
103
|
+
* The name of the company.
|
|
63
104
|
*
|
|
64
|
-
* @param type -
|
|
65
|
-
* The type of system.
|
|
66
105
|
* @returns
|
|
67
106
|
* This instance.
|
|
68
107
|
*/
|
|
69
|
-
|
|
108
|
+
company(name: string): this;
|
|
70
109
|
/**
|
|
71
|
-
* Sets the system type
|
|
110
|
+
* Sets the system hardware type.
|
|
111
|
+
*
|
|
112
|
+
* @param type -
|
|
113
|
+
* The system hardware type.
|
|
72
114
|
*
|
|
73
115
|
* @returns
|
|
74
116
|
* This instance.
|
|
75
117
|
*/
|
|
76
|
-
|
|
118
|
+
hardware(type: ZRomulatorSystemHardwareType): this;
|
|
77
119
|
/**
|
|
78
|
-
* Sets the system
|
|
120
|
+
* Sets the system media format.
|
|
121
|
+
*
|
|
122
|
+
* @param type -
|
|
123
|
+
* The system media format.
|
|
79
124
|
*
|
|
80
125
|
* @returns
|
|
81
126
|
* This instance.
|
|
82
127
|
*/
|
|
83
|
-
|
|
128
|
+
mediaFormat(type: ZRomulatorSystemMediaFormatType): this;
|
|
84
129
|
/**
|
|
85
|
-
* Sets the system type
|
|
130
|
+
* Sets the system content type.
|
|
131
|
+
*
|
|
132
|
+
* @param type -
|
|
133
|
+
* The system content type.
|
|
86
134
|
*
|
|
87
135
|
* @returns
|
|
88
136
|
* This instance.
|
|
89
137
|
*/
|
|
90
|
-
|
|
138
|
+
contentType(type: ZRomulatorSystemContentType): this;
|
|
91
139
|
/**
|
|
92
|
-
* Sets the
|
|
140
|
+
* Sets the production run.
|
|
141
|
+
*
|
|
142
|
+
* @param start -
|
|
143
|
+
* The starting year of production.
|
|
144
|
+
* @param end -
|
|
145
|
+
* The last year of production.
|
|
93
146
|
*
|
|
94
147
|
* @returns
|
|
95
|
-
* This
|
|
148
|
+
* This object.
|
|
96
149
|
*/
|
|
97
|
-
|
|
150
|
+
production(start: number, end?: number): this;
|
|
98
151
|
/**
|
|
99
|
-
*
|
|
152
|
+
* Adds to the extension list.
|
|
153
|
+
*
|
|
154
|
+
* @param extension -
|
|
155
|
+
* The extension or list of extensions to add.
|
|
100
156
|
*
|
|
101
|
-
* @param generation -
|
|
102
|
-
* The generational index of the system.
|
|
103
157
|
* @returns
|
|
104
|
-
* This
|
|
158
|
+
* This object.
|
|
105
159
|
*/
|
|
106
|
-
|
|
160
|
+
extension(extension: string | string[]): this;
|
|
107
161
|
/**
|
|
108
|
-
*
|
|
162
|
+
* Parses an unknown object to try and build a system from it.
|
|
109
163
|
*
|
|
110
|
-
* @param
|
|
111
|
-
* The
|
|
164
|
+
* @param candidate -
|
|
165
|
+
* The candidate to try and parse.
|
|
112
166
|
*
|
|
113
167
|
* @returns
|
|
114
168
|
* This object.
|
|
115
169
|
*/
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Removes anything that is not a valid property on this object.
|
|
119
|
-
*/
|
|
120
|
-
redact(): this;
|
|
170
|
+
parse(candidate: unknown): this;
|
|
121
171
|
/**
|
|
122
172
|
* Builds the system instance.
|
|
123
173
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zthun/romulator-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "A client for declaring models and invoking the romulator api",
|
|
5
5
|
"author": "Anthony Bonta",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,21 +25,21 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@zthun/helpful-fn": "^9.
|
|
29
|
-
"@zthun/helpful-query": "^9.
|
|
28
|
+
"@zthun/helpful-fn": "^9.8.0",
|
|
29
|
+
"@zthun/helpful-query": "^9.8.0",
|
|
30
30
|
"lodash-es": "^4.17.21"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/lodash-es": "^4.17.12",
|
|
34
|
-
"@zthun/janitor-build-config": "^19.4.
|
|
34
|
+
"@zthun/janitor-build-config": "^19.4.1",
|
|
35
35
|
"tsx": "^4.20.6",
|
|
36
36
|
"typescript": "^5.9.3",
|
|
37
37
|
"vite": "^7.1.11",
|
|
38
|
-
"vitest": "^
|
|
38
|
+
"vitest": "^4.0.1"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist"
|
|
42
42
|
],
|
|
43
43
|
"sideEffects": false,
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "bad1143f9c40a8bd819117cb99bf2f1b58c005e6"
|
|
45
45
|
}
|