discogs-marketplace-api-nodejs 1.5.2 → 1.6.1

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.
Files changed (84) hide show
  1. package/README.MD +111 -97
  2. package/dist/data/countries.data.d.ts +306 -0
  3. package/dist/data/countries.data.js +327 -0
  4. package/dist/data/currencies.data.d.ts +33 -0
  5. package/dist/data/currencies.data.js +35 -0
  6. package/dist/data/index.d.ts +3 -0
  7. package/dist/data/index.js +10 -0
  8. package/dist/index.d.ts +2 -6
  9. package/dist/index.js +0 -12
  10. package/dist/marketplace.d.ts +2 -2
  11. package/dist/marketplace.js +16 -18
  12. package/dist/types/commons/index.d.ts +4 -0
  13. package/dist/types/commons/input.type.d.ts +95 -0
  14. package/dist/{interfaces/output-error.interface.d.ts → types/commons/output-error.type.d.ts} +3 -2
  15. package/dist/types/commons/output-sucess.type.d.ts +116 -0
  16. package/dist/types/unions/condition.type.d.ts +5 -0
  17. package/dist/types/unions/currency.type.d.ts +5 -0
  18. package/dist/types/unions/format-description.type.d.ts +5 -0
  19. package/dist/types/unions/format.type.d.ts +5 -0
  20. package/dist/types/unions/from.type.d.ts +5 -0
  21. package/dist/types/unions/from.type.js +2 -0
  22. package/dist/types/unions/genre.type.d.ts +5 -0
  23. package/dist/types/unions/genre.type.js +2 -0
  24. package/dist/types/unions/index.d.ts +12 -0
  25. package/dist/types/unions/index.js +2 -0
  26. package/dist/types/unions/lang.type.d.ts +5 -0
  27. package/dist/types/unions/lang.type.js +2 -0
  28. package/dist/types/{limit.type.d.ts → unions/limit.type.d.ts} +1 -1
  29. package/dist/types/unions/limit.type.js +2 -0
  30. package/dist/types/unions/search-type.type.d.ts +5 -0
  31. package/dist/types/unions/search-type.type.js +2 -0
  32. package/dist/types/unions/sort.type.d.ts +5 -0
  33. package/dist/types/unions/sort.type.js +2 -0
  34. package/dist/types/unions/style.type.d.ts +5 -0
  35. package/dist/types/unions/style.type.js +2 -0
  36. package/package.json +19 -16
  37. package/dist/enums/currency.enum.d.ts +0 -19
  38. package/dist/enums/currency.enum.js +0 -22
  39. package/dist/enums/format-description.enum.d.ts +0 -144
  40. package/dist/enums/format-description.enum.js +0 -147
  41. package/dist/enums/format.enum.d.ts +0 -59
  42. package/dist/enums/format.enum.js +0 -62
  43. package/dist/enums/from.enum.d.ts +0 -251
  44. package/dist/enums/from.enum.js +0 -254
  45. package/dist/enums/genre.enum.d.ts +0 -21
  46. package/dist/enums/genre.enum.js +0 -24
  47. package/dist/enums/index.d.ts +0 -11
  48. package/dist/enums/index.js +0 -26
  49. package/dist/enums/iso/country-code.enum.d.ts +0 -255
  50. package/dist/enums/iso/country-code.enum.js +0 -258
  51. package/dist/enums/iso/country-name.enum.d.ts +0 -255
  52. package/dist/enums/iso/country-name.enum.js +0 -258
  53. package/dist/enums/iso/index.d.ts +0 -3
  54. package/dist/enums/iso/index.js +0 -10
  55. package/dist/enums/iso/translate/discogs-country-name-to-iso-code.enum.d.ts +0 -69
  56. package/dist/enums/iso/translate/discogs-country-name-to-iso-code.enum.js +0 -72
  57. package/dist/enums/iso/translate/discogs-currency-to-iso-code.enum.d.ts +0 -36
  58. package/dist/enums/iso/translate/discogs-currency-to-iso-code.enum.js +0 -39
  59. package/dist/enums/iso/translate/index.d.ts +0 -3
  60. package/dist/enums/iso/translate/index.js +0 -10
  61. package/dist/enums/lang.enum.d.ts +0 -15
  62. package/dist/enums/lang.enum.js +0 -18
  63. package/dist/enums/media-condition.enum.d.ts +0 -14
  64. package/dist/enums/media-condition.enum.js +0 -17
  65. package/dist/enums/stort.enum.d.ts +0 -62
  66. package/dist/enums/stort.enum.js +0 -65
  67. package/dist/enums/style.enum.d.ts +0 -255
  68. package/dist/enums/style.enum.js +0 -258
  69. package/dist/enums/type.enum.d.ts +0 -30
  70. package/dist/enums/type.enum.js +0 -33
  71. package/dist/interfaces/index.d.ts +0 -6
  72. package/dist/interfaces/input.interface.d.ts +0 -80
  73. package/dist/interfaces/item.interface.d.ts +0 -89
  74. package/dist/interfaces/output-sucess.interface.d.ts +0 -32
  75. package/dist/interfaces/year.interface.d.ts +0 -9
  76. package/dist/types/index.d.ts +0 -2
  77. /package/dist/{interfaces → types/commons}/index.js +0 -0
  78. /package/dist/{interfaces/input.interface.js → types/commons/input.type.js} +0 -0
  79. /package/dist/{interfaces/item.interface.js → types/commons/output-error.type.js} +0 -0
  80. /package/dist/{interfaces/output-error.interface.js → types/commons/output-sucess.type.js} +0 -0
  81. /package/dist/{interfaces/output-sucess.interface.js → types/unions/condition.type.js} +0 -0
  82. /package/dist/{interfaces/year.interface.js → types/unions/currency.type.js} +0 -0
  83. /package/dist/types/{index.js → unions/format-description.type.js} +0 -0
  84. /package/dist/types/{limit.type.js → unions/format.type.js} +0 -0
@@ -0,0 +1,116 @@
1
+ import type { SearchTypeType } from '../../types/unions/index.js';
2
+ /**
3
+ * Result provided to user
4
+ */
5
+ type OutputSuccessType = {
6
+ /** Items */
7
+ items: {
8
+ /** Id */
9
+ id: number;
10
+ /** Title */
11
+ title: {
12
+ /** Original */
13
+ original: string;
14
+ /** Artist */
15
+ artist: string;
16
+ /** Item */
17
+ item: string;
18
+ /** Formats */
19
+ formats: string[];
20
+ };
21
+ /** Url */
22
+ url: string;
23
+ /** Labels */
24
+ labels: string[];
25
+ /** Catnos */
26
+ catnos: string[];
27
+ /** ImageUrl */
28
+ imageUrl: string;
29
+ /** Description */
30
+ description: string;
31
+ /** IsAcceptingOffer */
32
+ isAcceptingOffer: boolean;
33
+ /** IsAvailable */
34
+ isAvailable: boolean;
35
+ /** Condition */
36
+ condition: {
37
+ /** Media */
38
+ media: {
39
+ /** Full */
40
+ full: string;
41
+ /** Short */
42
+ short: string;
43
+ };
44
+ /** Sleeve */
45
+ sleeve: {
46
+ /** Full */
47
+ full: string;
48
+ /** Short */
49
+ short: string;
50
+ };
51
+ };
52
+ /** Seller */
53
+ seller: {
54
+ /** Name */
55
+ name: string;
56
+ /** Url */
57
+ url: string;
58
+ /** Score */
59
+ score: string;
60
+ /** Notes */
61
+ notes: number;
62
+ };
63
+ /** Price */
64
+ price: {
65
+ /** Base */
66
+ base: string;
67
+ /** Shipping */
68
+ shipping: string;
69
+ };
70
+ /** From */
71
+ country: {
72
+ /** Name */
73
+ name: string;
74
+ /** Iso code */
75
+ code: string;
76
+ };
77
+ /** Community */
78
+ community: {
79
+ /** Have */
80
+ have: number;
81
+ /** Want */
82
+ want: number;
83
+ };
84
+ /** Release */
85
+ release: {
86
+ /** Id */
87
+ id: number;
88
+ /** Url */
89
+ url: string;
90
+ };
91
+ }[];
92
+ /** Page */
93
+ page: {
94
+ /** Current */
95
+ current: number;
96
+ /** Total */
97
+ total: number;
98
+ };
99
+ /** Result */
100
+ result: {
101
+ /** Total */
102
+ total: number;
103
+ /** PerPage */
104
+ perPage: number;
105
+ };
106
+ /** Search */
107
+ search: {
108
+ /** Value */
109
+ value: string | number;
110
+ /** Type */
111
+ type: SearchTypeType;
112
+ };
113
+ /** UrlGenerated */
114
+ urlGenerated: string;
115
+ };
116
+ export default OutputSuccessType;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Conditions
3
+ */
4
+ type ConditionType = '0' | 'Fair (F)' | 'Good (G)' | 'Good Plus (G+)' | 'Mint (M)' | 'Near Mint (NM or M-)' | 'Poor (P)' | 'Very Good (VG)' | 'Very Good Plus (VG+)';
5
+ export default ConditionType;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Currencies
3
+ */
4
+ type CurrencyType = 'AUD' | 'BRL' | 'CAD' | 'CHF' | 'DKK' | 'EUR' | 'GBP' | 'JPY' | 'MXN' | 'NZD' | 'SEK' | 'USD' | 'ZAR';
5
+ export default CurrencyType;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * FormatDescriptions
3
+ */
4
+ type FormatDescriptionType = '1 ⅞ ips' | '1"' | '10"' | '10.5" NAB Reel' | '11"' | '12"' | '15 ips' | '15/16 ips' | '16 ⅔ RPM' | '16"' | '16mm' | '2 Minute' | '2"' | '2-Track Mono' | '2-Track Stereo' | '21cm' | '25cm' | '27cm' | '29cm' | '3 Minute' | '3 ¾ ips' | '3"' | '3" Cine Reel' | '3.5"' | '30 ips' | '33 ⅓ RPM' | '35cm' | '35mm' | '3½"' | '4 Minute' | '4"' | '4-Track Mono' | '4-Track Stereo' | '45 RPM' | '4K' | '5"' | '5" Cine Reel' | '5.25"' | '50cm' | '5½"' | '6"' | '6" Cine Reel' | '6½"' | '7 ½ ips' | '7"' | '7" Cine Reel' | '78 RPM' | '8 ⅓ RPM' | '8"' | '80 RPM' | '8K' | '9"' | '90 RPM' | 'AAC' | 'AIFC' | 'AIFF' | 'ALAC' | 'AMR' | 'APE' | 'AVCD' | 'AVI' | 'Advance' | 'Album' | 'Ambisonic' | 'Bioplastic' | 'Blu-ray Audio' | 'Business Card' | 'CD+G' | 'CD-ROM' | 'CD-Record' | 'CDi' | 'Card Backed' | 'Club Edition' | 'Compilation' | 'Concert' | 'Copy Protected' | 'DFF' | 'DSF' | 'DVD-Audio' | 'DVD-Data' | 'DVD-Video' | 'DVDplus' | 'Deluxe Edition' | 'Disc Image' | 'Double Sided' | 'DualDisc' | 'EP' | 'Enhanced' | 'Etched' | 'FLAC' | 'FLV' | 'HDCD' | 'Hybrid' | 'Jukebox' | 'LP' | 'Limited Edition' | 'MOV' | 'MP2' | 'MP3' | 'MP3 Surround' | 'MPEG Video' | 'MPEG-4 Video' | 'Maxi-Single' | 'Mini' | 'Mini-Album' | 'Minimax' | 'Mispress' | 'Misprint' | 'Mixed' | 'Mixtape' | 'Mono' | 'Multichannel' | 'NTSC' | 'Numbered' | 'Opus' | 'PAL' | 'Partially Mixed' | 'Partially Unofficial' | 'Picture Disc' | 'Promo' | 'Quadraphonic' | 'RA' | 'RM' | 'Reissue' | 'Remastered' | 'Repress' | 'SECAM' | 'SHN' | 'SVCD' | 'SWF' | 'Salon' | 'Sampler' | 'Shape' | 'Single' | 'Single Sided' | 'Special Edition' | 'Stereo' | 'Styrene' | 'TTA' | 'Test Pressing' | 'Transcription' | 'Unofficial Release' | 'VCD' | 'VinylDisc' | 'WAV' | 'WMA' | 'WMV' | 'WavPack' | 'White Label' | 'XRCD' | 'ogg-vorbis' | '¼"' | '½"' | '⅛"';
5
+ export default FormatDescriptionType;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Formats
3
+ */
4
+ type FormatType = '4-Track Cartridge' | '8-Track Cartridge' | 'Acetate' | 'All Media' | 'Betacam' | 'Betacam SP' | 'Betamax' | 'Blu-ray' | 'Blu-ray-R' | 'Box Set' | 'CD' | 'CDV' | 'CDr' | 'Cartrivision' | 'Cassette' | 'Cylinder' | 'DAT' | 'DC-International' | 'DCC' | 'DVD' | 'DVDr' | 'Edison Disc' | 'Elcaset' | 'File' | 'Film Reel' | 'Flexi-disc' | 'Floppy Disk' | 'HD DVD' | 'HD DVD-R' | 'HitClips' | 'Hybrid' | 'Laserdisc' | 'Lathe Cut' | 'MVD' | 'Memory Stick' | 'Microcassette' | 'Mighty Tiny' | 'MiniDV' | 'Minidisc' | 'NT Cassette' | 'Pathé Disc' | 'PlayTape' | 'Pocket Rocker' | 'RCA Tape Cartridge' | 'Reel-To-Reel' | 'Revere Magnetic Stereo Tape Ca' | 'SACD' | 'Sabamobil' | 'SelectaVision' | 'Shellac' | 'Sopic' | 'Super VHS' | 'TeD' | 'Tefifon' | 'U-matic' | 'UMD' | 'Ultra HD Blu-ray' | 'VHD' | 'VHS' | 'Video 2000' | 'Video8' | 'Vinyl' | 'Wire Recording';
5
+ export default FormatType;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Froms
3
+ */
4
+ type FromType = 'Afghanistan' | 'Albania' | 'Algeria' | 'American Samoa' | 'Andorra' | 'Angola' | 'Anguilla' | 'Antarctica' | 'Antigua and Barbuda' | 'Argentina' | 'Armenia' | 'Aruba' | 'Australia' | 'Austria' | 'Azerbaidjan' | 'Bahamas' | 'Bahrain' | 'Bangladesh' | 'Barbados' | 'Belarus' | 'Belgium' | 'Belize' | 'Benin' | 'Bermuda' | 'Bhutan' | 'Bolivia' | 'Bosnia-Herzegovina' | 'Botswana' | 'Bouvet Island' | 'Brazil' | 'British Indian Ocean Territory' | 'Brunei Darussalam' | 'Bulgaria' | 'Burkina Faso' | 'Burundi' | 'Cambodia' | 'Cameroon' | 'Canada' | 'Cape Verde' | 'Cayman Islands' | 'Central African Republic' | 'Chad' | 'Chile' | 'China' | 'Christmas Island' | 'Cocos (Keeling) Islands' | 'Colombia' | 'Comoros' | 'Congo' | 'Cook Islands' | 'Costa Rica' | 'Croatia' | 'Cuba' | 'Cyprus' | 'Czech Republic' | 'Denmark' | 'Djibouti' | 'Dominica' | 'Dominican Republic' | 'East Timor' | 'Ecuador' | 'Egypt' | 'El Salvador' | 'Equatorial Guinea' | 'Eritrea' | 'Estonia' | 'Ethiopia' | 'Falkland Islands' | 'Faroe Islands' | 'Fiji' | 'Finland' | 'Former Czechoslovakia' | 'Former USSR' | 'France' | 'France (European Territory)' | 'French Guyana' | 'French Southern Territories' | 'Gabon' | 'Gambia' | 'Georgia' | 'Germany' | 'Ghana' | 'Gibraltar' | 'Greece' | 'Greenland' | 'Grenada' | 'Guadeloupe (French)' | 'Guam (USA)' | 'Guatemala' | 'Guinea' | 'Guinea Bissau' | 'Guyana' | 'Haiti' | 'Heard and McDonald Islands' | 'Honduras' | 'Hong Kong' | 'Hungary' | 'Iceland' | 'India' | 'Indonesia' | 'Iran' | 'Iraq' | 'Ireland' | 'Israel' | 'Italy' | "Ivory Coast (Cote D'Ivoire)" | 'Jamaica' | 'Japan' | 'Jordan' | 'Kazakhstan' | 'Kenya' | 'Kiribati' | 'Kuwait' | 'Kyrgyzstan' | 'Laos' | 'Latvia' | 'Lebanon' | 'Lesotho' | 'Liberia' | 'Libya' | 'Liechtenstein' | 'Lithuania' | 'Luxembourg' | 'Macau' | 'Macedonia' | 'Madagascar' | 'Malawi' | 'Malaysia' | 'Maldives' | 'Mali' | 'Malta' | 'Marshall Islands' | 'Martinique (French)' | 'Mauritania' | 'Mauritius' | 'Mayotte' | 'Mexico' | 'Micronesia' | 'Moldova, Republic of' | 'Monaco' | 'Mongolia' | 'Montenegro' | 'Montserrat' | 'Morocco' | 'Mozambique' | 'Myanmar' | 'Namibia' | 'Nauru' | 'Nepal' | 'Netherlands' | 'Netherlands Antilles' | 'Neutral Zone' | 'New Caledonia (French)' | 'New Zealand' | 'Nicaragua' | 'Niger' | 'Nigeria' | 'Niue' | 'Norfolk Island' | 'Northern Ireland' | 'Northern Mariana Islands' | 'Norway' | 'Oman' | 'Pakistan' | 'Palau' | 'Panama' | 'Papua New Guinea' | 'Paraguay' | 'Peru' | 'Philippines' | 'Pitcairn Island' | 'Poland' | 'Polynesia (French)' | 'Portugal' | 'Puerto Rico' | 'Qatar' | 'Reunion (French)' | 'Romania' | 'Russian Federation' | 'Rwanda' | 'S. Georgia & S. Sandwich Isls.' | 'Saint Helena' | 'Saint Kitts & Nevis Anguilla' | 'Saint Lucia' | 'Saint Pierre and Miquelon' | 'Saint Tome (Sao Tome) and Princi' | 'Saint Vincent & Grenadines' | 'Samoa' | 'San Marino' | 'Saudi Arabia' | 'Select your country' | 'Senegal' | 'Serbia' | 'Seychelles' | 'Sierra Leone' | 'Singapore' | 'Slovak Republic' | 'Slovenia' | 'Solomon Islands' | 'Somalia' | 'South Africa' | 'South Korea' | 'Spain' | 'Spain (Canary Islands)' | 'Sri Lanka' | 'Sudan' | 'Suriname' | 'Svalbard and Jan Mayen Islands' | 'Swaziland' | 'Sweden' | 'Switzerland' | 'Syria' | 'Tadjikistan' | 'Taiwan' | 'Tanzania' | 'Thailand' | 'Togo' | 'Tokelau' | 'Tonga' | 'Trinidad and Tobago' | 'Tunisia' | 'Turkey' | 'Turkmenistan' | 'Turks and Caicos Islands' | 'Tuvalu' | 'USA Minor Outlying Islands' | 'Uganda' | 'Ukraine' | 'United Arab Emirates' | 'United Kingdom' | 'United Kingdom (Channel Islands)' | 'United States' | 'Uruguay' | 'Uzbekistan' | 'Vanuatu' | 'Vatican City State' | 'Venezuela' | 'Vietnam' | 'Virgin Islands (British)' | 'Virgin Islands (USA)' | 'Wallis and Futuna Islands' | 'Western Sahara' | 'Yemen' | 'Yugoslavia' | 'Zaire' | 'Zambia' | 'Zimbabwe';
5
+ export default FromType;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Genres
3
+ */
4
+ type GenreType = 'Blues' | 'Brass & Military' | "Children's" | 'Classical' | 'Electronic' | 'Folk, World, & Country' | 'Funk / Soul' | 'Hip Hop' | 'Jazz' | 'Latin' | 'Non-Music' | 'Pop' | 'Reggae' | 'Rock' | 'Stage & Screen';
5
+ export default GenreType;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import LimitType from '../../types/unions/limit.type.js';
2
+ import GenreType from '../../types/unions/genre.type.js';
3
+ import CurrencyType from '../../types/unions/currency.type.js';
4
+ import FromType from '../../types/unions/from.type.js';
5
+ import StyleType from '../../types/unions/style.type.js';
6
+ import FormatType from '../../types/unions/format.type.js';
7
+ import ConditionType from '../../types/unions/condition.type.js';
8
+ import SortType from '../../types/unions/sort.type.js';
9
+ import LangType from '../../types/unions/lang.type.js';
10
+ import FormatDescriptionType from '../../types/unions/format-description.type.js';
11
+ import SearchTypeType from '../../types/unions/search-type.type.js';
12
+ export { LimitType, GenreType, CurrencyType, FromType, StyleType, FormatType, ConditionType, SortType, LangType, FormatDescriptionType, SearchTypeType, };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Langs
3
+ */
4
+ type LangType = 'de' | 'en' | 'es' | 'fr' | 'it' | 'ja' | 'ko' | 'pt_BR' | 'ru';
5
+ export default LangType;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Limits per page
3
3
  */
4
- declare type LimitType = 25 | 50 | 100 | 250;
4
+ type LimitType = 25 | 50 | 100 | 250;
5
5
  export default LimitType;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * SearchTypes
3
+ */
4
+ type SearchTypeType = 'q' | 'master_id' | 'release_id' | 'label_id' | 'artist_id' | 'user';
5
+ export default SearchTypeType;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Sorts
3
+ */
4
+ type SortType = 'Artist A-Z' | 'Artist Z-A' | 'Condition (M)-(P)' | 'Condition (P)-(M)' | 'Label A-Z' | 'Label Z-A' | 'Listed Newest' | 'Listed Oldest' | 'Price Highest' | 'Price Lowest' | 'Seller A-Z' | 'Seller Z-A' | 'Title A-Z' | 'Title Z-A';
5
+ export default SortType;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Styles
3
+ */
4
+ type StyleType = 'AOR' | 'Aboriginal' | 'Abstract' | 'Acid' | 'Acid House' | 'Acid Jazz' | 'Acid Rock' | 'Acoustic' | 'African' | 'Afro-Cuban' | 'Afro-Cuban Jazz' | 'Afrobeat' | 'Afrobeat' | 'Aguinaldo' | 'Alternative Rock' | 'Ambient' | 'Andalusian Classical' | 'Andean Music' | 'Appalachian Music' | 'Arena Rock' | 'Art Rock' | 'Atmospheric Black Metal' | 'Audiobook' | 'Avant-garde Jazz' | 'Avantgarde' | 'Axé' | 'Azonto' | 'Bachata' | 'Baião' | 'Balearic' | 'Ballad' | 'Ballroom' | 'Baltimore Club' | 'Bambuco' | 'Bangladeshi Classical' | 'Barbershop' | 'Baroque' | 'Baroque Pop' | 'Basque Music' | 'Bass Music' | 'Bassline' | 'Batucada' | 'Bayou Funk' | 'Beat' | 'Beatbox' | 'Beatdown' | 'Beguine' | 'Bengali Music' | 'Berlin-School' | 'Bhangra' | 'Big Band' | 'Big Beat' | 'Black Metal' | 'Bleep' | 'Bluegrass' | 'Blues Rock' | 'Bolero' | 'Bollywood' | 'Bomba' | 'Bongo Flava' | 'Boogaloo' | 'Boogie' | 'Boogie Woogie' | 'Boom Bap' | 'Bop' | 'Bossa Nova' | 'Bossanova' | 'Bounce' | 'Brass Band' | 'Break-In' | 'Breakbeat' | 'Breakcore' | 'Breaks' | 'Brit Pop' | 'Britcore' | 'Britpop' | 'Broken Beat' | 'Bubblegum' | 'Bubbling' | 'Cabaret' | 'Caipira' | 'Cajun' | 'Calypso' | 'Cambodian Classical' | 'Candombe' | 'Cantopop' | 'Canzone Napoletana' | 'Cape Jazz' | 'Carimbó' | 'Carnatic' | 'Catalan Music' | 'Celtic' | 'Cha-Cha' | 'Chacarera' | 'Chamamé' | 'Champeta' | 'Chanson' | 'Charanga' | 'Chicago Blues' | 'Chillwave' | 'Chinese Classical' | 'Chiptune' | 'Choral' | 'Choro' | 'Chutney' | 'City Pop' | 'Classic Rock' | 'Classical' | 'Cloud Rap' | 'Cobla' | 'Coldwave' | 'Comedy' | 'Compas' | 'Conjunto' | 'Conscious' | 'Contemporary' | 'Contemporary Jazz' | 'Contemporary R&B' | 'Cool Jazz' | 'Copla' | 'Corrido' | 'Country' | 'Country Blues' | 'Country Rock' | 'Cretan' | 'Crunk' | 'Crust' | 'Cuatro' | 'Cubano' | 'Cumbia' | 'Cut-up/DJ' | 'DJ Battle Tool' | 'Dance-pop' | 'Dancehall' | 'Dangdut' | 'Danzon' | 'Dark Ambient' | 'Dark Jazz' | 'Darkwave' | 'Death Metal' | 'Deathcore' | 'Deathrock' | 'Deep House' | 'Deep Techno' | 'Delta Blues' | 'Depressive Black Metal' | 'Descarga' | 'Dialogue' | 'Disco' | 'Disco' | 'Disco Polo' | 'Dixieland' | 'Donk' | 'Doo Wop' | 'Doo Wop' | 'Doom Metal' | 'Doomcore' | 'Downtempo' | 'Dream Pop' | 'Drone' | 'Drum n Bass' | 'Dub' | 'Dub' | 'Dub Poetry' | 'Dub Techno' | 'Dubstep' | 'Dungeon Synth' | 'EBM' | 'Early' | 'East Coast Blues' | 'Easy Listening' | 'Education' | 'Educational' | 'Electric Blues' | 'Electro' | 'Electro' | 'Electro House' | 'Electro Swing' | 'Electroacoustic' | 'Electroclash' | 'Emo' | 'Enka' | 'Erotic' | 'Ethereal' | 'Ethno-pop' | 'Euro House' | 'Euro-Disco' | 'Eurobeat' | 'Eurodance' | 'Europop' | 'Experimental' | 'Experimental' | 'Fado' | 'Favela Funk' | 'Field Recording' | 'Filk' | 'Flamenco' | 'Folk' | 'Folk Metal' | 'Folk Rock' | 'Footwork' | 'Forró' | 'Free Funk' | 'Free Improvisation' | 'Free Jazz' | 'Freestyle' | 'Freetekno' | 'Funaná' | 'Funeral Doom Metal' | 'Funk' | 'Funk Metal' | 'Funkot' | 'Fusion' | 'Future Jazz' | 'G-Funk' | 'Gabber' | 'Gagaku' | 'Gaita' | 'Galician Traditional' | 'Gamelan' | 'Gangsta' | 'Garage House' | 'Garage Rock' | 'Ghazal' | 'Ghetto' | 'Ghetto House' | 'Ghettotech' | 'Glam' | 'Glitch' | 'Glitch Hop' | 'Go-Go' | 'Goa Trance' | 'Gogo' | 'Goregrind' | 'Gospel' | 'Gospel' | 'Goth Rock' | 'Gothic Metal' | 'Gqom' | 'Grime' | 'Grime' | 'Grindcore' | 'Griot' | 'Groove Metal' | 'Group Sounds' | 'Grunge' | 'Guaguancó' | 'Guajira' | 'Guaracha' | 'Guarania' | 'Guggenmusik' | 'Gwo Ka' | 'Gypsy Jazz' | 'Għana' | 'Halftime' | 'Hands Up' | 'Happy Hardcore' | 'Hard Beat' | 'Hard Bop' | 'Hard House' | 'Hard Rock' | 'Hard Techno' | 'Hard Trance' | 'Hardcore' | 'Hardcore' | 'Hardcore Hip-Hop' | 'Hardstyle' | 'Harmonica Blues' | 'Harsh Noise Wall' | 'Hawaiian' | 'Health-Fitness' | 'Heavy Metal' | 'Hi NRG' | 'Highlife' | 'Hill Country Blues' | 'Hillbilly' | 'Hindustani' | 'Hip Hop' | 'Hip-House' | 'Hiplife' | 'Hokkien Pop' | 'Honky Tonk' | 'Horror Rock' | 'Horrorcore' | 'House' | 'Huayno' | 'Hyperpop' | 'Hyphy' | 'IDM' | 'Illbient' | 'Impressionist' | 'Indian Classical' | 'Indie Pop' | 'Indie Rock' | 'Indo-Pop' | 'Industrial' | 'Industrial' | 'Industrial Metal' | 'Instrumental' | 'Interview' | 'Italo House' | 'Italo-Disco' | 'Italodance' | 'J-Core' | 'J-Rock' | 'J-pop' | 'Jangle Pop' | 'Jazz-Funk' | 'Jazz-Rock' | 'Jazzdance' | 'Jazzy Hip-Hop' | 'Jersey Club' | 'Jibaro' | 'Joropo' | 'Jota' | 'Jug Band' | 'Juke' | 'Jump Blues' | 'Jumpstyle' | 'Jungle' | 'Junkanoo' | 'K-Rock' | 'K-pop' | 'Karaoke' | 'Kaseko' | 'Kayōkyoku' | 'Keroncong' | 'Kizomba' | 'Klasik' | 'Klezmer' | 'Korean Court Music' | 'Krautrock' | 'Kuduro' | 'Kwaito' | 'Lambada' | 'Lao Music' | 'Latin' | 'Latin Jazz' | 'Laïkó' | 'Leftfield' | 'Lento Violento' | 'Levenslied' | 'Light Music' | 'Liscio' | 'Lo-Fi' | 'Louisiana Blues' | 'Lounge' | 'Lovers Rock' | 'Luk Krung' | 'Luk Thung' | 'MPB' | 'Makina' | 'Maloya' | 'Mambo' | 'Mandopop' | 'Marcha Carnavalesca' | 'Marches' | 'Mariachi' | 'Marimba' | 'Math Rock' | 'Mbalax' | 'Medical' | 'Medieval' | 'Melodic Death Metal' | 'Melodic Hardcore' | 'Memphis Blues' | 'Mento' | 'Merengue' | 'Metalcore' | 'Miami Bass' | 'Military' | 'Milonga' | "Min'yō" | 'Minimal' | 'Minimal Techno' | 'Minneapolis Sound' | 'Mizrahi' | 'Mo Lam' | 'Mod' | 'Modal' | 'Modern' | 'Modern Classical' | 'Modern Electric Blues' | 'Monolog' | 'Moombahton' | 'Morna' | 'Motswako' | 'Mouth Music' | 'Movie Effects' | 'Mugham' | 'Musette' | 'Music Hall' | 'Musical' | 'Musique Concrète' | 'Música Criolla' | 'NDW' | 'Neo Soul' | 'Neo Trance' | 'Neo-Classical' | 'Neo-Romantic' | 'Neofolk' | 'Neofolk' | 'Nerdcore Techno' | 'New Age' | 'New Beat' | 'New Jack Swing' | 'New Wave' | 'New Wave' | 'Nhạc Vàng' | 'No Wave' | 'Noise' | 'Noise' | 'Noisecore' | 'Nordic' | 'Norteño' | 'Novelty' | 'Nu Metal' | 'Nu-Disco' | 'Nueva Cancion' | 'Nueva Trova' | 'Nursery Rhymes' | 'Néo Kyma' | 'Népzene' | 'Occitan' | 'Oi' | 'Opera' | 'Operetta' | 'Oratorio' | 'Ottoman Classical' | 'Overtone Singing' | 'P.Funk' | 'Pachanga' | 'Pacific' | 'Parody' | 'Parody' | 'Pasodoble' | 'Persian Classical' | 'Philippine Classical' | 'Phleng Phuea Chiwit' | 'Phonk' | 'Piano Blues' | 'Piedmont Blues' | 'Piobaireachd' | 'Pipe & Drum' | 'Plena' | 'Poetry' | 'Political' | 'Polka' | 'Pop Punk' | 'Pop Rap' | 'Pop Rock' | 'Pornogrind' | 'Porro' | 'Post Bop' | 'Post Rock' | 'Post-Hardcore' | 'Post-Metal' | 'Post-Modern' | 'Post-Punk' | 'Power Electronics' | 'Power Metal' | 'Power Pop' | 'Power Violence' | 'Prog Rock' | 'Progressive Bluegrass' | 'Progressive Breaks' | 'Progressive House' | 'Progressive Metal' | 'Progressive Trance' | 'Promotional' | 'Psy-Trance' | 'Psychedelic' | 'Psychedelic Rock' | 'Psychobilly' | 'Pub Rock' | 'Public Broadcast' | 'Public Service Announcement' | 'Punk' | 'Qawwali' | 'Quechua' | 'Radioplay' | 'Ragga' | 'Ragga HipHop' | 'Ragtime' | 'Ranchera' | 'Rapso' | 'Raï' | 'Rebetiko' | 'Reggae' | 'Reggae Gospel' | 'Reggae-Pop' | 'Reggaeton' | 'Religious' | 'Renaissance' | 'Rhythm & Blues' | 'Rhythm & Blues' | 'Rhythmic Noise' | 'RnB/Swing' | 'Rock & Roll' | 'Rock Opera' | 'Rockabilly' | 'Rocksteady' | 'Romani' | 'Romantic' | 'Roots Reggae' | 'Rumba' | 'Rune Singing' | 'Ryūkōka' | 'Rōkyoku' | 'Salegy' | 'Salsa' | 'Samba' | 'Samba-Canção' | 'Schlager' | 'Schranz' | 'Score' | 'Screw' | 'Sea Shanties' | 'Sean-nós' | 'Sephardic' | 'Seresta' | 'Serial' | 'Sermon' | 'Sertanejo' | 'Shaabi' | 'Shidaiqu' | 'Shoegaze' | 'Singeli' | 'Ska' | 'Ska' | 'Skiffle' | 'Skweee' | 'Sludge Metal' | 'Smooth Jazz' | 'Soca' | 'Soft Rock' | 'Son' | 'Son Montuno' | 'Sonero' | 'Soukous' | 'Soul' | 'Soul-Jazz' | 'Sound Art' | 'Sound Collage' | 'Sound Poetry' | 'Soundtrack' | 'Southern Rock' | 'Space Rock' | 'Space-Age' | 'Spaza' | 'Special Effects' | 'Speech' | 'Speed Garage' | 'Speed Metal' | 'Speedcore' | 'Spirituals' | 'Spoken Word' | 'Steel Band' | 'Stoner Rock' | 'Story' | 'Stride' | 'Surf' | 'Swamp Pop' | 'Swing' | 'Swingbeat' | 'Symphonic Metal' | 'Symphonic Rock' | 'Synth-pop' | 'Synthwave' | 'Sámi Music' | 'Séga' | 'Taarab' | 'Tamil Film Music' | 'Tango' | 'Tech House' | 'Tech Trance' | 'Technical' | 'Technical Death Metal' | 'Techno' | 'Tejano' | 'Texas Blues' | 'Thai Classical' | 'Theme' | 'Therapy' | 'Thrash' | 'Thug Rap' | 'Timba' | 'Trallalero' | 'Trance' | 'Trap' | 'Tribal' | 'Tribal House' | 'Trip Hop' | 'Trip Hop' | 'Tropical House' | 'Trova' | 'Turntablism' | 'Twelve-tone' | 'Twist' | 'UK Funky' | 'UK Garage' | 'UK Street Soul' | 'Vallenato' | 'Vaporwave' | 'Vaudeville' | 'Video Game Music' | 'Viking Metal' | 'Villancicos' | 'Vocal' | 'Volksmusik' | 'Waiata' | 'Western Swing' | 'Witch House' | 'Yemenite Jewish' | 'Yé-Yé' | 'Zamba' | 'Zarzuela' | 'Zemer Ivri' | 'Zouk' | 'Zydeco' | 'Éntekhno';
5
+ export default StyleType;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discogs-marketplace-api-nodejs",
3
- "version": "1.5.2",
3
+ "version": "1.6.1",
4
4
  "description": "Another (better ?) NodeJs library to fetch data from Discog's marketplace",
5
5
  "keywords": [
6
6
  "discogs",
@@ -27,26 +27,29 @@
27
27
  "main": "dist/index.js",
28
28
  "types": "dist/index.d.ts",
29
29
  "dependencies": {
30
- "axios": "^0.27.2",
31
- "linkedom": "^0.14.17",
32
- "user-agents": "^1.0.1168"
30
+ "axios": "^1.3.3",
31
+ "linkedom": "^0.14.22",
32
+ "user-agents": "^1.0.1295"
33
33
  },
34
34
  "devDependencies": {
35
- "@types/jest": "^29.1.2",
36
- "@types/node": "^18.8.5",
35
+ "@types/jest": "^29.4.0",
36
+ "@types/node": "^18.14.0",
37
37
  "@types/user-agents": "^1.0.2",
38
- "@typescript-eslint/eslint-plugin": "^5.40.0",
39
- "@typescript-eslint/parser": "^5.40.0",
40
- "eslint": "^8.25.0",
38
+ "@typescript-eslint/eslint-plugin": "^5.53.0",
39
+ "@typescript-eslint/parser": "^5.53.0",
40
+ "eslint": "^8.34.0",
41
41
  "eslint-config-airbnb-base": "^15.0.0",
42
42
  "eslint-config-airbnb-typescript": "^17.0.0",
43
- "eslint-plugin-import": "^2.26.0",
44
- "eslint-plugin-jsdoc": "^39.3.6",
45
- "jest": "^29.2.0",
46
- "ts-jest": "^29.0.3",
43
+ "eslint-plugin-import": "^2.27.5",
44
+ "eslint-plugin-jsdoc": "^40.0.0",
45
+ "jest": "^29.4.3",
46
+ "ts-jest": "^29.0.5",
47
47
  "ts-node": "^10.9.1",
48
- "tsc-alias": "^1.7.0",
49
- "tsconfig-paths": "^4.1.0",
50
- "typescript": "^4.8.4"
48
+ "tsc-alias": "^1.8.2",
49
+ "tsconfig-paths": "^4.1.2",
50
+ "typescript": "^4.9.5"
51
+ },
52
+ "engines": {
53
+ "node": ">=14.0.0"
51
54
  }
52
55
  }
@@ -1,19 +0,0 @@
1
- /**
2
- * Currencies
3
- */
4
- declare enum ECurrency {
5
- EUR = "EUR",
6
- USD = "USD",
7
- GBP = "GBP",
8
- AUD = "AUD",
9
- CHF = "CHF",
10
- CAD = "CAD",
11
- JPY = "JPY",
12
- SEK = "SEK",
13
- BRL = "BRL",
14
- MXN = "MXN",
15
- NZD = "NZD",
16
- DKK = "DKK",
17
- ZAR = "ZAR"
18
- }
19
- export default ECurrency;
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /**
4
- * Currencies
5
- */
6
- var ECurrency;
7
- (function (ECurrency) {
8
- ECurrency["EUR"] = "EUR";
9
- ECurrency["USD"] = "USD";
10
- ECurrency["GBP"] = "GBP";
11
- ECurrency["AUD"] = "AUD";
12
- ECurrency["CHF"] = "CHF";
13
- ECurrency["CAD"] = "CAD";
14
- ECurrency["JPY"] = "JPY";
15
- ECurrency["SEK"] = "SEK";
16
- ECurrency["BRL"] = "BRL";
17
- ECurrency["MXN"] = "MXN";
18
- ECurrency["NZD"] = "NZD";
19
- ECurrency["DKK"] = "DKK";
20
- ECurrency["ZAR"] = "ZAR";
21
- })(ECurrency || (ECurrency = {}));
22
- exports.default = ECurrency;
@@ -1,144 +0,0 @@
1
- /**
2
- * Formats
3
- */
4
- declare enum EFormatDescription {
5
- ALBUM = "Album",
6
- LP = "LP",
7
- FOURTYFIVERPM = "45 RPM",
8
- TWELVE = "12\"",
9
- SEVEN = "7\"",
10
- SINGLE = "Single",
11
- COMPILATION = "Compilation",
12
- REISSUE = "Reissue",
13
- THIRTYTHREERPM = "33 \u2153 RPM",
14
- PROMO = "Promo",
15
- STEREO = "Stereo",
16
- LIMITEDEDITION = "Limited Edition",
17
- EP = "EP",
18
- MONO = "Mono",
19
- MAXISINGLE = "Maxi-Single",
20
- REMASTERED = "Remastered",
21
- REPRESS = "Repress",
22
- WHITELABEL = "White Label",
23
- TEN = "10\"",
24
- ENHANCED = "Enhanced",
25
- NUMBERED = "Numbered",
26
- MIXED = "Mixed",
27
- SINGLESIDED = "Single Sided",
28
- CLUBEDITION = "Club Edition",
29
- DVDVIDEO = "DVD-Video",
30
- UNOFFICIALRELEASE = "Unofficial Release",
31
- SAMPLER = "Sampler",
32
- MINIALBUM = "Mini-Album",
33
- PICTUREDISC = "Picture Disc",
34
- STYRENE = "Styrene",
35
- DELUXEEDITION = "Deluxe Edition",
36
- SVENTYEIGHTRPM = "78 RPM",
37
- SPECIALEDITION = "Special Edition",
38
- NTSC = "NTSC",
39
- PAL = "PAL",
40
- COPYPROTECTED = "Copy Protected",
41
- TESTPRESSING = "Test Pressing",
42
- JUKEBOX = "Jukebox",
43
- MINI = "Mini",
44
- PARTIALLYMIXED = "Partially Mixed",
45
- HDCD = "HDCD",
46
- MULTICHANNEL = "Multichannel",
47
- ETCHED = "Etched",
48
- MISPRINT = "Misprint",
49
- QUADRAPHONIC = "Quadraphonic",
50
- HYBRID = "Hybrid",
51
- CDROM = "CD-ROM",
52
- SHAPE = "Shape",
53
- MISPRESS = "Mispress",
54
- MIXTAPE = "Mixtape",
55
- MINIMAX = "Minimax",
56
- CARDBACKED = "Card Backed",
57
- DVDAUDIO = "DVD-Audio",
58
- SIX = "6\"",
59
- EIGHT = "8\"",
60
- PARTIALLYUNOFFICIAL = "Partially Unofficial",
61
- ADVANCE = "Advance",
62
- FIVE = "5\"",
63
- TRANSCRIPTION = "Transcription",
64
- DUALDISC = "DualDisc",
65
- MP3 = "MP3",
66
- VCD = "VCD",
67
- FOURTRACKSTEREO = "4-Track Stereo",
68
- BLURAYAUDIO = "Blu-ray Audio",
69
- SEVENCINEREEL = "7\" Cine Reel",
70
- SEVENIPS = "7 \u00BD ips",
71
- DOUBLESIDED = "Double Sided",
72
- QUARTER = "\u00BC\"",
73
- SECAM = "SECAM",
74
- CDG = "CD+G",
75
- AMBISONIC = "Ambisonic",
76
- CDI = "CDi",
77
- WAV = "WAV",
78
- THREEIPS = "3 \u00BE ips",
79
- NINE = "9\"",
80
- DVDDATA = "DVD-Data",
81
- FLAC = "FLAC",
82
- FOUR = "4\"",
83
- BUSINESSCARD = "Business Card",
84
- SIXHALF = "6\u00BD\"",
85
- THIRTYFIVE = "3.5\"",
86
- THREE = "3\"",
87
- FIVEHALF = "5\u00BD\"",
88
- ELEVEN = "11\"",
89
- SIXTEENRPM = "16 \u2154 RPM",
90
- AVCD = "AVCD",
91
- DVDPLUS = "DVDplus",
92
- EIGHTYRPM = "80 RPM",
93
- EIGHTRPM = "8 \u2153 RPM",
94
- AAC = "AAC",
95
- MPEG4VIDEO = "MPEG-4 Video",
96
- AIFF = "AIFF",
97
- SIXTEEN = "16\"",
98
- VINYLDISC = "VinylDisc",
99
- TWOTRACKSTEREO = "2-Track Stereo",
100
- SVCD = "SVCD",
101
- ALAC = "ALAC",
102
- CDRECORD = "CD-Record",
103
- TWENTYNINECM = "29cm",
104
- FIFTEENIPS = "15 ips",
105
- ONETHOUSANDFIVENABREEL = "10.5\" NAB Reel",
106
- OGGVORBIS = "ogg-vorbis",
107
- DOLBY51 = "Dolby 5.1",
108
- FLV = "FLV",
109
- WMV = "WMV",
110
- FIVECINEREEL = "5\" Cine Reel",
111
- TWEETYSEVENCM = "27cm",
112
- ONETHOUSANDFIVEHUNDREDSIXTEENIPS = "15/16 ips",
113
- TWOTRACKMONO = "2-Track Mono",
114
- MOV = "MOV",
115
- WMA = "WMA",
116
- MPEGVIDEO = "MPEG Video",
117
- TWO = "2\"",
118
- NINETYRPM = "90 RPM",
119
- TWENTYFIVECM = "25cm",
120
- HALF = "\u00BD\"",
121
- FIVEHUNDREDTWENTYFIVE = "5.25\"",
122
- DVDNINE = "DVD-9",
123
- FOURMINUTE = "4 Minute",
124
- SWF = "SWF",
125
- AVI = "AVI",
126
- FOURTRACKMONO = "4-Track Mono",
127
- MP3SURROUND = "MP3 Surround",
128
- ANEIGHT = "\u215B\"",
129
- THREEHALF = "3\u00BD\"",
130
- DSF = "DSF",
131
- TWENTYONECM = "21cm",
132
- MPEG4 = "MPEG-4",
133
- THIRTYFIVECM = "35cm",
134
- ANSEVENEIGHTIPS = "1 \u215E ips",
135
- THREECINEREEL = "3\" Cine Reel",
136
- AIFC = "AIFC",
137
- SACD = "SACD",
138
- AMR = "AMR",
139
- OPUS = "Opus",
140
- TWOMINUTE = "2 Minute",
141
- DISCIMAGE = "Disc Image",
142
- WAVPACK = "WavPack"
143
- }
144
- export default EFormatDescription;