pim-import 4.11.0 → 4.12.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.
Files changed (37) hide show
  1. package/dist/index.js +3 -2
  2. package/dist/index.js.map +1 -1
  3. package/dist/libs/contentful.js +1 -1
  4. package/dist/libs/contentful.js.map +1 -1
  5. package/dist/libs/logs.js +3 -0
  6. package/dist/libs/logs.js.map +1 -1
  7. package/dist/pim/methods/families.js +7 -0
  8. package/dist/pim/methods/families.js.map +1 -1
  9. package/dist/pim/methods/models.js +8 -1
  10. package/dist/pim/methods/models.js.map +1 -1
  11. package/dist/pim/methods/products.js +279 -100
  12. package/dist/pim/methods/products.js.map +1 -1
  13. package/dist/pim/methods/subfamilies.js +7 -0
  14. package/dist/pim/methods/subfamilies.js.map +1 -1
  15. package/dist/pim/methods/submodels.js +7 -0
  16. package/dist/pim/methods/submodels.js.map +1 -1
  17. package/package.json +2 -2
  18. package/src/index.ts +1 -0
  19. package/src/libs/contentful.ts +1 -1
  20. package/src/libs/logs.ts +4 -0
  21. package/src/pim/methods/families.ts +8 -0
  22. package/src/pim/methods/models.ts +11 -2
  23. package/src/pim/methods/products.ts +408 -171
  24. package/src/pim/methods/subfamilies.ts +10 -0
  25. package/src/pim/methods/submodels.ts +9 -0
  26. package/src/resources/Audit.ts +1 -0
  27. package/src/resources/CollectionModels.ts +1 -0
  28. package/src/resources/CollectionSubFamilies.ts +1 -0
  29. package/src/resources/CollectionSubModels.ts +1 -0
  30. package/src/resources/FamilyDetails.ts +1 -0
  31. package/types/index.d.ts +1 -1
  32. package/types/pim/methods/products.d.ts +5 -0
  33. package/types/resources/Audit.d.ts +1 -0
  34. package/types/resources/CollectionModels.d.ts +1 -0
  35. package/types/resources/CollectionSubFamilies.d.ts +1 -0
  36. package/types/resources/CollectionSubModels.d.ts +1 -0
  37. package/types/resources/FamilyDetails.d.ts +1 -0
@@ -22,6 +22,7 @@ export interface PagedCollectionEntity {
22
22
  description1_no?: string;
23
23
  description1_da?: string;
24
24
  description1_ru?: string;
25
+ destinations?: string[]
25
26
  }
26
27
  export interface Data {
27
28
  code: string;
@@ -22,6 +22,7 @@ export interface PagedCollectionEntity {
22
22
  description1_no?: string;
23
23
  description1_da?: string;
24
24
  description1_ru?: string;
25
+ destinations?: string[];
25
26
  }
26
27
  export interface GenericData {
27
28
  code: string;
@@ -13,6 +13,7 @@ export interface PagedCollectionEntity {
13
13
  parentModel: ParentModel;
14
14
  code: string;
15
15
  othersData: OthersData;
16
+ destinations?: string[];
16
17
  }
17
18
  export interface Data {
18
19
  code: string;
@@ -12,6 +12,7 @@ export interface FamilyDetails {
12
12
  description1_da?: string;
13
13
  description1_ru?: string;
14
14
  designers?: Data[] | null;
15
+ destinations?: string[];
15
16
  }
16
17
  export interface Data {
17
18
  code: string;
package/types/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export { importModels } from "./pim/methods/models";
8
8
  export { importSubModels } from "./pim/methods/submodels";
9
9
  export { importSubFamilies } from "./pim/methods/subfamilies";
10
10
  export { importFamilies } from "./pim/methods/families";
11
- export { importProductByCode, setProductsRelationships, setProductRelationships, getAllProductEntriesByCatalog, audit, generateTechSpecPdf, setProductsAutodescription, getProductAutodescription, setProductAutodescriptionByTopicId, removeProductFromColorVariantsByProductLine, removeAllProductModelProductRelations, getProductPageIdByCode, reimportAuditProducts, } from "./pim/methods/products";
11
+ export { importProductByCode, setProductsRelationships, setProductRelationships, getAllProductEntriesByCatalog, audit, generateTechSpecPdf, setProductsAutodescription, getProductAutodescription, setProductAutodescriptionByTopicId, removeProductFromColorVariantsByProductLine, removeAllProductModelProductRelations, getProductPageIdByCode, reimportAuditProducts, populateDestinations } from "./pim/methods/products";
12
12
  export { publishAllProductDrafts } from "./pim/methods/bulkPublish";
13
13
  export { resetIndexSettings } from "./algolia/config";
14
14
  export { reindexFamilies, reindexFamily, removeFamilyObject, } from "./algolia/families";
@@ -65,3 +65,8 @@ export declare const reimportAuditProducts: (lastModified: string, catalog: Avai
65
65
  processedEntries: number;
66
66
  total?: undefined;
67
67
  }>;
68
+ export declare const populateDestinations: (offset: number, limit: number) => Promise<{
69
+ completed: boolean;
70
+ offset: number;
71
+ limit: number;
72
+ }>;
@@ -5,6 +5,7 @@ declare type AuditCatalog = {
5
5
  subfamilyCode?: string;
6
6
  models?: string;
7
7
  subModels?: string;
8
+ codes?: string;
8
9
  };
9
10
  export interface Audit {
10
11
  what: string;
@@ -22,6 +22,7 @@ export interface PagedCollectionEntity {
22
22
  description1_no?: string;
23
23
  description1_da?: string;
24
24
  description1_ru?: string;
25
+ destinations?: string[];
25
26
  }
26
27
  export interface Data {
27
28
  code: string;
@@ -22,6 +22,7 @@ export interface PagedCollectionEntity {
22
22
  description1_no?: string;
23
23
  description1_da?: string;
24
24
  description1_ru?: string;
25
+ destinations?: string[];
25
26
  }
26
27
  export interface GenericData {
27
28
  code: string;
@@ -13,6 +13,7 @@ export interface PagedCollectionEntity {
13
13
  parentModel: ParentModel;
14
14
  code: string;
15
15
  othersData: OthersData;
16
+ destinations?: string[];
16
17
  }
17
18
  export interface Data {
18
19
  code: string;
@@ -12,6 +12,7 @@ export interface FamilyDetails {
12
12
  description1_da?: string;
13
13
  description1_ru?: string;
14
14
  designers?: Data[] | null;
15
+ destinations?: string[];
15
16
  }
16
17
  export interface Data {
17
18
  code: string;