@bottlebooks/valid-values 6.0.1 → 6.0.2
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 +6 -0
- package/dist/validValues/ingredient/ingredient.js +1 -1
- package/dist/validValues/packagingMaterialType/packagingMaterialType.d.ts +3 -1
- package/dist/validValues/packagingMaterialType/packagingMaterialType.d.ts.map +1 -1
- package/dist/validValues/packagingMaterialType/packagingMaterialType.js +8 -6
- package/package.json +2 -2
- package/src/validValues/ingredient/ingredient.ts +1 -1
- package/src/validValues/packagingMaterialType/packagingMaterialType.ts +17 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.2](https://github.com/bottlebooks/bottlebooks/compare/@bottlebooks/valid-values@6.0.1...@bottlebooks/valid-values@6.0.2) (2023-03-14)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- citricAcid category ([c59ce8f](https://github.com/bottlebooks/bottlebooks/commit/c59ce8f940adb04e89d2b0360a32f42fe1392325))
|
|
11
|
+
|
|
6
12
|
## [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
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -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:
|
|
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;
|
|
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;AAGzD,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"}
|
|
@@ -7,7 +7,9 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _core = require("@lingui/core");
|
|
9
9
|
|
|
10
|
-
var genericRecyclingLogo = 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/00_Generic_Recycling.svg';
|
|
10
|
+
var genericRecyclingLogo = 'https://s3.amazonaws.com/cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/00_Generic_Recycling.svg';
|
|
11
|
+
var categories = ['plastics', 'batteries', 'paper', 'metals', 'glass', 'composites', 'biodegradable'];
|
|
12
|
+
'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/00_Generic_Recycling.svg';
|
|
11
13
|
|
|
12
14
|
/** Makes sure errors are displayed where the error is introduced. */
|
|
13
15
|
var packagingMaterialType = function packagingMaterialType(value) {
|
|
@@ -298,7 +300,7 @@ var allPackagingMaterialTypes = {
|
|
|
298
300
|
'50_FOR': packagingMaterialType({
|
|
299
301
|
key: '50_FOR',
|
|
300
302
|
code: '50 FOR',
|
|
301
|
-
category: '
|
|
303
|
+
category: 'biodegradable',
|
|
302
304
|
label:
|
|
303
305
|
/*i18n*/
|
|
304
306
|
{
|
|
@@ -312,7 +314,7 @@ var allPackagingMaterialTypes = {
|
|
|
312
314
|
'51_FOR': packagingMaterialType({
|
|
313
315
|
key: '51_FOR',
|
|
314
316
|
code: '51 FOR',
|
|
315
|
-
category: '
|
|
317
|
+
category: 'biodegradable',
|
|
316
318
|
label:
|
|
317
319
|
/*i18n*/
|
|
318
320
|
{
|
|
@@ -326,7 +328,7 @@ var allPackagingMaterialTypes = {
|
|
|
326
328
|
'60_COT': packagingMaterialType({
|
|
327
329
|
key: '60_COT',
|
|
328
330
|
code: '60 COT',
|
|
329
|
-
category: '
|
|
331
|
+
category: 'biodegradable',
|
|
330
332
|
label:
|
|
331
333
|
/*i18n*/
|
|
332
334
|
{
|
|
@@ -340,7 +342,7 @@ var allPackagingMaterialTypes = {
|
|
|
340
342
|
'61_TEX': packagingMaterialType({
|
|
341
343
|
key: '61_TEX',
|
|
342
344
|
code: '61 TEX',
|
|
343
|
-
category: '
|
|
345
|
+
category: 'biodegradable',
|
|
344
346
|
label:
|
|
345
347
|
/*i18n*/
|
|
346
348
|
{
|
|
@@ -354,7 +356,7 @@ var allPackagingMaterialTypes = {
|
|
|
354
356
|
'62-69_TEX': packagingMaterialType({
|
|
355
357
|
key: '62-69_TEX',
|
|
356
358
|
code: '62-69 TEX',
|
|
357
|
-
category: '
|
|
359
|
+
category: 'biodegradable',
|
|
358
360
|
label:
|
|
359
361
|
/*i18n*/
|
|
360
362
|
{
|
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.
|
|
5
|
+
"version": "6.0.2",
|
|
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": "
|
|
35
|
+
"gitHead": "38a70620f42362b35f377c23abc69e2d71f4c37d"
|
|
36
36
|
}
|
|
@@ -4,13 +4,24 @@ import type {
|
|
|
4
4
|
ValidValueDataDefinition,
|
|
5
5
|
} from '../types/ValidValueDefinition';
|
|
6
6
|
const genericRecyclingLogo =
|
|
7
|
+
'https://s3.amazonaws.com/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];
|
|
7
18
|
'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/00_Generic_Recycling.svg';
|
|
8
19
|
|
|
9
20
|
interface PackagingMaterialType
|
|
10
21
|
extends ValidValueDefinition,
|
|
11
22
|
ValidValueDataDefinition {
|
|
12
23
|
code: string;
|
|
13
|
-
category:
|
|
24
|
+
category: MaterialCategory;
|
|
14
25
|
}
|
|
15
26
|
|
|
16
27
|
/** Makes sure errors are displayed where the error is introduced. */
|
|
@@ -260,7 +271,7 @@ const allPackagingMaterialTypes = {
|
|
|
260
271
|
'50_FOR': packagingMaterialType({
|
|
261
272
|
key: '50_FOR',
|
|
262
273
|
code: '50 FOR',
|
|
263
|
-
category: '
|
|
274
|
+
category: 'biodegradable',
|
|
264
275
|
label: defineMessage({
|
|
265
276
|
id: 'validValues.packagingMaterialType.50_FOR',
|
|
266
277
|
message: 'Wood',
|
|
@@ -272,7 +283,7 @@ const allPackagingMaterialTypes = {
|
|
|
272
283
|
'51_FOR': packagingMaterialType({
|
|
273
284
|
key: '51_FOR',
|
|
274
285
|
code: '51 FOR',
|
|
275
|
-
category: '
|
|
286
|
+
category: 'biodegradable',
|
|
276
287
|
label: defineMessage({
|
|
277
288
|
id: 'validValues.packagingMaterialType.51_FOR',
|
|
278
289
|
message: 'Cork',
|
|
@@ -284,7 +295,7 @@ const allPackagingMaterialTypes = {
|
|
|
284
295
|
'60_COT': packagingMaterialType({
|
|
285
296
|
key: '60_COT',
|
|
286
297
|
code: '60 COT',
|
|
287
|
-
category: '
|
|
298
|
+
category: 'biodegradable',
|
|
288
299
|
label: defineMessage({
|
|
289
300
|
id: 'validValues.packagingMaterialType.60_COT',
|
|
290
301
|
message: 'Cotton',
|
|
@@ -296,7 +307,7 @@ const allPackagingMaterialTypes = {
|
|
|
296
307
|
'61_TEX': packagingMaterialType({
|
|
297
308
|
key: '61_TEX',
|
|
298
309
|
code: '61 TEX',
|
|
299
|
-
category: '
|
|
310
|
+
category: 'biodegradable',
|
|
300
311
|
label: defineMessage({
|
|
301
312
|
id: 'validValues.packagingMaterialType.61_TEX',
|
|
302
313
|
message: 'Jute',
|
|
@@ -308,7 +319,7 @@ const allPackagingMaterialTypes = {
|
|
|
308
319
|
'62-69_TEX': packagingMaterialType({
|
|
309
320
|
key: '62-69_TEX',
|
|
310
321
|
code: '62-69 TEX',
|
|
311
|
-
category: '
|
|
322
|
+
category: 'biodegradable',
|
|
312
323
|
label: defineMessage({
|
|
313
324
|
id: 'validValues.packagingMaterialType.62-69_TEX',
|
|
314
325
|
message: 'Other textiles',
|