@bottlebooks/valid-values 7.4.1 → 7.4.3
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/CHANGELOG.md +19 -0
- package/dist/validValues/designation/designation.d.ts +22 -0
- package/dist/validValues/designation/designation.d.ts.map +1 -1
- package/dist/validValues/designation/designation.js +26 -3
- package/dist/validValues/varietyName/varietyName.d.ts +1 -0
- package/dist/validValues/varietyName/varietyName.d.ts.map +1 -1
- package/dist/validValues/varietyName/varietyName.js +4 -0
- package/package.json +2 -2
- package/src/validValues/designation/designation.ts +30 -1
- package/src/validValues/varietyName/varietyName.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [7.4.3](https://github.com/bottlebooks/bottlebooks/compare/@bottlebooks/valid-values@7.4.2...@bottlebooks/valid-values@7.4.3) (2023-09-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* winestyle options not rendered for aromatised wines ([2459922](https://github.com/bottlebooks/bottlebooks/commit/24599220b3de7dd04c97d7971c169896b2ea2081))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [7.4.2](https://github.com/bottlebooks/bottlebooks/compare/@bottlebooks/valid-values@7.4.1...@bottlebooks/valid-values@7.4.2) (2023-09-22)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @bottlebooks/valid-values
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [7.4.1](https://github.com/bottlebooks/bottlebooks/compare/@bottlebooks/valid-values@7.4.0...@bottlebooks/valid-values@7.4.1) (2023-09-19)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @bottlebooks/valid-values
|
|
@@ -55,6 +55,28 @@ export declare const byProductType: {
|
|
|
55
55
|
wine_sparkling: Record<"brut" | "demi-sec" | "dry" | "brut_nature" | "extra_brut" | "extra_dry", Designation>;
|
|
56
56
|
wine_stillwine: Record<"feinherb" | "lieblich" | "dry" | "semi" | "sweet", Designation>;
|
|
57
57
|
wine_aromatised: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
58
|
+
wine_aromatised_wineBasedAperitif: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
59
|
+
wine_aromatised_vermouth: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
60
|
+
wine_aromatised_bitter: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
61
|
+
wine_aromatised_eggBased: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
62
|
+
wine_aromatised_vakevaViiniglogi: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
63
|
+
wine_aromatised_wineBasedDrink: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
64
|
+
wine_aromatised_fortifiedWineBasedDrink: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
65
|
+
wine_aromatised_sangria: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
66
|
+
wine_aromatised_clarea: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
67
|
+
wine_aromatised_zurra: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
68
|
+
wine_aromatised_bitterSoda: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
69
|
+
wine_aromatised_kalteEnte: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
70
|
+
wine_aromatised_gluhwein: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
71
|
+
wine_aromatised_viiniglogiVingloggKarstasVynas: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
72
|
+
wine_aromatised_maiwein: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
73
|
+
wine_aromatised_maitrank: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
74
|
+
wine_aromatised_pelin: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
75
|
+
wine_aromatised_aromatizovanyDezert: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
76
|
+
wine_aromatised_winoZiolowe: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
77
|
+
wine_aromatised_wineBasedCocktail: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
78
|
+
wine_aromatised_semiSparklingGrapeBasedCocktail: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
79
|
+
wine_aromatised_sparklingWineCocktail: Record<"dry" | "extra_dry" | "semi" | "sweet" | "semi_sweet", Designation>;
|
|
58
80
|
};
|
|
59
81
|
export default allDesignations;
|
|
60
82
|
//# sourceMappingURL=designation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"designation.d.ts","sourceRoot":"","sources":["../../../src/validValues/designation/designation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,UAAU,WAAY,SAAQ,oBAAoB;CAAG;AAKrD,QAAA,MAAM,eAAe;;;;;;;;;;;;CA8EX,CAAC;AAEX,oBAAY,cAAc,GAAG,MAAM,OAAO,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"designation.d.ts","sourceRoot":"","sources":["../../../src/validValues/designation/designation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,UAAU,WAAY,SAAQ,oBAAoB;CAAG;AAKrD,QAAA,MAAM,eAAe;;;;;;;;;;;;CA8EX,CAAC;AAEX,oBAAY,cAAc,GAAG,MAAM,OAAO,eAAe,CAAC;AAkB1D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqEzB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -119,9 +119,10 @@ function pick(keys) {
|
|
|
119
119
|
return Object.fromEntries(keys.map(function (key) {
|
|
120
120
|
return [key, allDesignations[key]];
|
|
121
121
|
}));
|
|
122
|
-
}
|
|
123
|
-
// I think this will only be possible with the `satisfies` keyword coming in TS 4.9.
|
|
122
|
+
}
|
|
124
123
|
|
|
124
|
+
var aromatisedStyles = pick(['extra_dry', 'dry', 'semi', 'semi_sweet', 'sweet']); // TODO Enforce/provide Autocomplete for product types here.
|
|
125
|
+
// I think this will only be possible with the `satisfies` keyword coming in TS 4.9.
|
|
125
126
|
|
|
126
127
|
var byProductType = {
|
|
127
128
|
beer: {},
|
|
@@ -162,7 +163,29 @@ var byProductType = {
|
|
|
162
163
|
wine_pearlwine: pick(['dry', 'semi', 'sweet']),
|
|
163
164
|
wine_sparkling: pick(['brut_nature', 'extra_brut', 'brut', 'extra_dry', 'dry', 'demi-sec']),
|
|
164
165
|
wine_stillwine: pick(['dry', 'feinherb', 'lieblich', 'semi', 'sweet']),
|
|
165
|
-
wine_aromatised:
|
|
166
|
+
wine_aromatised: aromatisedStyles,
|
|
167
|
+
wine_aromatised_wineBasedAperitif: aromatisedStyles,
|
|
168
|
+
wine_aromatised_vermouth: aromatisedStyles,
|
|
169
|
+
wine_aromatised_bitter: aromatisedStyles,
|
|
170
|
+
wine_aromatised_eggBased: aromatisedStyles,
|
|
171
|
+
wine_aromatised_vakevaViiniglogi: aromatisedStyles,
|
|
172
|
+
wine_aromatised_wineBasedDrink: aromatisedStyles,
|
|
173
|
+
wine_aromatised_fortifiedWineBasedDrink: aromatisedStyles,
|
|
174
|
+
wine_aromatised_sangria: aromatisedStyles,
|
|
175
|
+
wine_aromatised_clarea: aromatisedStyles,
|
|
176
|
+
wine_aromatised_zurra: aromatisedStyles,
|
|
177
|
+
wine_aromatised_bitterSoda: aromatisedStyles,
|
|
178
|
+
wine_aromatised_kalteEnte: aromatisedStyles,
|
|
179
|
+
wine_aromatised_gluhwein: aromatisedStyles,
|
|
180
|
+
wine_aromatised_viiniglogiVingloggKarstasVynas: aromatisedStyles,
|
|
181
|
+
wine_aromatised_maiwein: aromatisedStyles,
|
|
182
|
+
wine_aromatised_maitrank: aromatisedStyles,
|
|
183
|
+
wine_aromatised_pelin: aromatisedStyles,
|
|
184
|
+
wine_aromatised_aromatizovanyDezert: aromatisedStyles,
|
|
185
|
+
wine_aromatised_winoZiolowe: aromatisedStyles,
|
|
186
|
+
wine_aromatised_wineBasedCocktail: aromatisedStyles,
|
|
187
|
+
wine_aromatised_semiSparklingGrapeBasedCocktail: aromatisedStyles,
|
|
188
|
+
wine_aromatised_sparklingWineCocktail: aromatisedStyles
|
|
166
189
|
};
|
|
167
190
|
exports.byProductType = byProductType;
|
|
168
191
|
var _default = allDesignations;
|
|
@@ -1673,6 +1673,7 @@ declare const allVarietyNames: {
|
|
|
1673
1673
|
readonly Elbling: VarietyName;
|
|
1674
1674
|
readonly Pais: VarietyName;
|
|
1675
1675
|
readonly 'Cabernet Dorio': VarietyName;
|
|
1676
|
+
readonly Caberlot: VarietyName;
|
|
1676
1677
|
readonly 'Moscato Bianco di Canelli': VarietyName;
|
|
1677
1678
|
readonly 'Malvoisie de Corse': VarietyName;
|
|
1678
1679
|
readonly 'Le niellucciu': VarietyName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"varietyName.d.ts","sourceRoot":"","sources":["../../../src/validValues/varietyName/varietyName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,UAAU,WAAY,SAAQ,oBAAoB;IAChD,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAKD,QAAA,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"varietyName.d.ts","sourceRoot":"","sources":["../../../src/validValues/varietyName/varietyName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,UAAU,WAAY,SAAQ,oBAAoB;IAChD,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAKD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuuPX,CAAC;AAEX,oBAAY,cAAc,GAAG,MAAM,OAAO,eAAe,CAAC;AAC1D,eAAe,eAAe,CAAC"}
|
|
@@ -6693,6 +6693,10 @@ var allVarietyNames = {
|
|
|
6693
6693
|
key: 'Cabernet Dorio',
|
|
6694
6694
|
label: 'Cabernet Dorio'
|
|
6695
6695
|
}),
|
|
6696
|
+
Caberlot: varietyName({
|
|
6697
|
+
key: 'Caberlot',
|
|
6698
|
+
label: 'Caberlot'
|
|
6699
|
+
}),
|
|
6696
6700
|
'Moscato Bianco di Canelli': varietyName({
|
|
6697
6701
|
key: 'Moscato Bianco di Canelli',
|
|
6698
6702
|
label: 'Moscato Bianco di Canelli'
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@bottlebooks/valid-values",
|
|
3
3
|
"description": "The Bottlebooks lookup values, defined globally.",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "7.4.
|
|
5
|
+
"version": "7.4.3",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@lingui/core": "3.14.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "9b29ff7696bdd066c920311f9bc6f92fc0e29eb5"
|
|
38
38
|
}
|
|
@@ -95,6 +95,13 @@ function pick<Key extends DesignationKey>(keys: Key[]) {
|
|
|
95
95
|
) as Record<Key, Designation>;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
const aromatisedStyles = pick([
|
|
99
|
+
'extra_dry',
|
|
100
|
+
'dry',
|
|
101
|
+
'semi',
|
|
102
|
+
'semi_sweet',
|
|
103
|
+
'sweet',
|
|
104
|
+
]);
|
|
98
105
|
// TODO Enforce/provide Autocomplete for product types here.
|
|
99
106
|
// I think this will only be possible with the `satisfies` keyword coming in TS 4.9.
|
|
100
107
|
export const byProductType = {
|
|
@@ -143,7 +150,29 @@ export const byProductType = {
|
|
|
143
150
|
'demi-sec',
|
|
144
151
|
]),
|
|
145
152
|
wine_stillwine: pick(['dry', 'feinherb', 'lieblich', 'semi', 'sweet']),
|
|
146
|
-
wine_aromatised:
|
|
153
|
+
wine_aromatised: aromatisedStyles,
|
|
154
|
+
wine_aromatised_wineBasedAperitif: aromatisedStyles,
|
|
155
|
+
wine_aromatised_vermouth: aromatisedStyles,
|
|
156
|
+
wine_aromatised_bitter: aromatisedStyles,
|
|
157
|
+
wine_aromatised_eggBased: aromatisedStyles,
|
|
158
|
+
wine_aromatised_vakevaViiniglogi: aromatisedStyles,
|
|
159
|
+
wine_aromatised_wineBasedDrink: aromatisedStyles,
|
|
160
|
+
wine_aromatised_fortifiedWineBasedDrink: aromatisedStyles,
|
|
161
|
+
wine_aromatised_sangria: aromatisedStyles,
|
|
162
|
+
wine_aromatised_clarea: aromatisedStyles,
|
|
163
|
+
wine_aromatised_zurra: aromatisedStyles,
|
|
164
|
+
wine_aromatised_bitterSoda: aromatisedStyles,
|
|
165
|
+
wine_aromatised_kalteEnte: aromatisedStyles,
|
|
166
|
+
wine_aromatised_gluhwein: aromatisedStyles,
|
|
167
|
+
wine_aromatised_viiniglogiVingloggKarstasVynas: aromatisedStyles,
|
|
168
|
+
wine_aromatised_maiwein: aromatisedStyles,
|
|
169
|
+
wine_aromatised_maitrank: aromatisedStyles,
|
|
170
|
+
wine_aromatised_pelin: aromatisedStyles,
|
|
171
|
+
wine_aromatised_aromatizovanyDezert: aromatisedStyles,
|
|
172
|
+
wine_aromatised_winoZiolowe: aromatisedStyles,
|
|
173
|
+
wine_aromatised_wineBasedCocktail: aromatisedStyles,
|
|
174
|
+
wine_aromatised_semiSparklingGrapeBasedCocktail: aromatisedStyles,
|
|
175
|
+
wine_aromatised_sparklingWineCocktail: aromatisedStyles,
|
|
147
176
|
};
|
|
148
177
|
|
|
149
178
|
export default allDesignations;
|
|
@@ -6690,6 +6690,10 @@ const allVarietyNames = {
|
|
|
6690
6690
|
key: 'Cabernet Dorio',
|
|
6691
6691
|
label: 'Cabernet Dorio',
|
|
6692
6692
|
}),
|
|
6693
|
+
Caberlot: varietyName({
|
|
6694
|
+
key: 'Caberlot',
|
|
6695
|
+
label: 'Caberlot',
|
|
6696
|
+
}),
|
|
6693
6697
|
'Moscato Bianco di Canelli': varietyName({
|
|
6694
6698
|
key: 'Moscato Bianco di Canelli',
|
|
6695
6699
|
label: 'Moscato Bianco di Canelli',
|