@bottlebooks/valid-values 6.0.1 → 6.0.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 CHANGED
@@ -3,6 +3,18 @@
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
+ ## [6.0.3](https://github.com/bottlebooks/bottlebooks/compare/@bottlebooks/valid-values@6.0.2...@bottlebooks/valid-values@6.0.3) (2023-03-14)
7
+
8
+ ### Bug Fixes
9
+
10
+ - generic recycling logo url ([36d23f1](https://github.com/bottlebooks/bottlebooks/commit/36d23f16b58a40026e415d7c898d704bbbd89504))
11
+
12
+ ## [6.0.2](https://github.com/bottlebooks/bottlebooks/compare/@bottlebooks/valid-values@6.0.1...@bottlebooks/valid-values@6.0.2) (2023-03-14)
13
+
14
+ ### Bug Fixes
15
+
16
+ - citricAcid category ([c59ce8f](https://github.com/bottlebooks/bottlebooks/commit/c59ce8f940adb04e89d2b0360a32f42fe1392325))
17
+
6
18
  ## [6.0.1](https://github.com/bottlebooks/bottlebooks/compare/@bottlebooks/valid-values@6.0.0...@bottlebooks/valid-values@6.0.1) (2023-03-13)
7
19
 
8
20
  ### Bug Fixes
@@ -184,7 +184,7 @@ var allIngredients = {
184
184
  message: 'citric acid'
185
185
  },
186
186
  metadata: {
187
- tags: ['NATURALLY_ADDED_ACID'],
187
+ tags: ['STABILISER'],
188
188
  productType: _productTypesWine["default"]
189
189
  }
190
190
  }),
@@ -1,7 +1,9 @@
1
1
  import type { ValidValueDefinition, ValidValueDataDefinition } from '../types/ValidValueDefinition';
2
+ declare const categories: readonly ["plastics", "batteries", "paper", "metals", "glass", "composites", "biodegradable"];
3
+ export declare type MaterialCategory = typeof categories[number];
2
4
  interface PackagingMaterialType extends ValidValueDefinition, ValidValueDataDefinition {
3
5
  code: string;
4
- category: string;
6
+ category: MaterialCategory;
5
7
  }
6
8
  declare const allPackagingMaterialTypes: {
7
9
  readonly '01_PET': PackagingMaterialType;
@@ -1 +1 @@
1
- {"version":3,"file":"packagingMaterialType.d.ts","sourceRoot":"","sources":["../../../src/validValues/packagingMaterialType/packagingMaterialType.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,+BAA+B,CAAC;AAIvC,UAAU,qBACR,SAAQ,oBAAoB,EAC1B,wBAAwB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAKD,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6kBrB,CAAC;AAEX,oBAAY,wBAAwB,GAAG,MAAM,OAAO,yBAAyB,CAAC;AAE9E,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"packagingMaterialType.d.ts","sourceRoot":"","sources":["../../../src/validValues/packagingMaterialType/packagingMaterialType.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,+BAA+B,CAAC;AAGvC,QAAA,MAAM,UAAU,+FAQN,CAAC;AACX,oBAAY,gBAAgB,GAAG,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC;AAEzD,UAAU,qBACR,SAAQ,oBAAoB,EAC1B,wBAAwB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,gBAAgB,CAAC;CAC5B;AAKD,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6kBrB,CAAC;AAEX,oBAAY,wBAAwB,GAAG,MAAM,OAAO,yBAAyB,CAAC;AAE9E,eAAe,yBAAyB,CAAC"}
@@ -8,6 +8,7 @@ exports["default"] = void 0;
8
8
  var _core = require("@lingui/core");
9
9
 
10
10
  var genericRecyclingLogo = 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/00_Generic_Recycling.svg';
11
+ var categories = ['plastics', 'batteries', 'paper', 'metals', 'glass', 'composites', 'biodegradable'];
11
12
 
12
13
  /** Makes sure errors are displayed where the error is introduced. */
13
14
  var packagingMaterialType = function packagingMaterialType(value) {
@@ -298,7 +299,7 @@ var allPackagingMaterialTypes = {
298
299
  '50_FOR': packagingMaterialType({
299
300
  key: '50_FOR',
300
301
  code: '50 FOR',
301
- category: 'metals',
302
+ category: 'biodegradable',
302
303
  label:
303
304
  /*i18n*/
304
305
  {
@@ -312,7 +313,7 @@ var allPackagingMaterialTypes = {
312
313
  '51_FOR': packagingMaterialType({
313
314
  key: '51_FOR',
314
315
  code: '51 FOR',
315
- category: 'metals',
316
+ category: 'biodegradable',
316
317
  label:
317
318
  /*i18n*/
318
319
  {
@@ -326,7 +327,7 @@ var allPackagingMaterialTypes = {
326
327
  '60_COT': packagingMaterialType({
327
328
  key: '60_COT',
328
329
  code: '60 COT',
329
- category: 'glass',
330
+ category: 'biodegradable',
330
331
  label:
331
332
  /*i18n*/
332
333
  {
@@ -340,7 +341,7 @@ var allPackagingMaterialTypes = {
340
341
  '61_TEX': packagingMaterialType({
341
342
  key: '61_TEX',
342
343
  code: '61 TEX',
343
- category: 'glass',
344
+ category: 'biodegradable',
344
345
  label:
345
346
  /*i18n*/
346
347
  {
@@ -354,7 +355,7 @@ var allPackagingMaterialTypes = {
354
355
  '62-69_TEX': packagingMaterialType({
355
356
  key: '62-69_TEX',
356
357
  code: '62-69 TEX',
357
- category: 'glass',
358
+ category: 'biodegradable',
358
359
  label:
359
360
  /*i18n*/
360
361
  {
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": "6.0.1",
5
+ "version": "6.0.3",
6
6
  "type": "commonjs",
7
7
  "main": "dist/index.js",
8
8
  "scripts": {
@@ -32,5 +32,5 @@
32
32
  "@babel/core": "^7.15.5",
33
33
  "@lingui/core": "3.14.0"
34
34
  },
35
- "gitHead": "d669eada9969f978143c8362bb27e3847c88d61c"
35
+ "gitHead": "b15ab587f4d11753492faf638815d5f5e9329495"
36
36
  }
@@ -163,7 +163,7 @@ const allIngredients = {
163
163
  message: 'citric acid',
164
164
  }),
165
165
  metadata: {
166
- tags: ['NATURALLY_ADDED_ACID'],
166
+ tags: ['STABILISER'],
167
167
  productType: PRODUCT_TYPE_WINES,
168
168
  },
169
169
  }),
@@ -5,12 +5,22 @@ import type {
5
5
  } from '../types/ValidValueDefinition';
6
6
  const genericRecyclingLogo =
7
7
  'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/00_Generic_Recycling.svg';
8
+ const categories = [
9
+ 'plastics',
10
+ 'batteries',
11
+ 'paper',
12
+ 'metals',
13
+ 'glass',
14
+ 'composites',
15
+ 'biodegradable',
16
+ ] as const;
17
+ export type MaterialCategory = typeof categories[number];
8
18
 
9
19
  interface PackagingMaterialType
10
20
  extends ValidValueDefinition,
11
21
  ValidValueDataDefinition {
12
22
  code: string;
13
- category: string;
23
+ category: MaterialCategory;
14
24
  }
15
25
 
16
26
  /** Makes sure errors are displayed where the error is introduced. */
@@ -260,7 +270,7 @@ const allPackagingMaterialTypes = {
260
270
  '50_FOR': packagingMaterialType({
261
271
  key: '50_FOR',
262
272
  code: '50 FOR',
263
- category: 'metals',
273
+ category: 'biodegradable',
264
274
  label: defineMessage({
265
275
  id: 'validValues.packagingMaterialType.50_FOR',
266
276
  message: 'Wood',
@@ -272,7 +282,7 @@ const allPackagingMaterialTypes = {
272
282
  '51_FOR': packagingMaterialType({
273
283
  key: '51_FOR',
274
284
  code: '51 FOR',
275
- category: 'metals',
285
+ category: 'biodegradable',
276
286
  label: defineMessage({
277
287
  id: 'validValues.packagingMaterialType.51_FOR',
278
288
  message: 'Cork',
@@ -284,7 +294,7 @@ const allPackagingMaterialTypes = {
284
294
  '60_COT': packagingMaterialType({
285
295
  key: '60_COT',
286
296
  code: '60 COT',
287
- category: 'glass',
297
+ category: 'biodegradable',
288
298
  label: defineMessage({
289
299
  id: 'validValues.packagingMaterialType.60_COT',
290
300
  message: 'Cotton',
@@ -296,7 +306,7 @@ const allPackagingMaterialTypes = {
296
306
  '61_TEX': packagingMaterialType({
297
307
  key: '61_TEX',
298
308
  code: '61 TEX',
299
- category: 'glass',
309
+ category: 'biodegradable',
300
310
  label: defineMessage({
301
311
  id: 'validValues.packagingMaterialType.61_TEX',
302
312
  message: 'Jute',
@@ -308,7 +318,7 @@ const allPackagingMaterialTypes = {
308
318
  '62-69_TEX': packagingMaterialType({
309
319
  key: '62-69_TEX',
310
320
  code: '62-69 TEX',
311
- category: 'glass',
321
+ category: 'biodegradable',
312
322
  label: defineMessage({
313
323
  id: 'validValues.packagingMaterialType.62-69_TEX',
314
324
  message: 'Other textiles',