@bottlebooks/valid-values 1.1.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/core/translate.d.ts +3 -0
  3. package/dist/core/translate.d.ts.map +1 -0
  4. package/dist/core/translate.js +42 -0
  5. package/dist/index.d.ts +1 -2
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +9 -10
  8. package/dist/main.js +23 -17
  9. package/dist/validValues/award.d.ts +6 -2
  10. package/dist/validValues/award.d.ts.map +1 -1
  11. package/dist/validValues/award.js +29 -236
  12. package/dist/validValues/awardMedal.d.ts +1 -1
  13. package/dist/validValues/beerStyle.d.ts +1 -1
  14. package/dist/validValues/certification.d.ts +1 -1
  15. package/dist/validValues/country.d.ts +7 -2
  16. package/dist/validValues/country.d.ts.map +1 -1
  17. package/dist/validValues/country.js +2 -149
  18. package/dist/validValues/designation.d.ts +0 -115
  19. package/dist/validValues/designation.d.ts.map +1 -1
  20. package/dist/validValues/ingredient.d.ts +1 -1
  21. package/dist/validValues/ingredient.d.ts.map +1 -1
  22. package/dist/validValues/ingredient.js +37 -33
  23. package/dist/validValues/packagingCertification.d.ts +1 -1
  24. package/dist/validValues/productType.d.ts +6 -2
  25. package/dist/validValues/productType.d.ts.map +1 -1
  26. package/dist/validValues/productType.js +39 -78
  27. package/dist/validValues/productionMethod.d.ts +1 -1
  28. package/dist/validValues/region.d.ts +14 -17
  29. package/dist/validValues/region.d.ts.map +1 -1
  30. package/dist/validValues/region.js +4804 -5250
  31. package/dist/validValues/responsibleConsumptionLogo.d.ts +1 -1
  32. package/dist/validValues/subregion.d.ts +10 -17
  33. package/dist/validValues/subregion.d.ts.map +1 -1
  34. package/dist/validValues/subregion.js +11115 -13852
  35. package/dist/validValues/types/ProductType.d.ts.map +1 -1
  36. package/dist/validValues/types/ValidValueDefinition.d.ts +1 -1
  37. package/dist/validValues/types/ValidValueDefinition.d.ts.map +1 -1
  38. package/dist/validValues/types/award_p85_100.d.ts +3 -0
  39. package/dist/validValues/types/award_p85_100.d.ts.map +1 -0
  40. package/dist/validValues/types/award_p85_100.js +9 -0
  41. package/dist/validValues/types/productTypesSpirit.d.ts +4 -0
  42. package/dist/validValues/types/productTypesSpirit.d.ts.map +1 -0
  43. package/dist/validValues/types/productTypesSpirit.js +9 -0
  44. package/dist/validValues/types/productTypesWine.d.ts +4 -0
  45. package/dist/validValues/types/productTypesWine.d.ts.map +1 -0
  46. package/dist/validValues/types/productTypesWine.js +9 -0
  47. package/dist/validValues/utils/createValidValues.d.ts +1 -1
  48. package/dist/validValues/utils/createValidValues.d.ts.map +1 -1
  49. package/dist/validValues/utils/createValidValues.js +50 -53
  50. package/dist/validValues/varietyName.d.ts +1 -1
  51. package/dist/validValues/wineColor.d.ts +1 -1
  52. package/dist/validValues/wineType.d.ts +1 -1
  53. package/package.json +2 -2
  54. package/region.ts +0 -0
  55. package/src/core/translate.ts +40 -0
  56. package/src/index.ts +1 -6
  57. package/src/locales/po/bg.po +2110 -2110
  58. package/src/locales/po/de.po +2110 -2110
  59. package/src/locales/po/ee.po +2110 -2110
  60. package/src/locales/po/en.po +2110 -2110
  61. package/src/locales/po/es.po +2110 -2110
  62. package/src/locales/po/fi.po +2110 -2110
  63. package/src/locales/po/fr.po +2110 -2110
  64. package/src/locales/po/hr.po +2110 -2110
  65. package/src/locales/po/hu.po +2110 -2110
  66. package/src/locales/po/it.po +2110 -2110
  67. package/src/locales/po/lt.po +2110 -2110
  68. package/src/locales/po/lv.po +2110 -2110
  69. package/src/locales/po/mt.po +2110 -2110
  70. package/src/locales/po/nl.po +2110 -2110
  71. package/src/locales/po/pl.po +2110 -2110
  72. package/src/locales/po/pt.po +2110 -2110
  73. package/src/locales/po/ro.po +2110 -2110
  74. package/src/locales/po/se.po +2110 -2110
  75. package/src/locales/po/si.po +2110 -2110
  76. package/src/locales/po/sk.po +2110 -2110
  77. package/src/main.ts +39 -29
  78. package/src/validValues/award.ts +242 -709
  79. package/src/validValues/country.ts +7 -148
  80. package/src/validValues/designation.ts +0 -5
  81. package/src/validValues/ingredient.ts +35 -343
  82. package/src/validValues/productType.ts +7 -40
  83. package/src/validValues/region.ts +514 -479
  84. package/src/validValues/subregion.ts +1429 -2775
  85. package/src/validValues/types/ProductType.ts +0 -1
  86. package/src/validValues/types/ValidValueDefinition.ts +1 -1
  87. package/src/validValues/types/award_p85_100.ts +19 -0
  88. package/src/validValues/types/productTypesSpirit.ts +38 -0
  89. package/src/validValues/types/productTypesWine.ts +10 -0
  90. package/src/validValues/utils/createValidValues.ts +52 -50
  91. package/dist/validValues/types/Country.js +0 -5
  92. package/src/validValues/types/Award.ts +0 -39
  93. package/src/validValues/types/Country.ts +0 -39
@@ -19,8 +19,7 @@ var _default = (0, _createValidValues["default"])({
19
19
  {
20
20
  id: 'validValues.productType.beer',
21
21
  message: 'Beer'
22
- },
23
- form: {}
22
+ }
24
23
  },
25
24
  spirit_absinthe: {
26
25
  key: 'spirit_absinthe',
@@ -29,8 +28,7 @@ var _default = (0, _createValidValues["default"])({
29
28
  {
30
29
  id: 'validValues.productType.spirit_absinthe',
31
30
  message: 'Absinthe'
32
- },
33
- form: {}
31
+ }
34
32
  },
35
33
  spirit_anise: {
36
34
  key: 'spirit_anise',
@@ -39,8 +37,7 @@ var _default = (0, _createValidValues["default"])({
39
37
  {
40
38
  id: 'validValues.productType.spirit_anise',
41
39
  message: 'Anise'
42
- },
43
- form: {}
40
+ }
44
41
  },
45
42
  spirit_aquavit: {
46
43
  key: 'spirit_aquavit',
@@ -49,8 +46,7 @@ var _default = (0, _createValidValues["default"])({
49
46
  {
50
47
  id: 'validValues.productType.spirit_aquavit',
51
48
  message: 'Aquavit'
52
- },
53
- form: {}
49
+ }
54
50
  },
55
51
  spirit_arak: {
56
52
  key: 'spirit_arak',
@@ -59,8 +55,7 @@ var _default = (0, _createValidValues["default"])({
59
55
  {
60
56
  id: 'validValues.productType.spirit_arak',
61
57
  message: 'Arak'
62
- },
63
- form: {}
58
+ }
64
59
  },
65
60
  spirit_armagnac: {
66
61
  key: 'spirit_armagnac',
@@ -69,8 +64,7 @@ var _default = (0, _createValidValues["default"])({
69
64
  {
70
65
  id: 'validValues.productType.spirit_armagnac',
71
66
  message: 'Armagnac'
72
- },
73
- form: {}
67
+ }
74
68
  },
75
69
  spirit_asianspirit: {
76
70
  key: 'spirit_asianspirit',
@@ -79,8 +73,7 @@ var _default = (0, _createValidValues["default"])({
79
73
  {
80
74
  id: 'validValues.productType.spirit_asianspirit',
81
75
  message: 'Asian Spirit'
82
- },
83
- form: {}
76
+ }
84
77
  },
85
78
  spirit_bitter: {
86
79
  key: 'spirit_bitter',
@@ -89,8 +82,7 @@ var _default = (0, _createValidValues["default"])({
89
82
  {
90
83
  id: 'validValues.productType.spirit_bitter',
91
84
  message: 'Bitter'
92
- },
93
- form: {}
85
+ }
94
86
  },
95
87
  spirit_cachaca: {
96
88
  key: 'spirit_cachaca',
@@ -99,8 +91,7 @@ var _default = (0, _createValidValues["default"])({
99
91
  {
100
92
  id: 'validValues.productType.spirit_cachaca',
101
93
  message: 'Cachaca'
102
- },
103
- form: {}
94
+ }
104
95
  },
105
96
  spirit_calvados: {
106
97
  key: 'spirit_calvados',
@@ -109,8 +100,7 @@ var _default = (0, _createValidValues["default"])({
109
100
  {
110
101
  id: 'validValues.productType.spirit_calvados',
111
102
  message: 'Calvados'
112
- },
113
- form: {}
103
+ }
114
104
  },
115
105
  spirit_cocktail: {
116
106
  key: 'spirit_cocktail',
@@ -119,8 +109,7 @@ var _default = (0, _createValidValues["default"])({
119
109
  {
120
110
  id: 'validValues.productType.spirit_cocktail',
121
111
  message: 'Cocktail'
122
- },
123
- form: {}
112
+ }
124
113
  },
125
114
  spirit_cognac: {
126
115
  key: 'spirit_cognac',
@@ -129,8 +118,7 @@ var _default = (0, _createValidValues["default"])({
129
118
  {
130
119
  id: 'validValues.productType.spirit_cognac',
131
120
  message: 'Cognac'
132
- },
133
- form: {}
121
+ }
134
122
  },
135
123
  spirit_fruitspirit: {
136
124
  key: 'spirit_fruitspirit',
@@ -139,8 +127,7 @@ var _default = (0, _createValidValues["default"])({
139
127
  {
140
128
  id: 'validValues.productType.spirit_fruitspirit',
141
129
  message: 'Fruit Spirit'
142
- },
143
- form: {}
130
+ }
144
131
  },
145
132
  spirit_genever: {
146
133
  key: 'spirit_genever',
@@ -149,8 +136,7 @@ var _default = (0, _createValidValues["default"])({
149
136
  {
150
137
  id: 'validValues.productType.spirit_genever',
151
138
  message: 'Genever'
152
- },
153
- form: {}
139
+ }
154
140
  },
155
141
  spirit_gin: {
156
142
  key: 'spirit_gin',
@@ -159,8 +145,7 @@ var _default = (0, _createValidValues["default"])({
159
145
  {
160
146
  id: 'validValues.productType.spirit_gin',
161
147
  message: 'Gin'
162
- },
163
- form: {}
148
+ }
164
149
  },
165
150
  spirit_grainspirit: {
166
151
  key: 'spirit_grainspirit',
@@ -169,8 +154,7 @@ var _default = (0, _createValidValues["default"])({
169
154
  {
170
155
  id: 'validValues.productType.spirit_grainspirit',
171
156
  message: 'Grain spirit'
172
- },
173
- form: {}
157
+ }
174
158
  },
175
159
  spirit_grapebrandy: {
176
160
  key: 'spirit_grapebrandy',
@@ -179,8 +163,7 @@ var _default = (0, _createValidValues["default"])({
179
163
  {
180
164
  id: 'validValues.productType.spirit_grapebrandy',
181
165
  message: 'Grape Brandy'
182
- },
183
- form: {}
166
+ }
184
167
  },
185
168
  spirit_grappa: {
186
169
  key: 'spirit_grappa',
@@ -189,8 +172,7 @@ var _default = (0, _createValidValues["default"])({
189
172
  {
190
173
  id: 'validValues.productType.spirit_grappa',
191
174
  message: 'Grappa'
192
- },
193
- form: {}
175
+ }
194
176
  },
195
177
  spirit_liqueur: {
196
178
  key: 'spirit_liqueur',
@@ -199,8 +181,7 @@ var _default = (0, _createValidValues["default"])({
199
181
  {
200
182
  id: 'validValues.productType.spirit_liqueur',
201
183
  message: 'Liqueurs'
202
- },
203
- form: {}
184
+ }
204
185
  },
205
186
  spirit_marc: {
206
187
  key: 'spirit_marc',
@@ -209,8 +190,7 @@ var _default = (0, _createValidValues["default"])({
209
190
  {
210
191
  id: 'validValues.productType.spirit_marc',
211
192
  message: 'Marc'
212
- },
213
- form: {}
193
+ }
214
194
  },
215
195
  spirit_mezcal: {
216
196
  key: 'spirit_mezcal',
@@ -219,8 +199,7 @@ var _default = (0, _createValidValues["default"])({
219
199
  {
220
200
  id: 'validValues.productType.spirit_mezcal',
221
201
  message: 'Mezcal'
222
- },
223
- form: {}
202
+ }
224
203
  },
225
204
  spirit_miscspririt: {
226
205
  key: 'spirit_miscspririt',
@@ -229,8 +208,7 @@ var _default = (0, _createValidValues["default"])({
229
208
  {
230
209
  id: 'validValues.productType.spirit_miscspririt',
231
210
  message: 'Miscellaneous'
232
- },
233
- form: {}
211
+ }
234
212
  },
235
213
  spirit_ouzo: {
236
214
  key: 'spirit_ouzo',
@@ -239,8 +217,7 @@ var _default = (0, _createValidValues["default"])({
239
217
  {
240
218
  id: 'validValues.productType.spirit_ouzo',
241
219
  message: 'Ouzo'
242
- },
243
- form: {}
220
+ }
244
221
  },
245
222
  spirit_pastis: {
246
223
  key: 'spirit_pastis',
@@ -249,8 +226,7 @@ var _default = (0, _createValidValues["default"])({
249
226
  {
250
227
  id: 'validValues.productType.spirit_pastis',
251
228
  message: 'Pastis'
252
- },
253
- form: {}
229
+ }
254
230
  },
255
231
  spirit_pisco: {
256
232
  key: 'spirit_pisco',
@@ -259,8 +235,7 @@ var _default = (0, _createValidValues["default"])({
259
235
  {
260
236
  id: 'validValues.productType.spirit_pisco',
261
237
  message: 'Pisco'
262
- },
263
- form: {}
238
+ }
264
239
  },
265
240
  spirit_raki: {
266
241
  key: 'spirit_raki',
@@ -269,8 +244,7 @@ var _default = (0, _createValidValues["default"])({
269
244
  {
270
245
  id: 'validValues.productType.spirit_raki',
271
246
  message: 'Raki'
272
- },
273
- form: {}
247
+ }
274
248
  },
275
249
  spirit_rum: {
276
250
  key: 'spirit_rum',
@@ -279,8 +253,7 @@ var _default = (0, _createValidValues["default"])({
279
253
  {
280
254
  id: 'validValues.productType.spirit_rum',
281
255
  message: 'Rum'
282
- },
283
- form: {}
256
+ }
284
257
  },
285
258
  spirit_sambuca: {
286
259
  key: 'spirit_sambuca',
@@ -289,8 +262,7 @@ var _default = (0, _createValidValues["default"])({
289
262
  {
290
263
  id: 'validValues.productType.spirit_sambuca',
291
264
  message: 'Sambuca'
292
- },
293
- form: {}
265
+ }
294
266
  },
295
267
  spirit_schnaps: {
296
268
  key: 'spirit_schnaps',
@@ -299,8 +271,7 @@ var _default = (0, _createValidValues["default"])({
299
271
  {
300
272
  id: 'validValues.productType.spirit_schnaps',
301
273
  message: 'Edelbrand/Schnaps'
302
- },
303
- form: {}
274
+ }
304
275
  },
305
276
  spirit_shochu: {
306
277
  key: 'spirit_shochu',
@@ -309,8 +280,7 @@ var _default = (0, _createValidValues["default"])({
309
280
  {
310
281
  id: 'validValues.productType.spirit_shochu',
311
282
  message: 'Shochu'
312
- },
313
- form: {}
283
+ }
314
284
  },
315
285
  spirit_tequila: {
316
286
  key: 'spirit_tequila',
@@ -319,8 +289,7 @@ var _default = (0, _createValidValues["default"])({
319
289
  {
320
290
  id: 'validValues.productType.spirit_tequila',
321
291
  message: 'Tequila'
322
- },
323
- form: {}
292
+ }
324
293
  },
325
294
  spirit_vermouth: {
326
295
  key: 'spirit_vermouth',
@@ -329,8 +298,7 @@ var _default = (0, _createValidValues["default"])({
329
298
  {
330
299
  id: 'validValues.productType.spirit_vermouth',
331
300
  message: 'Vermouth'
332
- },
333
- form: {}
301
+ }
334
302
  },
335
303
  spirit_vodka: {
336
304
  key: 'spirit_vodka',
@@ -339,8 +307,7 @@ var _default = (0, _createValidValues["default"])({
339
307
  {
340
308
  id: 'validValues.productType.spirit_vodka',
341
309
  message: 'Vodka'
342
- },
343
- form: {}
310
+ }
344
311
  },
345
312
  spirit_whisky: {
346
313
  key: 'spirit_whisky',
@@ -349,8 +316,7 @@ var _default = (0, _createValidValues["default"])({
349
316
  {
350
317
  id: 'validValues.productType.spirit_whisky',
351
318
  message: 'Whisky'
352
- },
353
- form: {}
319
+ }
354
320
  },
355
321
  wine_aromatized: {
356
322
  key: 'wine_aromatized',
@@ -359,8 +325,7 @@ var _default = (0, _createValidValues["default"])({
359
325
  {
360
326
  id: 'validValues.productType.wine_aromatized',
361
327
  message: 'Aromatized wine'
362
- },
363
- form: {}
328
+ }
364
329
  },
365
330
  wine_fortified: {
366
331
  key: 'wine_fortified',
@@ -369,8 +334,7 @@ var _default = (0, _createValidValues["default"])({
369
334
  {
370
335
  id: 'validValues.productType.wine_fortified',
371
336
  message: 'Fortified wine'
372
- },
373
- form: {}
337
+ }
374
338
  },
375
339
  wine_pearlwine: {
376
340
  key: 'wine_pearlwine',
@@ -379,8 +343,7 @@ var _default = (0, _createValidValues["default"])({
379
343
  {
380
344
  id: 'validValues.productType.wine_pearlwine',
381
345
  message: 'Pearl wine'
382
- },
383
- form: {}
346
+ }
384
347
  },
385
348
  wine_sparkling: {
386
349
  key: 'wine_sparkling',
@@ -389,8 +352,7 @@ var _default = (0, _createValidValues["default"])({
389
352
  {
390
353
  id: 'validValues.productType.wine_sparkling',
391
354
  message: 'Sparkling wine'
392
- },
393
- form: {}
355
+ }
394
356
  },
395
357
  wine_stillwine: {
396
358
  key: 'wine_stillwine',
@@ -399,8 +361,7 @@ var _default = (0, _createValidValues["default"])({
399
361
  {
400
362
  id: 'validValues.productType.wine_stillwine',
401
363
  message: 'Still wine'
402
- },
403
- form: {}
364
+ }
404
365
  }
405
366
  });
406
367
 
@@ -2,7 +2,7 @@ import { ValidValueDefinition } from './types/ValidValueDefinition';
2
2
  export interface ProductionMethod extends ValidValueDefinition {
3
3
  }
4
4
  declare const _default: {
5
- list: () => ({
5
+ list: ({
6
6
  id: string;
7
7
  } & ProductionMethod & {
8
8
  getTitle: (locale?: "de" | "en" | "es" | "fr" | "it" | "pt" | "sk" | "bg" | "hr" | "nl" | "ee" | "fi" | "hu" | "lv" | "lt" | "mt" | "pl" | "ro" | "si" | "se" | undefined) => string;
@@ -1,21 +1,18 @@
1
- import { Region } from './types/Region';
2
1
  declare const _default: {
3
- list: () => ({
4
- id: string;
5
- } & Region & {
6
- getTitle: (locale?: "de" | "en" | "es" | "fr" | "it" | "pt" | "sk" | "bg" | "hr" | "nl" | "ee" | "fi" | "hu" | "lv" | "lt" | "mt" | "pl" | "ro" | "si" | "se" | undefined) => string;
7
- getTitles(locales?: ("de" | "en" | "es" | "fr" | "it" | "pt" | "sk" | "bg" | "hr" | "nl" | "ee" | "fi" | "hu" | "lv" | "lt" | "mt" | "pl" | "ro" | "si" | "se")[]): Record<"de" | "en" | "es" | "fr" | "it" | "pt" | "sk" | "bg" | "hr" | "nl" | "ee" | "fi" | "hu" | "lv" | "lt" | "mt" | "pl" | "ro" | "si" | "se", string>;
8
- form: {} | undefined;
9
- })[];
10
- byId: () => {
11
- [k: string]: {
12
- id: string;
13
- } & Region & {
14
- getTitle: (locale?: "de" | "en" | "es" | "fr" | "it" | "pt" | "sk" | "bg" | "hr" | "nl" | "ee" | "fi" | "hu" | "lv" | "lt" | "mt" | "pl" | "ro" | "si" | "se" | undefined) => string;
15
- getTitles(locales?: ("de" | "en" | "es" | "fr" | "it" | "pt" | "sk" | "bg" | "hr" | "nl" | "ee" | "fi" | "hu" | "lv" | "lt" | "mt" | "pl" | "ro" | "si" | "se")[]): Record<"de" | "en" | "es" | "fr" | "it" | "pt" | "sk" | "bg" | "hr" | "nl" | "ee" | "fi" | "hu" | "lv" | "lt" | "mt" | "pl" | "ro" | "si" | "se", string>;
16
- form: {} | undefined;
17
- };
18
- };
2
+ byCountry: {};
3
+ listByCountry: {};
4
+ list: {
5
+ key: string;
6
+ title: import("@lingui/core").MessageDescriptor;
7
+ form: {};
8
+ subregions: string[];
9
+ }[];
10
+ byId: {
11
+ key: string;
12
+ title: import("@lingui/core").MessageDescriptor;
13
+ form: {};
14
+ subregions: string[];
15
+ }[];
19
16
  };
20
17
  export default _default;
21
18
  //# sourceMappingURL=region.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"region.d.ts","sourceRoot":"","sources":["../../src/validValues/region.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;AACxC,wBAuqLG"}
1
+ {"version":3,"file":"region.d.ts","sourceRoot":"","sources":["../../src/validValues/region.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAwsLA,wBAKE"}