pim-import 2.77.0 → 2.78.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.
Files changed (68) hide show
  1. package/dist/libs/contentful.js +29 -1
  2. package/dist/libs/contentful.js.map +1 -1
  3. package/dist/pim/methods/products.js +8 -23
  4. package/dist/pim/methods/products.js.map +1 -1
  5. package/dist/pim/methods/subfamilies.js +15 -0
  6. package/dist/pim/methods/subfamilies.js.map +1 -1
  7. package/package.json +5 -1
  8. package/src/libs/contentful.ts +58 -0
  9. package/src/pim/methods/products.ts +8 -43
  10. package/src/pim/methods/subfamilies.ts +19 -0
  11. package/src/resources/CollectionSubFamilies.ts +6 -6
  12. package/src/resources/ProductDetails.ts +1 -1
  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/downloads/classes/manageEntry.d.ts +10 -0
  29. package/types/downloads/import.d.ts +1 -0
  30. package/types/index.d.ts +32 -0
  31. package/types/libs/contentful-cda.d.ts +20 -0
  32. package/types/libs/contentful.d.ts +59 -0
  33. package/types/libs/imgix.d.ts +14 -0
  34. package/types/libs/logs.d.ts +8 -0
  35. package/types/libs/puppeteer.d.ts +11 -0
  36. package/types/libs/s3.d.ts +22 -0
  37. package/types/libs/sentry.d.ts +2 -0
  38. package/types/pim/config.d.ts +13 -0
  39. package/types/pim/endpoints.d.ts +20 -0
  40. package/types/pim/methods/catalogs.d.ts +21 -0
  41. package/types/pim/methods/dailyProductsUpdate.d.ts +2 -0
  42. package/types/pim/methods/dictionary.d.ts +6 -0
  43. package/types/pim/methods/families.d.ts +4 -0
  44. package/types/pim/methods/latestProducts.d.ts +12 -0
  45. package/types/pim/methods/models.d.ts +2 -0
  46. package/types/pim/methods/pages/catalogs.d.ts +3 -0
  47. package/types/pim/methods/pages/families.d.ts +6 -0
  48. package/types/pim/methods/pages/subfamilies.d.ts +12 -0
  49. package/types/pim/methods/products.d.ts +47 -0
  50. package/types/pim/methods/subfamilies.d.ts +13 -0
  51. package/types/pim/methods/submodels.d.ts +2 -0
  52. package/types/pim/request.d.ts +5 -0
  53. package/types/resources/AllProducts.d.ts +42 -0
  54. package/types/resources/Audit.d.ts +24 -0
  55. package/types/resources/CatalogDetails.d.ts +46 -0
  56. package/types/resources/CollectionModels.d.ts +41 -0
  57. package/types/resources/CollectionSubFamilies.d.ts +45 -0
  58. package/types/resources/CollectionSubModels.d.ts +36 -0
  59. package/types/resources/DProductSubLine.d.ts +34 -0
  60. package/types/resources/FamilyDetails.d.ts +31 -0
  61. package/types/resources/ProductDetails.d.ts +346 -0
  62. package/types/resources/ProductRelation.d.ts +25 -0
  63. package/types/resources/cfFields.d.ts +8 -0
  64. package/types/types.d.ts +188 -0
  65. package/types/utils.d.ts +19 -0
  66. package/dist/browser.js +0 -117
  67. package/dist/browser.js.map +0 -1
  68. package/src/browser.ts +0 -117
@@ -0,0 +1,188 @@
1
+ export declare type AvailableCatalogs = "ARCHITECTURAL" | "OUTDOOR" | "DECORATIVE";
2
+ export declare type AvailableEntryStatus = "Published" | "Changed" | "Draft" | "Archived";
3
+ export declare type NonEmptyArray<T> = [T, ...T[]];
4
+ export declare type ObjectPartial = Partial<Record<string, any>>;
5
+ export type { Config as ContentfulConfig } from "./libs/contentful";
6
+ export declare type PimLocale = "en" | "en_US" | "it" | "es" | "de" | "fr" | "sv" | "no" | "da" | "ru";
7
+ export declare type ContentfulLocale = "en" | "en-US" | "it" | "es" | "de" | "fr";
8
+ export declare type PimValues = {
9
+ value_en: string;
10
+ value_en_US?: string | null;
11
+ value_it: string | null;
12
+ value_es: string | null;
13
+ value_de: string | null;
14
+ value_fr: string | null;
15
+ value_sv: string | null;
16
+ value_no: string | null;
17
+ value_da: string | null;
18
+ value_ru: string | null;
19
+ };
20
+ export declare type PimDescription = {
21
+ description_en: string;
22
+ description_en_US?: string | null;
23
+ description_it: string | null;
24
+ description_es: string | null;
25
+ description_de: string | null;
26
+ description_fr: string | null;
27
+ description_sv: string | null;
28
+ description_no: string | null;
29
+ description_da: string | null;
30
+ description_ru: string | null;
31
+ };
32
+ export declare type PimProductDescription = {
33
+ description1_en: string;
34
+ description1_en_US?: string | null;
35
+ description1_it: string | null;
36
+ description1_es: string | null;
37
+ description1_de: string | null;
38
+ description1_fr: string | null;
39
+ description1_sv: string | null;
40
+ description1_no: string | null;
41
+ description1_da: string | null;
42
+ description1_ru: string | null;
43
+ };
44
+ export declare type PimProductExcerpt = {
45
+ description2_en: string;
46
+ description2_en_US?: string | null;
47
+ description2_it: string | null;
48
+ description2_es: string | null;
49
+ description2_de: string | null;
50
+ description2_fr: string | null;
51
+ description2_sv: string | null;
52
+ description2_no: string | null;
53
+ description2_da: string | null;
54
+ description2_ru: string | null;
55
+ };
56
+ export declare type CfSys = {
57
+ sys: {
58
+ type: string;
59
+ linkType: string;
60
+ id: string;
61
+ };
62
+ };
63
+ export declare type PaginationResults = {
64
+ offset: number;
65
+ limit: number;
66
+ completed: boolean;
67
+ s3FilePath?: string;
68
+ total?: number;
69
+ };
70
+ export declare type CfLocalizedEntryField = Partial<Record<ContentfulLocale, string | null>>;
71
+ export declare type TopicDetailsResponse = {
72
+ names: CfLocalizedEntryField;
73
+ code: string;
74
+ slugs?: {};
75
+ details?: {};
76
+ };
77
+ export declare type ProductFieldsRequiredData = {
78
+ key: string;
79
+ parent: string;
80
+ icon: boolean;
81
+ dictionary: string;
82
+ type: string;
83
+ };
84
+ export interface AlgoliaPaginateRecords extends PaginationResults {
85
+ objects: Readonly<Record<string, any>>[];
86
+ }
87
+ export interface AlgoliaPaginateObjectIds extends PaginationResults {
88
+ objectIds: string[];
89
+ }
90
+ export declare type AssetPropFields = {
91
+ title: {
92
+ [key: string]: string;
93
+ };
94
+ description?: {
95
+ [key: string]: string;
96
+ };
97
+ file: {
98
+ [key: string]: {
99
+ fileName: string;
100
+ contentType: string;
101
+ upload?: string;
102
+ url?: string;
103
+ details?: Record<string, any>;
104
+ uploadFrom?: Record<string, any>;
105
+ };
106
+ };
107
+ };
108
+ export declare type AssetPropFieldsWithoutLocaleKey = {
109
+ title: {
110
+ [key: string]: string;
111
+ };
112
+ description?: {
113
+ [key: string]: string;
114
+ };
115
+ file: {
116
+ fileName: string;
117
+ contentType: string;
118
+ upload?: string;
119
+ url?: string;
120
+ details?: Record<string, any>;
121
+ uploadFrom?: Record<string, any>;
122
+ };
123
+ };
124
+ export declare type TopicProductFieldsResponse = {
125
+ names: CfLocalizedEntryField;
126
+ code: string;
127
+ slugs: {};
128
+ };
129
+ export interface OtherFilters {
130
+ key: string;
131
+ value: string;
132
+ }
133
+ export interface ImgixData {
134
+ url: string;
135
+ details: ImgixDataDetails;
136
+ fileName: string;
137
+ contentType: string;
138
+ }
139
+ export interface ImgixDataDetails {
140
+ size: number;
141
+ image: ImgixDataImageDetails;
142
+ }
143
+ interface ImgixDataImageDetails {
144
+ width: number;
145
+ height: number;
146
+ }
147
+ export declare type WrapperImageFields = {
148
+ internalName: string;
149
+ imgixData: ImgixData;
150
+ altText: CfLocalizedEntryField;
151
+ caption?: CfLocalizedEntryField;
152
+ hoverTitle?: CfLocalizedEntryField;
153
+ foceHoverTitle?: boolean;
154
+ };
155
+ export interface ImgixAttributes {
156
+ analyzed_content_warnings: boolean;
157
+ analyzed_faces: boolean;
158
+ analyzed_tags: boolean;
159
+ categories?: null[] | null;
160
+ color_model: string;
161
+ color_profile: string;
162
+ colors: string;
163
+ content_type: string;
164
+ custom_fields?: null;
165
+ date_created: number;
166
+ date_modified: number;
167
+ description?: null;
168
+ dpi_height: number;
169
+ dpi_width: number;
170
+ face_count?: null;
171
+ file_size: number;
172
+ has_frames: boolean;
173
+ media_height: number;
174
+ media_kind: string;
175
+ media_width: number;
176
+ name?: null;
177
+ origin_path: string;
178
+ source_id: string;
179
+ tags: Record<string, any>;
180
+ uploaded_by: string;
181
+ uploaded_by_api: boolean;
182
+ warning_adult: number;
183
+ warning_medical: number;
184
+ warning_racy: number;
185
+ warning_spoof: number;
186
+ warning_violence: number;
187
+ }
188
+ export declare type RequiredImgixAttributes = Pick<ImgixAttributes, "origin_path" | "file_size" | "media_width" | "media_height" | "content_type" | "name">;
@@ -0,0 +1,19 @@
1
+ import { PimLocale, ContentfulLocale, PimValues, CfLocalizedEntryField, PimProductDescription, PimProductExcerpt } from "./types";
2
+ import { AssetsEntity } from "./resources/ProductDetails";
3
+ export declare const mergeObjects: <T extends object, U extends object>(objA: T, objB: U) => T & U;
4
+ export declare const sleep: (ms: number, showLog?: boolean) => Promise<unknown>;
5
+ export declare const getBaseURL: (url: string) => string;
6
+ export declare const basename: (path: string) => string;
7
+ export declare const secondBetweenTwoDate: (newDate: Date, oldDate: Date) => number;
8
+ export declare const stringToSlug: (str: string, skipReplaceDots?: boolean) => string;
9
+ export declare const pimLocaleMap: Partial<Record<PimLocale, ContentfulLocale>>;
10
+ export declare const getLocale: (pimLocaleCode: PimLocale) => ContentfulLocale | null;
11
+ export declare const getPimTranslations: (values: Partial<PimValues | PimProductDescription | PimProductExcerpt | AssetsEntity>, fieldKey?: "value" | "description" | "description1" | "description2" | "note" | "title" | "webNaming") => CfLocalizedEntryField;
12
+ export declare const getUnwantedValues: () => (string | number)[];
13
+ export declare const sanitizeValue: (value: string) => string | null;
14
+ export declare const doChunk: (list: string[], size: number) => any[][];
15
+ export declare const getLocalISOTime: () => string;
16
+ export declare const capitalizeFirstLetter: (text: string) => string;
17
+ export declare const keysToLowerCase: (obj: any, includeNestedKeys?: boolean) => any;
18
+ export declare const addProductFieldValueCodesByPimDetails: (pimDetails: any, productFields: any, fieldKey: string, fieldParentKey?: string | undefined) => string[];
19
+ export declare const replaceAll: (original: string, from: string, to: string) => string;
package/dist/browser.js DELETED
@@ -1,117 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reindexModel = exports.removeSubModelObject = exports.reindexSubModels = exports.reindexSubModel = exports.removeProductObject = exports.reindexProducts = exports.reindexProduct = exports.removeSubFamilyObject = exports.reindexSubFamily = exports.reindexSubFamilies = exports.pipedreamReindex = exports.removeFamilyObject = exports.reindexFamily = exports.reindexFamilies = exports.resetIndexSettings = exports.removeAllProductModelProductRelations = exports.removeProductFromColorVariantsByProductLine = exports.setProductAutodescriptionByTopicId = exports.getProductAutodescription = exports.setProductsAutodescription = exports.generateTechSpecPdf = exports.audit = exports.getAllProductEntriesByCatalog = exports.setProductRelationships = exports.setProductsRelationships = exports.importProductByCode = exports.importFamilies = exports.importSubFamilies = exports.importSubModels = exports.importModels = exports.dailyProductsUpdate = exports.importLatestProducts = exports.importCategories = exports.importDictionaryProductSubLine = exports.importDictionaryProductLine = exports.importDictionaryIcons = exports.importDictionaryFields = exports.savePDFToS3 = exports.getFileFromS3 = exports.saveJsonToS3 = exports.uploadS3 = exports.initS3 = exports.getTopicPage = exports.getEntryByID = exports.deleteEntries = exports.deletePages = exports.initBaseEntries = exports.initContentful = exports.initPim = exports.reportError = void 0;
4
- exports.generatePDFByUrl = exports.removeRecordsByStatus = exports.setLogOptions = exports.setLogId = exports.log = exports.getStaticDailyProducts = exports.getLocalISOTime = exports.importDownloads = exports.removePostObject = exports.reindexPosts = exports.reindexPost = exports.removePressReleaseObject = exports.reindexPressReleases = exports.reindexPressRelease = exports.removePressReviewObject = exports.reindexPressReviews = exports.reindexPressReview = exports.removeStoryObject = exports.reindexStories = exports.reindexStory = exports.removeProjectObject = exports.reindexProjects = exports.reindexProject = exports.removeDownloadObject = exports.reindexDownloads = exports.reindexDownload = exports.removeModelObject = exports.reindexModels = void 0;
5
- const sentry_1 = require("./libs/sentry");
6
- sentry_1.initSentry();
7
- var sentry_2 = require("./libs/sentry");
8
- Object.defineProperty(exports, "reportError", { enumerable: true, get: function () { return sentry_2.reportError; } });
9
- var config_1 = require("./pim/config");
10
- Object.defineProperty(exports, "initPim", { enumerable: true, get: function () { return config_1.init; } });
11
- var contentful_1 = require("./libs/contentful");
12
- Object.defineProperty(exports, "initContentful", { enumerable: true, get: function () { return contentful_1.init; } });
13
- Object.defineProperty(exports, "initBaseEntries", { enumerable: true, get: function () { return contentful_1.initBaseEntries; } });
14
- Object.defineProperty(exports, "deletePages", { enumerable: true, get: function () { return contentful_1.deletePages; } });
15
- Object.defineProperty(exports, "deleteEntries", { enumerable: true, get: function () { return contentful_1.deleteEntries; } });
16
- Object.defineProperty(exports, "getEntryByID", { enumerable: true, get: function () { return contentful_1.getEntryByID; } });
17
- Object.defineProperty(exports, "getTopicPage", { enumerable: true, get: function () { return contentful_1.getTopicPage; } });
18
- var s3_1 = require("./libs/s3");
19
- Object.defineProperty(exports, "initS3", { enumerable: true, get: function () { return s3_1.init; } });
20
- Object.defineProperty(exports, "uploadS3", { enumerable: true, get: function () { return s3_1.upload; } });
21
- Object.defineProperty(exports, "saveJsonToS3", { enumerable: true, get: function () { return s3_1.saveJsonToS3; } });
22
- Object.defineProperty(exports, "getFileFromS3", { enumerable: true, get: function () { return s3_1.getFileFromS3; } });
23
- Object.defineProperty(exports, "savePDFToS3", { enumerable: true, get: function () { return s3_1.savePDFToS3; } });
24
- var dictionary_1 = require("./pim/methods/dictionary");
25
- Object.defineProperty(exports, "importDictionaryFields", { enumerable: true, get: function () { return dictionary_1.importDictionaryFields; } });
26
- Object.defineProperty(exports, "importDictionaryIcons", { enumerable: true, get: function () { return dictionary_1.importDictionaryIcons; } });
27
- Object.defineProperty(exports, "importDictionaryProductLine", { enumerable: true, get: function () { return dictionary_1.importDictionaryProductLine; } });
28
- Object.defineProperty(exports, "importDictionaryProductSubLine", { enumerable: true, get: function () { return dictionary_1.importDictionaryProductSubLine; } });
29
- var catalogs_1 = require("./pim/methods/catalogs");
30
- Object.defineProperty(exports, "importCategories", { enumerable: true, get: function () { return catalogs_1.importCategories; } });
31
- var latestProducts_1 = require("./pim/methods/latestProducts");
32
- Object.defineProperty(exports, "importLatestProducts", { enumerable: true, get: function () { return latestProducts_1.importLatestProducts; } });
33
- var dailyProductsUpdate_1 = require("./pim/methods/dailyProductsUpdate");
34
- Object.defineProperty(exports, "dailyProductsUpdate", { enumerable: true, get: function () { return dailyProductsUpdate_1.dailyProductsUpdate; } });
35
- var models_1 = require("./pim/methods/models");
36
- Object.defineProperty(exports, "importModels", { enumerable: true, get: function () { return models_1.importModels; } });
37
- var submodels_1 = require("./pim/methods/submodels");
38
- Object.defineProperty(exports, "importSubModels", { enumerable: true, get: function () { return submodels_1.importSubModels; } });
39
- var subfamilies_1 = require("./pim/methods/subfamilies");
40
- Object.defineProperty(exports, "importSubFamilies", { enumerable: true, get: function () { return subfamilies_1.importSubFamilies; } });
41
- var families_1 = require("./pim/methods/families");
42
- Object.defineProperty(exports, "importFamilies", { enumerable: true, get: function () { return families_1.importFamilies; } });
43
- var products_1 = require("./pim/methods/products");
44
- Object.defineProperty(exports, "importProductByCode", { enumerable: true, get: function () { return products_1.importProductByCode; } });
45
- Object.defineProperty(exports, "setProductsRelationships", { enumerable: true, get: function () { return products_1.setProductsRelationships; } });
46
- Object.defineProperty(exports, "setProductRelationships", { enumerable: true, get: function () { return products_1.setProductRelationships; } });
47
- Object.defineProperty(exports, "getAllProductEntriesByCatalog", { enumerable: true, get: function () { return products_1.getAllProductEntriesByCatalog; } });
48
- Object.defineProperty(exports, "audit", { enumerable: true, get: function () { return products_1.audit; } });
49
- Object.defineProperty(exports, "generateTechSpecPdf", { enumerable: true, get: function () { return products_1.generateTechSpecPdf; } });
50
- Object.defineProperty(exports, "setProductsAutodescription", { enumerable: true, get: function () { return products_1.setProductsAutodescription; } });
51
- Object.defineProperty(exports, "getProductAutodescription", { enumerable: true, get: function () { return products_1.getProductAutodescription; } });
52
- Object.defineProperty(exports, "setProductAutodescriptionByTopicId", { enumerable: true, get: function () { return products_1.setProductAutodescriptionByTopicId; } });
53
- Object.defineProperty(exports, "removeProductFromColorVariantsByProductLine", { enumerable: true, get: function () { return products_1.removeProductFromColorVariantsByProductLine; } });
54
- Object.defineProperty(exports, "removeAllProductModelProductRelations", { enumerable: true, get: function () { return products_1.removeAllProductModelProductRelations; } });
55
- var config_2 = require("./algolia/config");
56
- Object.defineProperty(exports, "resetIndexSettings", { enumerable: true, get: function () { return config_2.resetIndexSettings; } });
57
- var families_2 = require("./algolia/families");
58
- Object.defineProperty(exports, "reindexFamilies", { enumerable: true, get: function () { return families_2.reindexFamilies; } });
59
- Object.defineProperty(exports, "reindexFamily", { enumerable: true, get: function () { return families_2.reindexFamily; } });
60
- Object.defineProperty(exports, "removeFamilyObject", { enumerable: true, get: function () { return families_2.removeFamilyObject; } });
61
- var pipedreamReindex_1 = require("./algolia/pipedreamReindex");
62
- Object.defineProperty(exports, "pipedreamReindex", { enumerable: true, get: function () { return pipedreamReindex_1.pipedreamReindex; } });
63
- var subFamilies_1 = require("./algolia/subFamilies");
64
- Object.defineProperty(exports, "reindexSubFamilies", { enumerable: true, get: function () { return subFamilies_1.reindexSubFamilies; } });
65
- Object.defineProperty(exports, "reindexSubFamily", { enumerable: true, get: function () { return subFamilies_1.reindexSubFamily; } });
66
- Object.defineProperty(exports, "removeSubFamilyObject", { enumerable: true, get: function () { return subFamilies_1.removeSubFamilyObject; } });
67
- var products_2 = require("./algolia/products");
68
- Object.defineProperty(exports, "reindexProduct", { enumerable: true, get: function () { return products_2.reindexProduct; } });
69
- Object.defineProperty(exports, "reindexProducts", { enumerable: true, get: function () { return products_2.reindexProducts; } });
70
- Object.defineProperty(exports, "removeProductObject", { enumerable: true, get: function () { return products_2.removeProductObject; } });
71
- var subModels_1 = require("./algolia/subModels");
72
- Object.defineProperty(exports, "reindexSubModel", { enumerable: true, get: function () { return subModels_1.reindexSubModel; } });
73
- Object.defineProperty(exports, "reindexSubModels", { enumerable: true, get: function () { return subModels_1.reindexSubModels; } });
74
- Object.defineProperty(exports, "removeSubModelObject", { enumerable: true, get: function () { return subModels_1.removeSubModelObject; } });
75
- var models_2 = require("./algolia/models");
76
- Object.defineProperty(exports, "reindexModel", { enumerable: true, get: function () { return models_2.reindexModel; } });
77
- Object.defineProperty(exports, "reindexModels", { enumerable: true, get: function () { return models_2.reindexModels; } });
78
- Object.defineProperty(exports, "removeModelObject", { enumerable: true, get: function () { return models_2.removeModelObject; } });
79
- var downloads_1 = require("./algolia/downloads");
80
- Object.defineProperty(exports, "reindexDownload", { enumerable: true, get: function () { return downloads_1.reindexDownload; } });
81
- Object.defineProperty(exports, "reindexDownloads", { enumerable: true, get: function () { return downloads_1.reindexDownloads; } });
82
- Object.defineProperty(exports, "removeDownloadObject", { enumerable: true, get: function () { return downloads_1.removeDownloadObject; } });
83
- var projects_1 = require("./algolia/projects");
84
- Object.defineProperty(exports, "reindexProject", { enumerable: true, get: function () { return projects_1.reindexProject; } });
85
- Object.defineProperty(exports, "reindexProjects", { enumerable: true, get: function () { return projects_1.reindexProjects; } });
86
- Object.defineProperty(exports, "removeProjectObject", { enumerable: true, get: function () { return projects_1.removeProjectObject; } });
87
- var stories_1 = require("./algolia/stories");
88
- Object.defineProperty(exports, "reindexStory", { enumerable: true, get: function () { return stories_1.reindexStory; } });
89
- Object.defineProperty(exports, "reindexStories", { enumerable: true, get: function () { return stories_1.reindexStories; } });
90
- Object.defineProperty(exports, "removeStoryObject", { enumerable: true, get: function () { return stories_1.removeStoryObject; } });
91
- var pressReview_1 = require("./algolia/pressReview");
92
- Object.defineProperty(exports, "reindexPressReview", { enumerable: true, get: function () { return pressReview_1.reindexPressReview; } });
93
- Object.defineProperty(exports, "reindexPressReviews", { enumerable: true, get: function () { return pressReview_1.reindexPressReviews; } });
94
- Object.defineProperty(exports, "removePressReviewObject", { enumerable: true, get: function () { return pressReview_1.removePressReviewObject; } });
95
- var pressRelease_1 = require("./algolia/pressRelease");
96
- Object.defineProperty(exports, "reindexPressRelease", { enumerable: true, get: function () { return pressRelease_1.reindexPressRelease; } });
97
- Object.defineProperty(exports, "reindexPressReleases", { enumerable: true, get: function () { return pressRelease_1.reindexPressReleases; } });
98
- Object.defineProperty(exports, "removePressReleaseObject", { enumerable: true, get: function () { return pressRelease_1.removePressReleaseObject; } });
99
- var news_1 = require("./algolia/news");
100
- Object.defineProperty(exports, "reindexPost", { enumerable: true, get: function () { return news_1.reindexPost; } });
101
- Object.defineProperty(exports, "reindexPosts", { enumerable: true, get: function () { return news_1.reindexPosts; } });
102
- Object.defineProperty(exports, "removePostObject", { enumerable: true, get: function () { return news_1.removePostObject; } });
103
- var import_1 = require("./downloads/import");
104
- Object.defineProperty(exports, "importDownloads", { enumerable: true, get: function () { return import_1.importDownloads; } });
105
- var utils_1 = require("./utils");
106
- Object.defineProperty(exports, "getLocalISOTime", { enumerable: true, get: function () { return utils_1.getLocalISOTime; } });
107
- var endpoints_1 = require("./pim/endpoints");
108
- Object.defineProperty(exports, "getStaticDailyProducts", { enumerable: true, get: function () { return endpoints_1.getStaticDailyProducts; } });
109
- var logs_1 = require("./libs/logs");
110
- Object.defineProperty(exports, "log", { enumerable: true, get: function () { return logs_1.log; } });
111
- Object.defineProperty(exports, "setLogId", { enumerable: true, get: function () { return logs_1.setLogId; } });
112
- Object.defineProperty(exports, "setLogOptions", { enumerable: true, get: function () { return logs_1.setLogOptions; } });
113
- var clean_1 = require("./algolia/clean");
114
- Object.defineProperty(exports, "removeRecordsByStatus", { enumerable: true, get: function () { return clean_1.removeRecordsByStatus; } });
115
- var puppeteer_1 = require("./libs/puppeteer");
116
- Object.defineProperty(exports, "generatePDFByUrl", { enumerable: true, get: function () { return puppeteer_1.generatePDFByUrl; } });
117
- //# sourceMappingURL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GAAA,eAAe,OAAA;AACxB,6CAAyD;AAAhD,mHAAA,sBAAsB,OAAA;AAC/B,oCAA2D;AAAlD,2FAAA,GAAG,OAAA;AAAE,gGAAA,QAAQ,OAAA;AAAE,qGAAA,aAAa,OAAA;AACrC,yCAAwD;AAA/C,8GAAA,qBAAqB,OAAA;AAC9B,8CAAoD;AAA3C,6GAAA,gBAAgB,OAAA"}
package/src/browser.ts DELETED
@@ -1,117 +0,0 @@
1
- import { initSentry } from "./libs/sentry";
2
- initSentry();
3
- export { reportError } from "./libs/sentry";
4
- export { init as initPim } from "./pim/config";
5
- export {
6
- init as initContentful,
7
- initBaseEntries,
8
- deletePages,
9
- deleteEntries,
10
- getEntryByID,
11
- getTopicPage,
12
- } from "./libs/contentful";
13
- export {
14
- init as initS3,
15
- upload as uploadS3,
16
- saveJsonToS3,
17
- getFileFromS3,
18
- savePDFToS3,
19
- } from "./libs/s3";
20
- export {
21
- importDictionaryFields,
22
- importDictionaryIcons,
23
- importDictionaryProductLine,
24
- importDictionaryProductSubLine,
25
- } from "./pim/methods/dictionary";
26
- export { importCategories } from "./pim/methods/catalogs";
27
- export { importLatestProducts } from "./pim/methods/latestProducts";
28
- export { dailyProductsUpdate } from "./pim/methods/dailyProductsUpdate";
29
- export { importModels } from "./pim/methods/models";
30
- export { importSubModels } from "./pim/methods/submodels";
31
- export { importSubFamilies } from "./pim/methods/subfamilies";
32
- export { importFamilies } from "./pim/methods/families";
33
- export {
34
- importProductByCode,
35
- setProductsRelationships,
36
- setProductRelationships,
37
- getAllProductEntriesByCatalog,
38
- audit,
39
- generateTechSpecPdf,
40
- setProductsAutodescription,
41
- getProductAutodescription,
42
- setProductAutodescriptionByTopicId,
43
- removeProductFromColorVariantsByProductLine,
44
- removeAllProductModelProductRelations,
45
- } from "./pim/methods/products";
46
- // export {
47
- // createOrUpdateCatalogPages,
48
- // createOrUpdateCatalogPageByCode,
49
- // } from "./pim/methods/pages/catalogs";
50
- export { resetIndexSettings } from "./algolia/config";
51
- export {
52
- reindexFamilies,
53
- reindexFamily,
54
- removeFamilyObject,
55
- } from "./algolia/families";
56
- export { pipedreamReindex } from "./algolia/pipedreamReindex";
57
- // export {
58
- // createOrUpdateFamilyPages,
59
- // createOrUpdateFamilyPageByCode,
60
- // } from "./pim/methods/pages/families";
61
- export {
62
- reindexSubFamilies,
63
- reindexSubFamily,
64
- removeSubFamilyObject,
65
- } from "./algolia/subFamilies";
66
- // export {
67
- // createOrUpdateSubFamilyPages,
68
- // createOrUpdateSubFamilyPageByCode,
69
- // createOrUpdateSubFamilyPagesByCatalog,
70
- // } from "./pim/methods/pages/subfamilies";
71
- export {
72
- reindexProduct,
73
- reindexProducts,
74
- removeProductObject,
75
- } from "./algolia/products";
76
- export {
77
- reindexSubModel,
78
- reindexSubModels,
79
- removeSubModelObject,
80
- } from "./algolia/subModels";
81
- export {
82
- reindexModel,
83
- reindexModels,
84
- removeModelObject,
85
- } from "./algolia/models";
86
- export {
87
- reindexDownload,
88
- reindexDownloads,
89
- removeDownloadObject,
90
- } from "./algolia/downloads";
91
- export {
92
- reindexProject,
93
- reindexProjects,
94
- removeProjectObject,
95
- } from "./algolia/projects";
96
- export {
97
- reindexStory,
98
- reindexStories,
99
- removeStoryObject,
100
- } from "./algolia/stories";
101
- export {
102
- reindexPressReview,
103
- reindexPressReviews,
104
- removePressReviewObject,
105
- } from "./algolia/pressReview";
106
- export {
107
- reindexPressRelease,
108
- reindexPressReleases,
109
- removePressReleaseObject,
110
- } from "./algolia/pressRelease";
111
- export { reindexPost, reindexPosts, removePostObject } from "./algolia/news";
112
- export { importDownloads } from "./downloads/import";
113
- export { getLocalISOTime } from "./utils";
114
- export { getStaticDailyProducts } from "./pim/endpoints";
115
- export { log, setLogId, setLogOptions } from "./libs/logs";
116
- export { removeRecordsByStatus } from "./algolia/clean";
117
- export { generatePDFByUrl } from "./libs/puppeteer";