discogs-marketplace-api-nodejs 1.10.0 → 1.10.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.
- package/dist/data/countries.data.js +4 -1
- package/dist/data/index.d.ts +2 -2
- package/dist/data/index.js +2 -2
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1 -1
- package/dist/interfaces/index.d.ts +4 -4
- package/dist/interfaces/input.interface.d.ts +2 -3
- package/dist/interfaces/output-error.interface.d.ts +1 -2
- package/dist/interfaces/output-success.interface.d.ts +2 -3
- package/dist/marketplace.d.ts +1 -1
- package/dist/marketplace.js +88 -68
- package/dist/types/condition.type.d.ts +1 -2
- package/dist/types/currency.type.d.ts +1 -2
- package/dist/types/format-description.type.d.ts +1 -2
- package/dist/types/format.type.d.ts +1 -2
- package/dist/types/from.type.d.ts +1 -2
- package/dist/types/genre.type.d.ts +1 -2
- package/dist/types/index.d.ts +11 -11
- package/dist/types/lang.type.d.ts +1 -2
- package/dist/types/limit.type.d.ts +1 -2
- package/dist/types/search-type.type.d.ts +1 -2
- package/dist/types/sort.type.d.ts +1 -2
- package/dist/types/style.type.d.ts +1 -2
- package/package.json +23 -22
|
@@ -324,5 +324,8 @@ const COUNTRIES_DISCOGS = {
|
|
|
324
324
|
Yugoslavia: 'GR',
|
|
325
325
|
Zaire: 'CD',
|
|
326
326
|
};
|
|
327
|
-
const COUNTRIES =
|
|
327
|
+
const COUNTRIES = {
|
|
328
|
+
...COUNTRIES_ISO,
|
|
329
|
+
...COUNTRIES_DISCOGS,
|
|
330
|
+
};
|
|
328
331
|
exports.default = COUNTRIES;
|
package/dist/data/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import COUNTRIES from '../data/countries.data
|
|
2
|
-
import CURRENCIES from '../data/currencies.data
|
|
1
|
+
import COUNTRIES from '../data/countries.data';
|
|
2
|
+
import CURRENCIES from '../data/currencies.data';
|
|
3
3
|
export { COUNTRIES, CURRENCIES };
|
package/dist/data/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.CURRENCIES = exports.COUNTRIES = void 0;
|
|
7
|
-
const countries_data_1 = __importDefault(require("../data/countries.data
|
|
7
|
+
const countries_data_1 = __importDefault(require("../data/countries.data"));
|
|
8
8
|
exports.COUNTRIES = countries_data_1.default;
|
|
9
|
-
const currencies_data_1 = __importDefault(require("../data/currencies.data
|
|
9
|
+
const currencies_data_1 = __importDefault(require("../data/currencies.data"));
|
|
10
10
|
exports.CURRENCIES = currencies_data_1.default;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import DiscogsMarketplace from './marketplace
|
|
2
|
-
import type { InputInterface, OutputErrorInterface, OutputSuccessInterface } from './interfaces
|
|
3
|
-
export { DiscogsMarketplace
|
|
1
|
+
import DiscogsMarketplace from './marketplace';
|
|
2
|
+
import type { InputInterface, OutputErrorInterface, OutputSuccessInterface } from './interfaces';
|
|
3
|
+
export { DiscogsMarketplace };
|
|
4
|
+
export type { InputInterface, OutputErrorInterface, OutputSuccessInterface };
|
package/dist/index.js
CHANGED
|
@@ -4,5 +4,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.DiscogsMarketplace = void 0;
|
|
7
|
-
const marketplace_1 = __importDefault(require("./marketplace
|
|
7
|
+
const marketplace_1 = __importDefault(require("./marketplace"));
|
|
8
8
|
exports.DiscogsMarketplace = marketplace_1.default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type InputInterface from '../interfaces/input.interface
|
|
2
|
-
import type OutputErrorInterface from '../interfaces/output-error.interface
|
|
3
|
-
import type OutputSuccessInterface from '../interfaces/output-success.interface
|
|
4
|
-
export { InputInterface, OutputErrorInterface, OutputSuccessInterface };
|
|
1
|
+
import type InputInterface from '../interfaces/input.interface';
|
|
2
|
+
import type OutputErrorInterface from '../interfaces/output-error.interface';
|
|
3
|
+
import type OutputSuccessInterface from '../interfaces/output-success.interface';
|
|
4
|
+
export type { InputInterface, OutputErrorInterface, OutputSuccessInterface };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { LimitType, GenreType, CurrencyType, FromType, StyleType, FormatType, ConditionType, SortType, LangType, FormatDescriptionType, SearchTypeType } from '../types
|
|
1
|
+
import type { LimitType, GenreType, CurrencyType, FromType, StyleType, FormatType, ConditionType, SortType, LangType, FormatDescriptionType, SearchTypeType } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* Element that can be provided by user
|
|
4
4
|
*/
|
|
5
|
-
interface InputInterface {
|
|
5
|
+
export default interface InputInterface {
|
|
6
6
|
/**
|
|
7
7
|
* Type of elements to search.
|
|
8
8
|
* Default to `q`.
|
|
@@ -98,4 +98,3 @@ interface InputInterface {
|
|
|
98
98
|
*/
|
|
99
99
|
lang?: LangType;
|
|
100
100
|
}
|
|
101
|
-
export default InputInterface;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { SearchTypeType } from '../types
|
|
1
|
+
import type { SearchTypeType } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* Result provided to user
|
|
4
4
|
*/
|
|
5
|
-
interface OutputSuccessInterface {
|
|
5
|
+
export default interface OutputSuccessInterface {
|
|
6
6
|
/** Items */
|
|
7
7
|
items: Array<{
|
|
8
8
|
/** Id */
|
|
@@ -113,4 +113,3 @@ interface OutputSuccessInterface {
|
|
|
113
113
|
/** UrlGenerated */
|
|
114
114
|
urlGenerated: string;
|
|
115
115
|
}
|
|
116
|
-
export default OutputSuccessInterface;
|
package/dist/marketplace.d.ts
CHANGED
package/dist/marketplace.js
CHANGED
|
@@ -5,10 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const user_agents_1 = __importDefault(require("user-agents"));
|
|
7
7
|
const playwright_chromium_1 = require("playwright-chromium");
|
|
8
|
-
const data_1 = require("./data
|
|
8
|
+
const data_1 = require("./data");
|
|
9
9
|
/**
|
|
10
10
|
* Discogs Marketplace
|
|
11
11
|
*/
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
|
12
13
|
class Marketplace {
|
|
13
14
|
/**
|
|
14
15
|
* Search elements on discogs
|
|
@@ -23,16 +24,16 @@ class Marketplace {
|
|
|
23
24
|
[searchType]: searchValue,
|
|
24
25
|
currency,
|
|
25
26
|
genre,
|
|
26
|
-
style:
|
|
27
|
-
format:
|
|
28
|
-
format_desc:
|
|
29
|
-
condition:
|
|
27
|
+
style: style.length ? style : undefined,
|
|
28
|
+
format: format.length ? format : undefined,
|
|
29
|
+
format_desc: formatDescription.length ? formatDescription : undefined,
|
|
30
|
+
condition: condition.length ? condition : undefined,
|
|
30
31
|
year: year && !years ? year : undefined,
|
|
31
|
-
year1:
|
|
32
|
-
year2:
|
|
32
|
+
year1: years?.min && !year ? years.min : undefined,
|
|
33
|
+
year2: years?.max && !year ? years.max : undefined,
|
|
33
34
|
audio: isAudioSample ? 1 : undefined,
|
|
34
35
|
offers: isMakeAnOfferOnly ? 1 : undefined,
|
|
35
|
-
ships_from:
|
|
36
|
+
ships_from: from?.length ? from : undefined,
|
|
36
37
|
limit,
|
|
37
38
|
page,
|
|
38
39
|
sort,
|
|
@@ -72,15 +73,16 @@ class Marketplace {
|
|
|
72
73
|
/** Init page */
|
|
73
74
|
const response = await browserPage.goto(url, { waitUntil: 'domcontentloaded' });
|
|
74
75
|
/** Status code from the page */
|
|
75
|
-
const status =
|
|
76
|
+
const status = response?.status() ?? 500;
|
|
76
77
|
// See current issue: https://github.com/evanw/esbuild/issues/2605
|
|
77
|
-
// eslint-disable-next-line no-
|
|
78
|
-
await browserPage.evaluate(() =>
|
|
78
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access
|
|
79
|
+
await browserPage.evaluate(() => (window.__name ??= (func) => func));
|
|
79
80
|
/** If error, reject */
|
|
80
81
|
if (status >= 400) {
|
|
81
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
82
|
+
// eslint-disable-next-line @typescript-eslint/only-throw-error
|
|
82
83
|
throw {
|
|
83
|
-
|
|
84
|
+
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
85
|
+
message: (await browserPage.evaluate(() => document.querySelector('h1 + p')?.innerHTML.trim())) || 'An error occurred',
|
|
84
86
|
code: status,
|
|
85
87
|
};
|
|
86
88
|
}
|
|
@@ -90,6 +92,7 @@ class Marketplace {
|
|
|
90
92
|
* Result from scraping.
|
|
91
93
|
* Scraping inside Playwright is faster (x2) compare to exporting HTML outside and parsing it with another library.
|
|
92
94
|
*/
|
|
95
|
+
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
93
96
|
const result = await browserPage.evaluate(this.getResult, {
|
|
94
97
|
input: {
|
|
95
98
|
page,
|
|
@@ -111,9 +114,9 @@ class Marketplace {
|
|
|
111
114
|
// Rethrow error
|
|
112
115
|
throw error;
|
|
113
116
|
}
|
|
114
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
117
|
+
// eslint-disable-next-line @typescript-eslint/only-throw-error
|
|
115
118
|
throw {
|
|
116
|
-
message:
|
|
119
|
+
message: error.message || 'An error occurred',
|
|
117
120
|
code: 500,
|
|
118
121
|
};
|
|
119
122
|
}
|
|
@@ -122,7 +125,7 @@ class Marketplace {
|
|
|
122
125
|
* Generate URL to be parsed
|
|
123
126
|
* @returns Url
|
|
124
127
|
*/
|
|
125
|
-
static generateUrl({ searchType, seller, lang }) {
|
|
128
|
+
static generateUrl({ searchType, seller, lang, }) {
|
|
126
129
|
let url = `https://www.discogs.com/${lang}/`;
|
|
127
130
|
if (seller) {
|
|
128
131
|
url += `seller/${seller}/`;
|
|
@@ -139,13 +142,11 @@ class Marketplace {
|
|
|
139
142
|
* @param params Object of GET parameters
|
|
140
143
|
* @returns Url
|
|
141
144
|
*/
|
|
142
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
143
145
|
static serializeParams(params) {
|
|
144
146
|
const param = [];
|
|
145
147
|
// eslint-disable-next-line no-restricted-syntax
|
|
146
148
|
for (const key in params) {
|
|
147
149
|
if (params[key] === undefined || params[key] === null) {
|
|
148
|
-
// eslint-disable-next-line no-continue
|
|
149
150
|
continue;
|
|
150
151
|
}
|
|
151
152
|
else if (Array.isArray(params[key])) {
|
|
@@ -157,7 +158,6 @@ class Marketplace {
|
|
|
157
158
|
}
|
|
158
159
|
}
|
|
159
160
|
else {
|
|
160
|
-
// eslint-disable-next-line no-continue
|
|
161
161
|
continue;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
@@ -172,18 +172,16 @@ class Marketplace {
|
|
|
172
172
|
* @returns Items found
|
|
173
173
|
*/
|
|
174
174
|
static getResult({ input: { page, limit, searchValue, searchType }, urlGenerated, CURRENCIES, COUNTRIES, }) {
|
|
175
|
-
var _a, _b, _c, _d, _e;
|
|
176
175
|
/**
|
|
177
176
|
* Function to convert currency to ISO name
|
|
178
177
|
* @param value String to clean
|
|
179
178
|
* @returns Cleanup string
|
|
180
179
|
*/
|
|
181
180
|
const convertCurrency = (value) => {
|
|
182
|
-
var _a;
|
|
183
181
|
if (!value) {
|
|
184
182
|
return value;
|
|
185
183
|
}
|
|
186
|
-
const currencyFound =
|
|
184
|
+
const currencyFound = Object.keys(CURRENCIES).find(key => value.includes(key)) ?? '';
|
|
187
185
|
if (!currencyFound) {
|
|
188
186
|
return value;
|
|
189
187
|
}
|
|
@@ -194,69 +192,91 @@ class Marketplace {
|
|
|
194
192
|
.replace(/\s/g, ''); // Remove spaces
|
|
195
193
|
return `${amount} ${currencyClean}`.replace(/\s\s+/g, ' '); // Remove useless spaces
|
|
196
194
|
};
|
|
197
|
-
const totalItems = parseFloat(
|
|
198
|
-
.querySelector('.pagination_total')
|
|
195
|
+
const totalItems = parseFloat(document
|
|
196
|
+
.querySelector('.pagination_total')
|
|
197
|
+
?.textContent?.split(' ')
|
|
198
|
+
.filter(x => x)
|
|
199
|
+
.pop()
|
|
200
|
+
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
201
|
+
?.replace(/(,|\.|\s)/g, '') || '0');
|
|
199
202
|
return {
|
|
200
|
-
items:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
.
|
|
205
|
-
|
|
206
|
-
const
|
|
207
|
-
const
|
|
203
|
+
items: [...document.querySelectorAll('table.table_block tbody tr')].map(el => {
|
|
204
|
+
const shipping = convertCurrency(el
|
|
205
|
+
.querySelector('.item_shipping')
|
|
206
|
+
?.childNodes[0]?.textContent?.replace(/(\s+|\+)/g, ' ')
|
|
207
|
+
.trim()
|
|
208
|
+
.replace(',', '.') ?? '');
|
|
209
|
+
const have = Number.parseInt(el.querySelector('.community_summary .community_result:nth-child(1) .community_number')?.textContent ?? '', 10);
|
|
210
|
+
const want = Number.parseInt(el.querySelector('.community_summary .community_result:nth-child(2) .community_number')?.textContent ?? '', 10);
|
|
211
|
+
const countryName = el.querySelector('.seller_info li:nth-child(3)')?.textContent?.split(':').pop() ?? '';
|
|
208
212
|
const countryCode = COUNTRIES[countryName];
|
|
209
|
-
const releaseId = Number.parseInt(
|
|
210
|
-
.querySelector('a.item_release_link')
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
.
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
const
|
|
213
|
+
const releaseId = Number.parseInt(el
|
|
214
|
+
.querySelector('a.item_release_link')
|
|
215
|
+
?.getAttribute('href')
|
|
216
|
+
?.split('release/')
|
|
217
|
+
.pop()
|
|
218
|
+
?.split('-')
|
|
219
|
+
.shift() ?? '0', 10);
|
|
220
|
+
const itemId = Number.parseInt(el.querySelector('a.item_description_title')?.getAttribute('href')?.split('/').pop() ?? '0', 10);
|
|
221
|
+
const notes = Number.parseInt(el
|
|
222
|
+
.querySelector('.seller_info li:nth-child(2) .section_link')
|
|
223
|
+
?.textContent?.replace(/\s+/g, ' ')
|
|
224
|
+
.trim()
|
|
225
|
+
.split(' ')[0]
|
|
226
|
+
?.replace(/,/g, '') ?? '', 10);
|
|
227
|
+
const originalTitle = el.querySelector('a.item_description_title')?.textContent;
|
|
228
|
+
const firstIndexOfDash = originalTitle?.indexOf(' - ') ?? -1;
|
|
229
|
+
const lastIndexOfParenthesis = originalTitle?.lastIndexOf(' (') ?? -1;
|
|
217
230
|
return {
|
|
218
231
|
id: Number.isNaN(itemId) ? 0 : itemId,
|
|
219
232
|
title: {
|
|
220
|
-
original: originalTitle
|
|
221
|
-
artist:
|
|
233
|
+
original: originalTitle ?? '',
|
|
234
|
+
artist: originalTitle?.substring(0, firstIndexOfDash) ?? '',
|
|
222
235
|
item: firstIndexOfDash > -1 && lastIndexOfParenthesis > -1
|
|
223
|
-
? (
|
|
236
|
+
? (originalTitle?.substring(firstIndexOfDash + 3, lastIndexOfParenthesis) ?? '')
|
|
224
237
|
: '',
|
|
225
238
|
formats: lastIndexOfParenthesis > -1
|
|
226
|
-
? (
|
|
239
|
+
? (originalTitle?.substring(lastIndexOfParenthesis + 2, originalTitle.length - 1).split(', ') ?? [])
|
|
227
240
|
: [],
|
|
228
241
|
},
|
|
229
|
-
url: `https://www.discogs.com${(
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
242
|
+
url: `https://www.discogs.com${el.querySelector('a.item_description_title')?.getAttribute('href') ?? ''}`,
|
|
243
|
+
labels: [...el.querySelectorAll(".label_and_cat a[href^='https://www.discogs.com/']")]
|
|
244
|
+
.map(x => x.textContent ?? '')
|
|
245
|
+
.filter((value, index, self) => self.indexOf(value) === index),
|
|
246
|
+
catnos: el
|
|
233
247
|
// cspell: disable-next-line
|
|
234
|
-
.querySelector('.label_and_cat .item_catno')
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
248
|
+
.querySelector('.label_and_cat .item_catno')
|
|
249
|
+
?.textContent?.replace(/\s+/g, ' ')
|
|
250
|
+
.split(', ')
|
|
251
|
+
.filter(x => x !== 'none') ?? [],
|
|
252
|
+
imageUrl: el.querySelector('.marketplace_image')?.getAttribute('data-src') ?? '',
|
|
253
|
+
description: el.querySelector('.item_condition')?.nextElementSibling?.textContent?.replace(/\s+/g, ' ').trim() ?? '',
|
|
254
|
+
isAcceptingOffer: (el.querySelector('.item_add_to_cart p a strong')?.textContent?.split('/').length ?? 0) > 1,
|
|
255
|
+
isAvailable: !el.classList.contains('unavailable'),
|
|
239
256
|
condition: {
|
|
240
257
|
media: {
|
|
241
|
-
full:
|
|
242
|
-
short:
|
|
243
|
-
.querySelector('.item_condition span:nth-child(3)')
|
|
258
|
+
full: el.querySelector('.item_condition span:nth-child(3)')?.textContent?.replace(/\s+/g, ' ').trim() ?? '',
|
|
259
|
+
short: el
|
|
260
|
+
.querySelector('.item_condition span:nth-child(3)')
|
|
261
|
+
?.textContent?.replace(/\s+/g, ' ')
|
|
262
|
+
.trim()
|
|
263
|
+
.match(/\(([^)]+)\)/)?.[1] ?? '',
|
|
244
264
|
},
|
|
245
265
|
sleeve: {
|
|
246
|
-
full:
|
|
247
|
-
short: (
|
|
248
|
-
|
|
266
|
+
full: el.querySelector('.item_condition span.item_sleeve_condition')?.textContent ?? '',
|
|
267
|
+
short: el.querySelector('.item_condition span.item_sleeve_condition')?.textContent?.match(/\(([^)]+)\)/)?.[1] ??
|
|
268
|
+
'',
|
|
249
269
|
},
|
|
250
270
|
},
|
|
251
271
|
seller: {
|
|
252
|
-
name:
|
|
253
|
-
url: `https://www.discogs.com${
|
|
254
|
-
score:
|
|
272
|
+
name: el.querySelector('.seller_info a')?.textContent ?? '',
|
|
273
|
+
url: `https://www.discogs.com${el.querySelector('.seller_info a')?.getAttribute('href') ?? ''}`,
|
|
274
|
+
score: el.querySelector('.seller_info li:nth-child(2) strong')?.textContent ?? '',
|
|
255
275
|
notes: Number.isNaN(notes) ? 0 : notes,
|
|
256
276
|
},
|
|
257
277
|
price: {
|
|
258
|
-
base: convertCurrency(
|
|
259
|
-
shipping: Number.isNaN(parseFloat(shipping)) ?
|
|
278
|
+
base: convertCurrency(el.querySelector('.price')?.textContent?.replace(/\s+/g, ' ').replace(/,/, '.') ?? ''),
|
|
279
|
+
shipping: Number.isNaN(parseFloat(shipping)) ? '' : shipping,
|
|
260
280
|
},
|
|
261
281
|
country: {
|
|
262
282
|
name: countryName,
|
|
@@ -268,10 +288,10 @@ class Marketplace {
|
|
|
268
288
|
},
|
|
269
289
|
release: {
|
|
270
290
|
id: Number.isNaN(releaseId) ? 0 : releaseId,
|
|
271
|
-
url: `https://www.discogs.com${
|
|
291
|
+
url: `https://www.discogs.com${el.querySelector('a.item_release_link')?.getAttribute('href') ?? ''}`,
|
|
272
292
|
},
|
|
273
293
|
};
|
|
274
|
-
})
|
|
294
|
+
}),
|
|
275
295
|
page: {
|
|
276
296
|
current: page,
|
|
277
297
|
total: Math.ceil(totalItems / limit),
|
|
@@ -281,10 +301,10 @@ class Marketplace {
|
|
|
281
301
|
perPage: limit,
|
|
282
302
|
},
|
|
283
303
|
search: {
|
|
284
|
-
value: searchValue
|
|
304
|
+
value: searchValue ?? '',
|
|
285
305
|
type: searchType,
|
|
286
306
|
},
|
|
287
|
-
urlGenerated
|
|
307
|
+
urlGenerated,
|
|
288
308
|
};
|
|
289
309
|
}
|
|
290
310
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Conditions
|
|
3
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;
|
|
4
|
+
export 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+)';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Currencies
|
|
3
3
|
*/
|
|
4
|
-
type CurrencyType = 'AUD' | 'BRL' | 'CAD' | 'CHF' | 'DKK' | 'EUR' | 'GBP' | 'JPY' | 'MXN' | 'NZD' | 'SEK' | 'USD' | 'ZAR';
|
|
5
|
-
export default CurrencyType;
|
|
4
|
+
export type CurrencyType = 'AUD' | 'BRL' | 'CAD' | 'CHF' | 'DKK' | 'EUR' | 'GBP' | 'JPY' | 'MXN' | 'NZD' | 'SEK' | 'USD' | 'ZAR';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* FormatDescriptions
|
|
3
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;
|
|
4
|
+
export 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' | '¼"' | '½"' | '⅛"';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Formats
|
|
3
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;
|
|
4
|
+
export 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';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* From
|
|
3
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;
|
|
4
|
+
export 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';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Genres
|
|
3
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;
|
|
4
|
+
export 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';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type LimitType from '../types/limit.type
|
|
2
|
-
import type GenreType from '../types/genre.type
|
|
3
|
-
import type CurrencyType from '../types/currency.type
|
|
4
|
-
import type FromType from '../types/from.type
|
|
5
|
-
import type StyleType from '../types/style.type
|
|
6
|
-
import type FormatType from '../types/format.type
|
|
7
|
-
import type ConditionType from '../types/condition.type
|
|
8
|
-
import type SortType from '../types/sort.type
|
|
9
|
-
import type LangType from '../types/lang.type
|
|
10
|
-
import type FormatDescriptionType from '../types/format-description.type
|
|
11
|
-
import type SearchTypeType from '../types/search-type.type
|
|
1
|
+
import type { LimitType } from '../types/limit.type';
|
|
2
|
+
import type { GenreType } from '../types/genre.type';
|
|
3
|
+
import type { CurrencyType } from '../types/currency.type';
|
|
4
|
+
import type { FromType } from '../types/from.type';
|
|
5
|
+
import type { StyleType } from '../types/style.type';
|
|
6
|
+
import type { FormatType } from '../types/format.type';
|
|
7
|
+
import type { ConditionType } from '../types/condition.type';
|
|
8
|
+
import type { SortType } from '../types/sort.type';
|
|
9
|
+
import type { LangType } from '../types/lang.type';
|
|
10
|
+
import type { FormatDescriptionType } from '../types/format-description.type';
|
|
11
|
+
import type { SearchTypeType } from '../types/search-type.type';
|
|
12
12
|
export type { LimitType, GenreType, CurrencyType, FromType, StyleType, FormatType, ConditionType, SortType, LangType, FormatDescriptionType, SearchTypeType, };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Sorts
|
|
3
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;
|
|
4
|
+
export 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';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Styles
|
|
3
3
|
*/
|
|
4
|
-
type StyleType = 'AOR' | 'Aboriginal' | 'Abstract' | 'Acid' | 'Acid House' | 'Acid Jazz' | 'Acid Rock' | 'Acoustic' | 'African' | 'Afro-Cuban' | 'Afro-Cuban Jazz' | 'Afrobeat' | '
|
|
5
|
-
export default StyleType;
|
|
4
|
+
export type StyleType = 'AOR' | 'Aboriginal' | 'Abstract' | 'Acid' | 'Acid House' | 'Acid Jazz' | 'Acid Rock' | 'Acoustic' | 'African' | 'Afro-Cuban' | 'Afro-Cuban Jazz' | '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 Polo' | 'Dixieland' | 'Donk' | 'Doo Wop' | 'Doom Metal' | 'Doomcore' | 'Downtempo' | 'Dream Pop' | 'Drone' | 'Drum n Bass' | 'Dub' | 'Dub Poetry' | 'Dub Techno' | 'Dubstep' | 'Dungeon Synth' | 'EBM' | 'Early' | 'East Coast Blues' | 'Easy Listening' | 'Education' | 'Educational' | 'Electric Blues' | 'Electro' | 'Electro House' | 'Electro Swing' | 'Electroacoustic' | 'Electroclash' | 'Emo' | 'Enka' | 'Erotic' | 'Ethereal' | 'Ethno-pop' | 'Euro House' | 'Euro-Disco' | 'Eurobeat' | 'Eurodance' | 'Europop' | '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' | 'Goth Rock' | 'Gothic Metal' | 'Gqom' | '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 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 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' | 'Nerdcore Techno' | 'New Age' | 'New Beat' | 'New Jack Swing' | 'New Wave' | 'Nhạc Vàng' | 'No Wave' | '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' | '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' | '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' | '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' | '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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "discogs-marketplace-api-nodejs",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"description": "Another (better ?) NodeJs library to fetch data from Discogs marketplace",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"discogs",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
|
22
22
|
"start:dev": "node --import tsx --watch ./src/index.ts",
|
|
23
23
|
"test": "node --import tsx --test ./test/*.test.ts",
|
|
24
|
-
"eslint:fix": "eslint
|
|
25
|
-
"eslint": "eslint
|
|
24
|
+
"eslint:fix": "eslint --fix",
|
|
25
|
+
"eslint": "eslint",
|
|
26
26
|
"prettier": "prettier --check .",
|
|
27
27
|
"prettier:fix": "prettier --write .",
|
|
28
28
|
"cspell": "npx cspell ./ --no-progress",
|
|
@@ -40,28 +40,29 @@
|
|
|
40
40
|
}
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"playwright-chromium": "^1.
|
|
44
|
-
"user-agents": "^1.1.
|
|
43
|
+
"playwright-chromium": "^1.51.1",
|
|
44
|
+
"user-agents": "^1.1.505"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@
|
|
47
|
+
"@eslint/js": "^9.24.0",
|
|
48
|
+
"@types/node": "^20.17.30",
|
|
48
49
|
"@types/user-agents": "^1.0.4",
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
50
|
-
"@typescript-eslint/parser": "^
|
|
51
|
-
"cspell": "^8.
|
|
52
|
-
"eslint": "^
|
|
53
|
-
"eslint-config-
|
|
54
|
-
"eslint-
|
|
55
|
-
"eslint-
|
|
56
|
-
"eslint-plugin-
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"prettier": "^3.3.3",
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^8.29.1",
|
|
51
|
+
"@typescript-eslint/parser": "^8.29.1",
|
|
52
|
+
"cspell": "^8.18.1",
|
|
53
|
+
"eslint": "^9.24.0",
|
|
54
|
+
"eslint-config-prettier": "^10.1.2",
|
|
55
|
+
"eslint-import-resolver-typescript": "^4.3.2",
|
|
56
|
+
"eslint-plugin-import": "^2.31.0",
|
|
57
|
+
"eslint-plugin-jsdoc": "^50.6.9",
|
|
58
|
+
"husky": "^9.1.7",
|
|
59
|
+
"knip": "^5.50.2",
|
|
60
|
+
"lint-staged": "^15.5.0",
|
|
61
|
+
"prettier": "^3.5.3",
|
|
62
62
|
"rimraf": "^6.0.1",
|
|
63
|
-
"tsc-alias": "^1.8.
|
|
64
|
-
"tsx": "^4.
|
|
65
|
-
"typescript": "^5.
|
|
63
|
+
"tsc-alias": "^1.8.15",
|
|
64
|
+
"tsx": "^4.19.3",
|
|
65
|
+
"typescript": "^5.8.3",
|
|
66
|
+
"typescript-eslint": "^8.29.1"
|
|
66
67
|
}
|
|
67
68
|
}
|