pim-import 2.78.1 → 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 (57) hide show
  1. package/package.json +5 -1
  2. package/tsconfig.json +2 -1
  3. package/types/algolia/clean.d.ts +10 -0
  4. package/types/algolia/config.d.ts +96 -0
  5. package/types/algolia/downloads.d.ts +36 -0
  6. package/types/algolia/families.d.ts +48 -0
  7. package/types/algolia/models.d.ts +31 -0
  8. package/types/algolia/news.d.ts +33 -0
  9. package/types/algolia/pipedreamReindex.d.ts +4 -0
  10. package/types/algolia/pressRelease.d.ts +33 -0
  11. package/types/algolia/pressReview.d.ts +33 -0
  12. package/types/algolia/products.d.ts +75 -0
  13. package/types/algolia/projects.d.ts +43 -0
  14. package/types/algolia/stories.d.ts +43 -0
  15. package/types/algolia/subFamilies.d.ts +28 -0
  16. package/types/algolia/subModels.d.ts +29 -0
  17. package/types/downloads/classes/manageEntry.d.ts +10 -0
  18. package/types/downloads/import.d.ts +1 -0
  19. package/types/index.d.ts +32 -0
  20. package/types/libs/contentful-cda.d.ts +20 -0
  21. package/types/libs/contentful.d.ts +59 -0
  22. package/types/libs/imgix.d.ts +14 -0
  23. package/types/libs/logs.d.ts +8 -0
  24. package/types/libs/puppeteer.d.ts +11 -0
  25. package/types/libs/s3.d.ts +22 -0
  26. package/types/libs/sentry.d.ts +2 -0
  27. package/types/pim/config.d.ts +13 -0
  28. package/types/pim/endpoints.d.ts +20 -0
  29. package/types/pim/methods/catalogs.d.ts +21 -0
  30. package/types/pim/methods/dailyProductsUpdate.d.ts +2 -0
  31. package/types/pim/methods/dictionary.d.ts +6 -0
  32. package/types/pim/methods/families.d.ts +4 -0
  33. package/types/pim/methods/latestProducts.d.ts +12 -0
  34. package/types/pim/methods/models.d.ts +2 -0
  35. package/types/pim/methods/pages/catalogs.d.ts +3 -0
  36. package/types/pim/methods/pages/families.d.ts +6 -0
  37. package/types/pim/methods/pages/subfamilies.d.ts +12 -0
  38. package/types/pim/methods/products.d.ts +47 -0
  39. package/types/pim/methods/subfamilies.d.ts +13 -0
  40. package/types/pim/methods/submodels.d.ts +2 -0
  41. package/types/pim/request.d.ts +5 -0
  42. package/types/resources/AllProducts.d.ts +42 -0
  43. package/types/resources/Audit.d.ts +24 -0
  44. package/types/resources/CatalogDetails.d.ts +46 -0
  45. package/types/resources/CollectionModels.d.ts +41 -0
  46. package/types/resources/CollectionSubFamilies.d.ts +45 -0
  47. package/types/resources/CollectionSubModels.d.ts +36 -0
  48. package/types/resources/DProductSubLine.d.ts +34 -0
  49. package/types/resources/FamilyDetails.d.ts +31 -0
  50. package/types/resources/ProductDetails.d.ts +346 -0
  51. package/types/resources/ProductRelation.d.ts +25 -0
  52. package/types/resources/cfFields.d.ts +8 -0
  53. package/types/types.d.ts +188 -0
  54. package/types/utils.d.ts +19 -0
  55. package/dist/browser.js +0 -117
  56. package/dist/browser.js.map +0 -1
  57. package/src/browser.ts +0 -117
@@ -0,0 +1,59 @@
1
+ import type { Entry, CreateEntryProps } from "contentful-management/dist/typings/entities/entry";
2
+ import { Environment, Locale, CreateAssetProps } from "contentful-management/types";
3
+ import { ContentfulLocale, AvailableCatalogs, TopicDetailsResponse, AssetPropFields, OtherFilters, WrapperImageFields } from "../types";
4
+ import { GenericData } from "../resources/ProductDetails";
5
+ export declare type Config = {
6
+ accessToken: string;
7
+ spaceId: string;
8
+ environmentId: string;
9
+ };
10
+ export declare let config: Config;
11
+ export declare let environment: Environment;
12
+ export declare let defaultEnvironmentLocale: Locale;
13
+ export declare let defaultEnvironmentLocaleCode: string;
14
+ export declare const cfLocales: ContentfulLocale[];
15
+ export declare const checkConfig: (skipInit?: boolean) => boolean;
16
+ export declare const init: (opts?: Config | undefined) => void;
17
+ export declare const getConfig: () => Config;
18
+ export declare const getEnvironment: () => Promise<Environment>;
19
+ export declare const getEnvironmentDefaultLocale: () => Promise<Locale>;
20
+ export declare const getEnvironmentDefaultLocaleCode: () => Promise<string>;
21
+ export declare const uploadFile: (asset: CreateAssetProps) => Promise<any>;
22
+ export declare const createEntryWithId: (contentTypeId: string, id: string, data: CreateEntryProps, publish?: boolean) => Promise<Entry>;
23
+ export declare const updateEntry: (itemEntry: Entry, data: CreateEntryProps, publish?: boolean) => Promise<Entry>;
24
+ export declare const getEntryByCode: (code: string, contentTypeId: string, select?: string | undefined) => Promise<Entry>;
25
+ export declare const getAllEntriesByCodes: (codes: string[], contentTypeId: string, select?: string | undefined, filter?: string, otherFilters?: OtherFilters[] | undefined) => Promise<Entry[]>;
26
+ export declare const getAllEntries: (contentType: string, select?: string | undefined, filterKey?: string | undefined, filterValue?: string | undefined, limit?: number) => Promise<Entry[]>;
27
+ export declare const getEntryByID: (entryID: string, contentTypeId: string, select?: string | undefined) => Promise<Entry>;
28
+ export declare const initBaseEntries: () => Promise<boolean>;
29
+ export declare const getDefaultProfessionalPageContentData: (pageContentEntry: Entry, pageContentData: CreateEntryProps) => Promise<CreateEntryProps<import("contentful-management/types").KeyValueMap>>;
30
+ export declare const deleteAllEntries: (contentType: string, catalogCode?: AvailableCatalogs | undefined) => Promise<{
31
+ deleted: number;
32
+ total: number;
33
+ }>;
34
+ export declare const deleteAllPages: (types: string[]) => Promise<{
35
+ deleted: number;
36
+ total: number;
37
+ }>;
38
+ export declare const deletePages: (types: string[], limit?: number) => Promise<{
39
+ deleted: number;
40
+ total: number;
41
+ }>;
42
+ export declare const deleteEntries: (contentType: string, catalogCode?: AvailableCatalogs | undefined, limit?: number) => Promise<{
43
+ deleted: number;
44
+ total: number;
45
+ }>;
46
+ export declare const addToRelationFields: (entry: Entry | any, fieldKey: string, entrySysIdValue: string, manyReferences?: boolean, resetOldValues?: boolean, linkType?: "Asset" | "Entry") => Promise<Entry>;
47
+ export declare const removeFromRelationFields: (entry: Entry | any, fieldKey: string, entrySysIdValue: string, manyReferences?: boolean) => Promise<any>;
48
+ export declare const addFieldValue: (entry: Entry | any, fieldKey: string, fieldValue: any, manyReferences?: boolean) => Promise<any>;
49
+ export declare const getTopicDetails: (topicEntry: Entry, fieldKey: string, contentType: string, lowerCaseKeys?: boolean, showRelatedEntities?: boolean, isCatalogEntry?: boolean) => Promise<TopicDetailsResponse[]>;
50
+ export declare const getAssetDetails: (assetId: string) => Promise<AssetPropFields>;
51
+ export declare const getEntryImageDetails: (entry: Entry, fieldKey: string) => Promise<string>;
52
+ export declare const getDictionaryJson: () => Promise<any>;
53
+ export declare const getDictionaryValue: (fieldKey: string, fieldValue: string, fieldParent?: string, dictionaryJsonFile?: any) => Promise<any>;
54
+ export declare const getDictionaryLocaleValue: (locale: string, fieldKey: string, fieldValue: string, fieldParent?: string, dictionaryJsonFile?: any) => Promise<any>;
55
+ export declare const getTopicPage: (topicId: string, select?: string) => Promise<Entry>;
56
+ export declare const createWrapperImgix: (id: string, data: WrapperImageFields) => Promise<Entry>;
57
+ export declare const archiveEntry: (entry: Entry, isProduct?: boolean) => Promise<Entry>;
58
+ export declare const getDesignerData: (designer: GenericData) => Promise<CreateEntryProps<import("contentful-management/types").KeyValueMap>>;
59
+ export declare const addDesignerData: (data: any, designer: GenericData, manyReferences?: boolean) => Promise<any>;
@@ -0,0 +1,14 @@
1
+ import ImgixAPI from "imgix-management-js";
2
+ import { ImgixAttributes, ImgixData } from "../types";
3
+ export declare const getImgix: () => ImgixAPI;
4
+ export declare const getSources: () => Promise<import("imgix-management-js").RequestResponse>;
5
+ export declare const getOriginPathByPimUrl: (pimImgUrl: string) => string;
6
+ export declare const getNameByPimUrl: (pimImgUrl: string) => string;
7
+ export declare const getContentTypeByPimUrl: (pimImgUrl: string) => string;
8
+ export declare const getImageAttributesByOriginPath: (originPath: string, sourceId: string) => Promise<{}>;
9
+ export declare const getImageAttributesByPimUrl: (pimUrl: string) => Promise<ImgixAttributes>;
10
+ export declare const getWrapperImgixAttributesByPimUrl: (pimUrl: string) => Promise<ImgixData | null>;
11
+ export declare const getDefaultWrapperImgixAttributesByPimUrl: (pimUrl: string) => ImgixData;
12
+ export declare const getWrapperImgixFields: (wrapperImgixId: string) => Promise<{}>;
13
+ export declare const getWrapperImgixAttributesByAsset: (imgixAttributes: ImgixAttributes) => Promise<ImgixData>;
14
+ export declare const uploadAssetByUrl: (url: string) => Promise<ImgixData | undefined>;
@@ -0,0 +1,8 @@
1
+ import { ObjectPartial } from "../types";
2
+ export declare type LogLevels = "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "FATAL";
3
+ export declare const logStatus = true;
4
+ export declare const logLevelToHide: LogLevels[];
5
+ export declare const getLogger: () => any;
6
+ export declare const setLogId: (id: string) => void;
7
+ export declare const setLogOptions: (opts: ObjectPartial) => void;
8
+ export declare const log: (message: string, level?: LogLevels) => void;
@@ -0,0 +1,11 @@
1
+ /// <reference types="node" />
2
+ interface Columns {
3
+ left?: string;
4
+ right?: string;
5
+ }
6
+ interface PDFHeaderAndFooter {
7
+ header?: Columns;
8
+ footer?: Columns;
9
+ }
10
+ export declare const generatePDFByUrl: (url: string, path?: string, contents?: PDFHeaderAndFooter | undefined) => Promise<Buffer>;
11
+ export {};
@@ -0,0 +1,22 @@
1
+ import AWS from "aws-sdk";
2
+ import { AvailableCatalogs } from "../types";
3
+ interface AWSConfig {
4
+ accessKeyId: string;
5
+ secretAccessKey: string;
6
+ region: string;
7
+ }
8
+ interface Config extends AWSConfig {
9
+ bucket: string;
10
+ }
11
+ export declare let config: Config;
12
+ export declare let s3: AWS.S3;
13
+ export declare const checkConfig: (skipInit?: boolean) => void;
14
+ export declare const init: (opts?: Config | undefined) => void;
15
+ export declare const listObjects: (prefix?: string) => Promise<import("aws-sdk/lib/request").PromiseResult<AWS.S3.ListObjectsV2Output, AWS.AWSError>>;
16
+ export declare const upload: (url: string, fileName?: string, path?: string, metaData?: any) => Promise<AWS.S3.ManagedUpload.SendData>;
17
+ export declare const getFileFromS3: (path: string, returnUrl?: boolean) => Promise<any>;
18
+ export declare const saveCatalogToS3: (catalog: AvailableCatalogs) => Promise<string>;
19
+ export declare const saveAllProductsToS3: (catalog: AvailableCatalogs, lastModified: string) => Promise<string>;
20
+ export declare const saveJsonToS3: (obj: any, fileName?: string, path?: string) => Promise<AWS.S3.ManagedUpload.SendData>;
21
+ export declare const savePDFToS3: (pdf: any, fileName: string, path?: string) => Promise<string | undefined>;
22
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const initSentry: () => Promise<void>;
2
+ export declare const reportError: (error: any) => Promise<void>;
@@ -0,0 +1,13 @@
1
+ export interface Config {
2
+ baseURL: string;
3
+ username?: string;
4
+ password?: string;
5
+ timeout?: number;
6
+ sslverify?: boolean;
7
+ }
8
+ export declare const defaultConfig: Readonly<Config>;
9
+ export declare let config: Config;
10
+ export declare const resetConfig: () => void;
11
+ export declare const checkConfig: (skipInit?: boolean) => void;
12
+ export declare const init: (providedConfig?: Config | undefined) => void;
13
+ export declare const getConfig: () => Readonly<Config>;
@@ -0,0 +1,20 @@
1
+ import { AvailableCatalogs } from "../types";
2
+ import { CatalogDetails } from "../resources/CatalogDetails";
3
+ import { Audit } from "../resources/Audit";
4
+ import { CollectionModels } from "../resources/CollectionModels";
5
+ import { CollectionSubModels } from "../resources/CollectionSubModels";
6
+ import { CollectionSubFamilies } from "../resources/CollectionSubFamilies";
7
+ import { FamilyDetails } from "../resources/FamilyDetails";
8
+ declare type AvailableOtherCatalogDataEndpoint = "models" | "submodels" | "subfamilies";
9
+ export declare const getPimDomain: () => string;
10
+ export declare const getCatalogTaxonomiesHierarchy: (catalogCode: AvailableCatalogs, jsonFile?: null | undefined) => Promise<CatalogDetails>;
11
+ export declare const getDictionary: () => Promise<any>;
12
+ export declare const getAllProducts: (lastModified?: string | null, catalogCode?: AvailableCatalogs | null) => Promise<any>;
13
+ export declare const getLatestProducts: (catalogCode: AvailableCatalogs, lastModified: string, limit: number) => Promise<any>;
14
+ export declare const getProductDetails: (code: string) => Promise<any>;
15
+ export declare const getAudit: (lastModified?: string) => Promise<Audit[]>;
16
+ export declare const getStaticDailyProducts: (catalogCode: AvailableCatalogs, day: string, saveToS3?: boolean) => Promise<any>;
17
+ declare type AvailableOtherCatalogCollection = CollectionModels | CollectionSubModels | CollectionSubFamilies;
18
+ export declare const getOtherCatalogData: <T extends AvailableOtherCatalogCollection>(endpoint: AvailableOtherCatalogDataEndpoint, offset?: number, limit?: number) => Promise<T>;
19
+ export declare const getFamilies: () => Promise<FamilyDetails[]>;
20
+ export {};
@@ -0,0 +1,21 @@
1
+ import { AvailableCatalogs, PaginationResults } from "../../types";
2
+ import type { Entry } from "contentful-management/dist/typings/entities/entry";
3
+ export declare const updateSubFamiliesRelToEntry: (entry: Entry, subFamilyIds: string[], field?: string) => Promise<Entry>;
4
+ export declare const getCategoryTopicCode: (categoryPimCode: string, catalogCode: AvailableCatalogs) => string;
5
+ export declare const getCategoryTopicId: (categoryPimCode: string, catalogCode: AvailableCatalogs) => string;
6
+ export declare const importCatalogPage: (catalogEntry: Entry) => Promise<Entry>;
7
+ export declare const importCategories: (catalogCode: AvailableCatalogs, offset?: number, limit?: number, s3FilePath?: string) => Promise<PaginationResults | null>;
8
+ export declare const deleteAllCategoriesAndFamiliesData: (catalogCode: AvailableCatalogs) => Promise<{
9
+ topicCategory: {
10
+ deleted: number;
11
+ total: number;
12
+ };
13
+ topicSubFamily: {
14
+ deleted: number;
15
+ total: number;
16
+ };
17
+ page: {
18
+ deleted: number;
19
+ total: number;
20
+ };
21
+ }>;
@@ -0,0 +1,2 @@
1
+ import { AvailableCatalogs, PaginationResults } from "../../types";
2
+ export declare const dailyProductsUpdate: (catalog: AvailableCatalogs, day: string, offset?: number, limit?: number, s3FilePath?: string) => Promise<PaginationResults>;
@@ -0,0 +1,6 @@
1
+ export declare const contentTypeId = "globalJsonFile";
2
+ export declare const entryId = "globalJsonProductFields";
3
+ export declare const importDictionaryIcons: (skipAlreadyExistsCheck?: boolean) => Promise<any>;
4
+ export declare const importDictionaryFields: (offset?: number, limit?: number) => Promise<any>;
5
+ export declare const importDictionaryProductLine: () => Promise<any>;
6
+ export declare const importDictionaryProductSubLine: () => Promise<any>;
@@ -0,0 +1,4 @@
1
+ import type { Entry } from "contentful-management/dist/typings/entities/entry";
2
+ import { PaginationResults } from "../../types";
3
+ export declare const createOrUpdatePage: (familyEntry: Entry) => Promise<Entry>;
4
+ export declare const importFamilies: (offset?: number, limit?: number) => Promise<PaginationResults>;
@@ -0,0 +1,12 @@
1
+ import { AvailableCatalogs } from "../../types";
2
+ export declare const importLatestProducts: (catalog: AvailableCatalogs, lastModified: string, limit: number, lastProductCode?: string | undefined, familyCodeIn?: string[] | undefined, subFamilyCodeIn?: string[] | undefined) => Promise<{
3
+ catalog: AvailableCatalogs;
4
+ limit: number;
5
+ lastModified: string;
6
+ lastProductLastModified: string;
7
+ lastProductCode: string | undefined;
8
+ familyCodeIn: string[] | undefined;
9
+ subFamilyCodeIn: string[] | undefined;
10
+ count: number;
11
+ completed: boolean;
12
+ }>;
@@ -0,0 +1,2 @@
1
+ import { PaginationResults } from "../../types";
2
+ export declare const importModels: (offset?: number, limit?: number) => Promise<PaginationResults>;
@@ -0,0 +1,3 @@
1
+ import { AvailableCatalogs } from "../../../types";
2
+ export declare const createOrUpdateCatalogPages: () => Promise<void>;
3
+ export declare const createOrUpdateCatalogPageByCode: (catalogCode: AvailableCatalogs) => Promise<void>;
@@ -0,0 +1,6 @@
1
+ export declare const createOrUpdateFamilyPages: (offset: number, limit?: number) => Promise<{
2
+ offset: number;
3
+ limit: number;
4
+ completed: boolean;
5
+ }>;
6
+ export declare const createOrUpdateFamilyPageByCode: (familyCode: string) => Promise<void>;
@@ -0,0 +1,12 @@
1
+ import { AvailableCatalogs } from "../../../types";
2
+ export declare const createOrUpdateSubFamilyPages: (offset: number, limit?: number) => Promise<{
3
+ offset: number;
4
+ limit: number;
5
+ completed: boolean;
6
+ }>;
7
+ export declare const createOrUpdateSubFamilyPageByCode: (subfamilyCode: string) => Promise<void>;
8
+ export declare const createOrUpdateSubFamilyPagesByCatalog: (catalogCode: AvailableCatalogs, offset: number, limit?: number) => Promise<{
9
+ offset: number;
10
+ limit: number;
11
+ completed: boolean;
12
+ }>;
@@ -0,0 +1,47 @@
1
+ import { ProductDetails } from "../../resources/ProductDetails";
2
+ import { AvailableCatalogs } from "../../types";
3
+ import type { Entry } from "contentful-management/dist/typings/entities/entry";
4
+ export declare type AvailableProductStatus = "To be review" | "Published" | "Unpublished";
5
+ export declare type AvailableRelationFieldKeys = "accessories" | "accessoryOf" | "bulbs" | "spareparts";
6
+ export declare const importProduct: (productDetails: ProductDetails, catalog: AvailableCatalogs, familyCodeIn?: string[] | undefined, subFamilyCodeIn?: string[] | undefined) => Promise<boolean>;
7
+ export declare const setProductRelationships: (code: string, fieldKey?: AvailableRelationFieldKeys | null) => Promise<void>;
8
+ export declare const setProductsRelationships: (catalog: AvailableCatalogs, lastModified: string, fieldKey: AvailableRelationFieldKeys | null, offset?: number, limit?: number, s3FilePath?: string) => Promise<{
9
+ offset: number;
10
+ limit: number;
11
+ completed: boolean;
12
+ s3FilePath: string;
13
+ total?: undefined;
14
+ } | {
15
+ offset: number;
16
+ limit: number;
17
+ completed: boolean;
18
+ s3FilePath: string;
19
+ total: number;
20
+ }>;
21
+ export declare const getAllProductEntriesByCatalog: (catalog: AvailableCatalogs, limit?: number, select?: string) => Promise<Entry[]>;
22
+ export declare const audit: (lastModified: string, catalog: AvailableCatalogs, offset?: number, limit?: number, s3FilePath?: string) => Promise<{
23
+ offset: number;
24
+ limit: number;
25
+ completed: boolean;
26
+ s3FilePath: string;
27
+ total: number;
28
+ } | {
29
+ offset: number;
30
+ limit: number;
31
+ completed: boolean;
32
+ s3FilePath: string;
33
+ total?: undefined;
34
+ }>;
35
+ export declare const importProductByCode: (code: string, catalog: AvailableCatalogs) => Promise<void>;
36
+ export declare const generateTechSpecPdf: (topicProductId: string) => Promise<string | undefined>;
37
+ export declare const setProductsAutodescription: (catalog: AvailableCatalogs, offset?: number, limit?: number) => Promise<{
38
+ catalog: AvailableCatalogs;
39
+ offset: number;
40
+ limit: number;
41
+ completed: boolean;
42
+ total: number;
43
+ }>;
44
+ export declare const setProductAutodescriptionByTopicId: (topicProductId: string) => Promise<any>;
45
+ export declare const getProductAutodescription: (topicProductId: string) => Promise<any>;
46
+ export declare const removeProductFromColorVariantsByProductLine: (productLineCode: string) => Promise<void>;
47
+ export declare const removeAllProductModelProductRelations: (modelCode: string) => Promise<void>;
@@ -0,0 +1,13 @@
1
+ import type { Entry } from "contentful-management/dist/typings/entities/entry";
2
+ import { PaginationResults, CfLocalizedEntryField, AvailableCatalogs } from "../../types";
3
+ import { pageResponse } from "../../algolia/families";
4
+ export declare const getSubFamilyPageSlugs: (catalogPage: Entry, categoryPage: Entry, subFamilyEntry: Entry) => Promise<CfLocalizedEntryField>;
5
+ export declare const createOrUpdatePage: (subFamilyEntry: Entry) => Promise<Entry>;
6
+ export declare const importSubFamilies: (offset: number | undefined, limit: number | undefined, catalog: AvailableCatalogs) => Promise<PaginationResults>;
7
+ export declare const getSubFamilySlugDetails: (topicSubFamily: Entry) => Promise<{
8
+ catalogPageSlugs: any;
9
+ familyPageSlugs: any;
10
+ categoryPageSlugs: any;
11
+ }>;
12
+ export declare const getSubFamilyPageSlugWithDetails: (subFamilyEntry: Entry) => Promise<pageResponse>;
13
+ export declare const updateComponentModelPagesToSubFamilyPage: (subFamilyEntry: Entry) => Promise<Entry>;
@@ -0,0 +1,2 @@
1
+ import { PaginationResults } from "../../types";
2
+ export declare const importSubModels: (offset?: number, limit?: number) => Promise<PaginationResults>;
@@ -0,0 +1,5 @@
1
+ import { AxiosRequestConfig } from "axios";
2
+ export declare let baseRequestConfig: AxiosRequestConfig | null;
3
+ export declare const initBaseRequest: () => void;
4
+ export declare const resetBaseRequest: () => void;
5
+ export declare const getRequest: (url: string, opts?: Record<string, any> & Partial<AxiosRequestConfig>) => Promise<any>;
@@ -0,0 +1,42 @@
1
+ export interface AllProductsEntry {
2
+ code: string;
3
+ name: string;
4
+ webNaming: string;
5
+ productGroup: ProductGroup;
6
+ productStatus: ProductStatus;
7
+ lastModified: LastModified;
8
+ catalogs?: CatalogsEntity[] | null;
9
+ }
10
+ export interface ProductGroup {
11
+ code: string;
12
+ name: string;
13
+ priority: number;
14
+ }
15
+ export interface ProductStatus {
16
+ code: string;
17
+ value_en: string;
18
+ value_it: string;
19
+ value_es: string;
20
+ value_de: string;
21
+ value_fr: string;
22
+ value_sv: string;
23
+ value_no: string;
24
+ value_da: string;
25
+ value_ru: string;
26
+ othersData: OthersData;
27
+ }
28
+ export interface OthersData {
29
+ }
30
+ export interface LastModified {
31
+ year: number;
32
+ month: number;
33
+ dayOfMonth: number;
34
+ hourOfDay: number;
35
+ minute: number;
36
+ second: number;
37
+ }
38
+ export interface CatalogsEntity {
39
+ catalogCode?: string | null;
40
+ categoryCode?: string | null;
41
+ subFamilyCode?: string | null;
42
+ }
@@ -0,0 +1,24 @@
1
+ declare type AuditCatalog = {
2
+ where: string;
3
+ catalogCode?: string;
4
+ categoryCode?: string;
5
+ subfamilyCode?: string;
6
+ models?: string;
7
+ subModels?: string;
8
+ };
9
+ export interface Audit {
10
+ what: string;
11
+ when: When;
12
+ product: string;
13
+ upgradeProduct?: string;
14
+ catalogs: AuditCatalog[];
15
+ }
16
+ export interface When {
17
+ year: number;
18
+ month: number;
19
+ dayOfMonth: number;
20
+ hourOfDay: number;
21
+ minute: number;
22
+ second: number;
23
+ }
24
+ export {};
@@ -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
+ }