@bottlebooks/valid-values 6.0.0 → 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 +12 -0
- package/dist/validValues/certification/certification.d.ts +1 -1
- package/dist/validValues/certification/certification.d.ts.map +1 -1
- package/dist/validValues/certification/certification.js +27 -27
- package/dist/validValues/ingredient/ingredient.js +1 -1
- package/dist/validValues/packagingCertification/packagingCertification.d.ts +1 -1
- package/dist/validValues/packagingCertification/packagingCertification.d.ts.map +1 -1
- package/dist/validValues/packagingCertification/packagingCertification.js +4 -4
- package/dist/validValues/packagingMaterialType/packagingMaterialType.d.ts +5 -3
- package/dist/validValues/packagingMaterialType/packagingMaterialType.d.ts.map +1 -1
- package/dist/validValues/packagingMaterialType/packagingMaterialType.js +44 -42
- package/dist/validValues/responsibleConsumptionLogo/responsibleConsumptionLogo.d.ts +1 -1
- package/dist/validValues/responsibleConsumptionLogo/responsibleConsumptionLogo.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/validValues/certification/certification.ts +28 -28
- package/src/validValues/ingredient/ingredient.ts +1 -1
- package/src/validValues/json/eLabelCertification.js +27 -27
- package/src/validValues/json/packagingMaterialType.js +37 -37
- package/src/validValues/packagingCertification/packagingCertification.ts +5 -5
- package/src/validValues/packagingMaterialType/packagingMaterialType.ts +56 -45
- package/src/validValues/responsibleConsumptionLogo/responsibleConsumptionLogo.ts +1 -1
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
import { defineMessage } from '@lingui/macro';
|
|
2
|
-
import {
|
|
2
|
+
import type {
|
|
3
3
|
ValidValueDefinition,
|
|
4
4
|
ValidValueDataDefinition,
|
|
5
5
|
} from '../types/ValidValueDefinition';
|
|
6
6
|
const genericRecyclingLogo =
|
|
7
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];
|
|
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
|
-
code:
|
|
13
|
-
category:
|
|
23
|
+
code: string;
|
|
24
|
+
category: MaterialCategory;
|
|
14
25
|
}
|
|
15
26
|
|
|
16
27
|
/** Makes sure errors are displayed where the error is introduced. */
|
|
@@ -26,7 +37,7 @@ const allPackagingMaterialTypes = {
|
|
|
26
37
|
message: 'Polyethylene terephthalate',
|
|
27
38
|
}),
|
|
28
39
|
data: {
|
|
29
|
-
logo: 'https://
|
|
40
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/01_PET.svg',
|
|
30
41
|
},
|
|
31
42
|
}),
|
|
32
43
|
'02_PE-HD': packagingMaterialType({
|
|
@@ -38,7 +49,7 @@ const allPackagingMaterialTypes = {
|
|
|
38
49
|
message: 'High-density polyethylene',
|
|
39
50
|
}),
|
|
40
51
|
data: {
|
|
41
|
-
logo: 'https://
|
|
52
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/02_PE-HD.svg',
|
|
42
53
|
},
|
|
43
54
|
}),
|
|
44
55
|
'03_PVC': packagingMaterialType({
|
|
@@ -50,7 +61,7 @@ const allPackagingMaterialTypes = {
|
|
|
50
61
|
message: 'Polyvinyl chloride',
|
|
51
62
|
}),
|
|
52
63
|
data: {
|
|
53
|
-
logo: 'https://
|
|
64
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/03_PVC.svg',
|
|
54
65
|
},
|
|
55
66
|
}),
|
|
56
67
|
'04_PELD': packagingMaterialType({
|
|
@@ -62,7 +73,7 @@ const allPackagingMaterialTypes = {
|
|
|
62
73
|
message: 'Low-density polyethylene',
|
|
63
74
|
}),
|
|
64
75
|
data: {
|
|
65
|
-
logo: 'https://
|
|
76
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/04_PELD.svg',
|
|
66
77
|
},
|
|
67
78
|
}),
|
|
68
79
|
'05_PP': packagingMaterialType({
|
|
@@ -74,7 +85,7 @@ const allPackagingMaterialTypes = {
|
|
|
74
85
|
message: 'Polypropylene',
|
|
75
86
|
}),
|
|
76
87
|
data: {
|
|
77
|
-
logo: 'https://
|
|
88
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/05_PP.svg',
|
|
78
89
|
},
|
|
79
90
|
}),
|
|
80
91
|
'06_PS': packagingMaterialType({
|
|
@@ -86,7 +97,7 @@ const allPackagingMaterialTypes = {
|
|
|
86
97
|
message: 'Polystyrene',
|
|
87
98
|
}),
|
|
88
99
|
data: {
|
|
89
|
-
logo: 'https://
|
|
100
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/06_PS.svg',
|
|
90
101
|
},
|
|
91
102
|
}),
|
|
92
103
|
'07_O': packagingMaterialType({
|
|
@@ -98,7 +109,7 @@ const allPackagingMaterialTypes = {
|
|
|
98
109
|
message: 'All other plastics',
|
|
99
110
|
}),
|
|
100
111
|
data: {
|
|
101
|
-
logo: 'https://
|
|
112
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/07_O.svg',
|
|
102
113
|
},
|
|
103
114
|
}),
|
|
104
115
|
ABS: packagingMaterialType({
|
|
@@ -110,7 +121,7 @@ const allPackagingMaterialTypes = {
|
|
|
110
121
|
message: 'Acrylonitrile butadiene styrene',
|
|
111
122
|
}),
|
|
112
123
|
data: {
|
|
113
|
-
logo: 'https://
|
|
124
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/ABS.svg',
|
|
114
125
|
},
|
|
115
126
|
}),
|
|
116
127
|
PA: packagingMaterialType({
|
|
@@ -122,7 +133,7 @@ const allPackagingMaterialTypes = {
|
|
|
122
133
|
message: 'Polyamide (Nylon)',
|
|
123
134
|
}),
|
|
124
135
|
data: {
|
|
125
|
-
logo: 'https://
|
|
136
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/PA.svg',
|
|
126
137
|
},
|
|
127
138
|
}),
|
|
128
139
|
'08_LEAD': packagingMaterialType({
|
|
@@ -134,7 +145,7 @@ const allPackagingMaterialTypes = {
|
|
|
134
145
|
message: 'Lead–acid battery',
|
|
135
146
|
}),
|
|
136
147
|
data: {
|
|
137
|
-
logo: 'https://
|
|
148
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/08_LEAD.png',
|
|
138
149
|
},
|
|
139
150
|
}),
|
|
140
151
|
'09_ALKALINE': packagingMaterialType({
|
|
@@ -146,7 +157,7 @@ const allPackagingMaterialTypes = {
|
|
|
146
157
|
message: 'Alkaline battery',
|
|
147
158
|
}),
|
|
148
159
|
data: {
|
|
149
|
-
logo: 'https://
|
|
160
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/09_ALKALINE.png',
|
|
150
161
|
},
|
|
151
162
|
}),
|
|
152
163
|
'11_NiMH': packagingMaterialType({
|
|
@@ -158,7 +169,7 @@ const allPackagingMaterialTypes = {
|
|
|
158
169
|
message: 'Nickel–metal hydride battery',
|
|
159
170
|
}),
|
|
160
171
|
data: {
|
|
161
|
-
logo: 'https://
|
|
172
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/11_NiMH.svg',
|
|
162
173
|
},
|
|
163
174
|
}),
|
|
164
175
|
'12_Li': packagingMaterialType({
|
|
@@ -170,7 +181,7 @@ const allPackagingMaterialTypes = {
|
|
|
170
181
|
message: 'Lithium battery',
|
|
171
182
|
}),
|
|
172
183
|
data: {
|
|
173
|
-
logo: 'https://
|
|
184
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/12_Li.png',
|
|
174
185
|
},
|
|
175
186
|
}),
|
|
176
187
|
'13_SO(Z)': packagingMaterialType({
|
|
@@ -182,7 +193,7 @@ const allPackagingMaterialTypes = {
|
|
|
182
193
|
message: 'Silver-oxide battery',
|
|
183
194
|
}),
|
|
184
195
|
data: {
|
|
185
|
-
logo: 'https://
|
|
196
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/13_SO(Z).png',
|
|
186
197
|
},
|
|
187
198
|
}),
|
|
188
199
|
'14_CZ': packagingMaterialType({
|
|
@@ -206,7 +217,7 @@ const allPackagingMaterialTypes = {
|
|
|
206
217
|
message: 'Corrugated fiberboard (cardboard)',
|
|
207
218
|
}),
|
|
208
219
|
data: {
|
|
209
|
-
logo: 'https://
|
|
220
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/20_PAP.svg',
|
|
210
221
|
},
|
|
211
222
|
}),
|
|
212
223
|
'21_PAP': packagingMaterialType({
|
|
@@ -218,7 +229,7 @@ const allPackagingMaterialTypes = {
|
|
|
218
229
|
message: 'Non-corrugated fiberboard (paperboard)',
|
|
219
230
|
}),
|
|
220
231
|
data: {
|
|
221
|
-
logo: 'https://
|
|
232
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/21_PAP.svg',
|
|
222
233
|
},
|
|
223
234
|
}),
|
|
224
235
|
'22_PAP': packagingMaterialType({
|
|
@@ -230,7 +241,7 @@ const allPackagingMaterialTypes = {
|
|
|
230
241
|
message: 'Paper',
|
|
231
242
|
}),
|
|
232
243
|
data: {
|
|
233
|
-
logo: 'https://
|
|
244
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/22_PAP.svg',
|
|
234
245
|
},
|
|
235
246
|
}),
|
|
236
247
|
'40_FE': packagingMaterialType({
|
|
@@ -242,7 +253,7 @@ const allPackagingMaterialTypes = {
|
|
|
242
253
|
message: 'Steel',
|
|
243
254
|
}),
|
|
244
255
|
data: {
|
|
245
|
-
logo: 'https://
|
|
256
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/40_FE.svg',
|
|
246
257
|
},
|
|
247
258
|
}),
|
|
248
259
|
'41_ALU': packagingMaterialType({
|
|
@@ -254,61 +265,61 @@ const allPackagingMaterialTypes = {
|
|
|
254
265
|
message: 'Aluminium',
|
|
255
266
|
}),
|
|
256
267
|
data: {
|
|
257
|
-
logo: 'https://
|
|
268
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/41_ALU.svg',
|
|
258
269
|
},
|
|
259
270
|
}),
|
|
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',
|
|
267
278
|
}),
|
|
268
279
|
data: {
|
|
269
|
-
logo: 'https://
|
|
280
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/50_FOR.svg',
|
|
270
281
|
},
|
|
271
282
|
}),
|
|
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',
|
|
279
290
|
}),
|
|
280
291
|
data: {
|
|
281
|
-
logo: 'https://
|
|
292
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/51_FOR.svg',
|
|
282
293
|
},
|
|
283
294
|
}),
|
|
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',
|
|
291
302
|
}),
|
|
292
303
|
data: {
|
|
293
|
-
logo: 'https://
|
|
304
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/60_COT.svg',
|
|
294
305
|
},
|
|
295
306
|
}),
|
|
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',
|
|
303
314
|
}),
|
|
304
315
|
data: {
|
|
305
|
-
logo: 'https://
|
|
316
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/61_TEX.svg',
|
|
306
317
|
},
|
|
307
318
|
}),
|
|
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',
|
|
@@ -326,7 +337,7 @@ const allPackagingMaterialTypes = {
|
|
|
326
337
|
message: 'Clear Glass',
|
|
327
338
|
}),
|
|
328
339
|
data: {
|
|
329
|
-
logo: 'https://
|
|
340
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/70_GL.svg',
|
|
330
341
|
},
|
|
331
342
|
}),
|
|
332
343
|
'71_GL': packagingMaterialType({
|
|
@@ -338,7 +349,7 @@ const allPackagingMaterialTypes = {
|
|
|
338
349
|
message: 'Green Glass',
|
|
339
350
|
}),
|
|
340
351
|
data: {
|
|
341
|
-
logo: 'https://
|
|
352
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/71_GL.svg',
|
|
342
353
|
},
|
|
343
354
|
}),
|
|
344
355
|
'72_GL': packagingMaterialType({
|
|
@@ -350,7 +361,7 @@ const allPackagingMaterialTypes = {
|
|
|
350
361
|
message: 'Brown Glass',
|
|
351
362
|
}),
|
|
352
363
|
data: {
|
|
353
|
-
logo: 'https://
|
|
364
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/72_GL.svg',
|
|
354
365
|
},
|
|
355
366
|
}),
|
|
356
367
|
'73_GL': packagingMaterialType({
|
|
@@ -362,7 +373,7 @@ const allPackagingMaterialTypes = {
|
|
|
362
373
|
message: 'Dark Sort Glass',
|
|
363
374
|
}),
|
|
364
375
|
data: {
|
|
365
|
-
logo: 'https://
|
|
376
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/73_GL.png',
|
|
366
377
|
},
|
|
367
378
|
}),
|
|
368
379
|
'74_GL': packagingMaterialType({
|
|
@@ -374,7 +385,7 @@ const allPackagingMaterialTypes = {
|
|
|
374
385
|
message: 'Light Sort Glass',
|
|
375
386
|
}),
|
|
376
387
|
data: {
|
|
377
|
-
logo: 'https://
|
|
388
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/74_GL.png',
|
|
378
389
|
},
|
|
379
390
|
}),
|
|
380
391
|
'75_GL': packagingMaterialType({
|
|
@@ -386,7 +397,7 @@ const allPackagingMaterialTypes = {
|
|
|
386
397
|
message: 'Light Leaded Glass',
|
|
387
398
|
}),
|
|
388
399
|
data: {
|
|
389
|
-
logo: 'https://
|
|
400
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/75_GL.png',
|
|
390
401
|
},
|
|
391
402
|
}),
|
|
392
403
|
'76_GL': packagingMaterialType({
|
|
@@ -398,7 +409,7 @@ const allPackagingMaterialTypes = {
|
|
|
398
409
|
message: 'Leaded Glass',
|
|
399
410
|
}),
|
|
400
411
|
data: {
|
|
401
|
-
logo: 'https://
|
|
412
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/76_GL.png',
|
|
402
413
|
},
|
|
403
414
|
}),
|
|
404
415
|
'77_GL': packagingMaterialType({
|
|
@@ -410,7 +421,7 @@ const allPackagingMaterialTypes = {
|
|
|
410
421
|
message: 'Copper Mixed/Copper Backed Glass',
|
|
411
422
|
}),
|
|
412
423
|
data: {
|
|
413
|
-
logo: 'https://
|
|
424
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/77_GL.png',
|
|
414
425
|
},
|
|
415
426
|
}),
|
|
416
427
|
'78_GL': packagingMaterialType({
|
|
@@ -422,7 +433,7 @@ const allPackagingMaterialTypes = {
|
|
|
422
433
|
message: 'Silver Mixed/Silver Backed Glass',
|
|
423
434
|
}),
|
|
424
435
|
data: {
|
|
425
|
-
logo: 'https://
|
|
436
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/78_GL.png',
|
|
426
437
|
},
|
|
427
438
|
}),
|
|
428
439
|
'79_GL': packagingMaterialType({
|
|
@@ -434,7 +445,7 @@ const allPackagingMaterialTypes = {
|
|
|
434
445
|
message: 'Gold Mixed/Gold Backed Glass',
|
|
435
446
|
}),
|
|
436
447
|
data: {
|
|
437
|
-
logo: 'https://
|
|
448
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/79_GL.svg',
|
|
438
449
|
},
|
|
439
450
|
}),
|
|
440
451
|
'80_Paper': packagingMaterialType({
|
|
@@ -494,7 +505,7 @@ const allPackagingMaterialTypes = {
|
|
|
494
505
|
message: 'Paper and cardboard/plastic/aluminium',
|
|
495
506
|
}),
|
|
496
507
|
data: {
|
|
497
|
-
logo: 'https://
|
|
508
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/84_C_PAP.svg',
|
|
498
509
|
},
|
|
499
510
|
}),
|
|
500
511
|
'85': packagingMaterialType({
|
|
@@ -518,7 +529,7 @@ const allPackagingMaterialTypes = {
|
|
|
518
529
|
message: 'Biodegradable plastic',
|
|
519
530
|
}),
|
|
520
531
|
data: {
|
|
521
|
-
logo: 'https://
|
|
532
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/87_CSL.png',
|
|
522
533
|
},
|
|
523
534
|
}),
|
|
524
535
|
'90_C_LDPE': packagingMaterialType({
|
|
@@ -530,7 +541,7 @@ const allPackagingMaterialTypes = {
|
|
|
530
541
|
message: 'Plastics/Aluminium',
|
|
531
542
|
}),
|
|
532
543
|
data: {
|
|
533
|
-
logo: 'https://
|
|
544
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/90_C_LDPE.png',
|
|
534
545
|
},
|
|
535
546
|
}),
|
|
536
547
|
'91_C_LDPE': packagingMaterialType({
|
|
@@ -542,7 +553,7 @@ const allPackagingMaterialTypes = {
|
|
|
542
553
|
message: 'Plastic/Tinplate',
|
|
543
554
|
}),
|
|
544
555
|
data: {
|
|
545
|
-
logo: 'https://
|
|
556
|
+
logo: 'https://cdn.bottlebooks.me/bottlebooks/img/logos/packagingMaterialType/91_C_LDPE.png',
|
|
546
557
|
},
|
|
547
558
|
}),
|
|
548
559
|
'92': packagingMaterialType({
|