cozy-client 60.39.0 → 60.41.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/dist/CozyClient.js +1 -1
- package/dist/CozyClient.spec.js +115 -0
- package/dist/links/StackLink.spec.js +26 -1
- package/dist/models/country/locales/de.json +500 -0
- package/dist/models/country/locales/es.json +500 -0
- package/dist/models/country/locales/index.js +17 -2
- package/dist/models/country/locales/it.json +500 -0
- package/dist/models/country/locales/ru.json +500 -0
- package/dist/models/country/locales/vi.json +500 -0
- package/dist/models/doctypes/locales/de.json +106 -0
- package/dist/models/doctypes/locales/es.json +106 -0
- package/dist/models/doctypes/locales/fr.json +2 -1
- package/dist/models/doctypes/locales/it.json +106 -0
- package/dist/models/doctypes/locales/ru.json +106 -0
- package/dist/models/doctypes/locales/vi.json +106 -0
- package/dist/models/document/locales/de.json +261 -0
- package/dist/models/document/locales/es.json +261 -0
- package/dist/models/document/locales/index.js +20 -3
- package/dist/models/document/locales/index.spec.js +28 -1
- package/dist/models/document/locales/it.json +261 -0
- package/dist/models/document/locales/ru.json +261 -0
- package/dist/models/document/locales/vi.json +261 -0
- package/dist/models/paper.js +21 -2
- package/package.json +3 -3
package/dist/CozyClient.js
CHANGED
|
@@ -3127,7 +3127,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
3127
3127
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
3128
3128
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
3129
3129
|
|
|
3130
|
-
CozyClient.version = "60.
|
|
3130
|
+
CozyClient.version = "60.41.0";
|
|
3131
3131
|
|
|
3132
3132
|
_microee.default.mixin(CozyClient);
|
|
3133
3133
|
|
package/dist/CozyClient.spec.js
CHANGED
|
@@ -2223,6 +2223,121 @@ describe('file creation', () => {
|
|
|
2223
2223
|
})
|
|
2224
2224
|
)
|
|
2225
2225
|
})
|
|
2226
|
+
|
|
2227
|
+
it('should create a file from sourceURL via real StackLink/FileCollection HTTP boundary and update store cache', async () => {
|
|
2228
|
+
const { client } = setup()
|
|
2229
|
+
jest.spyOn(client, 'dispatch')
|
|
2230
|
+
client.stackClient.fetchJSON = jest.fn().mockResolvedValue({
|
|
2231
|
+
data: {
|
|
2232
|
+
id: 'file-42',
|
|
2233
|
+
_id: 'file-42',
|
|
2234
|
+
type: 'io.cozy.files',
|
|
2235
|
+
attributes: {
|
|
2236
|
+
name: 'remote.pdf',
|
|
2237
|
+
dir_id: 'folder-123'
|
|
2238
|
+
},
|
|
2239
|
+
meta: {
|
|
2240
|
+
rev: '1-xyz'
|
|
2241
|
+
}
|
|
2242
|
+
}
|
|
2243
|
+
})
|
|
2244
|
+
|
|
2245
|
+
const { data: doc } = await client.create('io.cozy.files', {
|
|
2246
|
+
type: 'file',
|
|
2247
|
+
sourceURL:
|
|
2248
|
+
'https://example.com/remote.pdf?token=abc+123&secret=xyz%20foo',
|
|
2249
|
+
dirId: 'folder-123',
|
|
2250
|
+
name: 'remote.pdf'
|
|
2251
|
+
})
|
|
2252
|
+
|
|
2253
|
+
expect(doc._id).toEqual('file-42')
|
|
2254
|
+
expect(doc.name).toEqual('remote.pdf')
|
|
2255
|
+
expect(doc.dir_id).toEqual('folder-123')
|
|
2256
|
+
expect(client.stackClient.fetchJSON).toHaveBeenCalledWith(
|
|
2257
|
+
'POST',
|
|
2258
|
+
'/files/folder-123?Name=remote.pdf&Type=file&Executable=false&Encrypted=false&MetadataID=&Size=&SourceAccount=&SourceAccountIdentifier=&SourceURL=https%3A%2F%2Fexample.com%2Fremote.pdf%3Ftoken%3Dabc%2B123%26secret%3Dxyz%2520foo',
|
|
2259
|
+
'',
|
|
2260
|
+
{
|
|
2261
|
+
headers: {
|
|
2262
|
+
'Content-Type': 'application/octet-stream'
|
|
2263
|
+
}
|
|
2264
|
+
}
|
|
2265
|
+
)
|
|
2266
|
+
expect(client.dispatch.mock.calls.map(x => x[0].type)).toEqual([
|
|
2267
|
+
'INIT_MUTATION',
|
|
2268
|
+
'RECEIVE_MUTATION_RESULT'
|
|
2269
|
+
])
|
|
2270
|
+
|
|
2271
|
+
const cachedDoc = client.getDocumentFromState('io.cozy.files', 'file-42')
|
|
2272
|
+
expect(cachedDoc).toBeDefined()
|
|
2273
|
+
expect(cachedDoc._id).toBe('file-42')
|
|
2274
|
+
expect(cachedDoc.name).toBe('remote.pdf')
|
|
2275
|
+
expect(cachedDoc.dir_id).toBe('folder-123')
|
|
2276
|
+
})
|
|
2277
|
+
|
|
2278
|
+
it('should reject file creation when both binary data and sourceURL are provided', async () => {
|
|
2279
|
+
const { client } = setup()
|
|
2280
|
+
jest.spyOn(client, 'dispatch')
|
|
2281
|
+
await expect(
|
|
2282
|
+
client.create('io.cozy.files', {
|
|
2283
|
+
type: 'file',
|
|
2284
|
+
data: 'content',
|
|
2285
|
+
sourceURL: 'https://example.com/remote.pdf',
|
|
2286
|
+
name: 'remote.pdf',
|
|
2287
|
+
dirId: 'folder-123'
|
|
2288
|
+
})
|
|
2289
|
+
).rejects.toThrow('Cannot pass both data and sourceURL')
|
|
2290
|
+
|
|
2291
|
+
expect(client.dispatch.mock.calls.map(x => x[0].type)).toEqual([
|
|
2292
|
+
'INIT_MUTATION',
|
|
2293
|
+
'RECEIVE_MUTATION_ERROR'
|
|
2294
|
+
])
|
|
2295
|
+
})
|
|
2296
|
+
|
|
2297
|
+
it('should reject file creation when sourceURL is empty', async () => {
|
|
2298
|
+
const { client } = setup()
|
|
2299
|
+
await expect(
|
|
2300
|
+
client.create('io.cozy.files', {
|
|
2301
|
+
type: 'file',
|
|
2302
|
+
sourceURL: '',
|
|
2303
|
+
name: 'remote.pdf',
|
|
2304
|
+
dirId: 'folder-123'
|
|
2305
|
+
})
|
|
2306
|
+
).rejects.toThrow('sourceURL cannot be empty')
|
|
2307
|
+
})
|
|
2308
|
+
|
|
2309
|
+
it('should reject directory creation when sourceURL is provided', async () => {
|
|
2310
|
+
const { client } = setup()
|
|
2311
|
+
await expect(
|
|
2312
|
+
client.create('io.cozy.files', {
|
|
2313
|
+
type: 'directory',
|
|
2314
|
+
sourceURL: '',
|
|
2315
|
+
name: 'my-folder'
|
|
2316
|
+
})
|
|
2317
|
+
).rejects.toThrow('You cannot pass a sourceURL for a directory')
|
|
2318
|
+
})
|
|
2319
|
+
|
|
2320
|
+
it('should dispatch mutation error and throw when stack HTTP call fails', async () => {
|
|
2321
|
+
const { client } = setup()
|
|
2322
|
+
jest.spyOn(client, 'dispatch')
|
|
2323
|
+
client.stackClient.fetchJSON.mockRejectedValueOnce(
|
|
2324
|
+
new Error('502 could not download SourceURL')
|
|
2325
|
+
)
|
|
2326
|
+
|
|
2327
|
+
await expect(
|
|
2328
|
+
client.create('io.cozy.files', {
|
|
2329
|
+
type: 'file',
|
|
2330
|
+
sourceURL: 'https://example.com/remote.pdf',
|
|
2331
|
+
name: 'remote.pdf',
|
|
2332
|
+
dirId: 'folder-123'
|
|
2333
|
+
})
|
|
2334
|
+
).rejects.toThrow('502 could not download SourceURL')
|
|
2335
|
+
|
|
2336
|
+
expect(client.dispatch.mock.calls.map(x => x[0].type)).toEqual([
|
|
2337
|
+
'INIT_MUTATION',
|
|
2338
|
+
'RECEIVE_MUTATION_ERROR'
|
|
2339
|
+
])
|
|
2340
|
+
})
|
|
2226
2341
|
})
|
|
2227
2342
|
|
|
2228
2343
|
describe('file update', () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Q } from '../queries/dsl'
|
|
1
|
+
import { Q, MutationTypes } from '../queries/dsl'
|
|
2
2
|
import CozyClient from '../CozyClient'
|
|
3
3
|
import StackLink, { transformBulkDocsResponse } from './StackLink'
|
|
4
4
|
import { SCHEMA } from '../__tests__/fixtures'
|
|
@@ -283,4 +283,29 @@ describe('StackLink', () => {
|
|
|
283
283
|
})
|
|
284
284
|
})
|
|
285
285
|
})
|
|
286
|
+
|
|
287
|
+
describe('mutations', () => {
|
|
288
|
+
it('should delegate CREATE_DOCUMENT with sourceURL to collection.create without modifying or dropping sourceURL', async () => {
|
|
289
|
+
const doc = {
|
|
290
|
+
_type: 'io.cozy.files',
|
|
291
|
+
type: 'file',
|
|
292
|
+
name: 'remote.pdf',
|
|
293
|
+
dirId: '123',
|
|
294
|
+
sourceURL: 'https://example.com/file.pdf'
|
|
295
|
+
}
|
|
296
|
+
const fakeCollection = {
|
|
297
|
+
create: jest.fn().mockResolvedValue({ data: { id: 'created-id' } })
|
|
298
|
+
}
|
|
299
|
+
stackClient.collection = jest.fn().mockReturnValue(fakeCollection)
|
|
300
|
+
|
|
301
|
+
const result = await link.executeMutation({
|
|
302
|
+
mutationType: MutationTypes.CREATE_DOCUMENT,
|
|
303
|
+
document: doc
|
|
304
|
+
})
|
|
305
|
+
|
|
306
|
+
expect(stackClient.collection).toHaveBeenCalledWith('io.cozy.files')
|
|
307
|
+
expect(fakeCollection.create).toHaveBeenCalledWith(doc)
|
|
308
|
+
expect(result).toEqual({ data: { id: 'created-id' } })
|
|
309
|
+
})
|
|
310
|
+
})
|
|
286
311
|
})
|
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
{
|
|
2
|
+
"nationalities": {
|
|
3
|
+
"AD": "Andorranisch",
|
|
4
|
+
"AE": "Emiratisch",
|
|
5
|
+
"AF": "Afghanisch",
|
|
6
|
+
"AG": "Antiguanisch",
|
|
7
|
+
"AL": "Albanisch",
|
|
8
|
+
"AM": "Armenisch",
|
|
9
|
+
"AW": "Arubanisch",
|
|
10
|
+
"AO": "Angolanisch",
|
|
11
|
+
"AR": "Argentinisch",
|
|
12
|
+
"AT": "Österreichisch",
|
|
13
|
+
"AU": "Australisch",
|
|
14
|
+
"AX": "Ålandinseln",
|
|
15
|
+
"AZ": "Aserbaidschanisch",
|
|
16
|
+
"BA": "Bosnisch-herzegowinisch",
|
|
17
|
+
"BB": "Barbadisch",
|
|
18
|
+
"BD": "Bangladeschisch",
|
|
19
|
+
"BE": "Belgisch",
|
|
20
|
+
"BF": "Burkinisch",
|
|
21
|
+
"BG": "Bulgarisch",
|
|
22
|
+
"BH": "Bahrainisch",
|
|
23
|
+
"BI": "Burundisch",
|
|
24
|
+
"BJ": "Beninisch",
|
|
25
|
+
"BL": "St. Barthélemy",
|
|
26
|
+
"BM": "Bermuda",
|
|
27
|
+
"BN": "Bruneiisch",
|
|
28
|
+
"BO": "Bolivianisch",
|
|
29
|
+
"BQ": "Karibische Niederlande",
|
|
30
|
+
"BR": "Brasilianisch",
|
|
31
|
+
"BS": "Bahamaisch",
|
|
32
|
+
"BT": "Bhutanisch",
|
|
33
|
+
"BV": "Bouvetinsel",
|
|
34
|
+
"BW": "Botsuanisch",
|
|
35
|
+
"BY": "Belarussisch",
|
|
36
|
+
"BZ": "Belizisch",
|
|
37
|
+
"CA": "Kanadisch",
|
|
38
|
+
"CC": "Kokosinseln",
|
|
39
|
+
"CD": "Kongolesisch (Demokratische Republik Kongo)",
|
|
40
|
+
"CF": "Zentralafrikanisch",
|
|
41
|
+
"CG": "Kongolesisch (Republik Kongo)",
|
|
42
|
+
"CH": "Schweizerisch",
|
|
43
|
+
"CI": "Ivorisch",
|
|
44
|
+
"CK": "Cookinseln",
|
|
45
|
+
"CL": "Chilenisch",
|
|
46
|
+
"CM": "Kamerunisch",
|
|
47
|
+
"CN": "Chinesisch",
|
|
48
|
+
"CO": "Kolumbianisch",
|
|
49
|
+
"CR": "Costa-ricanisch",
|
|
50
|
+
"CU": "Kubanisch",
|
|
51
|
+
"CV": "Kap-verdisch",
|
|
52
|
+
"CW": "Curaçao",
|
|
53
|
+
"CX": "Weihnachtsinsel",
|
|
54
|
+
"CY": "Zyprisch",
|
|
55
|
+
"CZ": "Tschechisch",
|
|
56
|
+
"DE": "Deutsch",
|
|
57
|
+
"DJ": "Dschibutisch",
|
|
58
|
+
"DK": "Dänisch",
|
|
59
|
+
"DM": "Dominicanisch (Dominica)",
|
|
60
|
+
"DO": "Dominikanisch (Dominikanische Republik)",
|
|
61
|
+
"DZ": "Algerisch",
|
|
62
|
+
"EC": "Ecuadorianisch",
|
|
63
|
+
"EE": "Estnisch",
|
|
64
|
+
"EG": "Ägyptisch",
|
|
65
|
+
"EH": "Westsahara",
|
|
66
|
+
"ER": "Eritreisch",
|
|
67
|
+
"ES": "Spanisch",
|
|
68
|
+
"ET": "Äthiopisch",
|
|
69
|
+
"FI": "Finnisch",
|
|
70
|
+
"FJ": "Fidschianisch",
|
|
71
|
+
"FK": "Falklandinseln",
|
|
72
|
+
"FM": "Mikronesisch",
|
|
73
|
+
"FO": "Färöer",
|
|
74
|
+
"FR": "Französisch",
|
|
75
|
+
"GA": "Gabunisch",
|
|
76
|
+
"GB": "Britisch",
|
|
77
|
+
"GD": "Grenadisch",
|
|
78
|
+
"GE": "Georgisch",
|
|
79
|
+
"GF": "Französisch (Französisch-Guayana)",
|
|
80
|
+
"GG": "Guernsey",
|
|
81
|
+
"GH": "Ghanaisch",
|
|
82
|
+
"GI": "Gibraltar",
|
|
83
|
+
"GL": "Grönland",
|
|
84
|
+
"GM": "Gambisch",
|
|
85
|
+
"GN": "Guineisch",
|
|
86
|
+
"GP": "Guadeloupe",
|
|
87
|
+
"GQ": "Äquatorialguineisch",
|
|
88
|
+
"GR": "Griechisch",
|
|
89
|
+
"GS": "Südgeorgien und die Südlichen Sandwichinseln",
|
|
90
|
+
"GT": "Guatemaltekisch",
|
|
91
|
+
"GU": "Guam",
|
|
92
|
+
"GW": "Guinea-bissauisch",
|
|
93
|
+
"GY": "Guyanisch",
|
|
94
|
+
"HK": "Hongkong",
|
|
95
|
+
"HM": "Heard und McDonaldinseln",
|
|
96
|
+
"HN": "Honduranisch",
|
|
97
|
+
"HR": "Kroatisch",
|
|
98
|
+
"HT": "Haitianisch",
|
|
99
|
+
"HU": "Ungarisch",
|
|
100
|
+
"ID": "Indonesisch",
|
|
101
|
+
"IE": "Irisch",
|
|
102
|
+
"IL": "Israelisch",
|
|
103
|
+
"IM": "Manx",
|
|
104
|
+
"IN": "Indisch",
|
|
105
|
+
"IO": "Britisches Territorium im Indischen Ozean",
|
|
106
|
+
"IQ": "Irakisch",
|
|
107
|
+
"IR": "Iranisch",
|
|
108
|
+
"IS": "Isländisch",
|
|
109
|
+
"IT": "Italienisch",
|
|
110
|
+
"JE": "Jersey",
|
|
111
|
+
"JM": "Jamaikanisch",
|
|
112
|
+
"JO": "Jordanisch",
|
|
113
|
+
"JP": "Japanisch",
|
|
114
|
+
"KE": "Kenianisch",
|
|
115
|
+
"KG": "Kirgisisch",
|
|
116
|
+
"KH": "Kambodschanisch",
|
|
117
|
+
"KI": "Kiribatisch",
|
|
118
|
+
"KM": "Komorisch",
|
|
119
|
+
"KN": "Kittitisch und nevisisch",
|
|
120
|
+
"KP": "Nordkoreanisch",
|
|
121
|
+
"KR": "Südkoreanisch",
|
|
122
|
+
"KW": "Kuwaitisch",
|
|
123
|
+
"KY": "Kaimaninseln",
|
|
124
|
+
"KZ": "Kasachisch",
|
|
125
|
+
"LA": "Laotisch",
|
|
126
|
+
"LB": "Libanesisch",
|
|
127
|
+
"LC": "Lucianisch",
|
|
128
|
+
"LI": "Liechtensteinisch",
|
|
129
|
+
"LK": "Sri-lankisch",
|
|
130
|
+
"LR": "Liberianisch",
|
|
131
|
+
"LS": "Lesothisch",
|
|
132
|
+
"LT": "Litauisch",
|
|
133
|
+
"LU": "Luxemburgisch",
|
|
134
|
+
"LV": "Lettisch",
|
|
135
|
+
"LY": "Libysch",
|
|
136
|
+
"MA": "Marokkanisch",
|
|
137
|
+
"MC": "Monegassisch",
|
|
138
|
+
"MD": "Moldauisch",
|
|
139
|
+
"ME": "Montenegrinisch",
|
|
140
|
+
"MF": "St. Martin",
|
|
141
|
+
"MG": "Madagassisch",
|
|
142
|
+
"MH": "Marshallisch",
|
|
143
|
+
"MK": "Nordmazedonisch",
|
|
144
|
+
"ML": "Malisch",
|
|
145
|
+
"MM": "Myanmarisch",
|
|
146
|
+
"MN": "Mongolisch",
|
|
147
|
+
"MO": "Macau",
|
|
148
|
+
"MP": "Nördliche Marianen",
|
|
149
|
+
"MQ": "Martinique",
|
|
150
|
+
"MR": "Mauretanisch",
|
|
151
|
+
"MS": "Montserrat",
|
|
152
|
+
"MT": "Maltesisch",
|
|
153
|
+
"MU": "Mauritisch",
|
|
154
|
+
"MV": "Maledivisch",
|
|
155
|
+
"MW": "Malawisch",
|
|
156
|
+
"MX": "Mexikanisch",
|
|
157
|
+
"MY": "Malaysisch",
|
|
158
|
+
"MZ": "Mosambikanisch",
|
|
159
|
+
"NA": "Namibisch",
|
|
160
|
+
"NC": "Neukaledonien",
|
|
161
|
+
"NE": "Nigrisch",
|
|
162
|
+
"NF": "Norfolkinsel",
|
|
163
|
+
"NG": "Nigerianisch",
|
|
164
|
+
"NI": "Nicaraguanisch",
|
|
165
|
+
"NL": "Niederländisch",
|
|
166
|
+
"NO": "Norwegisch",
|
|
167
|
+
"NP": "Nepalesisch",
|
|
168
|
+
"NR": "Nauruisch",
|
|
169
|
+
"NU": "Niue",
|
|
170
|
+
"NZ": "Neuseeländisch",
|
|
171
|
+
"OM": "Omanisch",
|
|
172
|
+
"PA": "Panamaisch",
|
|
173
|
+
"PE": "Peruanisch",
|
|
174
|
+
"PF": "Französisch (Französisch-Polynesien)",
|
|
175
|
+
"PG": "Papua-neuguineisch",
|
|
176
|
+
"PH": "Philippinisch",
|
|
177
|
+
"PK": "Pakistanisch",
|
|
178
|
+
"PL": "Polnisch",
|
|
179
|
+
"PM": "St. Pierre und Miquelon",
|
|
180
|
+
"PN": "Pitcairninseln",
|
|
181
|
+
"PR": "Puerto Rico",
|
|
182
|
+
"PS": "Palästina",
|
|
183
|
+
"PT": "Portugiesisch",
|
|
184
|
+
"PW": "Palauisch",
|
|
185
|
+
"PY": "Paraguayisch",
|
|
186
|
+
"QA": "Katarisch",
|
|
187
|
+
"RE": "Réunion",
|
|
188
|
+
"RO": "Rumänisch",
|
|
189
|
+
"RS": "Serbisch",
|
|
190
|
+
"RU": "Russisch",
|
|
191
|
+
"RW": "Ruandisch",
|
|
192
|
+
"SA": "Saudi-arabisch",
|
|
193
|
+
"SB": "Salomonisch",
|
|
194
|
+
"SC": "Seychellisch",
|
|
195
|
+
"SD": "Sudanesisch",
|
|
196
|
+
"SE": "Schwedisch",
|
|
197
|
+
"SG": "Singapurisch",
|
|
198
|
+
"SH": "St. Helena",
|
|
199
|
+
"SI": "Slowenisch",
|
|
200
|
+
"SJ": "Spitzbergen und Jan Mayen",
|
|
201
|
+
"SK": "Slowakisch",
|
|
202
|
+
"SL": "Sierra-leonisch",
|
|
203
|
+
"SM": "San-marinesisch",
|
|
204
|
+
"SN": "Senegalesisch",
|
|
205
|
+
"SO": "Somalisch",
|
|
206
|
+
"SR": "Surinamisch",
|
|
207
|
+
"SS": "Südsudanesisch",
|
|
208
|
+
"ST": "São-toméisch",
|
|
209
|
+
"SV": "Salvadorianisch",
|
|
210
|
+
"SX": "Sint Maarten",
|
|
211
|
+
"SY": "Syrisch",
|
|
212
|
+
"SZ": "Eswatinisch",
|
|
213
|
+
"TC": "Turks- und Caicosinseln",
|
|
214
|
+
"TD": "Tschadisch",
|
|
215
|
+
"TF": "Französisch (Französische Süd- und Antarktisgebiete)",
|
|
216
|
+
"TG": "Togoisch",
|
|
217
|
+
"TH": "Thailändisch",
|
|
218
|
+
"TJ": "Tadschikisch",
|
|
219
|
+
"TK": "Tokelau",
|
|
220
|
+
"TL": "Osttimoresisch",
|
|
221
|
+
"TM": "Turkmenisch",
|
|
222
|
+
"TN": "Tunesisch",
|
|
223
|
+
"TO": "Tongaisch",
|
|
224
|
+
"TR": "Türkisch",
|
|
225
|
+
"TT": "Trinidadisch oder tobagisch",
|
|
226
|
+
"TV": "Tuvaluisch",
|
|
227
|
+
"TW": "Taiwanisch",
|
|
228
|
+
"TZ": "Tansanisch",
|
|
229
|
+
"UA": "Ukrainisch",
|
|
230
|
+
"UG": "Ugandisch",
|
|
231
|
+
"UM": "Amerikanische Überseeinseln",
|
|
232
|
+
"US": "US-amerikanisch",
|
|
233
|
+
"UY": "Uruguayisch",
|
|
234
|
+
"UZ": "Usbekisch",
|
|
235
|
+
"VA": "Vatikanstadt",
|
|
236
|
+
"VC": "St. Vincent und die Grenadinen",
|
|
237
|
+
"VE": "Venezolanisch",
|
|
238
|
+
"VG": "Britische Jungferninseln",
|
|
239
|
+
"VI": "Amerikanische Jungferninseln",
|
|
240
|
+
"VN": "Vietnamesisch",
|
|
241
|
+
"VU": "Vanuatuisch",
|
|
242
|
+
"WF": "Wallis und Futuna",
|
|
243
|
+
"XK": "Kosovarisch",
|
|
244
|
+
"WS": "Samoanisch",
|
|
245
|
+
"YE": "Jemenitisch",
|
|
246
|
+
"YT": "Mayotte",
|
|
247
|
+
"ZA": "Südafrikanisch",
|
|
248
|
+
"ZM": "Sambisch",
|
|
249
|
+
"ZW": "Simbabwisch"
|
|
250
|
+
},
|
|
251
|
+
"countries": {
|
|
252
|
+
"AD": "Andorra",
|
|
253
|
+
"AE": "Vereinigte Arabische Emirate",
|
|
254
|
+
"AF": "Afghanistan",
|
|
255
|
+
"AG": "Antigua und Barbuda",
|
|
256
|
+
"AL": "Albanien",
|
|
257
|
+
"AM": "Armenien",
|
|
258
|
+
"AW": "Aruba",
|
|
259
|
+
"AO": "Angola",
|
|
260
|
+
"AR": "Argentinien",
|
|
261
|
+
"AT": "Österreich",
|
|
262
|
+
"AU": "Australien",
|
|
263
|
+
"AX": "Ålandinseln",
|
|
264
|
+
"AZ": "Aserbaidschan",
|
|
265
|
+
"BA": "Bosnien und Herzegowina",
|
|
266
|
+
"BB": "Barbados",
|
|
267
|
+
"BD": "Bangladesch",
|
|
268
|
+
"BE": "Belgien",
|
|
269
|
+
"BF": "Burkina Faso",
|
|
270
|
+
"BG": "Bulgarien",
|
|
271
|
+
"BH": "Bahrain",
|
|
272
|
+
"BI": "Burundi",
|
|
273
|
+
"BJ": "Benin",
|
|
274
|
+
"BL": "St. Barthélemy",
|
|
275
|
+
"BM": "Bermuda",
|
|
276
|
+
"BN": "Brunei Darussalam",
|
|
277
|
+
"BO": "Bolivien",
|
|
278
|
+
"BQ": "Karibische Niederlande",
|
|
279
|
+
"BR": "Brasilien",
|
|
280
|
+
"BS": "Bahamas",
|
|
281
|
+
"BT": "Bhutan",
|
|
282
|
+
"BV": "Bouvetinsel",
|
|
283
|
+
"BW": "Botsuana",
|
|
284
|
+
"BY": "Belarus",
|
|
285
|
+
"BZ": "Belize",
|
|
286
|
+
"CA": "Kanada",
|
|
287
|
+
"CC": "Kokosinseln",
|
|
288
|
+
"CD": "Kongo-Kinshasa",
|
|
289
|
+
"CF": "Zentralafrikanische Republik",
|
|
290
|
+
"CG": "Kongo-Brazzaville",
|
|
291
|
+
"CH": "Schweiz",
|
|
292
|
+
"CI": "Côte d’Ivoire",
|
|
293
|
+
"CK": "Cookinseln",
|
|
294
|
+
"CL": "Chile",
|
|
295
|
+
"CM": "Kamerun",
|
|
296
|
+
"CN": "China",
|
|
297
|
+
"CO": "Kolumbien",
|
|
298
|
+
"CR": "Costa Rica",
|
|
299
|
+
"CU": "Kuba",
|
|
300
|
+
"CV": "Cabo Verde",
|
|
301
|
+
"CW": "Curaçao",
|
|
302
|
+
"CX": "Weihnachtsinsel",
|
|
303
|
+
"CY": "Zypern",
|
|
304
|
+
"CZ": "Tschechien",
|
|
305
|
+
"DE": "Deutschland",
|
|
306
|
+
"DJ": "Dschibuti",
|
|
307
|
+
"DK": "Dänemark",
|
|
308
|
+
"DM": "Dominica",
|
|
309
|
+
"DO": "Dominikanische Republik",
|
|
310
|
+
"DZ": "Algerien",
|
|
311
|
+
"EC": "Ecuador",
|
|
312
|
+
"EE": "Estland",
|
|
313
|
+
"EG": "Ägypten",
|
|
314
|
+
"EH": "Westsahara",
|
|
315
|
+
"ER": "Eritrea",
|
|
316
|
+
"ES": "Spanien",
|
|
317
|
+
"ET": "Äthiopien",
|
|
318
|
+
"FI": "Finnland",
|
|
319
|
+
"FJ": "Fidschi",
|
|
320
|
+
"FK": "Falklandinseln",
|
|
321
|
+
"FM": "Mikronesien",
|
|
322
|
+
"FO": "Färöer",
|
|
323
|
+
"FR": "Frankreich",
|
|
324
|
+
"GA": "Gabun",
|
|
325
|
+
"GB": "Vereinigtes Königreich",
|
|
326
|
+
"GD": "Grenada",
|
|
327
|
+
"GE": "Georgien",
|
|
328
|
+
"GF": "Französisch-Guayana",
|
|
329
|
+
"GG": "Guernsey",
|
|
330
|
+
"GH": "Ghana",
|
|
331
|
+
"GI": "Gibraltar",
|
|
332
|
+
"GL": "Grönland",
|
|
333
|
+
"GM": "Gambia",
|
|
334
|
+
"GN": "Guinea",
|
|
335
|
+
"GP": "Guadeloupe",
|
|
336
|
+
"GQ": "Äquatorialguinea",
|
|
337
|
+
"GR": "Griechenland",
|
|
338
|
+
"GS": "Südgeorgien und die Südlichen Sandwichinseln",
|
|
339
|
+
"GT": "Guatemala",
|
|
340
|
+
"GU": "Guam",
|
|
341
|
+
"GW": "Guinea-Bissau",
|
|
342
|
+
"GY": "Guyana",
|
|
343
|
+
"HK": "Hongkong",
|
|
344
|
+
"HM": "Heard und McDonaldinseln",
|
|
345
|
+
"HN": "Honduras",
|
|
346
|
+
"HR": "Kroatien",
|
|
347
|
+
"HT": "Haiti",
|
|
348
|
+
"HU": "Ungarn",
|
|
349
|
+
"ID": "Indonesien",
|
|
350
|
+
"IE": "Irland",
|
|
351
|
+
"IL": "Israel",
|
|
352
|
+
"IM": "Isle of Man",
|
|
353
|
+
"IN": "Indien",
|
|
354
|
+
"IO": "Britisches Territorium im Indischen Ozean",
|
|
355
|
+
"IQ": "Irak",
|
|
356
|
+
"IR": "Iran",
|
|
357
|
+
"IS": "Island",
|
|
358
|
+
"IT": "Italien",
|
|
359
|
+
"JE": "Jersey",
|
|
360
|
+
"JM": "Jamaika",
|
|
361
|
+
"JO": "Jordanien",
|
|
362
|
+
"JP": "Japan",
|
|
363
|
+
"KE": "Kenia",
|
|
364
|
+
"KG": "Kirgisistan",
|
|
365
|
+
"KH": "Kambodscha",
|
|
366
|
+
"KI": "Kiribati",
|
|
367
|
+
"KM": "Komoren",
|
|
368
|
+
"KN": "St. Kitts und Nevis",
|
|
369
|
+
"KP": "Nordkorea",
|
|
370
|
+
"KR": "Südkorea",
|
|
371
|
+
"KW": "Kuwait",
|
|
372
|
+
"KY": "Kaimaninseln",
|
|
373
|
+
"KZ": "Kasachstan",
|
|
374
|
+
"LA": "Laos",
|
|
375
|
+
"LB": "Libanon",
|
|
376
|
+
"LC": "St. Lucia",
|
|
377
|
+
"LI": "Liechtenstein",
|
|
378
|
+
"LK": "Sri Lanka",
|
|
379
|
+
"LR": "Liberia",
|
|
380
|
+
"LS": "Lesotho",
|
|
381
|
+
"LT": "Litauen",
|
|
382
|
+
"LU": "Luxemburg",
|
|
383
|
+
"LV": "Lettland",
|
|
384
|
+
"LY": "Libyen",
|
|
385
|
+
"MA": "Marokko",
|
|
386
|
+
"MC": "Monaco",
|
|
387
|
+
"MD": "Republik Moldau",
|
|
388
|
+
"ME": "Montenegro",
|
|
389
|
+
"MF": "St. Martin",
|
|
390
|
+
"MG": "Madagaskar",
|
|
391
|
+
"MH": "Marshallinseln",
|
|
392
|
+
"MK": "Nordmazedonien",
|
|
393
|
+
"ML": "Mali",
|
|
394
|
+
"MM": "Myanmar",
|
|
395
|
+
"MN": "Mongolei",
|
|
396
|
+
"MO": "Macau",
|
|
397
|
+
"MP": "Nördliche Marianen",
|
|
398
|
+
"MQ": "Martinique",
|
|
399
|
+
"MR": "Mauretanien",
|
|
400
|
+
"MS": "Montserrat",
|
|
401
|
+
"MT": "Malta",
|
|
402
|
+
"MU": "Mauritius",
|
|
403
|
+
"MV": "Malediven",
|
|
404
|
+
"MW": "Malawi",
|
|
405
|
+
"MX": "Mexiko",
|
|
406
|
+
"MY": "Malaysia",
|
|
407
|
+
"MZ": "Mosambik",
|
|
408
|
+
"NA": "Namibia",
|
|
409
|
+
"NC": "Neukaledonien",
|
|
410
|
+
"NE": "Niger",
|
|
411
|
+
"NF": "Norfolkinsel",
|
|
412
|
+
"NG": "Nigeria",
|
|
413
|
+
"NI": "Nicaragua",
|
|
414
|
+
"NL": "Niederlande",
|
|
415
|
+
"NO": "Norwegen",
|
|
416
|
+
"NP": "Nepal",
|
|
417
|
+
"NR": "Nauru",
|
|
418
|
+
"NU": "Niue",
|
|
419
|
+
"NZ": "Neuseeland",
|
|
420
|
+
"OM": "Oman",
|
|
421
|
+
"PA": "Panama",
|
|
422
|
+
"PE": "Peru",
|
|
423
|
+
"PF": "Französisch-Polynesien",
|
|
424
|
+
"PG": "Papua-Neuguinea",
|
|
425
|
+
"PH": "Philippinen",
|
|
426
|
+
"PK": "Pakistan",
|
|
427
|
+
"PL": "Polen",
|
|
428
|
+
"PM": "St. Pierre und Miquelon",
|
|
429
|
+
"PN": "Pitcairninseln",
|
|
430
|
+
"PR": "Puerto Rico",
|
|
431
|
+
"PS": "Palästina",
|
|
432
|
+
"PT": "Portugal",
|
|
433
|
+
"PW": "Palau",
|
|
434
|
+
"PY": "Paraguay",
|
|
435
|
+
"QA": "Katar",
|
|
436
|
+
"RE": "Réunion",
|
|
437
|
+
"RO": "Rumänien",
|
|
438
|
+
"RS": "Serbien",
|
|
439
|
+
"RU": "Russland",
|
|
440
|
+
"RW": "Ruanda",
|
|
441
|
+
"SA": "Saudi-Arabien",
|
|
442
|
+
"SB": "Salomonen",
|
|
443
|
+
"SC": "Seychellen",
|
|
444
|
+
"SD": "Sudan",
|
|
445
|
+
"SE": "Schweden",
|
|
446
|
+
"SG": "Singapur",
|
|
447
|
+
"SH": "St. Helena",
|
|
448
|
+
"SI": "Slowenien",
|
|
449
|
+
"SJ": "Spitzbergen und Jan Mayen",
|
|
450
|
+
"SK": "Slowakei",
|
|
451
|
+
"SL": "Sierra Leone",
|
|
452
|
+
"SM": "San Marino",
|
|
453
|
+
"SN": "Senegal",
|
|
454
|
+
"SO": "Somalia",
|
|
455
|
+
"SR": "Suriname",
|
|
456
|
+
"SS": "Südsudan",
|
|
457
|
+
"ST": "São Tomé und Príncipe",
|
|
458
|
+
"SV": "El Salvador",
|
|
459
|
+
"SX": "Sint Maarten",
|
|
460
|
+
"SY": "Syrien",
|
|
461
|
+
"SZ": "Eswatini",
|
|
462
|
+
"TC": "Turks- und Caicosinseln",
|
|
463
|
+
"TD": "Tschad",
|
|
464
|
+
"TF": "Französische Süd- und Antarktisgebiete",
|
|
465
|
+
"TG": "Togo",
|
|
466
|
+
"TH": "Thailand",
|
|
467
|
+
"TJ": "Tadschikistan",
|
|
468
|
+
"TK": "Tokelau",
|
|
469
|
+
"TL": "Timor-Leste",
|
|
470
|
+
"TM": "Turkmenistan",
|
|
471
|
+
"TN": "Tunesien",
|
|
472
|
+
"TO": "Tonga",
|
|
473
|
+
"TR": "Türkei",
|
|
474
|
+
"TT": "Trinidad und Tobago",
|
|
475
|
+
"TV": "Tuvalu",
|
|
476
|
+
"TW": "Taiwan",
|
|
477
|
+
"TZ": "Tansania",
|
|
478
|
+
"UA": "Ukraine",
|
|
479
|
+
"UG": "Uganda",
|
|
480
|
+
"UM": "Amerikanische Überseeinseln",
|
|
481
|
+
"US": "Vereinigte Staaten",
|
|
482
|
+
"UY": "Uruguay",
|
|
483
|
+
"UZ": "Usbekistan",
|
|
484
|
+
"VA": "Vatikanstadt",
|
|
485
|
+
"VC": "St. Vincent und die Grenadinen",
|
|
486
|
+
"VE": "Venezuela",
|
|
487
|
+
"VG": "Britische Jungferninseln",
|
|
488
|
+
"VI": "Amerikanische Jungferninseln",
|
|
489
|
+
"VN": "Vietnam",
|
|
490
|
+
"VU": "Vanuatu",
|
|
491
|
+
"WF": "Wallis und Futuna",
|
|
492
|
+
"XK": "Kosovo",
|
|
493
|
+
"WS": "Samoa",
|
|
494
|
+
"YE": "Jemen",
|
|
495
|
+
"YT": "Mayotte",
|
|
496
|
+
"ZA": "Südafrika",
|
|
497
|
+
"ZM": "Sambia",
|
|
498
|
+
"ZW": "Simbabwe"
|
|
499
|
+
}
|
|
500
|
+
}
|