@bottlebooks/valid-values 10.26.3 → 10.26.5

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 CHANGED
@@ -3,6 +3,14 @@
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
+ ## [10.26.5](https://github.com/bottlebooks/bottlebooks/compare/@bottlebooks/valid-values@10.26.4...@bottlebooks/valid-values@10.26.5) (2024-05-15)
7
+
8
+ **Note:** Version bump only for package @bottlebooks/valid-values
9
+
10
+ ## [10.26.4](https://github.com/bottlebooks/bottlebooks/compare/@bottlebooks/valid-values@10.26.3...@bottlebooks/valid-values@10.26.4) (2024-05-15)
11
+
12
+ **Note:** Version bump only for package @bottlebooks/valid-values
13
+
6
14
  ## [10.26.3](https://github.com/bottlebooks/bottlebooks/compare/@bottlebooks/valid-values@10.26.2...@bottlebooks/valid-values@10.26.3) (2024-05-15)
7
15
 
8
16
  **Note:** Version bump only for package @bottlebooks/valid-values
@@ -1,5 +1,6 @@
1
1
  import type { ValidValueDataDefinition, ValidValueDefinition, ValidValueMetadataDefinition } from '../types/ValidValueDefinition';
2
2
  export interface Certification extends ValidValueDefinition, ValidValueDataDefinition, ValidValueMetadataDefinition {
3
+ isDeprecated?: boolean;
3
4
  }
4
5
  declare const allCertifications: {
5
6
  readonly cl_sustainabilityCode: Certification;
@@ -1 +1 @@
1
- {"version":3,"file":"certification.d.ts","sourceRoot":"","sources":["../../../src/validValues/certification/certification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,4BAA4B,EAC7B,MAAM,+BAA+B,CAAC;AAEvC,MAAM,WAAW,aACf,SAAQ,oBAAoB,EAC1B,wBAAwB,EACxB,4BAA4B;CAAG;AAKnC,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmSb,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAE9D,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"certification.d.ts","sourceRoot":"","sources":["../../../src/validValues/certification/certification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,4BAA4B,EAC7B,MAAM,+BAA+B,CAAC;AAEvC,MAAM,WAAW,aACf,SAAQ,oBAAoB,EAC1B,wBAAwB,EACxB,4BAA4B;IAE9B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAKD,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmSb,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAE9D,eAAe,iBAAiB,CAAC"}
@@ -15,7 +15,7 @@ var allCertifications = {
15
15
  key: 'cl_sustainabilityCode',
16
16
  label: 'Wines of Chile Sustainability Code',
17
17
  data: {
18
- logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/cl_sustainabilityCode.svg'
18
+ logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/cl_sustainabilityCode2.svg'
19
19
  },
20
20
  metadata: {
21
21
  tags: ['internationalCertification']
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": "10.26.3",
5
+ "version": "10.26.5",
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": "e3e1566b517e69fe5b35aabcb008bafa95a8fb72"
37
+ "gitHead": "012f4106c397c81e1cf3aaea5cd74461b1ac7ecc"
38
38
  }
@@ -7,7 +7,10 @@ import type {
7
7
  export interface Certification
8
8
  extends ValidValueDefinition,
9
9
  ValidValueDataDefinition,
10
- ValidValueMetadataDefinition {}
10
+ ValidValueMetadataDefinition {
11
+ // FIXME: Move into metadata - it's not stored in the database.
12
+ isDeprecated?: boolean;
13
+ }
11
14
 
12
15
  /** Makes sure errors are displayed where the error is introduced. */
13
16
  const certification = (value: Certification) => value;
@@ -17,7 +20,7 @@ const allCertifications = {
17
20
  key: 'cl_sustainabilityCode',
18
21
  label: 'Wines of Chile Sustainability Code',
19
22
  data: {
20
- logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/cl_sustainabilityCode.svg',
23
+ logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/cl_sustainabilityCode2.svg',
21
24
  },
22
25
  metadata: {
23
26
  tags: ['internationalCertification'],
@@ -88,6 +88,14 @@ const validValues = {
88
88
  }),
89
89
  form: {},
90
90
  },
91
+ best_of_class: {
92
+ key: 'best_of_class',
93
+ title: defineMessage({
94
+ id: 'validValues.awardsMedals.best_of_class',
95
+ message: 'Best of Class',
96
+ }),
97
+ form: {},
98
+ },
91
99
  best_of_varietal: {
92
100
  key: 'best_of_varietal',
93
101
  title: defineMessage({
@@ -152,6 +160,14 @@ const validValues = {
152
160
  }),
153
161
  form: {},
154
162
  },
163
+ sweepstake: {
164
+ key: 'sweepstake',
165
+ title: defineMessage({
166
+ id: 'validValues.awardsMedals.sweepstake',
167
+ message: 'Sweepstake',
168
+ }),
169
+ form: {},
170
+ },
155
171
  blue_gold: {
156
172
  key: 'blue_gold',
157
173
  title: defineMessage({