@bottlebooks/valid-values 2.0.1 → 3.0.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.
Files changed (238) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +2 -1
  3. package/dist/core/translate.d.ts +2 -2
  4. package/dist/core/translate.d.ts.map +1 -1
  5. package/dist/core/translate.js +3 -3
  6. package/dist/index.d.ts +2 -0
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +7 -1
  9. package/dist/locales/po/bg.d.ts +2 -0
  10. package/dist/locales/po/bg.d.ts.map +1 -1
  11. package/dist/locales/po/bg.js +2 -0
  12. package/dist/locales/po/cs.d.ts +2 -0
  13. package/dist/locales/po/cs.d.ts.map +1 -1
  14. package/dist/locales/po/cs.js +2 -0
  15. package/dist/locales/po/da.d.ts +2 -0
  16. package/dist/locales/po/da.d.ts.map +1 -1
  17. package/dist/locales/po/da.js +2 -0
  18. package/dist/locales/po/de.d.ts +2 -0
  19. package/dist/locales/po/de.d.ts.map +1 -1
  20. package/dist/locales/po/de.js +2 -0
  21. package/dist/locales/po/ee.d.ts +2 -0
  22. package/dist/locales/po/ee.d.ts.map +1 -1
  23. package/dist/locales/po/ee.js +2 -0
  24. package/dist/locales/po/el.d.ts +2 -0
  25. package/dist/locales/po/el.d.ts.map +1 -1
  26. package/dist/locales/po/el.js +2 -0
  27. package/dist/locales/po/en.d.ts +2 -0
  28. package/dist/locales/po/en.d.ts.map +1 -1
  29. package/dist/locales/po/en.js +2 -0
  30. package/dist/locales/po/es.d.ts +2 -0
  31. package/dist/locales/po/es.d.ts.map +1 -1
  32. package/dist/locales/po/es.js +2 -0
  33. package/dist/locales/po/fi.d.ts +2 -0
  34. package/dist/locales/po/fi.d.ts.map +1 -1
  35. package/dist/locales/po/fi.js +2 -0
  36. package/dist/locales/po/fr.d.ts +2 -0
  37. package/dist/locales/po/fr.d.ts.map +1 -1
  38. package/dist/locales/po/fr.js +2 -0
  39. package/dist/locales/po/ga.d.ts +2 -0
  40. package/dist/locales/po/ga.d.ts.map +1 -1
  41. package/dist/locales/po/ga.js +2 -0
  42. package/dist/locales/po/hr.d.ts +2 -0
  43. package/dist/locales/po/hr.d.ts.map +1 -1
  44. package/dist/locales/po/hr.js +2 -0
  45. package/dist/locales/po/hu.d.ts +2 -0
  46. package/dist/locales/po/hu.d.ts.map +1 -1
  47. package/dist/locales/po/hu.js +2 -0
  48. package/dist/locales/po/it.d.ts +2 -0
  49. package/dist/locales/po/it.d.ts.map +1 -1
  50. package/dist/locales/po/it.js +2 -0
  51. package/dist/locales/po/lt.d.ts +2 -0
  52. package/dist/locales/po/lt.d.ts.map +1 -1
  53. package/dist/locales/po/lt.js +2 -0
  54. package/dist/locales/po/lv.d.ts +2 -0
  55. package/dist/locales/po/lv.d.ts.map +1 -1
  56. package/dist/locales/po/lv.js +2 -0
  57. package/dist/locales/po/mt.d.ts +2 -0
  58. package/dist/locales/po/mt.d.ts.map +1 -1
  59. package/dist/locales/po/mt.js +2 -0
  60. package/dist/locales/po/nl.d.ts +2 -0
  61. package/dist/locales/po/nl.d.ts.map +1 -1
  62. package/dist/locales/po/nl.js +2 -0
  63. package/dist/locales/po/pl.d.ts +2 -0
  64. package/dist/locales/po/pl.d.ts.map +1 -1
  65. package/dist/locales/po/pl.js +2 -0
  66. package/dist/locales/po/pt.d.ts +2 -0
  67. package/dist/locales/po/pt.d.ts.map +1 -1
  68. package/dist/locales/po/pt.js +2 -0
  69. package/dist/locales/po/ro.d.ts +2 -0
  70. package/dist/locales/po/ro.d.ts.map +1 -1
  71. package/dist/locales/po/ro.js +2 -0
  72. package/dist/locales/po/se.d.ts +2 -0
  73. package/dist/locales/po/se.d.ts.map +1 -1
  74. package/dist/locales/po/se.js +2 -0
  75. package/dist/locales/po/si.d.ts +2 -0
  76. package/dist/locales/po/si.d.ts.map +1 -1
  77. package/dist/locales/po/si.js +2 -0
  78. package/dist/locales/po/sk.d.ts +2 -0
  79. package/dist/locales/po/sk.d.ts.map +1 -1
  80. package/dist/locales/po/sk.js +2 -0
  81. package/dist/main.d.ts.map +1 -1
  82. package/dist/main.js +14 -14
  83. package/dist/validValues/award.d.ts +214 -21
  84. package/dist/validValues/award.d.ts.map +1 -1
  85. package/dist/validValues/award.js +665 -662
  86. package/dist/validValues/awardMedal.d.ts +233 -18
  87. package/dist/validValues/awardMedal.d.ts.map +1 -1
  88. package/dist/validValues/awardMedal.js +921 -1148
  89. package/dist/validValues/beerStyle.d.ts +96 -18
  90. package/dist/validValues/beerStyle.d.ts.map +1 -1
  91. package/dist/validValues/beerStyle.js +381 -473
  92. package/dist/validValues/certification.d.ts +33 -19
  93. package/dist/validValues/certification.d.ts.map +1 -1
  94. package/dist/validValues/certification.js +144 -143
  95. package/dist/validValues/containerColor.d.ts +11 -18
  96. package/dist/validValues/containerColor.d.ts.map +1 -1
  97. package/dist/validValues/containerColor.js +41 -48
  98. package/dist/validValues/containerType.d.ts +8 -18
  99. package/dist/validValues/containerType.d.ts.map +1 -1
  100. package/dist/validValues/containerType.js +29 -33
  101. package/dist/validValues/country.d.ts +154 -23
  102. package/dist/validValues/country.d.ts.map +1 -1
  103. package/dist/validValues/country.js +452 -451
  104. package/dist/validValues/designation.d.ts +57 -629
  105. package/dist/validValues/designation.d.ts.map +1 -1
  106. package/dist/validValues/designation.js +109 -104
  107. package/dist/validValues/ingredient.d.ts +65 -30
  108. package/dist/validValues/ingredient.d.ts.map +1 -1
  109. package/dist/validValues/ingredient.js +271 -257
  110. package/dist/validValues/packagingCertification.d.ts +9 -33
  111. package/dist/validValues/packagingCertification.d.ts.map +1 -1
  112. package/dist/validValues/packagingCertification.js +29 -28
  113. package/dist/validValues/packagingMaterialType.d.ts +54 -28
  114. package/dist/validValues/packagingMaterialType.d.ts.map +1 -1
  115. package/dist/validValues/packagingMaterialType.js +264 -312
  116. package/dist/validValues/productType.d.ts +44 -22
  117. package/dist/validValues/productType.d.ts.map +1 -1
  118. package/dist/validValues/productType.js +126 -125
  119. package/dist/validValues/productionMethod.d.ts +15 -18
  120. package/dist/validValues/productionMethod.d.ts.map +1 -1
  121. package/dist/validValues/productionMethod.js +57 -68
  122. package/dist/validValues/region.d.ts +487 -16
  123. package/dist/validValues/region.d.ts.map +1 -1
  124. package/dist/validValues/region.js +4799 -4803
  125. package/dist/validValues/responsibleConsumptionLogo.d.ts +10 -19
  126. package/dist/validValues/responsibleConsumptionLogo.d.ts.map +1 -1
  127. package/dist/validValues/responsibleConsumptionLogo.js +29 -32
  128. package/dist/validValues/subregion.d.ts +1393 -12
  129. package/dist/validValues/subregion.d.ts.map +1 -1
  130. package/dist/validValues/subregion.js +12493 -11115
  131. package/dist/validValues/types/ValidValueDefinition.d.ts +23 -14
  132. package/dist/validValues/types/ValidValueDefinition.d.ts.map +1 -1
  133. package/dist/validValues/types/award_p85_100.js +2 -2
  134. package/dist/validValues/types/productTypesSpirit.js +2 -2
  135. package/dist/validValues/types/productTypesWine.js +2 -2
  136. package/dist/validValues/utils/createValidValues.d.ts +2 -2
  137. package/dist/validValues/utils/createValidValues.js +1 -1
  138. package/dist/validValues/utils/loadLocalizedData.d.ts +6 -0
  139. package/dist/validValues/utils/loadLocalizedData.d.ts.map +1 -0
  140. package/dist/validValues/utils/loadLocalizedData.js +20 -0
  141. package/dist/validValues/varietyName.d.ts +1961 -18
  142. package/dist/validValues/varietyName.d.ts.map +1 -1
  143. package/dist/validValues/varietyName.js +5883 -7840
  144. package/dist/validValues/wineColor.d.ts +7 -18
  145. package/dist/validValues/wineColor.d.ts.map +1 -1
  146. package/dist/validValues/wineColor.js +25 -28
  147. package/dist/validValues/wineType.d.ts +7 -18
  148. package/dist/validValues/wineType.d.ts.map +1 -1
  149. package/dist/validValues/wineType.js +25 -28
  150. package/dist/validValues.js +20 -20
  151. package/lingui.config.ts +4 -0
  152. package/package.json +2 -2
  153. package/src/core/translate.ts +6 -5
  154. package/src/index.ts +4 -1
  155. package/src/locales/po/bg.po +2529 -2521
  156. package/src/locales/po/bg.ts +1 -1
  157. package/src/locales/po/cs.po +2529 -2521
  158. package/src/locales/po/cs.ts +1 -1
  159. package/src/locales/po/da.po +2529 -2521
  160. package/src/locales/po/da.ts +1 -1
  161. package/src/locales/po/de.po +2529 -2521
  162. package/src/locales/po/de.ts +1 -1
  163. package/src/locales/po/ee.po +2529 -2521
  164. package/src/locales/po/ee.ts +1 -1
  165. package/src/locales/po/el.po +2529 -2521
  166. package/src/locales/po/el.ts +1 -1
  167. package/src/locales/po/en.po +2529 -2521
  168. package/src/locales/po/en.ts +1 -1
  169. package/src/locales/po/es.po +2529 -2521
  170. package/src/locales/po/es.ts +1 -1
  171. package/src/locales/po/fi.po +2529 -2521
  172. package/src/locales/po/fi.ts +1 -1
  173. package/src/locales/po/fr.po +2529 -2521
  174. package/src/locales/po/fr.ts +1 -1
  175. package/src/locales/po/ga.po +2529 -2521
  176. package/src/locales/po/ga.ts +1 -1
  177. package/src/locales/po/hr.po +2529 -2521
  178. package/src/locales/po/hr.ts +1 -1
  179. package/src/locales/po/hu.po +2529 -2521
  180. package/src/locales/po/hu.ts +1 -1
  181. package/src/locales/po/it.po +2529 -2521
  182. package/src/locales/po/it.ts +1 -1
  183. package/src/locales/po/lt.po +2529 -2521
  184. package/src/locales/po/lt.ts +1 -1
  185. package/src/locales/po/lv.po +2529 -2521
  186. package/src/locales/po/lv.ts +1 -1
  187. package/src/locales/po/mt.po +2529 -2521
  188. package/src/locales/po/mt.ts +1 -1
  189. package/src/locales/po/nl.po +2529 -2521
  190. package/src/locales/po/nl.ts +1 -1
  191. package/src/locales/po/pl.po +2529 -2521
  192. package/src/locales/po/pl.ts +1 -1
  193. package/src/locales/po/pt.po +2529 -2521
  194. package/src/locales/po/pt.ts +1 -1
  195. package/src/locales/po/ro.po +2529 -2521
  196. package/src/locales/po/ro.ts +1 -1
  197. package/src/locales/po/se.po +2529 -2521
  198. package/src/locales/po/se.ts +1 -1
  199. package/src/locales/po/si.po +2529 -2521
  200. package/src/locales/po/si.ts +1 -1
  201. package/src/locales/po/sk.po +2529 -2521
  202. package/src/locales/po/sk.ts +1 -1
  203. package/src/main.ts +12 -23
  204. package/src/scripts/transformArchitectureVV.js +34 -31
  205. package/src/scripts/transformServerVV.js +3 -3
  206. package/src/scripts/writeFields.not.test.js +38 -3
  207. package/src/validValues/award.ts +639 -841
  208. package/src/validValues/awardMedal.ts +695 -915
  209. package/src/validValues/beerStyle.ts +290 -375
  210. package/src/validValues/certification.ts +154 -139
  211. package/src/validValues/containerColor.ts +35 -35
  212. package/src/validValues/containerType.ts +26 -23
  213. package/src/validValues/country.ts +457 -452
  214. package/src/validValues/designation.ts +44 -87
  215. package/src/validValues/ingredient.ts +252 -230
  216. package/src/validValues/json/region.js +1 -0
  217. package/src/validValues/json/subregion.js +8 -0
  218. package/src/validValues/packagingCertification.ts +38 -42
  219. package/src/validValues/packagingMaterialType.ts +221 -267
  220. package/src/validValues/productType.ts +128 -126
  221. package/src/validValues/productionMethod.ts +47 -51
  222. package/src/validValues/region.ts +1464 -1947
  223. package/src/validValues/responsibleConsumptionLogo.ts +34 -24
  224. package/src/validValues/subregion.ts +4181 -4193
  225. package/src/validValues/types/ValidValueDefinition.ts +27 -14
  226. package/src/validValues/utils/loadLocalizedData.ts +11 -0
  227. package/src/validValues/varietyName.ts +5884 -7836
  228. package/src/validValues/wineColor.ts +23 -19
  229. package/src/validValues/wineType.ts +23 -19
  230. package/dist/validValues/json/appelation.d.ts +0 -2
  231. package/dist/validValues/json/appelation.d.ts.map +0 -1
  232. package/dist/validValues/types/Award.d.ts +0 -35
  233. package/dist/validValues/types/Award.d.ts.map +0 -1
  234. package/dist/validValues/types/Award.js +0 -5
  235. package/dist/validValues/types/Country.d.ts +0 -35
  236. package/dist/validValues/types/Country.d.ts.map +0 -1
  237. package/dist/validValues/types/Country.js +0 -5
  238. package/src/validValues/utils/createValidValues.ts +0 -76
@@ -1,632 +1,60 @@
1
- import type { MessageDescriptor } from '@lingui/core';
2
- import type { ProductType as ProductTypeKey } from './types/ProductTypeKey.js';
3
- interface ValidValueDefinition {
4
- title: MessageDescriptor;
5
- /**
6
- * Fields that will never be stored in the database,
7
- * because they are not relevant to the frontend rendering.
8
- * They are only used for the form, like grouping values for easier entry.
9
- */
10
- form?: {
11
- /**
12
- * A helpful description shown only when using the form.
13
- */
14
- description?: MessageDescriptor;
15
- };
16
- /**
17
- * Fields that are stored in the database together with each lookup value,
18
- * because they affect the frontend rendering.
19
- * They are also included in the hash values to detect breaking changes.
20
- *
21
- * We should try to avoid them if possible because if false positives:
22
- * Any change in one of those fields would lead to
23
- * eLabels that are marked as incompatible,
24
- * although there might be no user-visible changes.
25
- */
26
- frontend?: {};
1
+ import { ValidValueDefinition } from './types/ValidValueDefinition.js';
2
+ interface Designation extends ValidValueDefinition {
27
3
  }
28
- interface DesignationInput extends ValidValueDefinition {
29
- }
30
- declare const allDesignations: readonly [{
31
- key: "brut";
32
- title: MessageDescriptor;
33
- /**
34
- * Fields that will never be stored in the database,
35
- * because they are not relevant to the frontend rendering.
36
- * They are only used for the form, like grouping values for easier entry.
37
- */
38
- form?: {
39
- /**
40
- * A helpful description shown only when using the form.
41
- */
42
- description?: MessageDescriptor | undefined;
43
- } | undefined;
44
- /**
45
- * Fields that are stored in the database together with each lookup value,
46
- * because they affect the frontend rendering.
47
- * They are also included in the hash values to detect breaking changes.
48
- *
49
- * We should try to avoid them if possible because if false positives:
50
- * Any change in one of those fields would lead to
51
- * eLabels that are marked as incompatible,
52
- * although there might be no user-visible changes.
53
- */
54
- frontend?: {} | undefined;
55
- }, {
56
- key: "brut_nature";
57
- title: MessageDescriptor;
58
- /**
59
- * Fields that will never be stored in the database,
60
- * because they are not relevant to the frontend rendering.
61
- * They are only used for the form, like grouping values for easier entry.
62
- */
63
- form?: {
64
- /**
65
- * A helpful description shown only when using the form.
66
- */
67
- description?: MessageDescriptor | undefined;
68
- } | undefined;
69
- /**
70
- * Fields that are stored in the database together with each lookup value,
71
- * because they affect the frontend rendering.
72
- * They are also included in the hash values to detect breaking changes.
73
- *
74
- * We should try to avoid them if possible because if false positives:
75
- * Any change in one of those fields would lead to
76
- * eLabels that are marked as incompatible,
77
- * although there might be no user-visible changes.
78
- */
79
- frontend?: {} | undefined;
80
- }, {
81
- key: "demi-sec";
82
- title: MessageDescriptor;
83
- /**
84
- * Fields that will never be stored in the database,
85
- * because they are not relevant to the frontend rendering.
86
- * They are only used for the form, like grouping values for easier entry.
87
- */
88
- form?: {
89
- /**
90
- * A helpful description shown only when using the form.
91
- */
92
- description?: MessageDescriptor | undefined;
93
- } | undefined;
94
- /**
95
- * Fields that are stored in the database together with each lookup value,
96
- * because they affect the frontend rendering.
97
- * They are also included in the hash values to detect breaking changes.
98
- *
99
- * We should try to avoid them if possible because if false positives:
100
- * Any change in one of those fields would lead to
101
- * eLabels that are marked as incompatible,
102
- * although there might be no user-visible changes.
103
- */
104
- frontend?: {} | undefined;
105
- }, {
106
- key: "dry";
107
- title: MessageDescriptor;
108
- /**
109
- * Fields that will never be stored in the database,
110
- * because they are not relevant to the frontend rendering.
111
- * They are only used for the form, like grouping values for easier entry.
112
- */
113
- form?: {
114
- /**
115
- * A helpful description shown only when using the form.
116
- */
117
- description?: MessageDescriptor | undefined;
118
- } | undefined;
119
- /**
120
- * Fields that are stored in the database together with each lookup value,
121
- * because they affect the frontend rendering.
122
- * They are also included in the hash values to detect breaking changes.
123
- *
124
- * We should try to avoid them if possible because if false positives:
125
- * Any change in one of those fields would lead to
126
- * eLabels that are marked as incompatible,
127
- * although there might be no user-visible changes.
128
- */
129
- frontend?: {} | undefined;
130
- }, {
131
- key: "extra_brut";
132
- title: MessageDescriptor;
133
- /**
134
- * Fields that will never be stored in the database,
135
- * because they are not relevant to the frontend rendering.
136
- * They are only used for the form, like grouping values for easier entry.
137
- */
138
- form?: {
139
- /**
140
- * A helpful description shown only when using the form.
141
- */
142
- description?: MessageDescriptor | undefined;
143
- } | undefined;
144
- /**
145
- * Fields that are stored in the database together with each lookup value,
146
- * because they affect the frontend rendering.
147
- * They are also included in the hash values to detect breaking changes.
148
- *
149
- * We should try to avoid them if possible because if false positives:
150
- * Any change in one of those fields would lead to
151
- * eLabels that are marked as incompatible,
152
- * although there might be no user-visible changes.
153
- */
154
- frontend?: {} | undefined;
155
- }, {
156
- key: "extra_dry";
157
- title: MessageDescriptor;
158
- /**
159
- * Fields that will never be stored in the database,
160
- * because they are not relevant to the frontend rendering.
161
- * They are only used for the form, like grouping values for easier entry.
162
- */
163
- form?: {
164
- /**
165
- * A helpful description shown only when using the form.
166
- */
167
- description?: MessageDescriptor | undefined;
168
- } | undefined;
169
- /**
170
- * Fields that are stored in the database together with each lookup value,
171
- * because they affect the frontend rendering.
172
- * They are also included in the hash values to detect breaking changes.
173
- *
174
- * We should try to avoid them if possible because if false positives:
175
- * Any change in one of those fields would lead to
176
- * eLabels that are marked as incompatible,
177
- * although there might be no user-visible changes.
178
- */
179
- frontend?: {} | undefined;
180
- }, {
181
- key: "feinherb";
182
- title: MessageDescriptor;
183
- /**
184
- * Fields that will never be stored in the database,
185
- * because they are not relevant to the frontend rendering.
186
- * They are only used for the form, like grouping values for easier entry.
187
- */
188
- form?: {
189
- /**
190
- * A helpful description shown only when using the form.
191
- */
192
- description?: MessageDescriptor | undefined;
193
- } | undefined;
194
- /**
195
- * Fields that are stored in the database together with each lookup value,
196
- * because they affect the frontend rendering.
197
- * They are also included in the hash values to detect breaking changes.
198
- *
199
- * We should try to avoid them if possible because if false positives:
200
- * Any change in one of those fields would lead to
201
- * eLabels that are marked as incompatible,
202
- * although there might be no user-visible changes.
203
- */
204
- frontend?: {} | undefined;
205
- }, {
206
- key: "lieblich";
207
- title: MessageDescriptor;
208
- /**
209
- * Fields that will never be stored in the database,
210
- * because they are not relevant to the frontend rendering.
211
- * They are only used for the form, like grouping values for easier entry.
212
- */
213
- form?: {
214
- /**
215
- * A helpful description shown only when using the form.
216
- */
217
- description?: MessageDescriptor | undefined;
218
- } | undefined;
219
- /**
220
- * Fields that are stored in the database together with each lookup value,
221
- * because they affect the frontend rendering.
222
- * They are also included in the hash values to detect breaking changes.
223
- *
224
- * We should try to avoid them if possible because if false positives:
225
- * Any change in one of those fields would lead to
226
- * eLabels that are marked as incompatible,
227
- * although there might be no user-visible changes.
228
- */
229
- frontend?: {} | undefined;
230
- }, {
231
- key: "semi";
232
- title: MessageDescriptor;
233
- /**
234
- * Fields that will never be stored in the database,
235
- * because they are not relevant to the frontend rendering.
236
- * They are only used for the form, like grouping values for easier entry.
237
- */
238
- form?: {
239
- /**
240
- * A helpful description shown only when using the form.
241
- */
242
- description?: MessageDescriptor | undefined;
243
- } | undefined;
244
- /**
245
- * Fields that are stored in the database together with each lookup value,
246
- * because they affect the frontend rendering.
247
- * They are also included in the hash values to detect breaking changes.
248
- *
249
- * We should try to avoid them if possible because if false positives:
250
- * Any change in one of those fields would lead to
251
- * eLabels that are marked as incompatible,
252
- * although there might be no user-visible changes.
253
- */
254
- frontend?: {} | undefined;
255
- }, {
256
- key: "sweet";
257
- title: MessageDescriptor;
258
- /**
259
- * Fields that will never be stored in the database,
260
- * because they are not relevant to the frontend rendering.
261
- * They are only used for the form, like grouping values for easier entry.
262
- */
263
- form?: {
264
- /**
265
- * A helpful description shown only when using the form.
266
- */
267
- description?: MessageDescriptor | undefined;
268
- } | undefined;
269
- /**
270
- * Fields that are stored in the database together with each lookup value,
271
- * because they affect the frontend rendering.
272
- * They are also included in the hash values to detect breaking changes.
273
- *
274
- * We should try to avoid them if possible because if false positives:
275
- * Any change in one of those fields would lead to
276
- * eLabels that are marked as incompatible,
277
- * although there might be no user-visible changes.
278
- */
279
- frontend?: {} | undefined;
280
- }, {
281
- key: "semi_sweet";
282
- title: MessageDescriptor;
283
- /**
284
- * Fields that will never be stored in the database,
285
- * because they are not relevant to the frontend rendering.
286
- * They are only used for the form, like grouping values for easier entry.
287
- */
288
- form?: {
289
- /**
290
- * A helpful description shown only when using the form.
291
- */
292
- description?: MessageDescriptor | undefined;
293
- } | undefined;
294
- /**
295
- * Fields that are stored in the database together with each lookup value,
296
- * because they affect the frontend rendering.
297
- * They are also included in the hash values to detect breaking changes.
298
- *
299
- * We should try to avoid them if possible because if false positives:
300
- * Any change in one of those fields would lead to
301
- * eLabels that are marked as incompatible,
302
- * although there might be no user-visible changes.
303
- */
304
- frontend?: {} | undefined;
305
- }];
306
- declare type DesignationKey = typeof allDesignations[number]['key'];
307
- interface DesignationOutput extends DesignationInput {
308
- key: DesignationKey;
309
- }
310
- declare const _default: {
311
- byProductType: {
312
- beer: {};
313
- spirit_absinthe: {};
314
- spirit_anise: {};
315
- spirit_aquavit: {};
316
- spirit_arak: {};
317
- spirit_armagnac: {};
318
- spirit_asianspirit: {};
319
- spirit_bitter: {};
320
- spirit_cachaca: {};
321
- spirit_calvados: {};
322
- spirit_cocktail: {};
323
- spirit_cognac: {};
324
- spirit_fruitspirit: {};
325
- spirit_genever: {};
326
- spirit_gin: {};
327
- spirit_grainspirit: {};
328
- spirit_grapebrandy: {};
329
- spirit_grappa: {};
330
- spirit_liqueur: {};
331
- spirit_marc: {};
332
- spirit_mezcal: {};
333
- spirit_miscspririt: {};
334
- spirit_ouzo: {};
335
- spirit_pastis: {};
336
- spirit_pisco: {};
337
- spirit_raki: {};
338
- spirit_rum: {};
339
- spirit_sambuca: {};
340
- spirit_shochu: {};
341
- spirit_schnaps: {};
342
- spirit_tequila: {};
343
- spirit_vermouth: {};
344
- spirit_vodka: {};
345
- spirit_whisky: {};
346
- wine_fortified: Record<"dry" | "semi" | "sweet", DesignationOutput>;
347
- wine_pearlwine: Record<"dry" | "semi" | "sweet", DesignationOutput>;
348
- wine_sparkling: Record<"brut" | "demi-sec" | "dry" | "brut_nature" | "extra_brut" | "extra_dry", DesignationOutput>;
349
- wine_stillwine: Record<"dry" | "feinherb" | "lieblich" | "semi" | "sweet", DesignationOutput>;
350
- wine_aromatized: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", DesignationOutput>;
351
- };
352
- listByProductType: Record<ProductTypeKey, DesignationOutput[]>;
353
- list: readonly [{
354
- key: "brut";
355
- title: MessageDescriptor;
356
- /**
357
- * Fields that will never be stored in the database,
358
- * because they are not relevant to the frontend rendering.
359
- * They are only used for the form, like grouping values for easier entry.
360
- */
361
- form?: {
362
- /**
363
- * A helpful description shown only when using the form.
364
- */
365
- description?: MessageDescriptor | undefined;
366
- } | undefined;
367
- /**
368
- * Fields that are stored in the database together with each lookup value,
369
- * because they affect the frontend rendering.
370
- * They are also included in the hash values to detect breaking changes.
371
- *
372
- * We should try to avoid them if possible because if false positives:
373
- * Any change in one of those fields would lead to
374
- * eLabels that are marked as incompatible,
375
- * although there might be no user-visible changes.
376
- */
377
- frontend?: {} | undefined;
378
- }, {
379
- key: "brut_nature";
380
- title: MessageDescriptor;
381
- /**
382
- * Fields that will never be stored in the database,
383
- * because they are not relevant to the frontend rendering.
384
- * They are only used for the form, like grouping values for easier entry.
385
- */
386
- form?: {
387
- /**
388
- * A helpful description shown only when using the form.
389
- */
390
- description?: MessageDescriptor | undefined;
391
- } | undefined;
392
- /**
393
- * Fields that are stored in the database together with each lookup value,
394
- * because they affect the frontend rendering.
395
- * They are also included in the hash values to detect breaking changes.
396
- *
397
- * We should try to avoid them if possible because if false positives:
398
- * Any change in one of those fields would lead to
399
- * eLabels that are marked as incompatible,
400
- * although there might be no user-visible changes.
401
- */
402
- frontend?: {} | undefined;
403
- }, {
404
- key: "demi-sec";
405
- title: MessageDescriptor;
406
- /**
407
- * Fields that will never be stored in the database,
408
- * because they are not relevant to the frontend rendering.
409
- * They are only used for the form, like grouping values for easier entry.
410
- */
411
- form?: {
412
- /**
413
- * A helpful description shown only when using the form.
414
- */
415
- description?: MessageDescriptor | undefined;
416
- } | undefined;
417
- /**
418
- * Fields that are stored in the database together with each lookup value,
419
- * because they affect the frontend rendering.
420
- * They are also included in the hash values to detect breaking changes.
421
- *
422
- * We should try to avoid them if possible because if false positives:
423
- * Any change in one of those fields would lead to
424
- * eLabels that are marked as incompatible,
425
- * although there might be no user-visible changes.
426
- */
427
- frontend?: {} | undefined;
428
- }, {
429
- key: "dry";
430
- title: MessageDescriptor;
431
- /**
432
- * Fields that will never be stored in the database,
433
- * because they are not relevant to the frontend rendering.
434
- * They are only used for the form, like grouping values for easier entry.
435
- */
436
- form?: {
437
- /**
438
- * A helpful description shown only when using the form.
439
- */
440
- description?: MessageDescriptor | undefined;
441
- } | undefined;
442
- /**
443
- * Fields that are stored in the database together with each lookup value,
444
- * because they affect the frontend rendering.
445
- * They are also included in the hash values to detect breaking changes.
446
- *
447
- * We should try to avoid them if possible because if false positives:
448
- * Any change in one of those fields would lead to
449
- * eLabels that are marked as incompatible,
450
- * although there might be no user-visible changes.
451
- */
452
- frontend?: {} | undefined;
453
- }, {
454
- key: "extra_brut";
455
- title: MessageDescriptor;
456
- /**
457
- * Fields that will never be stored in the database,
458
- * because they are not relevant to the frontend rendering.
459
- * They are only used for the form, like grouping values for easier entry.
460
- */
461
- form?: {
462
- /**
463
- * A helpful description shown only when using the form.
464
- */
465
- description?: MessageDescriptor | undefined;
466
- } | undefined;
467
- /**
468
- * Fields that are stored in the database together with each lookup value,
469
- * because they affect the frontend rendering.
470
- * They are also included in the hash values to detect breaking changes.
471
- *
472
- * We should try to avoid them if possible because if false positives:
473
- * Any change in one of those fields would lead to
474
- * eLabels that are marked as incompatible,
475
- * although there might be no user-visible changes.
476
- */
477
- frontend?: {} | undefined;
478
- }, {
479
- key: "extra_dry";
480
- title: MessageDescriptor;
481
- /**
482
- * Fields that will never be stored in the database,
483
- * because they are not relevant to the frontend rendering.
484
- * They are only used for the form, like grouping values for easier entry.
485
- */
486
- form?: {
487
- /**
488
- * A helpful description shown only when using the form.
489
- */
490
- description?: MessageDescriptor | undefined;
491
- } | undefined;
492
- /**
493
- * Fields that are stored in the database together with each lookup value,
494
- * because they affect the frontend rendering.
495
- * They are also included in the hash values to detect breaking changes.
496
- *
497
- * We should try to avoid them if possible because if false positives:
498
- * Any change in one of those fields would lead to
499
- * eLabels that are marked as incompatible,
500
- * although there might be no user-visible changes.
501
- */
502
- frontend?: {} | undefined;
503
- }, {
504
- key: "feinherb";
505
- title: MessageDescriptor;
506
- /**
507
- * Fields that will never be stored in the database,
508
- * because they are not relevant to the frontend rendering.
509
- * They are only used for the form, like grouping values for easier entry.
510
- */
511
- form?: {
512
- /**
513
- * A helpful description shown only when using the form.
514
- */
515
- description?: MessageDescriptor | undefined;
516
- } | undefined;
517
- /**
518
- * Fields that are stored in the database together with each lookup value,
519
- * because they affect the frontend rendering.
520
- * They are also included in the hash values to detect breaking changes.
521
- *
522
- * We should try to avoid them if possible because if false positives:
523
- * Any change in one of those fields would lead to
524
- * eLabels that are marked as incompatible,
525
- * although there might be no user-visible changes.
526
- */
527
- frontend?: {} | undefined;
528
- }, {
529
- key: "lieblich";
530
- title: MessageDescriptor;
531
- /**
532
- * Fields that will never be stored in the database,
533
- * because they are not relevant to the frontend rendering.
534
- * They are only used for the form, like grouping values for easier entry.
535
- */
536
- form?: {
537
- /**
538
- * A helpful description shown only when using the form.
539
- */
540
- description?: MessageDescriptor | undefined;
541
- } | undefined;
542
- /**
543
- * Fields that are stored in the database together with each lookup value,
544
- * because they affect the frontend rendering.
545
- * They are also included in the hash values to detect breaking changes.
546
- *
547
- * We should try to avoid them if possible because if false positives:
548
- * Any change in one of those fields would lead to
549
- * eLabels that are marked as incompatible,
550
- * although there might be no user-visible changes.
551
- */
552
- frontend?: {} | undefined;
553
- }, {
554
- key: "semi";
555
- title: MessageDescriptor;
556
- /**
557
- * Fields that will never be stored in the database,
558
- * because they are not relevant to the frontend rendering.
559
- * They are only used for the form, like grouping values for easier entry.
560
- */
561
- form?: {
562
- /**
563
- * A helpful description shown only when using the form.
564
- */
565
- description?: MessageDescriptor | undefined;
566
- } | undefined;
567
- /**
568
- * Fields that are stored in the database together with each lookup value,
569
- * because they affect the frontend rendering.
570
- * They are also included in the hash values to detect breaking changes.
571
- *
572
- * We should try to avoid them if possible because if false positives:
573
- * Any change in one of those fields would lead to
574
- * eLabels that are marked as incompatible,
575
- * although there might be no user-visible changes.
576
- */
577
- frontend?: {} | undefined;
578
- }, {
579
- key: "sweet";
580
- title: MessageDescriptor;
581
- /**
582
- * Fields that will never be stored in the database,
583
- * because they are not relevant to the frontend rendering.
584
- * They are only used for the form, like grouping values for easier entry.
585
- */
586
- form?: {
587
- /**
588
- * A helpful description shown only when using the form.
589
- */
590
- description?: MessageDescriptor | undefined;
591
- } | undefined;
592
- /**
593
- * Fields that are stored in the database together with each lookup value,
594
- * because they affect the frontend rendering.
595
- * They are also included in the hash values to detect breaking changes.
596
- *
597
- * We should try to avoid them if possible because if false positives:
598
- * Any change in one of those fields would lead to
599
- * eLabels that are marked as incompatible,
600
- * although there might be no user-visible changes.
601
- */
602
- frontend?: {} | undefined;
603
- }, {
604
- key: "semi_sweet";
605
- title: MessageDescriptor;
606
- /**
607
- * Fields that will never be stored in the database,
608
- * because they are not relevant to the frontend rendering.
609
- * They are only used for the form, like grouping values for easier entry.
610
- */
611
- form?: {
612
- /**
613
- * A helpful description shown only when using the form.
614
- */
615
- description?: MessageDescriptor | undefined;
616
- } | undefined;
617
- /**
618
- * Fields that are stored in the database together with each lookup value,
619
- * because they affect the frontend rendering.
620
- * They are also included in the hash values to detect breaking changes.
621
- *
622
- * We should try to avoid them if possible because if false positives:
623
- * Any change in one of those fields would lead to
624
- * eLabels that are marked as incompatible,
625
- * although there might be no user-visible changes.
626
- */
627
- frontend?: {} | undefined;
628
- }];
629
- byId: Record<"brut" | "demi-sec" | "dry" | "feinherb" | "lieblich" | "brut_nature" | "extra_brut" | "extra_dry" | "semi" | "sweet" | "semi_sweet", DesignationOutput>;
4
+ declare const allDesignations: {
5
+ readonly brut: Designation;
6
+ readonly brut_nature: Designation;
7
+ readonly 'demi-sec': Designation;
8
+ readonly dry: Designation;
9
+ readonly extra_brut: Designation;
10
+ readonly extra_dry: Designation;
11
+ readonly feinherb: Designation;
12
+ readonly lieblich: Designation;
13
+ readonly semi: Designation;
14
+ readonly sweet: Designation;
15
+ readonly semi_sweet: Designation;
16
+ };
17
+ export declare type DesignationKey = keyof typeof allDesignations;
18
+ export declare const byProductType: {
19
+ beer: {};
20
+ spirit_absinthe: {};
21
+ spirit_anise: {};
22
+ spirit_aquavit: {};
23
+ spirit_arak: {};
24
+ spirit_armagnac: {};
25
+ spirit_asianspirit: {};
26
+ spirit_bitter: {};
27
+ spirit_cachaca: {};
28
+ spirit_calvados: {};
29
+ spirit_cocktail: {};
30
+ spirit_cognac: {};
31
+ spirit_fruitspirit: {};
32
+ spirit_genever: {};
33
+ spirit_gin: {};
34
+ spirit_grainspirit: {};
35
+ spirit_grapebrandy: {};
36
+ spirit_grappa: {};
37
+ spirit_liqueur: {};
38
+ spirit_marc: {};
39
+ spirit_mezcal: {};
40
+ spirit_miscspririt: {};
41
+ spirit_ouzo: {};
42
+ spirit_pastis: {};
43
+ spirit_pisco: {};
44
+ spirit_raki: {};
45
+ spirit_rum: {};
46
+ spirit_sambuca: {};
47
+ spirit_shochu: {};
48
+ spirit_schnaps: {};
49
+ spirit_tequila: {};
50
+ spirit_vermouth: {};
51
+ spirit_vodka: {};
52
+ spirit_whisky: {};
53
+ wine_fortified: Record<"dry" | "semi" | "sweet", Designation>;
54
+ wine_pearlwine: Record<"dry" | "semi" | "sweet", Designation>;
55
+ wine_sparkling: Record<"brut" | "demi-sec" | "dry" | "brut_nature" | "extra_brut" | "extra_dry", Designation>;
56
+ wine_stillwine: Record<"dry" | "feinherb" | "lieblich" | "semi" | "sweet", Designation>;
57
+ wine_aromatized: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
630
58
  };
631
- export default _default;
59
+ export default allDesignations;
632
60
  //# sourceMappingURL=designation.d.ts.map