pim-import 6.11.0 → 6.11.1
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.
|
@@ -363,10 +363,11 @@ const importDictionaryProductSubLine = async () => {
|
|
|
363
363
|
(0, logs_1.log)(`Import productSubLine ${productSubLine.code}`);
|
|
364
364
|
let productSubLineEntry = await (0, contentful_1.getEntryByCode)(productSubLine.code, "topicProductSubLine");
|
|
365
365
|
let productLineEntry = null;
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
const productLineCode = productSubLine.productLine?.code;
|
|
367
|
+
if (productLineCode) {
|
|
368
|
+
productLineEntry = await (0, contentful_1.getEntryByCode)(productLineCode, "topicProductLine");
|
|
368
369
|
if (!productLineEntry) {
|
|
369
|
-
(0, logs_1.log)(`No topicProductLine with code ${
|
|
370
|
+
(0, logs_1.log)(`No topicProductLine with code ${productLineCode} found for the productSubLine ${productSubLine.code}`);
|
|
370
371
|
}
|
|
371
372
|
}
|
|
372
373
|
else {
|
|
@@ -1,34 +1,71 @@
|
|
|
1
1
|
export interface DProductSubLine {
|
|
2
|
+
parentName: string;
|
|
2
3
|
code: string;
|
|
3
|
-
image
|
|
4
|
-
imageAlternative
|
|
4
|
+
image: string | null;
|
|
5
|
+
imageAlternative: string | null;
|
|
5
6
|
value_en: string;
|
|
6
|
-
value_en_US: string;
|
|
7
7
|
value_it: string;
|
|
8
8
|
value_es: string;
|
|
9
9
|
value_de: string;
|
|
10
10
|
value_fr: string;
|
|
11
|
-
value_sv: string;
|
|
12
|
-
value_no: string;
|
|
13
|
-
value_da: string;
|
|
14
|
-
value_ru: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
value_sv: string | null;
|
|
12
|
+
value_no: string | null;
|
|
13
|
+
value_da: string | null;
|
|
14
|
+
value_ru: string | null;
|
|
15
|
+
value_en_US: string | null;
|
|
16
|
+
value_ja: string | null;
|
|
17
|
+
value_zh: string | null;
|
|
18
|
+
value_ko: string | null;
|
|
19
|
+
note_en: string | null;
|
|
20
|
+
note_it: string | null;
|
|
21
|
+
note_es: string | null;
|
|
22
|
+
note_de: string | null;
|
|
23
|
+
note_fr: string | null;
|
|
24
|
+
note_sv: string | null;
|
|
25
|
+
note_no: string | null;
|
|
26
|
+
note_da: string | null;
|
|
27
|
+
note_ru: string | null;
|
|
28
|
+
note_en_US: string | null;
|
|
29
|
+
note_zh: string | null;
|
|
30
|
+
note_ja: string | null;
|
|
31
|
+
note_ko: string | null;
|
|
32
|
+
imgRelUrl: string | null;
|
|
33
|
+
imgAltRelUrl: string | null;
|
|
34
|
+
priority: number | null;
|
|
18
35
|
productLine: ProductLine;
|
|
19
36
|
}
|
|
20
37
|
export interface ProductLine {
|
|
38
|
+
parentName: string;
|
|
21
39
|
code: string;
|
|
22
|
-
image
|
|
23
|
-
imageAlternative
|
|
40
|
+
image: string | null;
|
|
41
|
+
imageAlternative: string | null;
|
|
24
42
|
value_en: string;
|
|
25
43
|
value_it: string;
|
|
26
44
|
value_es: string;
|
|
27
45
|
value_de: string;
|
|
28
46
|
value_fr: string;
|
|
29
|
-
value_sv: string;
|
|
30
|
-
value_no: string;
|
|
31
|
-
value_da: string;
|
|
32
|
-
value_ru: string;
|
|
33
|
-
value_en_US
|
|
47
|
+
value_sv: string | null;
|
|
48
|
+
value_no: string | null;
|
|
49
|
+
value_da: string | null;
|
|
50
|
+
value_ru: string | null;
|
|
51
|
+
value_en_US: string | null;
|
|
52
|
+
value_ja: string | null;
|
|
53
|
+
value_zh: string | null;
|
|
54
|
+
value_ko: string | null;
|
|
55
|
+
note_en: string | null;
|
|
56
|
+
note_it: string | null;
|
|
57
|
+
note_es: string | null;
|
|
58
|
+
note_de: string | null;
|
|
59
|
+
note_fr: string | null;
|
|
60
|
+
note_sv: string | null;
|
|
61
|
+
note_no: string | null;
|
|
62
|
+
note_da: string | null;
|
|
63
|
+
note_ru: string | null;
|
|
64
|
+
note_en_US: string | null;
|
|
65
|
+
note_zh: string | null;
|
|
66
|
+
note_ja: string | null;
|
|
67
|
+
note_ko: string | null;
|
|
68
|
+
imgRelUrl: string | null;
|
|
69
|
+
imgAltRelUrl: string | null;
|
|
70
|
+
priority: number | null;
|
|
34
71
|
}
|