pim-import 2.78.1 → 2.79.0

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.
Files changed (66) hide show
  1. package/dist/libs/imgix.js +8 -6
  2. package/dist/libs/imgix.js.map +1 -1
  3. package/dist/pim/data/productFields.json +245 -0
  4. package/dist/pim/methods/dictionary.js +7 -40
  5. package/dist/pim/methods/dictionary.js.map +1 -1
  6. package/dist/pim/methods/products.js +15 -1
  7. package/dist/pim/methods/products.js.map +1 -1
  8. package/package.json +5 -1
  9. package/src/libs/imgix.ts +6 -5
  10. package/src/pim/data/productFields.json +245 -0
  11. package/src/pim/methods/dictionary.ts +11 -78
  12. package/src/pim/methods/products.ts +25 -2
  13. package/tsconfig.json +2 -1
  14. package/types/algolia/clean.d.ts +10 -0
  15. package/types/algolia/config.d.ts +96 -0
  16. package/types/algolia/downloads.d.ts +36 -0
  17. package/types/algolia/families.d.ts +48 -0
  18. package/types/algolia/models.d.ts +31 -0
  19. package/types/algolia/news.d.ts +33 -0
  20. package/types/algolia/pipedreamReindex.d.ts +4 -0
  21. package/types/algolia/pressRelease.d.ts +33 -0
  22. package/types/algolia/pressReview.d.ts +33 -0
  23. package/types/algolia/products.d.ts +75 -0
  24. package/types/algolia/projects.d.ts +43 -0
  25. package/types/algolia/stories.d.ts +43 -0
  26. package/types/algolia/subFamilies.d.ts +28 -0
  27. package/types/algolia/subModels.d.ts +29 -0
  28. package/types/browser.d.ts +32 -0
  29. package/types/downloads/classes/manageEntry.d.ts +10 -0
  30. package/types/downloads/import.d.ts +1 -0
  31. package/types/index.d.ts +32 -0
  32. package/types/libs/contentful-cda.d.ts +20 -0
  33. package/types/libs/contentful.d.ts +59 -0
  34. package/types/libs/imgix.d.ts +15 -0
  35. package/types/libs/logs.d.ts +8 -0
  36. package/types/libs/puppeteer.d.ts +11 -0
  37. package/types/libs/s3.d.ts +22 -0
  38. package/types/libs/sentry.d.ts +2 -0
  39. package/types/pim/config.d.ts +13 -0
  40. package/types/pim/endpoints.d.ts +20 -0
  41. package/types/pim/methods/catalogs.d.ts +21 -0
  42. package/types/pim/methods/dailyProductsUpdate.d.ts +2 -0
  43. package/types/pim/methods/dictionary.d.ts +6 -0
  44. package/types/pim/methods/families.d.ts +4 -0
  45. package/types/pim/methods/latestProducts.d.ts +12 -0
  46. package/types/pim/methods/models.d.ts +2 -0
  47. package/types/pim/methods/pages/catalogs.d.ts +3 -0
  48. package/types/pim/methods/pages/families.d.ts +6 -0
  49. package/types/pim/methods/pages/subfamilies.d.ts +12 -0
  50. package/types/pim/methods/products.d.ts +47 -0
  51. package/types/pim/methods/subfamilies.d.ts +13 -0
  52. package/types/pim/methods/submodels.d.ts +2 -0
  53. package/types/pim/request.d.ts +5 -0
  54. package/types/resources/AllProducts.d.ts +42 -0
  55. package/types/resources/Audit.d.ts +24 -0
  56. package/types/resources/CatalogDetails.d.ts +46 -0
  57. package/types/resources/CollectionModels.d.ts +41 -0
  58. package/types/resources/CollectionSubFamilies.d.ts +45 -0
  59. package/types/resources/CollectionSubModels.d.ts +36 -0
  60. package/types/resources/DProductSubLine.d.ts +34 -0
  61. package/types/resources/FamilyDetails.d.ts +31 -0
  62. package/types/resources/ProductDetails.d.ts +346 -0
  63. package/types/resources/ProductRelation.d.ts +25 -0
  64. package/types/resources/cfFields.d.ts +8 -0
  65. package/types/types.d.ts +188 -0
  66. package/types/utils.d.ts +19 -0
@@ -0,0 +1,46 @@
1
+ export interface CatalogDetails {
2
+ data: Data;
3
+ categories?: CategoriesEntity[] | null;
4
+ }
5
+ export interface Data {
6
+ code: string;
7
+ value_en: string;
8
+ value_it: string;
9
+ value_es: string;
10
+ value_de: string;
11
+ value_fr: string;
12
+ value_sv: string;
13
+ value_no: string;
14
+ value_da: string;
15
+ value_ru: string;
16
+ othersData: OthersData;
17
+ }
18
+ export interface OthersData {
19
+ }
20
+ export interface CategoriesEntity {
21
+ data: Data;
22
+ subfamilies?: (SubfamiliesEntity | null)[] | null;
23
+ }
24
+ export interface SubfamiliesEntity {
25
+ data: FamilyData;
26
+ childfamilies?: (ChildfamiliesEntity | null)[] | null;
27
+ designers?: null[] | null;
28
+ parentFamily?: FamilyData | null;
29
+ }
30
+ export interface FamilyData {
31
+ code: string;
32
+ value_en: string;
33
+ value_en_US?: string | null;
34
+ value_it: string;
35
+ value_es: string;
36
+ value_de: string;
37
+ value_fr: string;
38
+ value_sv: string;
39
+ value_no: string;
40
+ value_da: string;
41
+ value_ru: string;
42
+ othersData: OthersData;
43
+ }
44
+ export interface ChildfamiliesEntity {
45
+ data: Data;
46
+ }
@@ -0,0 +1,41 @@
1
+ export interface CollectionModels {
2
+ totalCount: number;
3
+ pageSize: number;
4
+ pageOffset: number;
5
+ pagedCollection?: PagedCollectionEntity[] | null;
6
+ }
7
+ export interface PagedCollectionEntity {
8
+ relatedProducts?: string[] | null;
9
+ data: Data;
10
+ priority?: number | null;
11
+ subFamilyCode: string;
12
+ productLineCode: string;
13
+ code: string;
14
+ othersData: OthersData;
15
+ description1_en?: string;
16
+ description1_en_us?: string;
17
+ description1_it?: string;
18
+ description1_es?: string;
19
+ description1_de?: string;
20
+ description1_fr?: string;
21
+ description1_sv?: string;
22
+ description1_no?: string;
23
+ description1_da?: string;
24
+ description1_ru?: string;
25
+ }
26
+ export interface Data {
27
+ code: string;
28
+ value_en: string;
29
+ value_en_US: string;
30
+ value_it: string;
31
+ value_es: string;
32
+ value_de: string;
33
+ value_fr: string;
34
+ value_sv: string;
35
+ value_no: string;
36
+ value_da: string;
37
+ value_ru: string;
38
+ othersData: OthersData;
39
+ }
40
+ export interface OthersData {
41
+ }
@@ -0,0 +1,45 @@
1
+ export interface CollectionSubFamilies {
2
+ totalCount: number;
3
+ pageSize: number;
4
+ pageOffset: number;
5
+ pagedCollection?: PagedCollectionEntity[] | null;
6
+ }
7
+ export interface PagedCollectionEntity {
8
+ data: GenericData;
9
+ priority?: number;
10
+ catalogCode: string;
11
+ categoryCode: string;
12
+ parentFamily: ParentFamily;
13
+ designers?: GenericData[] | null;
14
+ relatedProducts?: string[] | null;
15
+ description1_en?: string;
16
+ description1_en_us?: string;
17
+ description1_it?: string;
18
+ description1_es?: string;
19
+ description1_de?: string;
20
+ description1_fr?: string;
21
+ description1_sv?: string;
22
+ description1_no?: string;
23
+ description1_da?: string;
24
+ description1_ru?: string;
25
+ }
26
+ export interface GenericData {
27
+ code: string;
28
+ value_en: string;
29
+ value_en_US?: string;
30
+ value_it: string;
31
+ value_es: string;
32
+ value_de: string;
33
+ value_fr: string;
34
+ value_sv: string;
35
+ value_no: string;
36
+ value_da: string;
37
+ value_ru: string;
38
+ othersData: OthersData;
39
+ }
40
+ export interface OthersData {
41
+ }
42
+ export interface ParentFamily {
43
+ data: GenericData;
44
+ designers?: GenericData[] | null;
45
+ }
@@ -0,0 +1,36 @@
1
+ export interface CollectionSubModels {
2
+ totalCount: number;
3
+ pageSize: number;
4
+ pageOffset: number;
5
+ pagedCollection?: PagedCollectionEntity[] | null;
6
+ }
7
+ export interface PagedCollectionEntity {
8
+ relatedProducts?: string[] | null;
9
+ data: Data;
10
+ priority: number;
11
+ subFamilyCode: string;
12
+ productLineCode: string;
13
+ parentModel: ParentModel;
14
+ code: string;
15
+ othersData: OthersData;
16
+ }
17
+ export interface Data {
18
+ code: string;
19
+ value_en: string;
20
+ value_en_US: string;
21
+ value_it: string;
22
+ value_es: string;
23
+ value_de: string;
24
+ value_fr: string;
25
+ value_sv: string;
26
+ value_no: string;
27
+ value_da: string;
28
+ value_ru: string;
29
+ othersData: OthersData;
30
+ }
31
+ export interface OthersData {
32
+ }
33
+ export interface ParentModel {
34
+ code: string;
35
+ othersData: OthersData;
36
+ }
@@ -0,0 +1,34 @@
1
+ export interface DProductSubLine {
2
+ code: string;
3
+ image?: null;
4
+ imageAlternative?: null;
5
+ value_en: string;
6
+ value_en_US: string;
7
+ value_it: string;
8
+ value_es: string;
9
+ value_de: string;
10
+ value_fr: string;
11
+ value_sv: string;
12
+ value_no: string;
13
+ value_da: string;
14
+ value_ru: string;
15
+ othersData: OthersData;
16
+ }
17
+ export interface OthersData {
18
+ productLine: ProductLine;
19
+ }
20
+ export interface ProductLine {
21
+ code: string;
22
+ image?: null;
23
+ imageAlternative?: null;
24
+ value_en: string;
25
+ value_it: string;
26
+ value_es: string;
27
+ value_de: string;
28
+ value_fr: string;
29
+ value_sv: string;
30
+ value_no: string;
31
+ value_da: string;
32
+ value_ru: string;
33
+ value_en_US?: null;
34
+ }
@@ -0,0 +1,31 @@
1
+ export interface FamilyDetails {
2
+ data: Data;
3
+ priority?: number;
4
+ description1_en?: string;
5
+ description1_en_us?: string;
6
+ description1_it?: string;
7
+ description1_es?: string;
8
+ description1_de?: string;
9
+ description1_fr?: string;
10
+ description1_sv?: string;
11
+ description1_no?: string;
12
+ description1_da?: string;
13
+ description1_ru?: string;
14
+ designers?: null[] | null;
15
+ }
16
+ export interface Data {
17
+ code: string;
18
+ value_en: string;
19
+ value_en_US: string;
20
+ value_it: string;
21
+ value_es: string;
22
+ value_de: string;
23
+ value_fr: string;
24
+ value_sv: string;
25
+ value_no: string;
26
+ value_da: string;
27
+ value_ru: string;
28
+ othersData: OthersData;
29
+ }
30
+ export interface OthersData {
31
+ }
@@ -0,0 +1,346 @@
1
+ import { AvailableCatalogs } from "../types";
2
+ export interface ProductDetails {
3
+ code: string;
4
+ name: string;
5
+ priority: number;
6
+ ean?: null;
7
+ webNaming: string;
8
+ description1_en: string;
9
+ description1_en_us: string;
10
+ description1_it: string;
11
+ description1_es: string;
12
+ description1_de: string;
13
+ description1_fr: string;
14
+ description1_sv: string;
15
+ description1_no: string;
16
+ description1_da: string;
17
+ description1_ru: string;
18
+ description2_en?: null;
19
+ description2_en_us?: null;
20
+ description2_it?: null;
21
+ description2_es?: null;
22
+ description2_de?: null;
23
+ description2_fr?: null;
24
+ description2_sv?: null;
25
+ description2_no?: null;
26
+ description2_da?: null;
27
+ description2_ru?: null;
28
+ note_en?: null;
29
+ note_en_us?: null;
30
+ note_it?: null;
31
+ note_es?: null;
32
+ note_de?: null;
33
+ note_fr?: null;
34
+ note_sv?: null;
35
+ note_no?: null;
36
+ note_da?: null;
37
+ note_ru?: null;
38
+ applications?: null[] | null;
39
+ productGroup: ProductGroup;
40
+ productLine: GenericData;
41
+ productLineDetail?: GenericData;
42
+ productLineLegacy: GenericData;
43
+ productStatus: GenericData;
44
+ visibleToWeb: boolean;
45
+ lastModified: LastModified;
46
+ upgrade?: null;
47
+ designYear: string;
48
+ mainColour: GenericData;
49
+ baseColour?: null;
50
+ internalColour?: null;
51
+ externalColour?: null;
52
+ profileColour?: null;
53
+ structureColour?: null;
54
+ colourVariants?: ColourVariant[] | null;
55
+ mountings?: GenericData[] | null;
56
+ environments?: GenericData[] | null;
57
+ quickDelivery: GenericData;
58
+ upgradeProduct?: null;
59
+ accessories?: AccessoriesEntity[] | null;
60
+ accessoryOf?: null[] | null;
61
+ bulbs?: null[] | null;
62
+ spareparts?: null[] | null;
63
+ designers?: GenericData[] | null;
64
+ assets?: AssetsEntity[] | null;
65
+ brands?: GenericData[] | null;
66
+ madeIn?: null[] | null;
67
+ accessoryTypes?: null[] | null;
68
+ priceLists?: null[] | null;
69
+ markets?: GenericData[] | null;
70
+ models?: ModelsEntityOrParentModel[] | null;
71
+ submodels?: SubmodelsEntity[] | null;
72
+ productionSite: GenericData;
73
+ certification: Certification;
74
+ marking: Marking;
75
+ optical: Optical;
76
+ electrical: Electrical;
77
+ photometric: Photometric;
78
+ physical: Physical;
79
+ logistic: Logistic;
80
+ urlVideo1?: null;
81
+ urlVideo2?: null;
82
+ spareParts?: null;
83
+ catalogs?: CatalogsEntity[] | null;
84
+ currentCatalog?: CatalogsEntity | null;
85
+ }
86
+ export interface ProductGroup {
87
+ code: string;
88
+ name: string;
89
+ priority: number;
90
+ catalog: string;
91
+ description: string;
92
+ productLine: GenericData;
93
+ products?: null;
94
+ lastModified: LastModified;
95
+ }
96
+ export interface GenericData {
97
+ code: string;
98
+ image?: null;
99
+ imageAlternative?: null;
100
+ value_en: string;
101
+ value_en_US?: string;
102
+ value_it: string;
103
+ value_es: string;
104
+ value_de: string;
105
+ value_fr: string;
106
+ value_sv: string;
107
+ value_no: string;
108
+ value_da: string;
109
+ value_ru: string;
110
+ othersData: OthersData;
111
+ }
112
+ export interface OthersData {
113
+ }
114
+ export interface LastModified {
115
+ year: number;
116
+ month: number;
117
+ dayOfMonth: number;
118
+ hourOfDay: number;
119
+ minute: number;
120
+ second: number;
121
+ }
122
+ export interface AccessoriesEntity {
123
+ code: string;
124
+ productLine: GenericData;
125
+ quantity: string;
126
+ typeCode?: null;
127
+ typeLabel: string;
128
+ }
129
+ export interface AssetsEntity {
130
+ title_en?: null;
131
+ title_en_us?: null;
132
+ title_it?: null;
133
+ title_es?: null;
134
+ title_de?: null;
135
+ title_fr?: null;
136
+ title_sv?: null;
137
+ title_no?: null;
138
+ title_da?: null;
139
+ title_ru?: null;
140
+ url: string;
141
+ md5: string;
142
+ assetType: GenericData;
143
+ }
144
+ export interface Certification {
145
+ enec: GenericData;
146
+ ul: GenericData;
147
+ rgCertified?: null;
148
+ euRule?: null;
149
+ certificates?: GenericData[] | null;
150
+ }
151
+ export interface Marking {
152
+ externalIp: GenericData;
153
+ ipCategory: GenericData;
154
+ energyLabel: GenericData;
155
+ lightObjMinDist: number;
156
+ fMarking: GenericData;
157
+ ilcos: string;
158
+ ik?: null;
159
+ markings?: null;
160
+ dynamicLoad: string;
161
+ staticLoad: string;
162
+ designAwards?: null[] | null;
163
+ casambi?: null;
164
+ }
165
+ export interface Optical {
166
+ numberOfHeads: number;
167
+ lightingTypes?: GenericData[] | null;
168
+ opticalType: GenericData;
169
+ lightingDistributions?: GenericData[] | null;
170
+ reflectorFinish?: null;
171
+ screenFinish?: null;
172
+ }
173
+ export interface Electrical {
174
+ frequency: string;
175
+ powerSupply: GenericData;
176
+ powerSupplyType?: GenericData[] | null;
177
+ mainsVoltage: string;
178
+ dimming?: GenericData[] | null;
179
+ lampCategories?: GenericData[] | null;
180
+ emergency: GenericData;
181
+ wPower: string;
182
+ lampNumber?: null;
183
+ lampHolders?: null;
184
+ current: string;
185
+ powerFactor?: null;
186
+ systemPower?: null;
187
+ emergencyLightingFlux?: null;
188
+ batteries?: null;
189
+ batteryType?: null;
190
+ rechargeConnector?: null;
191
+ inductionRecharge?: null;
192
+ rechargeCycleGuaranteed?: null;
193
+ minTimeRecharge?: null;
194
+ rechargePowerMax?: null;
195
+ insulationClass: GenericData;
196
+ lightSourceIncluded?: null;
197
+ lightSourceType?: null;
198
+ bulbAndLed?: null;
199
+ lampType?: null;
200
+ vac?: null;
201
+ vdc?: null;
202
+ phases?: null[] | null;
203
+ dimmingInterfaces?: null[] | null;
204
+ dimmingRange?: null;
205
+ forwardVoltage?: null;
206
+ maximumWattage?: null;
207
+ driverInputVoltage?: null;
208
+ driverOutputVoltage?: null;
209
+ lightSourceReplaceable?: null[] | null;
210
+ }
211
+ export interface Photometric {
212
+ ledTypes?: GenericData[] | null;
213
+ beam0_180: number;
214
+ beam90_270: number;
215
+ beamind0_180?: null;
216
+ beamind90_270?: null;
217
+ realNetFlow: string;
218
+ realGrossFlow: string;
219
+ temperatureColor: GenericData;
220
+ cri: GenericData;
221
+ criThreshold: string;
222
+ sdcm?: null;
223
+ efficacy?: null;
224
+ ugrl?: null;
225
+ lifespan?: null;
226
+ actualPhotometryReference?: null;
227
+ cutOff?: null;
228
+ }
229
+ export interface Physical {
230
+ trim: GenericData;
231
+ bezelDiameter?: null;
232
+ constructionMaterial?: null;
233
+ recessedDepth: string;
234
+ spotDiameter: string;
235
+ width?: null;
236
+ length: number;
237
+ height?: null;
238
+ rotation: number;
239
+ suspensionType: GenericData;
240
+ orientations?: GenericData[] | null;
241
+ longitudinalTilting: number;
242
+ bezelTrimDimension?: null;
243
+ cableIngress?: null;
244
+ preCabled?: null;
245
+ plugTypes?: null;
246
+ diameterDecor?: null;
247
+ cordLenght?: null;
248
+ h2oStop?: null;
249
+ cuttableField?: null;
250
+ shapes?: GenericData[] | null;
251
+ }
252
+ export interface Logistic {
253
+ netWeight: string;
254
+ netWeight_us: string;
255
+ }
256
+ export interface CatalogsEntity {
257
+ catalogCode?: AvailableCatalogs | null;
258
+ categoryCode?: string | null;
259
+ subFamilyCode?: string | null;
260
+ familyCode?: string | null;
261
+ childFamilyCode?: null;
262
+ }
263
+ export interface ModelsEntityOrParentModel {
264
+ data: GenericData;
265
+ priority: number;
266
+ subFamilyCode: string;
267
+ productLineCode: string;
268
+ description1_en?: null;
269
+ description1_it?: null;
270
+ description1_de?: null;
271
+ description1_fr?: null;
272
+ description1_es?: null;
273
+ description1_sv?: null;
274
+ description1_no?: null;
275
+ description1_da?: null;
276
+ description1_ru?: null;
277
+ description1_en_us?: null;
278
+ description2_en?: null;
279
+ description2_it?: null;
280
+ description2_de?: null;
281
+ description2_fr?: null;
282
+ description2_es?: null;
283
+ description2_sv?: null;
284
+ description2_no?: null;
285
+ description2_da?: null;
286
+ description2_ru?: null;
287
+ description2_en_us?: null;
288
+ code?: null;
289
+ image?: null;
290
+ imageAlternative?: null;
291
+ value_en?: null;
292
+ value_en_US?: null;
293
+ value_it?: null;
294
+ value_es?: null;
295
+ value_de?: null;
296
+ value_fr?: null;
297
+ value_sv?: null;
298
+ value_no?: null;
299
+ value_da?: null;
300
+ value_ru?: null;
301
+ othersData: OthersData;
302
+ }
303
+ export interface SubmodelsEntity {
304
+ data: GenericData;
305
+ priority: number;
306
+ subFamilyCode?: null;
307
+ productLineCode?: null;
308
+ parentModel: ModelsEntityOrParentModel;
309
+ description1_en?: null;
310
+ description1_it?: null;
311
+ description1_de?: null;
312
+ description1_fr?: null;
313
+ description1_es?: null;
314
+ description1_sv?: null;
315
+ description1_no?: null;
316
+ description1_da?: null;
317
+ description1_ru?: null;
318
+ description1_en_us?: null;
319
+ description2_en?: null;
320
+ description2_it?: null;
321
+ description2_de?: null;
322
+ description2_fr?: null;
323
+ description2_es?: null;
324
+ description2_sv?: null;
325
+ description2_no?: null;
326
+ description2_da?: null;
327
+ description2_ru?: null;
328
+ description2_en_us?: null;
329
+ code?: null;
330
+ image?: null;
331
+ imageAlternative?: null;
332
+ value_en?: null;
333
+ value_en_US?: null;
334
+ value_it?: null;
335
+ value_es?: null;
336
+ value_de?: null;
337
+ value_fr?: null;
338
+ value_sv?: null;
339
+ value_no?: null;
340
+ value_da?: null;
341
+ value_ru?: null;
342
+ othersData: OthersData;
343
+ }
344
+ export interface ColourVariant {
345
+ code: string;
346
+ }
@@ -0,0 +1,25 @@
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 {
25
+ }
@@ -0,0 +1,8 @@
1
+ export interface FieldItem {
2
+ sys: Sys;
3
+ }
4
+ export interface Sys {
5
+ type: string;
6
+ linkType: string;
7
+ id: string;
8
+ }