@reactionary/core 0.10.55 → 0.10.56
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/package.json +1 -1
- package/schemas/models/product-search.model.js +3 -0
- package/schemas/models/product.model.js +3 -0
- package/src/schemas/models/product-associations.model.d.ts +6 -0
- package/src/schemas/models/product-recommendations.model.d.ts +6 -0
- package/src/schemas/models/product-search.model.d.ts +9 -0
- package/src/schemas/models/product.model.d.ts +6 -0
package/package.json
CHANGED
|
@@ -7,6 +7,9 @@ const ProductSearchResultItemComplianceDataSchema = z.looseObject({
|
|
|
7
7
|
weee_symbol: z.boolean().default(false).meta({ description: "Indicates whether the WEEE symbol can be shown on the product" }),
|
|
8
8
|
energy_class: z.string().optional().meta({ description: "The energy class of the product, as required by EU regulations. A,B,C,D,E,F,G, etc" }),
|
|
9
9
|
garan_duration: z.number().optional().meta({ description: "The duration of the guarantee in months as by the EU Garan scheme. Only set if above 24." }),
|
|
10
|
+
energy_class_range: z.string().optional().meta({ description: 'The scale the energy class belongs to, e.g. "A-G", "A++-G" or "A+++-D". Needed to render the EU class arrow, because the same class letter is drawn differently on different scales.' }),
|
|
11
|
+
eprel_registration_number: z.string().optional().meta({ description: "The EPREL registration number of the product model (digits only, up to 19). Together with eprel_product_group it identifies the official EU energy label and class arrow." }),
|
|
12
|
+
eprel_product_group: z.string().optional().meta({ description: 'The EPREL product group URL code the model is registered under, e.g. "spaceheaters" or "localspaceheaters".' }),
|
|
10
13
|
is_organic: z.boolean().optional().meta({ description: "Indicates whether the product is organic" }),
|
|
11
14
|
organic_certification_type: z.string().optional().meta({ description: "The type of organic certification, e.g., EU_ORGANIC_LEAF, GOTS, ECOCERT." })
|
|
12
15
|
});
|
|
@@ -6,6 +6,9 @@ const ProductComplianceDataSchema = z.looseObject({
|
|
|
6
6
|
weee_symbol: z.boolean().default(false).meta({ description: "Indicates whether the WEEE symbol can be shown on the product" }),
|
|
7
7
|
energy_class: z.string().optional().meta({ description: "The energy class of the product, as required by EU regulations. A,B,C,D,E,F,G, etc" }),
|
|
8
8
|
garan_duration: z.number().optional().meta({ description: "The duration of the guarantee in months as by the EU Garan scheme. Only set if above 24." }),
|
|
9
|
+
energy_class_range: z.string().optional().meta({ description: 'The scale the energy class belongs to, e.g. "A-G", "A++-G" or "A+++-D". Needed to render the EU class arrow, because the same class letter is drawn differently on different scales.' }),
|
|
10
|
+
eprel_registration_number: z.string().optional().meta({ description: "The EPREL registration number of the product model (digits only, up to 19). Together with eprel_product_group it identifies the official EU energy label and class arrow." }),
|
|
11
|
+
eprel_product_group: z.string().optional().meta({ description: 'The EPREL product group URL code the model is registered under, e.g. "spaceheaters" or "localspaceheaters".' }),
|
|
9
12
|
safety_warnings: z.string().optional().meta({ description: "Any safety warnings associated with the product as required by EU regulations." }),
|
|
10
13
|
composition: z.string().optional().meta({ description: "The composition of the product as required by EU regulations." }),
|
|
11
14
|
additional_disclosures: z.string().optional().meta({ description: "Any additional disclosures associated with the product as required by EU regulations." }),
|
|
@@ -30,6 +30,9 @@ export declare const ProductAssociationProductSearchResultItemSchema: z.ZodObjec
|
|
|
30
30
|
weee_symbol: z.ZodDefault<z.ZodBoolean>;
|
|
31
31
|
energy_class: z.ZodOptional<z.ZodString>;
|
|
32
32
|
garan_duration: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
energy_class_range: z.ZodOptional<z.ZodString>;
|
|
34
|
+
eprel_registration_number: z.ZodOptional<z.ZodString>;
|
|
35
|
+
eprel_product_group: z.ZodOptional<z.ZodString>;
|
|
33
36
|
is_organic: z.ZodOptional<z.ZodBoolean>;
|
|
34
37
|
organic_certification_type: z.ZodOptional<z.ZodString>;
|
|
35
38
|
}, z.core.$loose>>;
|
|
@@ -85,6 +88,9 @@ export declare const ProductAssociationSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
85
88
|
weee_symbol: z.ZodDefault<z.ZodBoolean>;
|
|
86
89
|
energy_class: z.ZodOptional<z.ZodString>;
|
|
87
90
|
garan_duration: z.ZodOptional<z.ZodNumber>;
|
|
91
|
+
energy_class_range: z.ZodOptional<z.ZodString>;
|
|
92
|
+
eprel_registration_number: z.ZodOptional<z.ZodString>;
|
|
93
|
+
eprel_product_group: z.ZodOptional<z.ZodString>;
|
|
88
94
|
is_organic: z.ZodOptional<z.ZodBoolean>;
|
|
89
95
|
organic_certification_type: z.ZodOptional<z.ZodString>;
|
|
90
96
|
}, z.core.$loose>>;
|
|
@@ -33,6 +33,9 @@ export declare const ProductRecommendationProductSearchResultItemSchema: z.ZodOb
|
|
|
33
33
|
weee_symbol: z.ZodDefault<z.ZodBoolean>;
|
|
34
34
|
energy_class: z.ZodOptional<z.ZodString>;
|
|
35
35
|
garan_duration: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
energy_class_range: z.ZodOptional<z.ZodString>;
|
|
37
|
+
eprel_registration_number: z.ZodOptional<z.ZodString>;
|
|
38
|
+
eprel_product_group: z.ZodOptional<z.ZodString>;
|
|
36
39
|
is_organic: z.ZodOptional<z.ZodBoolean>;
|
|
37
40
|
organic_certification_type: z.ZodOptional<z.ZodString>;
|
|
38
41
|
}, z.core.$loose>>;
|
|
@@ -90,6 +93,9 @@ export declare const ProductRecommendationSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
90
93
|
weee_symbol: z.ZodDefault<z.ZodBoolean>;
|
|
91
94
|
energy_class: z.ZodOptional<z.ZodString>;
|
|
92
95
|
garan_duration: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
energy_class_range: z.ZodOptional<z.ZodString>;
|
|
97
|
+
eprel_registration_number: z.ZodOptional<z.ZodString>;
|
|
98
|
+
eprel_product_group: z.ZodOptional<z.ZodString>;
|
|
93
99
|
is_organic: z.ZodOptional<z.ZodBoolean>;
|
|
94
100
|
organic_certification_type: z.ZodOptional<z.ZodString>;
|
|
95
101
|
}, z.core.$loose>>;
|
|
@@ -5,6 +5,9 @@ export declare const ProductSearchResultItemComplianceDataSchema: z.ZodObject<{
|
|
|
5
5
|
weee_symbol: z.ZodDefault<z.ZodBoolean>;
|
|
6
6
|
energy_class: z.ZodOptional<z.ZodString>;
|
|
7
7
|
garan_duration: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
energy_class_range: z.ZodOptional<z.ZodString>;
|
|
9
|
+
eprel_registration_number: z.ZodOptional<z.ZodString>;
|
|
10
|
+
eprel_product_group: z.ZodOptional<z.ZodString>;
|
|
8
11
|
is_organic: z.ZodOptional<z.ZodBoolean>;
|
|
9
12
|
organic_certification_type: z.ZodOptional<z.ZodString>;
|
|
10
13
|
}, z.core.$loose>;
|
|
@@ -45,6 +48,9 @@ export declare const ProductSearchResultItemSchema: z.ZodObject<{
|
|
|
45
48
|
weee_symbol: z.ZodDefault<z.ZodBoolean>;
|
|
46
49
|
energy_class: z.ZodOptional<z.ZodString>;
|
|
47
50
|
garan_duration: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
energy_class_range: z.ZodOptional<z.ZodString>;
|
|
52
|
+
eprel_registration_number: z.ZodOptional<z.ZodString>;
|
|
53
|
+
eprel_product_group: z.ZodOptional<z.ZodString>;
|
|
48
54
|
is_organic: z.ZodOptional<z.ZodBoolean>;
|
|
49
55
|
organic_certification_type: z.ZodOptional<z.ZodString>;
|
|
50
56
|
}, z.core.$loose>>;
|
|
@@ -119,6 +125,9 @@ export declare const ProductSearchResultSchema: z.ZodObject<{
|
|
|
119
125
|
weee_symbol: z.ZodDefault<z.ZodBoolean>;
|
|
120
126
|
energy_class: z.ZodOptional<z.ZodString>;
|
|
121
127
|
garan_duration: z.ZodOptional<z.ZodNumber>;
|
|
128
|
+
energy_class_range: z.ZodOptional<z.ZodString>;
|
|
129
|
+
eprel_registration_number: z.ZodOptional<z.ZodString>;
|
|
130
|
+
eprel_product_group: z.ZodOptional<z.ZodString>;
|
|
122
131
|
is_organic: z.ZodOptional<z.ZodBoolean>;
|
|
123
132
|
organic_certification_type: z.ZodOptional<z.ZodString>;
|
|
124
133
|
}, z.core.$loose>>;
|
|
@@ -9,6 +9,9 @@ export declare const ProductComplianceDataSchema: z.ZodObject<{
|
|
|
9
9
|
weee_symbol: z.ZodDefault<z.ZodBoolean>;
|
|
10
10
|
energy_class: z.ZodOptional<z.ZodString>;
|
|
11
11
|
garan_duration: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
energy_class_range: z.ZodOptional<z.ZodString>;
|
|
13
|
+
eprel_registration_number: z.ZodOptional<z.ZodString>;
|
|
14
|
+
eprel_product_group: z.ZodOptional<z.ZodString>;
|
|
12
15
|
safety_warnings: z.ZodOptional<z.ZodString>;
|
|
13
16
|
composition: z.ZodOptional<z.ZodString>;
|
|
14
17
|
additional_disclosures: z.ZodOptional<z.ZodString>;
|
|
@@ -234,6 +237,9 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
234
237
|
weee_symbol: z.ZodDefault<z.ZodBoolean>;
|
|
235
238
|
energy_class: z.ZodOptional<z.ZodString>;
|
|
236
239
|
garan_duration: z.ZodOptional<z.ZodNumber>;
|
|
240
|
+
energy_class_range: z.ZodOptional<z.ZodString>;
|
|
241
|
+
eprel_registration_number: z.ZodOptional<z.ZodString>;
|
|
242
|
+
eprel_product_group: z.ZodOptional<z.ZodString>;
|
|
237
243
|
safety_warnings: z.ZodOptional<z.ZodString>;
|
|
238
244
|
composition: z.ZodOptional<z.ZodString>;
|
|
239
245
|
additional_disclosures: z.ZodOptional<z.ZodString>;
|