@retropak/types 1.0.0-draft5 → 1.0.0-draft7

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.
@@ -6,7 +6,7 @@
6
6
  /**
7
7
  * A classification for the type/nature of the software.
8
8
  */
9
- export type Category = "addon" | "application" | "beta" | "bios" | "compilation" | "coverdisk" | "demo" | "educational" | "firmware" | "freeware" | "game" | "homebrew" | "multimedia" | "promotional" | "prototype" | "scene_demo" | "shareware" | "unlicensed" | "utility";
9
+ export type Category = "addon" | "application" | "beta" | "bios" | "compilation" | "coverdisk" | "demo" | "educational" | "enhanced" | "firmware" | "freeware" | "game" | "homebrew" | "multimedia" | "port" | "promotional" | "prototype" | "remake" | "remaster" | "rerelease" | "scene_demo" | "shareware" | "unlicensed" | "utility";
10
10
  /**
11
11
  * Genre classification.
12
12
  */
@@ -131,6 +131,26 @@ export interface RetropakManifest {
131
131
  gamefaqs?: number;
132
132
  };
133
133
  rating?: AgeRating;
134
+ /**
135
+ * The software license (e.g., 'freeware', 'shareware', 'commercial', 'gpl', 'mit').
136
+ */
137
+ license?: "commercial" | "freeware" | "shareware" | "public_domain" | "open_source" | "gpl" | "gpl2" | "gpl3" | "lgpl" | "mit" | "bsd" | "apache" | "creative_commons" | "cc_by" | "cc_by_sa" | "cc_by_nc" | "cc_by_nc_sa" | "cc0" | "proprietary" | "unknown";
138
+ /**
139
+ * European Article Number (EAN-13) barcode from product packaging. Also covers JAN (Japanese Article Number).
140
+ */
141
+ ean?: string;
142
+ /**
143
+ * Universal Product Code (UPC-A) barcode from product packaging.
144
+ */
145
+ upc?: string;
146
+ /**
147
+ * International Standard Book Number (ISBN-10 or ISBN-13) if applicable.
148
+ */
149
+ isbn?: string;
150
+ /**
151
+ * International Standard Serial Number (ISSN) for magazine coverdisks.
152
+ */
153
+ issn?: string;
134
154
  /**
135
155
  * Additional notes, warnings, or information (e.g. access codes, compatibility notes, copy protection details).
136
156
  */
@@ -263,10 +283,6 @@ export interface AgeRating {
263
283
  * A media file (ROM, disc image, tape, etc.).
264
284
  */
265
285
  export interface MediaItem {
266
- /**
267
- * Unique identifier for this media item, used for referencing in other fields.
268
- */
269
- id?: string;
270
286
  /**
271
287
  * Relative path to the media file within the archive.
272
288
  */
@@ -311,9 +327,9 @@ export interface MediaItem {
311
327
  */
312
328
  source?: string;
313
329
  /**
314
- * Official product serial/catalog number from the original media.
330
+ * Official product code or catalog number from the original media (e.g. 'SLUS-00594', 'MK-1491', 'DOL-GALE-USA').
315
331
  */
316
- serial?: string;
332
+ productCode?: string;
317
333
  /**
318
334
  * Additional notes about this specific media file (e.g. distribution method, requirements, known issues).
319
335
  */
@@ -370,10 +386,6 @@ export interface PhysicalMediaImage {
370
386
  * Alternative text describing the image for accessibility.
371
387
  */
372
388
  alt?: string;
373
- /**
374
- * References the 'id' field of a media item, if specific to one disc/cart.
375
- */
376
- mediaId?: string;
377
389
  type?: MediaType;
378
390
  }
379
391
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@retropak/types",
3
- "version": "1.0.0-draft5",
3
+ "version": "1.0.0-draft7",
4
4
  "description": "TypeScript type definitions for Retropak manifests",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/generated.ts CHANGED
@@ -17,13 +17,18 @@ export type Category =
17
17
  | "coverdisk"
18
18
  | "demo"
19
19
  | "educational"
20
+ | "enhanced"
20
21
  | "firmware"
21
22
  | "freeware"
22
23
  | "game"
23
24
  | "homebrew"
24
25
  | "multimedia"
26
+ | "port"
25
27
  | "promotional"
26
28
  | "prototype"
29
+ | "remake"
30
+ | "remaster"
31
+ | "rerelease"
27
32
  | "scene_demo"
28
33
  | "shareware"
29
34
  | "unlicensed"
@@ -462,6 +467,46 @@ export interface RetropakManifest {
462
467
  gamefaqs?: number;
463
468
  };
464
469
  rating?: AgeRating;
470
+ /**
471
+ * The software license (e.g., 'freeware', 'shareware', 'commercial', 'gpl', 'mit').
472
+ */
473
+ license?:
474
+ | "commercial"
475
+ | "freeware"
476
+ | "shareware"
477
+ | "public_domain"
478
+ | "open_source"
479
+ | "gpl"
480
+ | "gpl2"
481
+ | "gpl3"
482
+ | "lgpl"
483
+ | "mit"
484
+ | "bsd"
485
+ | "apache"
486
+ | "creative_commons"
487
+ | "cc_by"
488
+ | "cc_by_sa"
489
+ | "cc_by_nc"
490
+ | "cc_by_nc_sa"
491
+ | "cc0"
492
+ | "proprietary"
493
+ | "unknown";
494
+ /**
495
+ * European Article Number (EAN-13) barcode from product packaging. Also covers JAN (Japanese Article Number).
496
+ */
497
+ ean?: string;
498
+ /**
499
+ * Universal Product Code (UPC-A) barcode from product packaging.
500
+ */
501
+ upc?: string;
502
+ /**
503
+ * International Standard Book Number (ISBN-10 or ISBN-13) if applicable.
504
+ */
505
+ isbn?: string;
506
+ /**
507
+ * International Standard Serial Number (ISSN) for magazine coverdisks.
508
+ */
509
+ issn?: string;
465
510
  /**
466
511
  * Additional notes, warnings, or information (e.g. access codes, compatibility notes, copy protection details).
467
512
  */
@@ -594,10 +639,6 @@ export interface AgeRating {
594
639
  * A media file (ROM, disc image, tape, etc.).
595
640
  */
596
641
  export interface MediaItem {
597
- /**
598
- * Unique identifier for this media item, used for referencing in other fields.
599
- */
600
- id?: string;
601
642
  /**
602
643
  * Relative path to the media file within the archive.
603
644
  */
@@ -642,9 +683,9 @@ export interface MediaItem {
642
683
  */
643
684
  source?: string;
644
685
  /**
645
- * Official product serial/catalog number from the original media.
686
+ * Official product code or catalog number from the original media (e.g. 'SLUS-00594', 'MK-1491', 'DOL-GALE-USA').
646
687
  */
647
- serial?: string;
688
+ productCode?: string;
648
689
  /**
649
690
  * Additional notes about this specific media file (e.g. distribution method, requirements, known issues).
650
691
  */
@@ -701,10 +742,6 @@ export interface PhysicalMediaImage {
701
742
  * Alternative text describing the image for accessibility.
702
743
  */
703
744
  alt?: string;
704
- /**
705
- * References the 'id' field of a media item, if specific to one disc/cart.
706
- */
707
- mediaId?: string;
708
745
  type?: MediaType;
709
746
  }
710
747
  /**