discogs-marketplace-api-nodejs 1.3.1 → 1.3.5
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/LICENSE +20 -20
- package/README.MD +217 -197
- package/dist/enum/ECurrency.d.ts +18 -19
- package/dist/enum/ECurrency.js +21 -23
- package/dist/enum/EFormat.d.ts +59 -60
- package/dist/enum/EFormat.js +62 -64
- package/dist/enum/EFormatDescription.d.ts +144 -145
- package/dist/enum/EFormatDescription.js +147 -149
- package/dist/enum/EFrom.d.ts +251 -252
- package/dist/enum/EFrom.js +255 -256
- package/dist/enum/EFromIso.d.ts +316 -316
- package/dist/enum/EFromIso.js +321 -321
- package/dist/enum/EGenre.d.ts +21 -22
- package/dist/enum/EGenre.js +24 -26
- package/dist/enum/ELang.d.ts +15 -16
- package/dist/enum/ELang.js +18 -20
- package/dist/enum/EMediaCondition.d.ts +14 -15
- package/dist/enum/EMediaCondition.js +17 -19
- package/dist/enum/ESort.d.ts +62 -63
- package/dist/enum/ESort.js +65 -67
- package/dist/enum/EStyle.d.ts +255 -256
- package/dist/enum/EStyle.js +258 -260
- package/dist/enum/EType.d.ts +30 -31
- package/dist/enum/EType.js +33 -35
- package/dist/enum/iso/ECountryCode.d.ts +255 -0
- package/dist/enum/iso/ECountryCode.js +258 -0
- package/dist/enum/iso/ECountryName.d.ts +255 -0
- package/dist/enum/iso/ECountryName.js +258 -0
- package/dist/enum/iso/EDiscogsCountryNameToIsoCode.d.ts +69 -0
- package/dist/enum/iso/EDiscogsCountryNameToIsoCode.js +72 -0
- package/dist/enum/iso/EDiscogsCurrencyToIsoCode.d.ts +23 -0
- package/dist/enum/iso/EDiscogsCurrencyToIsoCode.js +26 -0
- package/dist/enum/iso/translate/EDiscogsCountryNameToIsoCode.d.ts +69 -0
- package/dist/enum/iso/translate/EDiscogsCountryNameToIsoCode.js +72 -0
- package/dist/enum/iso/translate/EDiscogsCurrencyToIsoCode.d.ts +23 -0
- package/dist/enum/iso/translate/EDiscogsCurrencyToIsoCode.js +26 -0
- package/dist/enum/iso/translates/EDiscogsCountryNameToIsoCode.d.ts +69 -0
- package/dist/enum/iso/translates/EDiscogsCountryNameToIsoCode.js +72 -0
- package/dist/enum/iso/translates/EDiscogsCurrencyToIsoCode.d.ts +23 -0
- package/dist/enum/iso/translates/EDiscogsCurrencyToIsoCode.js +26 -0
- package/dist/index.d.ts +22 -22
- package/dist/index.js +40 -39
- package/dist/interface/IDiscogsMarketplace.d.ts +11 -12
- package/dist/interface/IDiscogsMarketplace.js +7 -7
- package/dist/interface/IInput.d.ts +89 -89
- package/dist/interface/IInput.js +17 -6
- package/dist/interface/IItem.d.ts +54 -48
- package/dist/interface/IItem.js +7 -2
- package/dist/interface/IOutputError.d.ts +7 -7
- package/dist/interface/IOutputError.js +2 -2
- package/dist/interface/IOutputSuccess.d.ts +21 -21
- package/dist/interface/IOutputSuccess.js +7 -6
- package/dist/interface/IYears.d.ts +7 -7
- package/dist/interface/IYears.js +2 -2
- package/dist/marketplace.d.ts +56 -70
- package/dist/marketplace.js +290 -286
- package/dist/type/TLimit.d.ts +5 -6
- package/dist/type/TLimit.js +2 -2
- package/package.json +52 -45
- package/.gitattributes +0 -1
- package/notes.md +0 -9
- package/tsconfig.build.json +0 -40
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import IYears from "./IYears";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
export default interface IInput {
|
|
17
|
-
/**
|
|
18
|
-
* Type of elements to search
|
|
19
|
-
*/
|
|
20
|
-
searchType: EType;
|
|
21
|
-
/**
|
|
22
|
-
* Value to search corresponding to searchType
|
|
23
|
-
*/
|
|
24
|
-
searchValue: string | number | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* Currency
|
|
27
|
-
*/
|
|
28
|
-
currency?: ECurrency;
|
|
29
|
-
/**
|
|
30
|
-
* Genre
|
|
31
|
-
*/
|
|
32
|
-
genre?: EGenre;
|
|
33
|
-
/**
|
|
34
|
-
* Styles
|
|
35
|
-
*/
|
|
36
|
-
style?: EStyle[];
|
|
37
|
-
/**
|
|
38
|
-
* Formats
|
|
39
|
-
*/
|
|
40
|
-
format?: EFormat[];
|
|
41
|
-
/**
|
|
42
|
-
* Format descriptions
|
|
43
|
-
*/
|
|
44
|
-
formatDescription?: EFormatDescription[];
|
|
45
|
-
/**
|
|
46
|
-
* Media conditions
|
|
47
|
-
*/
|
|
48
|
-
mediaCondition?: EMediaCondition[];
|
|
49
|
-
/**
|
|
50
|
-
* Year (Do not use it with years)
|
|
51
|
-
*/
|
|
52
|
-
year?: number;
|
|
53
|
-
/**
|
|
54
|
-
* Interval of years (Do not use it with year)
|
|
55
|
-
*/
|
|
56
|
-
years?: IYears;
|
|
57
|
-
/**
|
|
58
|
-
* Is audio sample ?
|
|
59
|
-
*/
|
|
60
|
-
isAudioSample?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Is make an offer only ?
|
|
63
|
-
*/
|
|
64
|
-
isMakeAnOfferOnly?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Expedition country
|
|
67
|
-
*/
|
|
68
|
-
from?: EFrom;
|
|
69
|
-
/**
|
|
70
|
-
* Seller name
|
|
71
|
-
*/
|
|
72
|
-
seller?: string;
|
|
73
|
-
/**
|
|
74
|
-
* Sort elements by
|
|
75
|
-
*/
|
|
76
|
-
sort?: ESort;
|
|
77
|
-
/**
|
|
78
|
-
* Limit of elements to search (25 | 50 | 100 | 250)
|
|
79
|
-
*/
|
|
80
|
-
limit?: TLimit;
|
|
81
|
-
/**
|
|
82
|
-
* Page (Must be < 401 or discogs will return an error 404)
|
|
83
|
-
*/
|
|
84
|
-
page?: number;
|
|
85
|
-
/**
|
|
86
|
-
* Lang to use for Discogs
|
|
87
|
-
*/
|
|
88
|
-
lang?: ELang;
|
|
89
|
-
}
|
|
1
|
+
import EFrom from "../enum/EFrom";
|
|
2
|
+
import EType from "../enum/EType";
|
|
3
|
+
import ECurrency from "../enum/ECurrency";
|
|
4
|
+
import EGenre from "../enum/EGenre";
|
|
5
|
+
import EStyle from "../enum/EStyle";
|
|
6
|
+
import EMediaCondition from "../enum/EMediaCondition";
|
|
7
|
+
import ESort from "../enum/ESort";
|
|
8
|
+
import TLimit from "../type/TLimit";
|
|
9
|
+
import IYears from "./IYears";
|
|
10
|
+
import EFormat from "../enum/EFormat";
|
|
11
|
+
import EFormatDescription from "../enum/EFormatDescription";
|
|
12
|
+
import ELang from "../enum/ELang";
|
|
13
|
+
/**
|
|
14
|
+
* Element that can be provided by user
|
|
15
|
+
*/
|
|
16
|
+
export default interface IInput {
|
|
17
|
+
/**
|
|
18
|
+
* Type of elements to search
|
|
19
|
+
*/
|
|
20
|
+
searchType: EType;
|
|
21
|
+
/**
|
|
22
|
+
* Value to search corresponding to searchType
|
|
23
|
+
*/
|
|
24
|
+
searchValue: string | number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Currency
|
|
27
|
+
*/
|
|
28
|
+
currency?: ECurrency;
|
|
29
|
+
/**
|
|
30
|
+
* Genre
|
|
31
|
+
*/
|
|
32
|
+
genre?: EGenre;
|
|
33
|
+
/**
|
|
34
|
+
* Styles
|
|
35
|
+
*/
|
|
36
|
+
style?: EStyle[];
|
|
37
|
+
/**
|
|
38
|
+
* Formats
|
|
39
|
+
*/
|
|
40
|
+
format?: EFormat[];
|
|
41
|
+
/**
|
|
42
|
+
* Format descriptions
|
|
43
|
+
*/
|
|
44
|
+
formatDescription?: EFormatDescription[];
|
|
45
|
+
/**
|
|
46
|
+
* Media conditions
|
|
47
|
+
*/
|
|
48
|
+
mediaCondition?: EMediaCondition[];
|
|
49
|
+
/**
|
|
50
|
+
* Year (Do not use it with years)
|
|
51
|
+
*/
|
|
52
|
+
year?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Interval of years (Do not use it with year)
|
|
55
|
+
*/
|
|
56
|
+
years?: IYears;
|
|
57
|
+
/**
|
|
58
|
+
* Is audio sample ?
|
|
59
|
+
*/
|
|
60
|
+
isAudioSample?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Is make an offer only ?
|
|
63
|
+
*/
|
|
64
|
+
isMakeAnOfferOnly?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Expedition country
|
|
67
|
+
*/
|
|
68
|
+
from?: EFrom;
|
|
69
|
+
/**
|
|
70
|
+
* Seller name
|
|
71
|
+
*/
|
|
72
|
+
seller?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Sort elements by
|
|
75
|
+
*/
|
|
76
|
+
sort?: ESort;
|
|
77
|
+
/**
|
|
78
|
+
* Limit of elements to search (25 | 50 | 100 | 250)
|
|
79
|
+
*/
|
|
80
|
+
limit?: TLimit;
|
|
81
|
+
/**
|
|
82
|
+
* Page (Must be < 401 or discogs will return an error 404)
|
|
83
|
+
*/
|
|
84
|
+
page?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Lang to use for Discogs
|
|
87
|
+
*/
|
|
88
|
+
lang?: ELang;
|
|
89
|
+
}
|
package/dist/interface/IInput.js
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const EFrom_1 = __importDefault(require("../enum/EFrom"));
|
|
7
|
+
const EType_1 = __importDefault(require("../enum/EType"));
|
|
8
|
+
const ECurrency_1 = __importDefault(require("../enum/ECurrency"));
|
|
9
|
+
const EGenre_1 = __importDefault(require("../enum/EGenre"));
|
|
10
|
+
const EStyle_1 = __importDefault(require("../enum/EStyle"));
|
|
11
|
+
const EMediaCondition_1 = __importDefault(require("../enum/EMediaCondition"));
|
|
12
|
+
const ESort_1 = __importDefault(require("../enum/ESort"));
|
|
13
|
+
const TLimit_1 = __importDefault(require("../type/TLimit"));
|
|
14
|
+
const IYears_1 = __importDefault(require("./IYears"));
|
|
15
|
+
const EFormat_1 = __importDefault(require("../enum/EFormat"));
|
|
16
|
+
const EFormatDescription_1 = __importDefault(require("../enum/EFormatDescription"));
|
|
17
|
+
const ELang_1 = __importDefault(require("../enum/ELang"));
|
|
@@ -1,48 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
1
|
+
import ECountryCode from "../enum/iso/ECountryCode";
|
|
2
|
+
import ECountryName from "../enum/iso/ECountryName";
|
|
3
|
+
/**
|
|
4
|
+
* One item from discogs
|
|
5
|
+
*/
|
|
6
|
+
export default interface IItem {
|
|
7
|
+
itemId: number;
|
|
8
|
+
title: {
|
|
9
|
+
original: string;
|
|
10
|
+
artist: string;
|
|
11
|
+
item: string;
|
|
12
|
+
formats: string[];
|
|
13
|
+
};
|
|
14
|
+
url: string;
|
|
15
|
+
labels: string[];
|
|
16
|
+
catnos: string[];
|
|
17
|
+
imageUrl: string;
|
|
18
|
+
description: string;
|
|
19
|
+
isAcceptingOffer: boolean;
|
|
20
|
+
isAvailable: boolean;
|
|
21
|
+
condition: {
|
|
22
|
+
media: {
|
|
23
|
+
full: string;
|
|
24
|
+
short: string;
|
|
25
|
+
};
|
|
26
|
+
sleeve: {
|
|
27
|
+
full: string;
|
|
28
|
+
short: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
seller: {
|
|
32
|
+
name: string;
|
|
33
|
+
url: string;
|
|
34
|
+
score: string;
|
|
35
|
+
notes: number;
|
|
36
|
+
};
|
|
37
|
+
price: {
|
|
38
|
+
base: string;
|
|
39
|
+
shipping: string;
|
|
40
|
+
};
|
|
41
|
+
from: {
|
|
42
|
+
countryName: string;
|
|
43
|
+
isoCountryName: ECountryName;
|
|
44
|
+
isoCountryCode: ECountryCode;
|
|
45
|
+
};
|
|
46
|
+
community: {
|
|
47
|
+
have: number;
|
|
48
|
+
want: number;
|
|
49
|
+
};
|
|
50
|
+
release: {
|
|
51
|
+
id: number;
|
|
52
|
+
url: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
package/dist/interface/IItem.js
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const ECountryCode_1 = __importDefault(require("../enum/iso/ECountryCode"));
|
|
7
|
+
const ECountryName_1 = __importDefault(require("../enum/iso/ECountryName"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*/
|
|
4
|
-
export default interface IOutputError {
|
|
5
|
-
message: string;
|
|
6
|
-
code: number;
|
|
7
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Result provided to user
|
|
3
|
+
*/
|
|
4
|
+
export default interface IOutputError {
|
|
5
|
+
message: string;
|
|
6
|
+
code: number;
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import IItem from "./IItem";
|
|
2
|
-
import
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
export default interface IOutputSuccess {
|
|
7
|
-
|
|
8
|
-
page: {
|
|
9
|
-
current: number;
|
|
10
|
-
total: number;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
total: number;
|
|
14
|
-
perPage: number;
|
|
15
|
-
};
|
|
16
|
-
search: {
|
|
17
|
-
value: string | number;
|
|
18
|
-
type: EType;
|
|
19
|
-
};
|
|
20
|
-
urlGenerated: string;
|
|
21
|
-
}
|
|
1
|
+
import IItem from "./IItem";
|
|
2
|
+
import EType from "../enum/EType";
|
|
3
|
+
/**
|
|
4
|
+
* Result provided to user
|
|
5
|
+
*/
|
|
6
|
+
export default interface IOutputSuccess {
|
|
7
|
+
items: IItem[];
|
|
8
|
+
page: {
|
|
9
|
+
current: number;
|
|
10
|
+
total: number;
|
|
11
|
+
};
|
|
12
|
+
result: {
|
|
13
|
+
total: number;
|
|
14
|
+
perPage: number;
|
|
15
|
+
};
|
|
16
|
+
search: {
|
|
17
|
+
value: string | number;
|
|
18
|
+
type: EType;
|
|
19
|
+
};
|
|
20
|
+
urlGenerated: string;
|
|
21
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const IItem_1 = __importDefault(require("./IItem"));
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const IItem_1 = __importDefault(require("./IItem"));
|
|
7
|
+
const EType_1 = __importDefault(require("../enum/EType"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*/
|
|
4
|
-
export default interface IYears {
|
|
5
|
-
min: number;
|
|
6
|
-
max: number;
|
|
7
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Provide interval of years
|
|
3
|
+
*/
|
|
4
|
+
export default interface IYears {
|
|
5
|
+
min: number;
|
|
6
|
+
max: number;
|
|
7
|
+
}
|
package/dist/interface/IYears.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/marketplace.d.ts
CHANGED
|
@@ -1,70 +1,56 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
*
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
private serializeParams;
|
|
58
|
-
/**
|
|
59
|
-
* Function to convert devise to ISO name
|
|
60
|
-
* @param str String to clean
|
|
61
|
-
* @returns {string} Cleanup string
|
|
62
|
-
*/
|
|
63
|
-
private convertDevise;
|
|
64
|
-
/**
|
|
65
|
-
* Parse HTML to clean result
|
|
66
|
-
* @param {Document} document Document to parse
|
|
67
|
-
* @returns {IOutputSuccess} Items found
|
|
68
|
-
*/
|
|
69
|
-
private getItem;
|
|
70
|
-
}
|
|
1
|
+
import IInput from "./interface/IInput";
|
|
2
|
+
import IOutputSuccess from "./interface/IOutputSuccess";
|
|
3
|
+
/**
|
|
4
|
+
* Discogs Marketplace
|
|
5
|
+
*/
|
|
6
|
+
export default class Marketplace {
|
|
7
|
+
private searchType;
|
|
8
|
+
private searchValue;
|
|
9
|
+
private currency?;
|
|
10
|
+
private genre?;
|
|
11
|
+
private style?;
|
|
12
|
+
private format?;
|
|
13
|
+
private formatDescription?;
|
|
14
|
+
private mediaCondition?;
|
|
15
|
+
private year?;
|
|
16
|
+
private years?;
|
|
17
|
+
private isAudioSample;
|
|
18
|
+
private isMakeAnOfferOnly;
|
|
19
|
+
private from?;
|
|
20
|
+
private seller?;
|
|
21
|
+
private sort;
|
|
22
|
+
private limit;
|
|
23
|
+
private page;
|
|
24
|
+
private lang;
|
|
25
|
+
/** Url generated by Playwright */
|
|
26
|
+
private url;
|
|
27
|
+
constructor({ searchType, searchValue, currency, genre, style, format, formatDescription, mediaCondition, year, years, isAudioSample, isMakeAnOfferOnly, from, seller, sort, limit, page, lang, }: IInput);
|
|
28
|
+
/**
|
|
29
|
+
* Search elements on discogs
|
|
30
|
+
* @returns Items found
|
|
31
|
+
*/
|
|
32
|
+
search(): Promise<IOutputSuccess>;
|
|
33
|
+
/**
|
|
34
|
+
* Generate URL to be parsed
|
|
35
|
+
* @returns Url
|
|
36
|
+
*/
|
|
37
|
+
private generateUrl;
|
|
38
|
+
/**
|
|
39
|
+
* Serialize params URL
|
|
40
|
+
* @param params Object of GET parameters
|
|
41
|
+
* @returns Url
|
|
42
|
+
*/
|
|
43
|
+
private serializeParams;
|
|
44
|
+
/**
|
|
45
|
+
* Function to convert devise to ISO name
|
|
46
|
+
* @param str String to clean
|
|
47
|
+
* @returns Cleanup string
|
|
48
|
+
*/
|
|
49
|
+
private convertDevise;
|
|
50
|
+
/**
|
|
51
|
+
* Parse HTML to clean result
|
|
52
|
+
* @param document Document to parse
|
|
53
|
+
* @returns Items found
|
|
54
|
+
*/
|
|
55
|
+
private getItem;
|
|
56
|
+
}
|