pim-import 5.0.0 → 5.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/dist/algolia/clean.js +0 -1
- package/dist/algolia/config.js +0 -1
- package/dist/algolia/downloads.js +0 -1
- package/dist/algolia/families.js +0 -1
- package/dist/algolia/inspirations.js +0 -1
- package/dist/algolia/models.js +0 -1
- package/dist/algolia/news.js +0 -1
- package/dist/algolia/pressRelease.js +0 -1
- package/dist/algolia/pressReview.js +0 -1
- package/dist/algolia/products.js +0 -1
- package/dist/algolia/projects.js +0 -1
- package/dist/algolia/stories.js +0 -1
- package/dist/algolia/subFamilies.js +0 -1
- package/dist/algolia/subModels.js +0 -1
- package/dist/browser.js +0 -1
- package/dist/downloads/classes/manageEntry.js +0 -1
- package/dist/downloads/import.js +0 -1
- package/dist/index.js +0 -1
- package/dist/libs/contentful-cda.js +0 -1
- package/dist/libs/contentful.js +0 -1
- package/dist/libs/imgix.js +0 -1
- package/dist/libs/logs.js +0 -1
- package/dist/libs/netlify.js +0 -1
- package/dist/libs/notifications.js +0 -1
- package/dist/libs/pdf.js +0 -1
- package/dist/libs/s3.js +0 -1
- package/dist/libs/sentry.js +0 -1
- package/dist/pim/config.js +0 -1
- package/dist/pim/endpoints.js +0 -1
- package/dist/pim/methods/bulkPublish.js +0 -1
- package/dist/pim/methods/catalogs.js +0 -1
- package/dist/pim/methods/checkTopicDraftAndPagePublished.js +0 -1
- package/dist/pim/methods/designers.js +0 -1
- package/dist/pim/methods/dictionary.js +0 -1
- package/dist/pim/methods/families.js +0 -1
- package/dist/pim/methods/latestProducts.js +0 -1
- package/dist/pim/methods/migrateEntryFields.js +0 -1
- package/dist/pim/methods/models.js +0 -1
- package/dist/pim/methods/pages/catalogs.js +0 -1
- package/dist/pim/methods/pages/families.js +0 -1
- package/dist/pim/methods/pages/subfamilies.js +0 -1
- package/dist/pim/methods/products.js +0 -1
- package/dist/pim/methods/subfamilies.js +0 -1
- package/dist/pim/methods/submodels.js +0 -1
- package/dist/pim/request.js +0 -1
- package/dist/resources/AllProducts.js +0 -1
- package/dist/resources/Audit.js +0 -1
- package/dist/resources/CatalogDetails.js +0 -1
- package/dist/resources/CollectionModels.js +0 -1
- package/dist/resources/CollectionSubFamilies.js +0 -1
- package/dist/resources/CollectionSubModels.js +0 -1
- package/dist/resources/DProductSubLine.js +0 -1
- package/dist/resources/FamilyDetails.js +0 -1
- package/dist/resources/ProductDetails.js +0 -1
- package/dist/resources/ProductRelation.js +0 -1
- package/dist/resources/cfFields.js +0 -1
- package/dist/types.js +0 -1
- package/dist/utils.js +0 -1
- package/package.json +7 -2
- package/.env.example +0 -46
- package/.nvmrc +0 -1
- package/.vscode/settings.json +0 -21
- package/dist/algolia/clean.js.map +0 -1
- package/dist/algolia/config.js.map +0 -1
- package/dist/algolia/downloads.js.map +0 -1
- package/dist/algolia/families.js.map +0 -1
- package/dist/algolia/inspirations.js.map +0 -1
- package/dist/algolia/models.js.map +0 -1
- package/dist/algolia/news.js.map +0 -1
- package/dist/algolia/pressRelease.js.map +0 -1
- package/dist/algolia/pressReview.js.map +0 -1
- package/dist/algolia/products.js.map +0 -1
- package/dist/algolia/projects.js.map +0 -1
- package/dist/algolia/stories.js.map +0 -1
- package/dist/algolia/subFamilies.js.map +0 -1
- package/dist/algolia/subModels.js.map +0 -1
- package/dist/browser.js.map +0 -1
- package/dist/downloads/classes/manageEntry.js.map +0 -1
- package/dist/downloads/import.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/libs/contentful-cda.js.map +0 -1
- package/dist/libs/contentful.js.map +0 -1
- package/dist/libs/imgix.js.map +0 -1
- package/dist/libs/logs.js.map +0 -1
- package/dist/libs/netlify.js.map +0 -1
- package/dist/libs/notifications.js.map +0 -1
- package/dist/libs/pdf.js.map +0 -1
- package/dist/libs/s3.js.map +0 -1
- package/dist/libs/sentry.js.map +0 -1
- package/dist/pim/config.js.map +0 -1
- package/dist/pim/endpoints.js.map +0 -1
- package/dist/pim/methods/bulkPublish.js.map +0 -1
- package/dist/pim/methods/catalogs.js.map +0 -1
- package/dist/pim/methods/checkTopicDraftAndPagePublished.js.map +0 -1
- package/dist/pim/methods/designers.js.map +0 -1
- package/dist/pim/methods/dictionary.js.map +0 -1
- package/dist/pim/methods/families.js.map +0 -1
- package/dist/pim/methods/latestProducts.js.map +0 -1
- package/dist/pim/methods/migrateEntryFields.js.map +0 -1
- package/dist/pim/methods/models.js.map +0 -1
- package/dist/pim/methods/pages/catalogs.js.map +0 -1
- package/dist/pim/methods/pages/families.js.map +0 -1
- package/dist/pim/methods/pages/subfamilies.js.map +0 -1
- package/dist/pim/methods/products.js.map +0 -1
- package/dist/pim/methods/subfamilies.js.map +0 -1
- package/dist/pim/methods/submodels.js.map +0 -1
- package/dist/pim/request.js.map +0 -1
- package/dist/resources/AllProducts.js.map +0 -1
- package/dist/resources/Audit.js.map +0 -1
- package/dist/resources/CatalogDetails.js.map +0 -1
- package/dist/resources/CollectionModels.js.map +0 -1
- package/dist/resources/CollectionSubFamilies.js.map +0 -1
- package/dist/resources/CollectionSubModels.js.map +0 -1
- package/dist/resources/DProductSubLine.js.map +0 -1
- package/dist/resources/FamilyDetails.js.map +0 -1
- package/dist/resources/ProductDetails.js.map +0 -1
- package/dist/resources/ProductRelation.js.map +0 -1
- package/dist/resources/cfFields.js.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/utils.js.map +0 -1
- package/docs/import-data-from-the-dictionary.md +0 -83
- package/docs/import-products.md +0 -61
- package/docs/import-taxonomies-from-the-catalog.md +0 -60
- package/docs/settings.md +0 -47
- package/jest.config.js +0 -16
- package/local-fn/reindex.js +0 -182
- package/src/algolia/clean.ts +0 -164
- package/src/algolia/config.ts +0 -390
- package/src/algolia/downloads.ts +0 -346
- package/src/algolia/families.ts +0 -652
- package/src/algolia/inspirations.ts +0 -315
- package/src/algolia/models.ts +0 -589
- package/src/algolia/news.ts +0 -258
- package/src/algolia/pressRelease.ts +0 -255
- package/src/algolia/pressReview.ts +0 -247
- package/src/algolia/products.ts +0 -731
- package/src/algolia/projects.ts +0 -339
- package/src/algolia/stories.ts +0 -347
- package/src/algolia/subFamilies.ts +0 -709
- package/src/algolia/subModels.ts +0 -359
- package/src/browser.ts +0 -122
- package/src/downloads/classes/manageEntry.ts +0 -99
- package/src/downloads/csv/legal.csv +0 -5
- package/src/downloads/csv/products.csv +0 -373
- package/src/downloads/import.ts +0 -381
- package/src/index.ts +0 -140
- package/src/libs/contentful-cda.ts +0 -543
- package/src/libs/contentful.ts +0 -1453
- package/src/libs/imgix.ts +0 -297
- package/src/libs/logs.ts +0 -121
- package/src/libs/netlify.ts +0 -37
- package/src/libs/notifications.ts +0 -104
- package/src/libs/pdf.ts +0 -107
- package/src/libs/s3.ts +0 -305
- package/src/libs/sentry.ts +0 -33
- package/src/pim/config.ts +0 -84
- package/src/pim/data/productFields.json +0 -1178
- package/src/pim/endpoints.ts +0 -364
- package/src/pim/methods/bulkPublish.ts +0 -266
- package/src/pim/methods/catalogs.ts +0 -586
- package/src/pim/methods/checkTopicDraftAndPagePublished.ts +0 -70
- package/src/pim/methods/designers.ts +0 -128
- package/src/pim/methods/dictionary.ts +0 -611
- package/src/pim/methods/families.ts +0 -345
- package/src/pim/methods/latestProducts.ts +0 -70
- package/src/pim/methods/migrateEntryFields.ts +0 -99
- package/src/pim/methods/models.ts +0 -349
- package/src/pim/methods/pages/catalogs.ts +0 -28
- package/src/pim/methods/pages/families.ts +0 -50
- package/src/pim/methods/pages/subfamilies.ts +0 -98
- package/src/pim/methods/products.ts +0 -3297
- package/src/pim/methods/subfamilies.ts +0 -706
- package/src/pim/methods/submodels.ts +0 -262
- package/src/pim/request.ts +0 -61
- package/src/resources/AllProducts.ts +0 -41
- package/src/resources/Audit.ts +0 -24
- package/src/resources/CatalogDetails.ts +0 -51
- package/src/resources/CollectionModels.ts +0 -42
- package/src/resources/CollectionSubFamilies.ts +0 -45
- package/src/resources/CollectionSubModels.ts +0 -36
- package/src/resources/DProductSubLine.ts +0 -34
- package/src/resources/FamilyDetails.ts +0 -31
- package/src/resources/ProductDetails.ts +0 -352
- package/src/resources/ProductRelation.ts +0 -24
- package/src/resources/cfFields.ts +0 -8
- package/src/types.ts +0 -268
- package/src/utils.ts +0 -553
- package/tsconfig.json +0 -93
- package/tslint.json +0 -22
- package/types/libs/puppeteer.d.ts +0 -17
- package/types/pim/methods/checkIp.d.ts +0 -1
- /package/{types → dist}/algolia/clean.d.ts +0 -0
- /package/{types → dist}/algolia/config.d.ts +0 -0
- /package/{types → dist}/algolia/downloads.d.ts +0 -0
- /package/{types → dist}/algolia/families.d.ts +0 -0
- /package/{types → dist}/algolia/inspirations.d.ts +0 -0
- /package/{types → dist}/algolia/models.d.ts +0 -0
- /package/{types → dist}/algolia/news.d.ts +0 -0
- /package/{types → dist}/algolia/pressRelease.d.ts +0 -0
- /package/{types → dist}/algolia/pressReview.d.ts +0 -0
- /package/{types → dist}/algolia/products.d.ts +0 -0
- /package/{types → dist}/algolia/projects.d.ts +0 -0
- /package/{types → dist}/algolia/stories.d.ts +0 -0
- /package/{types → dist}/algolia/subFamilies.d.ts +0 -0
- /package/{types → dist}/algolia/subModels.d.ts +0 -0
- /package/{types → dist}/browser.d.ts +0 -0
- /package/{types → dist}/downloads/classes/manageEntry.d.ts +0 -0
- /package/{types → dist}/downloads/import.d.ts +0 -0
- /package/{types → dist}/index.d.ts +0 -0
- /package/{types → dist}/libs/contentful-cda.d.ts +0 -0
- /package/{types → dist}/libs/contentful.d.ts +0 -0
- /package/{types → dist}/libs/imgix.d.ts +0 -0
- /package/{types → dist}/libs/logs.d.ts +0 -0
- /package/{types → dist}/libs/netlify.d.ts +0 -0
- /package/{types → dist}/libs/notifications.d.ts +0 -0
- /package/{types → dist}/libs/pdf.d.ts +0 -0
- /package/{types → dist}/libs/s3.d.ts +0 -0
- /package/{types → dist}/libs/sentry.d.ts +0 -0
- /package/{types → dist}/pim/config.d.ts +0 -0
- /package/{types → dist}/pim/endpoints.d.ts +0 -0
- /package/{types → dist}/pim/methods/bulkPublish.d.ts +0 -0
- /package/{types → dist}/pim/methods/catalogs.d.ts +0 -0
- /package/{types → dist}/pim/methods/checkTopicDraftAndPagePublished.d.ts +0 -0
- /package/{types → dist}/pim/methods/designers.d.ts +0 -0
- /package/{types → dist}/pim/methods/dictionary.d.ts +0 -0
- /package/{types → dist}/pim/methods/families.d.ts +0 -0
- /package/{types → dist}/pim/methods/latestProducts.d.ts +0 -0
- /package/{types → dist}/pim/methods/migrateEntryFields.d.ts +0 -0
- /package/{types → dist}/pim/methods/models.d.ts +0 -0
- /package/{types → dist}/pim/methods/pages/catalogs.d.ts +0 -0
- /package/{types → dist}/pim/methods/pages/families.d.ts +0 -0
- /package/{types → dist}/pim/methods/pages/subfamilies.d.ts +0 -0
- /package/{types → dist}/pim/methods/products.d.ts +0 -0
- /package/{types → dist}/pim/methods/subfamilies.d.ts +0 -0
- /package/{types → dist}/pim/methods/submodels.d.ts +0 -0
- /package/{types → dist}/pim/request.d.ts +0 -0
- /package/{types → dist}/resources/AllProducts.d.ts +0 -0
- /package/{types → dist}/resources/Audit.d.ts +0 -0
- /package/{types → dist}/resources/CatalogDetails.d.ts +0 -0
- /package/{types → dist}/resources/CollectionModels.d.ts +0 -0
- /package/{types → dist}/resources/CollectionSubFamilies.d.ts +0 -0
- /package/{types → dist}/resources/CollectionSubModels.d.ts +0 -0
- /package/{types → dist}/resources/DProductSubLine.d.ts +0 -0
- /package/{types → dist}/resources/FamilyDetails.d.ts +0 -0
- /package/{types → dist}/resources/ProductDetails.d.ts +0 -0
- /package/{types → dist}/resources/ProductRelation.d.ts +0 -0
- /package/{types → dist}/resources/cfFields.d.ts +0 -0
- /package/{types → dist}/types.d.ts +0 -0
- /package/{types → dist}/utils.d.ts +0 -0
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
import { AvailableCatalogs } from "../types";
|
|
2
|
-
|
|
3
|
-
export interface ProductDetails {
|
|
4
|
-
code: string;
|
|
5
|
-
name: string;
|
|
6
|
-
priority: number;
|
|
7
|
-
ean?: null;
|
|
8
|
-
webNaming: string;
|
|
9
|
-
description1_en: string;
|
|
10
|
-
description1_en_us: string;
|
|
11
|
-
description1_it: string;
|
|
12
|
-
description1_es: string;
|
|
13
|
-
description1_de: string;
|
|
14
|
-
description1_fr: string;
|
|
15
|
-
description1_sv: string;
|
|
16
|
-
description1_no: string;
|
|
17
|
-
description1_da: string;
|
|
18
|
-
description1_ru: string;
|
|
19
|
-
description2_en?: null;
|
|
20
|
-
description2_en_us?: null;
|
|
21
|
-
description2_it?: null;
|
|
22
|
-
description2_es?: null;
|
|
23
|
-
description2_de?: null;
|
|
24
|
-
description2_fr?: null;
|
|
25
|
-
description2_sv?: null;
|
|
26
|
-
description2_no?: null;
|
|
27
|
-
description2_da?: null;
|
|
28
|
-
description2_ru?: null;
|
|
29
|
-
note_en?: null;
|
|
30
|
-
note_en_us?: null;
|
|
31
|
-
note_it?: null;
|
|
32
|
-
note_es?: null;
|
|
33
|
-
note_de?: null;
|
|
34
|
-
note_fr?: null;
|
|
35
|
-
note_sv?: null;
|
|
36
|
-
note_no?: null;
|
|
37
|
-
note_da?: null;
|
|
38
|
-
note_ru?: null;
|
|
39
|
-
applications?: null[] | null;
|
|
40
|
-
productGroup: ProductGroup;
|
|
41
|
-
productLine: GenericData;
|
|
42
|
-
productLineDetail?: GenericData;
|
|
43
|
-
productLineLegacy: GenericData;
|
|
44
|
-
productStatus: GenericData;
|
|
45
|
-
visibleToWeb: boolean;
|
|
46
|
-
lastModified: LastModified;
|
|
47
|
-
upgrade?: null;
|
|
48
|
-
designYear: string;
|
|
49
|
-
mainColour: GenericData;
|
|
50
|
-
baseColour?: null;
|
|
51
|
-
internalColour?: null;
|
|
52
|
-
externalColour?: null;
|
|
53
|
-
profileColour?: null;
|
|
54
|
-
structureColour?: null;
|
|
55
|
-
colourVariants?: ColourVariant[] | null;
|
|
56
|
-
mountings?: GenericData[] | null;
|
|
57
|
-
environments?: GenericData[] | null;
|
|
58
|
-
quickDelivery: GenericData;
|
|
59
|
-
upgradeProduct?: null;
|
|
60
|
-
accessories?: AccessoriesEntity[] | null;
|
|
61
|
-
accessoryOf?: null[] | null;
|
|
62
|
-
bulbOf?: null[] | null;
|
|
63
|
-
sparepartOf?: null[] | null;
|
|
64
|
-
bulbs?: null[] | null;
|
|
65
|
-
spareparts?: null[] | null;
|
|
66
|
-
designers?: GenericData[] | null;
|
|
67
|
-
assets?: AssetsEntity[] | null;
|
|
68
|
-
brands?: GenericData[] | null;
|
|
69
|
-
madeIn?: null[] | null;
|
|
70
|
-
accessoryTypes?: null[] | null;
|
|
71
|
-
priceLists?: null[] | null;
|
|
72
|
-
markets?: GenericData[] | null;
|
|
73
|
-
models?: ModelsEntityOrParentModel[] | null;
|
|
74
|
-
submodels?: SubmodelsEntity[] | null;
|
|
75
|
-
productionSite: GenericData;
|
|
76
|
-
certification: Certification;
|
|
77
|
-
marking: Marking;
|
|
78
|
-
optical: Optical;
|
|
79
|
-
electrical: Electrical;
|
|
80
|
-
photometric: Photometric;
|
|
81
|
-
physical: Physical;
|
|
82
|
-
logistic: Logistic;
|
|
83
|
-
urlVideo1?: null;
|
|
84
|
-
urlVideo2?: null;
|
|
85
|
-
spareParts?: null;
|
|
86
|
-
catalogs?: CatalogsEntity[] | null;
|
|
87
|
-
currentCatalog?: CatalogsEntity | null;
|
|
88
|
-
destinations: GenericData[] | null;
|
|
89
|
-
}
|
|
90
|
-
export interface ProductGroup {
|
|
91
|
-
code: string;
|
|
92
|
-
name: string;
|
|
93
|
-
priority: number;
|
|
94
|
-
catalog: string;
|
|
95
|
-
description: string;
|
|
96
|
-
productLine: GenericData;
|
|
97
|
-
products?: null;
|
|
98
|
-
lastModified: LastModified;
|
|
99
|
-
}
|
|
100
|
-
export interface GenericData {
|
|
101
|
-
code: string;
|
|
102
|
-
image?: null;
|
|
103
|
-
imageAlternative?: null;
|
|
104
|
-
value_en: string;
|
|
105
|
-
value_en_US?: string;
|
|
106
|
-
value_it: string;
|
|
107
|
-
value_es: string;
|
|
108
|
-
value_de: string;
|
|
109
|
-
value_fr: string;
|
|
110
|
-
value_sv: string;
|
|
111
|
-
value_no: string;
|
|
112
|
-
value_da: string;
|
|
113
|
-
value_ru: string;
|
|
114
|
-
othersData: OthersData;
|
|
115
|
-
assistant?: string;
|
|
116
|
-
}
|
|
117
|
-
export interface OthersData {}
|
|
118
|
-
export interface LastModified {
|
|
119
|
-
year: number;
|
|
120
|
-
month: number;
|
|
121
|
-
dayOfMonth: number;
|
|
122
|
-
hourOfDay: number;
|
|
123
|
-
minute: number;
|
|
124
|
-
second: number;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export interface AccessoriesEntity {
|
|
128
|
-
code: string;
|
|
129
|
-
productLine: GenericData;
|
|
130
|
-
quantity: string;
|
|
131
|
-
typeCode?: null;
|
|
132
|
-
typeLabel: string;
|
|
133
|
-
}
|
|
134
|
-
export interface AssetsEntity {
|
|
135
|
-
title_en?: null;
|
|
136
|
-
title_en_us?: null;
|
|
137
|
-
title_it?: null;
|
|
138
|
-
title_es?: null;
|
|
139
|
-
title_de?: null;
|
|
140
|
-
title_fr?: null;
|
|
141
|
-
title_sv?: null;
|
|
142
|
-
title_no?: null;
|
|
143
|
-
title_da?: null;
|
|
144
|
-
title_ru?: null;
|
|
145
|
-
url: string;
|
|
146
|
-
md5: string;
|
|
147
|
-
assetType: GenericData;
|
|
148
|
-
}
|
|
149
|
-
export interface Certification {
|
|
150
|
-
enec: GenericData;
|
|
151
|
-
ul: GenericData;
|
|
152
|
-
rgCertified?: null;
|
|
153
|
-
euRule?: null;
|
|
154
|
-
certificates?: GenericData[] | null;
|
|
155
|
-
}
|
|
156
|
-
export interface Marking {
|
|
157
|
-
externalIp: GenericData;
|
|
158
|
-
ipCategory: GenericData;
|
|
159
|
-
energyLabel: GenericData;
|
|
160
|
-
lightObjMinDist: number;
|
|
161
|
-
fMarking: GenericData;
|
|
162
|
-
ilcos: string;
|
|
163
|
-
ik?: null;
|
|
164
|
-
markings?: null;
|
|
165
|
-
dynamicLoad: string;
|
|
166
|
-
staticLoad: string;
|
|
167
|
-
designAwards?: null[] | null;
|
|
168
|
-
casambi?: null;
|
|
169
|
-
}
|
|
170
|
-
export interface Optical {
|
|
171
|
-
numberOfHeads: number;
|
|
172
|
-
lightingTypes?: GenericData[] | null;
|
|
173
|
-
opticalType: GenericData;
|
|
174
|
-
lightingDistributions?: GenericData[] | null;
|
|
175
|
-
reflectorFinish?: null;
|
|
176
|
-
screenFinish?: null;
|
|
177
|
-
}
|
|
178
|
-
export interface Electrical {
|
|
179
|
-
frequency: string;
|
|
180
|
-
powerSupply: GenericData;
|
|
181
|
-
powerSupplyType?: GenericData[] | null;
|
|
182
|
-
mainsVoltage: string;
|
|
183
|
-
dimming?: GenericData[] | null;
|
|
184
|
-
lampCategories?: GenericData[] | null;
|
|
185
|
-
emergency: GenericData;
|
|
186
|
-
wPower: string;
|
|
187
|
-
lampNumber?: null;
|
|
188
|
-
lampHolders?: null;
|
|
189
|
-
current: string;
|
|
190
|
-
powerFactor?: null;
|
|
191
|
-
systemPower?: null;
|
|
192
|
-
emergencyLightingFlux?: null;
|
|
193
|
-
batteries?: null;
|
|
194
|
-
batteryType?: null;
|
|
195
|
-
rechargeConnector?: null;
|
|
196
|
-
inductionRecharge?: null;
|
|
197
|
-
rechargeCycleGuaranteed?: null;
|
|
198
|
-
minTimeRecharge?: null;
|
|
199
|
-
rechargePowerMax?: null;
|
|
200
|
-
insulationClass: GenericData;
|
|
201
|
-
lightSourceIncluded?: null;
|
|
202
|
-
lightSourceType?: null;
|
|
203
|
-
bulbAndLed?: null;
|
|
204
|
-
lampType?: null;
|
|
205
|
-
vac?: null;
|
|
206
|
-
phases?: null[] | null;
|
|
207
|
-
dimmingInterfaces?: null[] | null;
|
|
208
|
-
dimmingRange?: null;
|
|
209
|
-
forwardVoltage?: null;
|
|
210
|
-
maximumWattage?: null;
|
|
211
|
-
driverInputVoltage?: null;
|
|
212
|
-
driverOutputVoltage?: null;
|
|
213
|
-
lightSourceReplaceable?: null[] | null;
|
|
214
|
-
}
|
|
215
|
-
export interface Photometric {
|
|
216
|
-
ledTypes?: GenericData[] | null;
|
|
217
|
-
beam0_180: number;
|
|
218
|
-
beam90_270: number;
|
|
219
|
-
beamind0_180?: null;
|
|
220
|
-
beamind90_270?: null;
|
|
221
|
-
realNetFlow: string;
|
|
222
|
-
realGrossFlow: string;
|
|
223
|
-
temperatureColor: GenericData;
|
|
224
|
-
cri: GenericData;
|
|
225
|
-
criThreshold: string;
|
|
226
|
-
sdcm?: null;
|
|
227
|
-
efficacy?: null;
|
|
228
|
-
ugrl?: null;
|
|
229
|
-
lifespan?: null;
|
|
230
|
-
actualPhotometryReference?: null;
|
|
231
|
-
cutOff?: null;
|
|
232
|
-
}
|
|
233
|
-
export interface Physical {
|
|
234
|
-
trim: GenericData;
|
|
235
|
-
bezelDiameter?: null;
|
|
236
|
-
constructionMaterial?: null;
|
|
237
|
-
recessedDepth: string;
|
|
238
|
-
spotDiameter: string;
|
|
239
|
-
width?: null;
|
|
240
|
-
length: number;
|
|
241
|
-
height?: null;
|
|
242
|
-
rotation: number;
|
|
243
|
-
suspensionType: GenericData;
|
|
244
|
-
orientations?: GenericData[] | null;
|
|
245
|
-
longitudinalTilting: number;
|
|
246
|
-
bezelTrimDimension?: null;
|
|
247
|
-
cableIngress?: null;
|
|
248
|
-
preCabled?: null;
|
|
249
|
-
plugTypes?: null;
|
|
250
|
-
diameterDecor?: null;
|
|
251
|
-
cordLenght?: null;
|
|
252
|
-
h2oStop?: null;
|
|
253
|
-
cuttableField?: null;
|
|
254
|
-
shapes?: GenericData[] | null;
|
|
255
|
-
}
|
|
256
|
-
export interface Logistic {
|
|
257
|
-
netWeight: string;
|
|
258
|
-
netWeight_us: string;
|
|
259
|
-
}
|
|
260
|
-
export interface CatalogsEntity {
|
|
261
|
-
catalogCode?: AvailableCatalogs | null;
|
|
262
|
-
categoryCode?: string | null;
|
|
263
|
-
subFamilyCode?: string | null;
|
|
264
|
-
familyCode?: string | null;
|
|
265
|
-
childFamilyCode?: null;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export interface ModelsEntityOrParentModel {
|
|
269
|
-
data: GenericData;
|
|
270
|
-
priority: number;
|
|
271
|
-
subFamilyCode: string;
|
|
272
|
-
productLineCode: string;
|
|
273
|
-
description1_en?: null;
|
|
274
|
-
description1_it?: null;
|
|
275
|
-
description1_de?: null;
|
|
276
|
-
description1_fr?: null;
|
|
277
|
-
description1_es?: null;
|
|
278
|
-
description1_sv?: null;
|
|
279
|
-
description1_no?: null;
|
|
280
|
-
description1_da?: null;
|
|
281
|
-
description1_ru?: null;
|
|
282
|
-
description1_en_us?: null;
|
|
283
|
-
description2_en?: null;
|
|
284
|
-
description2_it?: null;
|
|
285
|
-
description2_de?: null;
|
|
286
|
-
description2_fr?: null;
|
|
287
|
-
description2_es?: null;
|
|
288
|
-
description2_sv?: null;
|
|
289
|
-
description2_no?: null;
|
|
290
|
-
description2_da?: null;
|
|
291
|
-
description2_ru?: null;
|
|
292
|
-
description2_en_us?: null;
|
|
293
|
-
code?: null;
|
|
294
|
-
image?: null;
|
|
295
|
-
imageAlternative?: null;
|
|
296
|
-
value_en?: null;
|
|
297
|
-
value_en_US?: null;
|
|
298
|
-
value_it?: null;
|
|
299
|
-
value_es?: null;
|
|
300
|
-
value_de?: null;
|
|
301
|
-
value_fr?: null;
|
|
302
|
-
value_sv?: null;
|
|
303
|
-
value_no?: null;
|
|
304
|
-
value_da?: null;
|
|
305
|
-
value_ru?: null;
|
|
306
|
-
othersData: OthersData;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
export interface SubmodelsEntity {
|
|
310
|
-
data: GenericData;
|
|
311
|
-
priority: number;
|
|
312
|
-
subFamilyCode?: null;
|
|
313
|
-
productLineCode?: null;
|
|
314
|
-
parentModel: ModelsEntityOrParentModel;
|
|
315
|
-
description1_en?: null;
|
|
316
|
-
description1_it?: null;
|
|
317
|
-
description1_de?: null;
|
|
318
|
-
description1_fr?: null;
|
|
319
|
-
description1_es?: null;
|
|
320
|
-
description1_sv?: null;
|
|
321
|
-
description1_no?: null;
|
|
322
|
-
description1_da?: null;
|
|
323
|
-
description1_ru?: null;
|
|
324
|
-
description1_en_us?: null;
|
|
325
|
-
description2_en?: null;
|
|
326
|
-
description2_it?: null;
|
|
327
|
-
description2_de?: null;
|
|
328
|
-
description2_fr?: null;
|
|
329
|
-
description2_es?: null;
|
|
330
|
-
description2_sv?: null;
|
|
331
|
-
description2_no?: null;
|
|
332
|
-
description2_da?: null;
|
|
333
|
-
description2_ru?: null;
|
|
334
|
-
description2_en_us?: null;
|
|
335
|
-
code?: null;
|
|
336
|
-
image?: null;
|
|
337
|
-
imageAlternative?: null;
|
|
338
|
-
value_en?: null;
|
|
339
|
-
value_en_US?: null;
|
|
340
|
-
value_it?: null;
|
|
341
|
-
value_es?: null;
|
|
342
|
-
value_de?: null;
|
|
343
|
-
value_fr?: null;
|
|
344
|
-
value_sv?: null;
|
|
345
|
-
value_no?: null;
|
|
346
|
-
value_da?: null;
|
|
347
|
-
value_ru?: null;
|
|
348
|
-
othersData: OthersData;
|
|
349
|
-
}
|
|
350
|
-
export interface ColourVariant {
|
|
351
|
-
code: string;
|
|
352
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface ProductRelation {
|
|
2
|
-
code: string;
|
|
3
|
-
quantity: string;
|
|
4
|
-
typeCode?: null;
|
|
5
|
-
typeLabel: string;
|
|
6
|
-
productLine: ProductLine;
|
|
7
|
-
}
|
|
8
|
-
export interface ProductLine {
|
|
9
|
-
code: string;
|
|
10
|
-
image?: null;
|
|
11
|
-
value_da: string;
|
|
12
|
-
value_de: string;
|
|
13
|
-
value_en: string;
|
|
14
|
-
value_es: string;
|
|
15
|
-
value_fr: string;
|
|
16
|
-
value_it: string;
|
|
17
|
-
value_no: string;
|
|
18
|
-
value_ru: string;
|
|
19
|
-
value_sv: string;
|
|
20
|
-
othersData: OthersData;
|
|
21
|
-
value_en_US: string;
|
|
22
|
-
imageAlternative?: null;
|
|
23
|
-
}
|
|
24
|
-
export interface OthersData {}
|
package/src/types.ts
DELETED
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
export type AvailableCatalogs = "ARCHITECTURAL" | "OUTDOOR" | "DECORATIVE";
|
|
2
|
-
|
|
3
|
-
export type AvailableEntryStatus =
|
|
4
|
-
| "Published"
|
|
5
|
-
| "Changed"
|
|
6
|
-
| "Draft"
|
|
7
|
-
| "Archived";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Not empty array type
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* const okay: NonEmptyArray<number> = [1, 2];
|
|
14
|
-
* const alsoOkay: NonEmptyArray<number> = [1];
|
|
15
|
-
* const err: NonEmptyArray<number> = []; // error!
|
|
16
|
-
*/
|
|
17
|
-
export type NonEmptyArray<T> = [T, ...T[]];
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Object with key => value
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* const obj: ObjectPartial = {};
|
|
24
|
-
* obj.foo = "";
|
|
25
|
-
* const key = "foo";
|
|
26
|
-
* console.log(obj[key]);
|
|
27
|
-
*/
|
|
28
|
-
export type ObjectPartial = Partial<Record<string, any>>;
|
|
29
|
-
|
|
30
|
-
export type { Config as ContentfulConfig } from "./libs/contentful";
|
|
31
|
-
|
|
32
|
-
export type PimLocale =
|
|
33
|
-
| "en"
|
|
34
|
-
| "en_us"
|
|
35
|
-
| "it"
|
|
36
|
-
| "es"
|
|
37
|
-
| "de"
|
|
38
|
-
| "fr"
|
|
39
|
-
| "sv"
|
|
40
|
-
| "no"
|
|
41
|
-
| "da"
|
|
42
|
-
| "ru";
|
|
43
|
-
export type ContentfulLocale = "en" | "en-US" | "it" | "es" | "de" | "fr";
|
|
44
|
-
|
|
45
|
-
export type PimValues = {
|
|
46
|
-
value_en: string;
|
|
47
|
-
value_en_US?: string | null;
|
|
48
|
-
value_it: string | null;
|
|
49
|
-
value_es: string | null;
|
|
50
|
-
value_de: string | null;
|
|
51
|
-
value_fr: string | null;
|
|
52
|
-
value_sv: string | null;
|
|
53
|
-
value_no: string | null;
|
|
54
|
-
value_da: string | null;
|
|
55
|
-
value_ru: string | null;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export type PimDescription = {
|
|
59
|
-
description_en: string;
|
|
60
|
-
description_en_US?: string | null;
|
|
61
|
-
description_it: string | null;
|
|
62
|
-
description_es: string | null;
|
|
63
|
-
description_de: string | null;
|
|
64
|
-
description_fr: string | null;
|
|
65
|
-
description_sv: string | null;
|
|
66
|
-
description_no: string | null;
|
|
67
|
-
description_da: string | null;
|
|
68
|
-
description_ru: string | null;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export type PimProductDescription = {
|
|
72
|
-
description1_en: string;
|
|
73
|
-
description1_en_US?: string | null;
|
|
74
|
-
description1_it: string | null;
|
|
75
|
-
description1_es: string | null;
|
|
76
|
-
description1_de: string | null;
|
|
77
|
-
description1_fr: string | null;
|
|
78
|
-
description1_sv: string | null;
|
|
79
|
-
description1_no: string | null;
|
|
80
|
-
description1_da: string | null;
|
|
81
|
-
description1_ru: string | null;
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export type PimProductExcerpt = {
|
|
85
|
-
description2_en: string;
|
|
86
|
-
description2_en_US?: string | null;
|
|
87
|
-
description2_it: string | null;
|
|
88
|
-
description2_es: string | null;
|
|
89
|
-
description2_de: string | null;
|
|
90
|
-
description2_fr: string | null;
|
|
91
|
-
description2_sv: string | null;
|
|
92
|
-
description2_no: string | null;
|
|
93
|
-
description2_da: string | null;
|
|
94
|
-
description2_ru: string | null;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
export type CfSys = {
|
|
98
|
-
sys: { type: string; linkType: string; id: string };
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
export type PaginationResults = {
|
|
102
|
-
offset: number;
|
|
103
|
-
limit: number;
|
|
104
|
-
completed: boolean;
|
|
105
|
-
s3FilePath?: string;
|
|
106
|
-
total?: number;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export type CfLocalizedEntryField = Partial<
|
|
110
|
-
Record<ContentfulLocale, string | null>
|
|
111
|
-
>;
|
|
112
|
-
|
|
113
|
-
export type TopicDetailsResponse = {
|
|
114
|
-
names: CfLocalizedEntryField;
|
|
115
|
-
code: string;
|
|
116
|
-
slugs?: {};
|
|
117
|
-
thumbnail?: {};
|
|
118
|
-
details?: {};
|
|
119
|
-
priority?: number;
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
export type ProductFieldsRequiredData = {
|
|
123
|
-
key: string;
|
|
124
|
-
parent: string;
|
|
125
|
-
icon: boolean;
|
|
126
|
-
dictionary: string;
|
|
127
|
-
type: string;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
export interface AlgoliaPaginateRecords extends PaginationResults {
|
|
131
|
-
objects: Readonly<Record<string, any>>[];
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export interface AlgoliaPaginateObjectIds extends PaginationResults {
|
|
135
|
-
objectIds: string[];
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export type AssetPropFields = {
|
|
139
|
-
/** Title for this asset */
|
|
140
|
-
title: {
|
|
141
|
-
[key: string]: string;
|
|
142
|
-
};
|
|
143
|
-
/** Description for this asset */
|
|
144
|
-
description?: {
|
|
145
|
-
[key: string]: string;
|
|
146
|
-
};
|
|
147
|
-
/** File object for this asset */
|
|
148
|
-
file: {
|
|
149
|
-
[key: string]: {
|
|
150
|
-
fileName: string;
|
|
151
|
-
contentType: string;
|
|
152
|
-
/** Url where the file is available to be downloaded from, into the Contentful asset system. After the asset is processed this field is gone. */
|
|
153
|
-
upload?: string;
|
|
154
|
-
/** Url where the file is available at the Contentful media asset system. This field won't be available until the asset is processed. */
|
|
155
|
-
url?: string;
|
|
156
|
-
/** Details for the file, depending on file type (example: image size in bytes, etc) */
|
|
157
|
-
details?: Record<string, any>;
|
|
158
|
-
uploadFrom?: Record<string, any>;
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
export type AssetPropFieldsWithoutLocaleKey = {
|
|
164
|
-
/** Title for this asset */
|
|
165
|
-
title: {
|
|
166
|
-
[key: string]: string;
|
|
167
|
-
};
|
|
168
|
-
/** Description for this asset */
|
|
169
|
-
description?: {
|
|
170
|
-
[key: string]: string;
|
|
171
|
-
};
|
|
172
|
-
/** File object for this asset */
|
|
173
|
-
file: {
|
|
174
|
-
fileName: string;
|
|
175
|
-
contentType: string;
|
|
176
|
-
/** Url where the file is available to be downloaded from, into the Contentful asset system. After the asset is processed this field is gone. */
|
|
177
|
-
upload?: string;
|
|
178
|
-
/** Url where the file is available at the Contentful media asset system. This field won't be available until the asset is processed. */
|
|
179
|
-
url?: string;
|
|
180
|
-
/** Details for the file, depending on file type (example: image size in bytes, etc) */
|
|
181
|
-
details?: Record<string, any>;
|
|
182
|
-
uploadFrom?: Record<string, any>;
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
export type TopicProductFieldsResponse = {
|
|
187
|
-
names: CfLocalizedEntryField;
|
|
188
|
-
code: string;
|
|
189
|
-
slugs: {};
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
export interface OtherFilters {
|
|
193
|
-
key: string;
|
|
194
|
-
value: string;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export interface ImgixData {
|
|
198
|
-
url: string;
|
|
199
|
-
details: ImgixDataDetails;
|
|
200
|
-
fileName: string;
|
|
201
|
-
contentType: string;
|
|
202
|
-
}
|
|
203
|
-
export interface ImgixDataDetails {
|
|
204
|
-
size: number;
|
|
205
|
-
image: ImgixDataImageDetails;
|
|
206
|
-
}
|
|
207
|
-
interface ImgixDataImageDetails {
|
|
208
|
-
width: number;
|
|
209
|
-
height: number;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export type WrapperImageFields = {
|
|
213
|
-
internalName: string;
|
|
214
|
-
imgixData: ImgixData;
|
|
215
|
-
altText: CfLocalizedEntryField;
|
|
216
|
-
caption?: CfLocalizedEntryField;
|
|
217
|
-
hoverTitle?: CfLocalizedEntryField;
|
|
218
|
-
foceHoverTitle?: boolean;
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
export interface ImgixAttributes {
|
|
222
|
-
analyzed_content_warnings: boolean;
|
|
223
|
-
analyzed_faces: boolean;
|
|
224
|
-
analyzed_tags: boolean;
|
|
225
|
-
categories?: null[] | null;
|
|
226
|
-
color_model: string;
|
|
227
|
-
color_profile: string;
|
|
228
|
-
colors: string;
|
|
229
|
-
content_type: string;
|
|
230
|
-
custom_fields?: null;
|
|
231
|
-
date_created: number;
|
|
232
|
-
date_modified: number;
|
|
233
|
-
description?: null;
|
|
234
|
-
dpi_height: number;
|
|
235
|
-
dpi_width: number;
|
|
236
|
-
face_count?: null;
|
|
237
|
-
file_size: number;
|
|
238
|
-
has_frames: boolean;
|
|
239
|
-
media_height: number;
|
|
240
|
-
media_kind: string;
|
|
241
|
-
media_width: number;
|
|
242
|
-
name?: null;
|
|
243
|
-
origin_path: string;
|
|
244
|
-
source_id: string;
|
|
245
|
-
tags: Record<string, any>;
|
|
246
|
-
uploaded_by: string;
|
|
247
|
-
uploaded_by_api: boolean;
|
|
248
|
-
warning_adult: number;
|
|
249
|
-
warning_medical: number;
|
|
250
|
-
warning_racy: number;
|
|
251
|
-
warning_spoof: number;
|
|
252
|
-
warning_violence: number;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
export type RequiredImgixAttributes = Pick<
|
|
256
|
-
ImgixAttributes,
|
|
257
|
-
| "origin_path"
|
|
258
|
-
| "file_size"
|
|
259
|
-
| "media_width"
|
|
260
|
-
| "media_height"
|
|
261
|
-
| "content_type"
|
|
262
|
-
| "name"
|
|
263
|
-
>;
|
|
264
|
-
|
|
265
|
-
export type AlgoliaObjectFilter = {
|
|
266
|
-
key: string;
|
|
267
|
-
value: string;
|
|
268
|
-
};
|