discogs-marketplace-api-nodejs 1.5.2 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.MD +111 -97
- package/dist/data/countries.data.d.ts +306 -0
- package/dist/data/countries.data.js +327 -0
- package/dist/data/currencies.data.d.ts +33 -0
- package/dist/data/currencies.data.js +35 -0
- package/dist/data/index.d.ts +3 -0
- package/dist/data/index.js +10 -0
- package/dist/index.d.ts +2 -6
- package/dist/index.js +0 -12
- package/dist/marketplace.d.ts +1 -2
- package/dist/marketplace.js +16 -18
- package/dist/types/commons/index.d.ts +4 -0
- package/dist/{interfaces → types/commons}/index.js +0 -0
- package/dist/types/commons/input.type.d.ts +95 -0
- package/dist/{interfaces/input.interface.js → types/commons/input.type.js} +0 -0
- package/dist/{interfaces/output-error.interface.d.ts → types/commons/output-error.type.d.ts} +3 -2
- package/dist/{interfaces/item.interface.js → types/commons/output-error.type.js} +0 -0
- package/dist/types/commons/output-sucess.type.d.ts +116 -0
- package/dist/{interfaces/output-error.interface.js → types/commons/output-sucess.type.js} +0 -0
- package/dist/types/unions/condition.type.d.ts +5 -0
- package/dist/{interfaces/output-sucess.interface.js → types/unions/condition.type.js} +0 -0
- package/dist/types/unions/currency.type.d.ts +5 -0
- package/dist/{interfaces/year.interface.js → types/unions/currency.type.js} +0 -0
- package/dist/types/unions/format-description.type.d.ts +5 -0
- package/dist/types/{index.js → unions/format-description.type.js} +0 -0
- package/dist/types/unions/format.type.d.ts +5 -0
- package/dist/types/{limit.type.js → unions/format.type.js} +0 -0
- package/dist/types/unions/from.type.d.ts +5 -0
- package/dist/types/unions/from.type.js +2 -0
- package/dist/types/unions/genre.type.d.ts +5 -0
- package/dist/types/unions/genre.type.js +2 -0
- package/dist/types/unions/index.d.ts +12 -0
- package/dist/types/unions/index.js +2 -0
- package/dist/types/unions/lang.type.d.ts +5 -0
- package/dist/types/unions/lang.type.js +2 -0
- package/dist/types/{limit.type.d.ts → unions/limit.type.d.ts} +1 -1
- package/dist/types/unions/limit.type.js +2 -0
- package/dist/types/unions/search-type.type.d.ts +5 -0
- package/dist/types/unions/search-type.type.js +2 -0
- package/dist/types/unions/sort.type.d.ts +5 -0
- package/dist/types/unions/sort.type.js +2 -0
- package/dist/types/unions/style.type.d.ts +5 -0
- package/dist/types/unions/style.type.js +2 -0
- package/package.json +16 -16
- package/dist/enums/currency.enum.d.ts +0 -19
- package/dist/enums/currency.enum.js +0 -22
- package/dist/enums/format-description.enum.d.ts +0 -144
- package/dist/enums/format-description.enum.js +0 -147
- package/dist/enums/format.enum.d.ts +0 -59
- package/dist/enums/format.enum.js +0 -62
- package/dist/enums/from.enum.d.ts +0 -251
- package/dist/enums/from.enum.js +0 -254
- package/dist/enums/genre.enum.d.ts +0 -21
- package/dist/enums/genre.enum.js +0 -24
- package/dist/enums/index.d.ts +0 -11
- package/dist/enums/index.js +0 -26
- package/dist/enums/iso/country-code.enum.d.ts +0 -255
- package/dist/enums/iso/country-code.enum.js +0 -258
- package/dist/enums/iso/country-name.enum.d.ts +0 -255
- package/dist/enums/iso/country-name.enum.js +0 -258
- package/dist/enums/iso/index.d.ts +0 -3
- package/dist/enums/iso/index.js +0 -10
- package/dist/enums/iso/translate/discogs-country-name-to-iso-code.enum.d.ts +0 -69
- package/dist/enums/iso/translate/discogs-country-name-to-iso-code.enum.js +0 -72
- package/dist/enums/iso/translate/discogs-currency-to-iso-code.enum.d.ts +0 -36
- package/dist/enums/iso/translate/discogs-currency-to-iso-code.enum.js +0 -39
- package/dist/enums/iso/translate/index.d.ts +0 -3
- package/dist/enums/iso/translate/index.js +0 -10
- package/dist/enums/lang.enum.d.ts +0 -15
- package/dist/enums/lang.enum.js +0 -18
- package/dist/enums/media-condition.enum.d.ts +0 -14
- package/dist/enums/media-condition.enum.js +0 -17
- package/dist/enums/stort.enum.d.ts +0 -62
- package/dist/enums/stort.enum.js +0 -65
- package/dist/enums/style.enum.d.ts +0 -255
- package/dist/enums/style.enum.js +0 -258
- package/dist/enums/type.enum.d.ts +0 -30
- package/dist/enums/type.enum.js +0 -33
- package/dist/interfaces/index.d.ts +0 -6
- package/dist/interfaces/input.interface.d.ts +0 -80
- package/dist/interfaces/item.interface.d.ts +0 -89
- package/dist/interfaces/output-sucess.interface.d.ts +0 -32
- package/dist/interfaces/year.interface.d.ts +0 -9
- package/dist/types/index.d.ts +0 -2
package/README.MD
CHANGED
|
@@ -27,15 +27,15 @@ const DiscogsMarketplace = require('discogs-marketplace-api-nodejs').default
|
|
|
27
27
|
- Get top 250 items, of the 2nd page, filtered by Rock, listed by newest, for a given artist
|
|
28
28
|
|
|
29
29
|
```js
|
|
30
|
-
import DiscogsMarketplace
|
|
30
|
+
import DiscogsMarketplace from 'discogs-marketplace-api-nodejs'
|
|
31
31
|
|
|
32
32
|
// https://www.discogs.com/sell/list?sort=listed,desc&limit=250&artist_id=244819&page=2&genre=Rock
|
|
33
33
|
const result = await DiscogsMarketplace.search({
|
|
34
34
|
limit: 250,
|
|
35
35
|
page: 2,
|
|
36
|
-
genre:
|
|
37
|
-
sort:
|
|
38
|
-
searchType:
|
|
36
|
+
genre: 'Rock',
|
|
37
|
+
sort: 'Listed Newest',
|
|
38
|
+
searchType: 'artist_id',
|
|
39
39
|
searchValue: 244819,
|
|
40
40
|
})
|
|
41
41
|
```
|
|
@@ -43,13 +43,13 @@ const result = await DiscogsMarketplace.search({
|
|
|
43
43
|
- Get top 50 items, of the 1st page, listed by price lowest, on a user wantlist
|
|
44
44
|
|
|
45
45
|
```js
|
|
46
|
-
import DiscogsMarketplace
|
|
46
|
+
import DiscogsMarketplace from 'discogs-marketplace-api-nodejs'
|
|
47
47
|
|
|
48
48
|
// https://www.discogs.com/sell/mywants?limit=50&user=Kirian_&sort=price,asc
|
|
49
49
|
const result = await DiscogsMarketplace.search({
|
|
50
50
|
limit: 50,
|
|
51
|
-
sort:
|
|
52
|
-
searchType:
|
|
51
|
+
sort: 'Price Lowest',
|
|
52
|
+
searchType: 'user',
|
|
53
53
|
searchValue: 'Kirian_',
|
|
54
54
|
})
|
|
55
55
|
```
|
|
@@ -57,12 +57,12 @@ const result = await DiscogsMarketplace.search({
|
|
|
57
57
|
- Get top 25 items, of the 1st page, listed by seller A-Z, on a release
|
|
58
58
|
|
|
59
59
|
```js
|
|
60
|
-
import DiscogsMarketplace
|
|
60
|
+
import DiscogsMarketplace from 'discogs-marketplace-api-nodejs'
|
|
61
61
|
|
|
62
62
|
// https://www.discogs.com/sell/release/767931?sort=seller,asc&limit=25&page=1
|
|
63
63
|
const result = await DiscogsMarketplace.search({
|
|
64
|
-
sort:
|
|
65
|
-
searchType:
|
|
64
|
+
sort: 'Seller A-Z',
|
|
65
|
+
searchType: 'release_id',
|
|
66
66
|
searchValue: '767931',
|
|
67
67
|
})
|
|
68
68
|
```
|
|
@@ -70,13 +70,13 @@ const result = await DiscogsMarketplace.search({
|
|
|
70
70
|
- Get top 100 items, of the 1st page, listed by newest, on a string search
|
|
71
71
|
|
|
72
72
|
```js
|
|
73
|
-
import DiscogsMarketplace
|
|
73
|
+
import DiscogsMarketplace from 'discogs-marketplace-api-nodejs'
|
|
74
74
|
|
|
75
75
|
// https://www.discogs.com/sell/list?sort=listed,desc&limit=100&q=in+flames&page=1
|
|
76
76
|
const result = await DiscogsMarketplace.search({
|
|
77
77
|
limit: 100,
|
|
78
|
-
sort:
|
|
79
|
-
searchType:
|
|
78
|
+
sort: 'Listed Newest',
|
|
79
|
+
searchType: 'q',
|
|
80
80
|
searchValue: 'in flames',
|
|
81
81
|
})
|
|
82
82
|
```
|
|
@@ -84,12 +84,12 @@ const result = await DiscogsMarketplace.search({
|
|
|
84
84
|
- Get top 25 items, of the 1st page, listed by newest, on a seller inventory
|
|
85
85
|
|
|
86
86
|
```js
|
|
87
|
-
import DiscogsMarketplace
|
|
87
|
+
import DiscogsMarketplace from 'discogs-marketplace-api-nodejs'
|
|
88
88
|
|
|
89
89
|
// https://www.discogs.com/seller/Kirian_/profile?sort=listed,desc&limit=25&page=1
|
|
90
90
|
const result = await DiscogsMarketplace.search({
|
|
91
|
-
sort:
|
|
92
|
-
searchType:
|
|
91
|
+
sort: 'Listed Newest',
|
|
92
|
+
searchType: 'q',
|
|
93
93
|
searchValue: '',
|
|
94
94
|
seller: 'Kirian_',
|
|
95
95
|
})
|
|
@@ -98,12 +98,12 @@ const result = await DiscogsMarketplace.search({
|
|
|
98
98
|
- Get top 25 items, of the 1st page, listed by newest, on a user wantlist, on a seller inventory
|
|
99
99
|
|
|
100
100
|
```js
|
|
101
|
-
import DiscogsMarketplace
|
|
101
|
+
import DiscogsMarketplace from 'discogs-marketplace-api-nodejs'
|
|
102
102
|
|
|
103
103
|
// https://www.discogs.com/seller/Kirian_/mywants?sort=listed,desc&limit=25&user=Kirian_&page=1
|
|
104
104
|
const result = await DiscogsMarketplace.search({
|
|
105
|
-
sort:
|
|
106
|
-
searchType:
|
|
105
|
+
sort: 'Listed Newest',
|
|
106
|
+
searchType: 'user',
|
|
107
107
|
searchValue: 'Kirian_',
|
|
108
108
|
seller: 'Kirian_',
|
|
109
109
|
})
|
|
@@ -111,90 +111,153 @@ const result = await DiscogsMarketplace.search({
|
|
|
111
111
|
|
|
112
112
|
## Data format
|
|
113
113
|
|
|
114
|
-
You can provide parameters to `DiscogsMarketplace.search` function according to this
|
|
114
|
+
You can provide parameters to `DiscogsMarketplace.search` function according to this type:
|
|
115
115
|
|
|
116
116
|
```ts
|
|
117
|
-
|
|
117
|
+
type InputCommonType = {
|
|
118
118
|
/**
|
|
119
|
-
* Type of elements to search
|
|
119
|
+
* Type of elements to search.
|
|
120
|
+
* Default to `q`.
|
|
121
|
+
* | Name | Description |
|
|
122
|
+
* |:---------: |:--------------------------:|
|
|
123
|
+
* | q | Basic query search |
|
|
124
|
+
* | master_id | Search in a master release |
|
|
125
|
+
* | release_id | Search in a release |
|
|
126
|
+
* | label_id | Search in a label |
|
|
127
|
+
* | artist_id | Search in a artist |
|
|
128
|
+
* | user | Search in user wantlist |
|
|
120
129
|
*/
|
|
121
|
-
searchType:
|
|
130
|
+
searchType: SearchTypeType
|
|
122
131
|
/**
|
|
123
132
|
* Value to search corresponding to searchType
|
|
124
133
|
*/
|
|
125
|
-
searchValue: string | number | undefined
|
|
134
|
+
searchValue: string | number | undefined
|
|
126
135
|
/**
|
|
127
136
|
* Currency
|
|
128
137
|
*/
|
|
129
|
-
currency?:
|
|
138
|
+
currency?: CurrencyType
|
|
130
139
|
/**
|
|
131
140
|
* Genre
|
|
132
141
|
*/
|
|
133
|
-
genre?:
|
|
142
|
+
genre?: GenreType
|
|
134
143
|
/**
|
|
135
144
|
* Styles
|
|
136
145
|
*/
|
|
137
|
-
style?:
|
|
146
|
+
style?: StyleType[]
|
|
138
147
|
/**
|
|
139
148
|
* Formats
|
|
140
149
|
*/
|
|
141
|
-
format?:
|
|
150
|
+
format?: FormatType[]
|
|
142
151
|
/**
|
|
143
152
|
* Format descriptions
|
|
144
153
|
*/
|
|
145
|
-
formatDescription?:
|
|
154
|
+
formatDescription?: FormatDescriptionType[]
|
|
146
155
|
/**
|
|
147
156
|
* Media conditions
|
|
148
157
|
*/
|
|
149
|
-
|
|
158
|
+
condition?: ConditionType[]
|
|
150
159
|
/**
|
|
151
|
-
* Year (Do not use it with years)
|
|
160
|
+
* Year (Do not use it with `years`)
|
|
152
161
|
*/
|
|
153
|
-
year?: number
|
|
162
|
+
year?: number
|
|
154
163
|
/**
|
|
155
|
-
* Interval of years (Do not use it with year)
|
|
164
|
+
* Interval of years (Do not use it with `year`)
|
|
156
165
|
*/
|
|
157
|
-
years?:
|
|
166
|
+
years?: {
|
|
167
|
+
/** Min */
|
|
168
|
+
min: number
|
|
169
|
+
/** Max */
|
|
170
|
+
max: number
|
|
171
|
+
}
|
|
158
172
|
/**
|
|
159
173
|
* Is audio sample ?
|
|
160
174
|
*/
|
|
161
|
-
isAudioSample?: boolean
|
|
175
|
+
isAudioSample?: boolean
|
|
162
176
|
/**
|
|
163
177
|
* Is make an offer only ?
|
|
164
178
|
*/
|
|
165
|
-
isMakeAnOfferOnly?: boolean
|
|
179
|
+
isMakeAnOfferOnly?: boolean
|
|
166
180
|
/**
|
|
167
181
|
* Expedition country
|
|
168
182
|
*/
|
|
169
|
-
from?:
|
|
183
|
+
from?: FromType
|
|
170
184
|
/**
|
|
171
185
|
* Seller name
|
|
172
186
|
*/
|
|
173
|
-
seller?: string
|
|
187
|
+
seller?: string
|
|
174
188
|
/**
|
|
175
189
|
* Sort elements by
|
|
176
190
|
*/
|
|
177
|
-
sort?:
|
|
191
|
+
sort?: SortType
|
|
178
192
|
/**
|
|
179
193
|
* Limit of elements to search (25 | 50 | 100 | 250)
|
|
180
194
|
*/
|
|
181
|
-
limit?: LimitType
|
|
195
|
+
limit?: LimitType
|
|
182
196
|
/**
|
|
183
|
-
* Page (Must be < 401 or discogs will return an error 404)
|
|
197
|
+
* Page (Must be < 401 or discogs will return an error 404).
|
|
198
|
+
* Default to `25`.
|
|
184
199
|
*/
|
|
185
|
-
page?: number
|
|
200
|
+
page?: number
|
|
186
201
|
/**
|
|
187
|
-
* Lang to use for Discogs
|
|
202
|
+
* Lang to use for Discogs.
|
|
203
|
+
* Default to `en`.
|
|
188
204
|
*/
|
|
189
|
-
lang?:
|
|
205
|
+
lang?: LangType
|
|
190
206
|
}
|
|
191
207
|
```
|
|
192
208
|
|
|
193
209
|
If success, it will return:
|
|
194
210
|
|
|
195
211
|
```ts
|
|
196
|
-
|
|
197
|
-
items:
|
|
212
|
+
type OutputSuccessType = {
|
|
213
|
+
items: {
|
|
214
|
+
id: number
|
|
215
|
+
title: {
|
|
216
|
+
original: string
|
|
217
|
+
artist: string
|
|
218
|
+
item: string
|
|
219
|
+
formats: string[]
|
|
220
|
+
}
|
|
221
|
+
url: string
|
|
222
|
+
labels: string[]
|
|
223
|
+
catnos: string[]
|
|
224
|
+
imageUrl: string
|
|
225
|
+
description: string
|
|
226
|
+
isAcceptingOffer: boolean
|
|
227
|
+
isAvailable: boolean
|
|
228
|
+
condition: {
|
|
229
|
+
media: {
|
|
230
|
+
full: string
|
|
231
|
+
short: string
|
|
232
|
+
}
|
|
233
|
+
sleeve: {
|
|
234
|
+
full: string
|
|
235
|
+
short: string
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
seller: {
|
|
239
|
+
name: string
|
|
240
|
+
url: string
|
|
241
|
+
score: string
|
|
242
|
+
notes: number
|
|
243
|
+
}
|
|
244
|
+
price: {
|
|
245
|
+
base: string
|
|
246
|
+
shipping: string
|
|
247
|
+
}
|
|
248
|
+
country: {
|
|
249
|
+
name: string
|
|
250
|
+
code: ECountryCode
|
|
251
|
+
}
|
|
252
|
+
community: {
|
|
253
|
+
have: number
|
|
254
|
+
want: number
|
|
255
|
+
}
|
|
256
|
+
release: {
|
|
257
|
+
id: number
|
|
258
|
+
url: string
|
|
259
|
+
}
|
|
260
|
+
}[]
|
|
198
261
|
page: {
|
|
199
262
|
current: number
|
|
200
263
|
total: number
|
|
@@ -205,65 +268,16 @@ interface IOutputSuccess {
|
|
|
205
268
|
}
|
|
206
269
|
search: {
|
|
207
270
|
value: string | number
|
|
208
|
-
type:
|
|
271
|
+
type: SearchTypeType
|
|
209
272
|
}
|
|
210
273
|
urlGenerated: string
|
|
211
274
|
}
|
|
212
|
-
|
|
213
|
-
interface IItem {
|
|
214
|
-
id: number
|
|
215
|
-
title: {
|
|
216
|
-
original: string
|
|
217
|
-
artist: string
|
|
218
|
-
item: string
|
|
219
|
-
formats: string[]
|
|
220
|
-
}
|
|
221
|
-
url: string
|
|
222
|
-
labels: string[]
|
|
223
|
-
catnos: string[]
|
|
224
|
-
imageUrl: string
|
|
225
|
-
description: string
|
|
226
|
-
isAcceptingOffer: boolean
|
|
227
|
-
isAvailable: boolean
|
|
228
|
-
condition: {
|
|
229
|
-
media: {
|
|
230
|
-
full: string
|
|
231
|
-
short: string
|
|
232
|
-
}
|
|
233
|
-
sleeve: {
|
|
234
|
-
full: string
|
|
235
|
-
short: string
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
seller: {
|
|
239
|
-
name: string
|
|
240
|
-
url: string
|
|
241
|
-
score: string
|
|
242
|
-
notes: number
|
|
243
|
-
}
|
|
244
|
-
price: {
|
|
245
|
-
base: string
|
|
246
|
-
shipping: string
|
|
247
|
-
}
|
|
248
|
-
country: {
|
|
249
|
-
name: string
|
|
250
|
-
code: ECountryCode
|
|
251
|
-
}
|
|
252
|
-
community: {
|
|
253
|
-
have: number
|
|
254
|
-
want: number
|
|
255
|
-
}
|
|
256
|
-
release: {
|
|
257
|
-
id: number
|
|
258
|
-
url: string
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
275
|
```
|
|
262
276
|
|
|
263
277
|
If error, it will throw:
|
|
264
278
|
|
|
265
279
|
```ts
|
|
266
|
-
|
|
280
|
+
type OutputErrorType = {
|
|
267
281
|
message: string
|
|
268
282
|
code: number
|
|
269
283
|
}
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
declare const COUNTRIES: {
|
|
2
|
+
readonly Azerbaidjan: "AZ";
|
|
3
|
+
readonly Bolivia: "BO";
|
|
4
|
+
readonly 'Bosnia-Herzegovina': "BA";
|
|
5
|
+
readonly 'Cape Verde': "CV";
|
|
6
|
+
readonly 'Czech Republic': "CZ";
|
|
7
|
+
readonly 'East Timor': "TL";
|
|
8
|
+
readonly 'Falkland Islands': "FK";
|
|
9
|
+
readonly 'Former Czechoslovakia': "CZ";
|
|
10
|
+
readonly 'Former USSR': "RU";
|
|
11
|
+
readonly 'France (European Territory)': "FR";
|
|
12
|
+
readonly 'French Guyana': "GY";
|
|
13
|
+
readonly 'Guadeloupe (French)': "GP";
|
|
14
|
+
readonly 'Guam (USA)': "GU";
|
|
15
|
+
readonly 'Guinea Bissau': "GW";
|
|
16
|
+
readonly 'Heard and McDonald Islands': "HM";
|
|
17
|
+
readonly Iran: "IR";
|
|
18
|
+
readonly "Ivory Coast (Cote D'Ivoire)": "CI";
|
|
19
|
+
readonly Laos: "LA";
|
|
20
|
+
readonly Macau: "MO";
|
|
21
|
+
readonly Macedonia: "MK";
|
|
22
|
+
readonly 'Martinique (French)': "MQ";
|
|
23
|
+
readonly Micronesia: "FM";
|
|
24
|
+
readonly 'Netherlands Antilles': "CW";
|
|
25
|
+
readonly 'Neutral Zone': "";
|
|
26
|
+
readonly 'New Caledonia (French)': "NC";
|
|
27
|
+
readonly 'Pitcairn Island': "PN";
|
|
28
|
+
readonly 'Polynesia (French)': "PF";
|
|
29
|
+
readonly 'Reunion (French)': "RE";
|
|
30
|
+
readonly 'S. Georgia & S. Sandwich Isls.': "GS";
|
|
31
|
+
readonly 'Saint Helena': "SH";
|
|
32
|
+
readonly 'Saint Kitts & Nevis Anguilla': "KN";
|
|
33
|
+
readonly 'Saint Tome (Sao Tome) and Princi': "ST";
|
|
34
|
+
readonly 'Saint Vincent & Grenadines': "VC";
|
|
35
|
+
readonly 'Slovak Republic': "SK";
|
|
36
|
+
readonly 'South Korea': "KR";
|
|
37
|
+
readonly 'Spain (Canary Islands)': "IC";
|
|
38
|
+
readonly 'Svalbard and Jan Mayen Islands': "SJ";
|
|
39
|
+
readonly Swaziland: "SZ";
|
|
40
|
+
readonly Syria: "SY";
|
|
41
|
+
readonly Tadjikistan: "TJ";
|
|
42
|
+
readonly Taiwan: "TW";
|
|
43
|
+
readonly Tanzania: "TZ";
|
|
44
|
+
readonly 'United Kingdom': "GB";
|
|
45
|
+
readonly 'Northern Ireland': "GB";
|
|
46
|
+
readonly 'United Kingdom (Channel Islands)': "";
|
|
47
|
+
readonly 'United States': "US";
|
|
48
|
+
readonly 'USA Minor Outlying Islands': "UM";
|
|
49
|
+
readonly 'Vatican City State': "VA";
|
|
50
|
+
readonly Venezuela: "VE";
|
|
51
|
+
readonly Vietnam: "VN";
|
|
52
|
+
readonly 'Virgin Islands (USA)': "VI";
|
|
53
|
+
readonly 'Wallis and Futuna Islands': "WF";
|
|
54
|
+
readonly Yugoslavia: "GR";
|
|
55
|
+
readonly Zaire: "CD";
|
|
56
|
+
readonly Afghanistan: "AF";
|
|
57
|
+
readonly '\u00C5land Islands': "AX";
|
|
58
|
+
readonly Albania: "AL";
|
|
59
|
+
readonly Algeria: "DZ";
|
|
60
|
+
readonly 'American Samoa': "AS";
|
|
61
|
+
readonly Andorra: "AD";
|
|
62
|
+
readonly Angola: "AO";
|
|
63
|
+
readonly Anguilla: "AI";
|
|
64
|
+
readonly Antarctica: "AQ";
|
|
65
|
+
readonly 'Antigua and Barbuda': "AG";
|
|
66
|
+
readonly Argentina: "AR";
|
|
67
|
+
readonly Armenia: "AM";
|
|
68
|
+
readonly Aruba: "AW";
|
|
69
|
+
readonly Australia: "AU";
|
|
70
|
+
readonly Austria: "AT";
|
|
71
|
+
readonly Azerbaijan: "AZ";
|
|
72
|
+
readonly Bahamas: "BS";
|
|
73
|
+
readonly Bahrain: "BH";
|
|
74
|
+
readonly Bangladesh: "BD";
|
|
75
|
+
readonly Barbados: "BB";
|
|
76
|
+
readonly Belarus: "BY";
|
|
77
|
+
readonly Belgium: "BE";
|
|
78
|
+
readonly Belize: "BZ";
|
|
79
|
+
readonly Benin: "BJ";
|
|
80
|
+
readonly Bermuda: "BM";
|
|
81
|
+
readonly Bhutan: "BT";
|
|
82
|
+
readonly 'Bolivia (Plurinational State of)': "BO";
|
|
83
|
+
readonly 'Bonaire, Sint Eustatius and Saba': "BQ";
|
|
84
|
+
readonly 'Bosnia and Herzegovina': "BA";
|
|
85
|
+
readonly Botswana: "BW";
|
|
86
|
+
readonly 'Bouvet Island': "BV";
|
|
87
|
+
readonly Brazil: "BR";
|
|
88
|
+
readonly 'British Indian Ocean Territory': "IO";
|
|
89
|
+
readonly 'Brunei Darussalam': "BN";
|
|
90
|
+
readonly Bulgaria: "BG";
|
|
91
|
+
readonly 'Burkina Faso': "BF";
|
|
92
|
+
readonly Burundi: "BI";
|
|
93
|
+
readonly 'Cabo Verde': "CV";
|
|
94
|
+
readonly Cambodia: "KH";
|
|
95
|
+
readonly Cameroon: "CM";
|
|
96
|
+
readonly Canada: "CA";
|
|
97
|
+
readonly 'Cayman Islands': "KY";
|
|
98
|
+
readonly 'Central African Republic': "CF";
|
|
99
|
+
readonly Chad: "TD";
|
|
100
|
+
readonly Chile: "CL";
|
|
101
|
+
readonly China: "CN";
|
|
102
|
+
readonly 'Christmas Island': "CX";
|
|
103
|
+
readonly 'Cocos (Keeling) Islands': "CC";
|
|
104
|
+
readonly Colombia: "CO";
|
|
105
|
+
readonly Comoros: "KM";
|
|
106
|
+
readonly Congo: "CG";
|
|
107
|
+
readonly 'Congo, Democratic Republic of the': "CD";
|
|
108
|
+
readonly 'Cook Islands': "CK";
|
|
109
|
+
readonly 'Costa Rica': "CR";
|
|
110
|
+
readonly "C\u00F4te d'Ivoire": "CI";
|
|
111
|
+
readonly Croatia: "HR";
|
|
112
|
+
readonly Cuba: "CU";
|
|
113
|
+
readonly Curaçao: "CW";
|
|
114
|
+
readonly Cyprus: "CY";
|
|
115
|
+
readonly Czechia: "CZ";
|
|
116
|
+
readonly Denmark: "DK";
|
|
117
|
+
readonly Djibouti: "DJ";
|
|
118
|
+
readonly Dominica: "DM";
|
|
119
|
+
readonly 'Dominican Republic': "DO";
|
|
120
|
+
readonly Ecuador: "EC";
|
|
121
|
+
readonly Egypt: "EG";
|
|
122
|
+
readonly 'El Salvador': "SV";
|
|
123
|
+
readonly 'Equatorial Guinea': "GQ";
|
|
124
|
+
readonly Eritrea: "ER";
|
|
125
|
+
readonly Estonia: "EE";
|
|
126
|
+
readonly Eswatini: "SZ";
|
|
127
|
+
readonly Ethiopia: "ET";
|
|
128
|
+
readonly 'Falkland Islands (Malvinas)': "FK";
|
|
129
|
+
readonly 'Faroe Islands': "FO";
|
|
130
|
+
readonly Fiji: "FJ";
|
|
131
|
+
readonly Finland: "FI";
|
|
132
|
+
readonly France: "FR";
|
|
133
|
+
readonly 'French Guiana': "GF";
|
|
134
|
+
readonly 'French Polynesia': "PF";
|
|
135
|
+
readonly 'French Southern Territories': "TF";
|
|
136
|
+
readonly Gabon: "GA";
|
|
137
|
+
readonly Gambia: "GM";
|
|
138
|
+
readonly Georgia: "GE";
|
|
139
|
+
readonly Germany: "DE";
|
|
140
|
+
readonly Ghana: "GH";
|
|
141
|
+
readonly Gibraltar: "GI";
|
|
142
|
+
readonly Greece: "GR";
|
|
143
|
+
readonly Greenland: "GL";
|
|
144
|
+
readonly Grenada: "GD";
|
|
145
|
+
readonly Guadeloupe: "GP";
|
|
146
|
+
readonly Guam: "GU";
|
|
147
|
+
readonly Guatemala: "GT";
|
|
148
|
+
readonly Guernsey: "GG";
|
|
149
|
+
readonly Guinea: "GN";
|
|
150
|
+
readonly 'Guinea-Bissau': "GW";
|
|
151
|
+
readonly Guyana: "GY";
|
|
152
|
+
readonly Haiti: "HT";
|
|
153
|
+
readonly 'Heard Island and McDonald Islands': "HM";
|
|
154
|
+
readonly 'Holy See': "VA";
|
|
155
|
+
readonly Honduras: "HN";
|
|
156
|
+
readonly 'Hong Kong': "HK";
|
|
157
|
+
readonly Hungary: "HU";
|
|
158
|
+
readonly Iceland: "IS";
|
|
159
|
+
readonly India: "IN";
|
|
160
|
+
readonly Indonesia: "ID";
|
|
161
|
+
readonly 'Iran (Islamic Republic of)': "IR";
|
|
162
|
+
readonly Iraq: "IQ";
|
|
163
|
+
readonly Ireland: "IE";
|
|
164
|
+
readonly 'Isle of Man': "IM";
|
|
165
|
+
readonly Israel: "IL";
|
|
166
|
+
readonly Italy: "IT";
|
|
167
|
+
readonly Jamaica: "JM";
|
|
168
|
+
readonly Japan: "JP";
|
|
169
|
+
readonly Jersey: "JE";
|
|
170
|
+
readonly Jordan: "JO";
|
|
171
|
+
readonly Kazakhstan: "KZ";
|
|
172
|
+
readonly Kenya: "KE";
|
|
173
|
+
readonly Kiribati: "KI";
|
|
174
|
+
readonly "Korea (Democratic People's Republic of)": "KP";
|
|
175
|
+
readonly 'Korea, Republic of': "KR";
|
|
176
|
+
readonly Kuwait: "KW";
|
|
177
|
+
readonly Kyrgyzstan: "KG";
|
|
178
|
+
readonly "Lao People's Democratic Republic": "LA";
|
|
179
|
+
readonly Latvia: "LV";
|
|
180
|
+
readonly Lebanon: "LB";
|
|
181
|
+
readonly Lesotho: "LS";
|
|
182
|
+
readonly Liberia: "LR";
|
|
183
|
+
readonly Libya: "LY";
|
|
184
|
+
readonly Liechtenstein: "LI";
|
|
185
|
+
readonly Lithuania: "LT";
|
|
186
|
+
readonly Luxembourg: "LU";
|
|
187
|
+
readonly Macao: "MO";
|
|
188
|
+
readonly Madagascar: "MG";
|
|
189
|
+
readonly Malawi: "MW";
|
|
190
|
+
readonly Malaysia: "MY";
|
|
191
|
+
readonly Maldives: "MV";
|
|
192
|
+
readonly Mali: "ML";
|
|
193
|
+
readonly Malta: "MT";
|
|
194
|
+
readonly 'Marshall Islands': "MH";
|
|
195
|
+
readonly Martinique: "MQ";
|
|
196
|
+
readonly Mauritania: "MR";
|
|
197
|
+
readonly Mauritius: "MU";
|
|
198
|
+
readonly Mayotte: "YT";
|
|
199
|
+
readonly Mexico: "MX";
|
|
200
|
+
readonly 'Micronesia (Federated States of)': "FM";
|
|
201
|
+
readonly 'Moldova, Republic of': "MD";
|
|
202
|
+
readonly Monaco: "MC";
|
|
203
|
+
readonly Mongolia: "MN";
|
|
204
|
+
readonly Montenegro: "ME";
|
|
205
|
+
readonly Montserrat: "MS";
|
|
206
|
+
readonly Morocco: "MA";
|
|
207
|
+
readonly Mozambique: "MZ";
|
|
208
|
+
readonly Myanmar: "MM";
|
|
209
|
+
readonly Namibia: "NA";
|
|
210
|
+
readonly Nauru: "NR";
|
|
211
|
+
readonly Nepal: "NP";
|
|
212
|
+
readonly Netherlands: "NL";
|
|
213
|
+
readonly 'New Caledonia': "NC";
|
|
214
|
+
readonly 'New Zealand': "NZ";
|
|
215
|
+
readonly Nicaragua: "NI";
|
|
216
|
+
readonly Niger: "NE";
|
|
217
|
+
readonly Nigeria: "NG";
|
|
218
|
+
readonly Niue: "NU";
|
|
219
|
+
readonly 'Norfolk Island': "NF";
|
|
220
|
+
readonly 'North Macedonia': "MK";
|
|
221
|
+
readonly 'Northern Mariana Islands': "MP";
|
|
222
|
+
readonly Norway: "NO";
|
|
223
|
+
readonly Oman: "OM";
|
|
224
|
+
readonly Pakistan: "PK";
|
|
225
|
+
readonly Palau: "PW";
|
|
226
|
+
readonly 'Palestine, State of': "PS";
|
|
227
|
+
readonly Panama: "PA";
|
|
228
|
+
readonly 'Papua New Guinea': "PG";
|
|
229
|
+
readonly Paraguay: "PY";
|
|
230
|
+
readonly Peru: "PE";
|
|
231
|
+
readonly Philippines: "PH";
|
|
232
|
+
readonly Pitcairn: "PN";
|
|
233
|
+
readonly Poland: "PL";
|
|
234
|
+
readonly Portugal: "PT";
|
|
235
|
+
readonly 'Puerto Rico': "PR";
|
|
236
|
+
readonly Qatar: "QA";
|
|
237
|
+
readonly Réunion: "RE";
|
|
238
|
+
readonly Romania: "RO";
|
|
239
|
+
readonly 'Russian Federation': "RU";
|
|
240
|
+
readonly Rwanda: "RW";
|
|
241
|
+
readonly 'Saint Barth\u00E9lemy': "BL";
|
|
242
|
+
readonly 'Saint Helena, Ascension and Tristan da Cunha': "SH";
|
|
243
|
+
readonly 'Saint Kitts and Nevis': "KN";
|
|
244
|
+
readonly 'Saint Lucia': "LC";
|
|
245
|
+
readonly 'Saint Martin (French part)': "MF";
|
|
246
|
+
readonly 'Saint Pierre and Miquelon': "PM";
|
|
247
|
+
readonly 'Saint Vincent and the Grenadines': "VC";
|
|
248
|
+
readonly Samoa: "WS";
|
|
249
|
+
readonly 'San Marino': "SM";
|
|
250
|
+
readonly 'Sao Tome and Principe': "ST";
|
|
251
|
+
readonly 'Saudi Arabia': "SA";
|
|
252
|
+
readonly Senegal: "SN";
|
|
253
|
+
readonly Serbia: "RS";
|
|
254
|
+
readonly Seychelles: "SC";
|
|
255
|
+
readonly 'Sierra Leone': "SL";
|
|
256
|
+
readonly Singapore: "SG";
|
|
257
|
+
readonly 'Sint Maarten (Dutch part)': "SX";
|
|
258
|
+
readonly Slovakia: "SK";
|
|
259
|
+
readonly Slovenia: "SI";
|
|
260
|
+
readonly 'Solomon Islands': "SB";
|
|
261
|
+
readonly Somalia: "SO";
|
|
262
|
+
readonly 'South Africa': "ZA";
|
|
263
|
+
readonly 'South Georgia and the South Sandwich Islands': "GS";
|
|
264
|
+
readonly 'South Sudan': "SS";
|
|
265
|
+
readonly Spain: "ES";
|
|
266
|
+
readonly 'Sri Lanka': "LK";
|
|
267
|
+
readonly Sudan: "SD";
|
|
268
|
+
readonly Suriname: "SR";
|
|
269
|
+
readonly 'Svalbard and Jan Mayen': "SJ";
|
|
270
|
+
readonly Sweden: "SE";
|
|
271
|
+
readonly Switzerland: "CH";
|
|
272
|
+
readonly 'Syrian Arab Republic': "SY";
|
|
273
|
+
readonly 'Taiwan, Province of China': "TW";
|
|
274
|
+
readonly Tajikistan: "TJ";
|
|
275
|
+
readonly 'Tanzania, United Republic of': "TZ";
|
|
276
|
+
readonly Thailand: "TH";
|
|
277
|
+
readonly 'Timor-Leste': "TL";
|
|
278
|
+
readonly Togo: "TG";
|
|
279
|
+
readonly Tokelau: "TK";
|
|
280
|
+
readonly Tonga: "TO";
|
|
281
|
+
readonly 'Trinidad and Tobago': "TT";
|
|
282
|
+
readonly Tunisia: "TN";
|
|
283
|
+
readonly Turkey: "TR";
|
|
284
|
+
readonly Turkmenistan: "TM";
|
|
285
|
+
readonly 'Turks and Caicos Islands': "TC";
|
|
286
|
+
readonly Tuvalu: "TV";
|
|
287
|
+
readonly Uganda: "UG";
|
|
288
|
+
readonly Ukraine: "UA";
|
|
289
|
+
readonly 'United Arab Emirates': "AE";
|
|
290
|
+
readonly 'United Kingdom of Great Britain and Northern Ireland': "GB";
|
|
291
|
+
readonly 'United States of America': "US";
|
|
292
|
+
readonly 'United States Minor Outlying Islands': "UM";
|
|
293
|
+
readonly Uruguay: "UY";
|
|
294
|
+
readonly Uzbekistan: "UZ";
|
|
295
|
+
readonly Vanuatu: "VU";
|
|
296
|
+
readonly 'Venezuela (Bolivarian Republic of)': "VE";
|
|
297
|
+
readonly 'Viet Nam': "VN";
|
|
298
|
+
readonly 'Virgin Islands (British)': "VG";
|
|
299
|
+
readonly 'Virgin Islands (U.S.)': "VI";
|
|
300
|
+
readonly 'Wallis and Futuna': "WF";
|
|
301
|
+
readonly 'Western Sahara': "EH";
|
|
302
|
+
readonly Yemen: "YE";
|
|
303
|
+
readonly Zambia: "ZM";
|
|
304
|
+
readonly Zimbabwe: "ZW";
|
|
305
|
+
};
|
|
306
|
+
export default COUNTRIES;
|