pim-import 2.78.0 → 2.78.3
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/pim/data/productFields.json +245 -0
- package/dist/pim/methods/dictionary.js +7 -40
- package/dist/pim/methods/dictionary.js.map +1 -1
- package/dist/pim/methods/products.js +4 -1
- package/dist/pim/methods/products.js.map +1 -1
- package/dist/pim/methods/subfamilies.js +4 -1
- package/dist/pim/methods/subfamilies.js.map +1 -1
- package/package.json +5 -1
- package/src/pim/data/productFields.json +245 -0
- package/src/pim/methods/dictionary.ts +11 -78
- package/src/pim/methods/products.ts +4 -1
- package/src/pim/methods/subfamilies.ts +6 -1
- package/tsconfig.json +2 -1
- package/types/algolia/clean.d.ts +10 -0
- package/types/algolia/config.d.ts +96 -0
- package/types/algolia/downloads.d.ts +36 -0
- package/types/algolia/families.d.ts +48 -0
- package/types/algolia/models.d.ts +31 -0
- package/types/algolia/news.d.ts +33 -0
- package/types/algolia/pipedreamReindex.d.ts +4 -0
- package/types/algolia/pressRelease.d.ts +33 -0
- package/types/algolia/pressReview.d.ts +33 -0
- package/types/algolia/products.d.ts +75 -0
- package/types/algolia/projects.d.ts +43 -0
- package/types/algolia/stories.d.ts +43 -0
- package/types/algolia/subFamilies.d.ts +28 -0
- package/types/algolia/subModels.d.ts +29 -0
- package/types/browser.d.ts +32 -0
- package/types/downloads/classes/manageEntry.d.ts +10 -0
- package/types/downloads/import.d.ts +1 -0
- package/types/index.d.ts +32 -0
- package/types/libs/contentful-cda.d.ts +20 -0
- package/types/libs/contentful.d.ts +59 -0
- package/types/libs/imgix.d.ts +14 -0
- package/types/libs/logs.d.ts +8 -0
- package/types/libs/puppeteer.d.ts +11 -0
- package/types/libs/s3.d.ts +22 -0
- package/types/libs/sentry.d.ts +2 -0
- package/types/pim/config.d.ts +13 -0
- package/types/pim/endpoints.d.ts +20 -0
- package/types/pim/methods/catalogs.d.ts +21 -0
- package/types/pim/methods/dailyProductsUpdate.d.ts +2 -0
- package/types/pim/methods/dictionary.d.ts +6 -0
- package/types/pim/methods/families.d.ts +4 -0
- package/types/pim/methods/latestProducts.d.ts +12 -0
- package/types/pim/methods/models.d.ts +2 -0
- package/types/pim/methods/pages/catalogs.d.ts +3 -0
- package/types/pim/methods/pages/families.d.ts +6 -0
- package/types/pim/methods/pages/subfamilies.d.ts +12 -0
- package/types/pim/methods/products.d.ts +47 -0
- package/types/pim/methods/subfamilies.d.ts +13 -0
- package/types/pim/methods/submodels.d.ts +2 -0
- package/types/pim/request.d.ts +5 -0
- package/types/resources/AllProducts.d.ts +42 -0
- package/types/resources/Audit.d.ts +24 -0
- package/types/resources/CatalogDetails.d.ts +46 -0
- package/types/resources/CollectionModels.d.ts +41 -0
- package/types/resources/CollectionSubFamilies.d.ts +45 -0
- package/types/resources/CollectionSubModels.d.ts +36 -0
- package/types/resources/DProductSubLine.d.ts +34 -0
- package/types/resources/FamilyDetails.d.ts +31 -0
- package/types/resources/ProductDetails.d.ts +346 -0
- package/types/resources/ProductRelation.d.ts +25 -0
- package/types/resources/cfFields.d.ts +8 -0
- package/types/types.d.ts +188 -0
- package/types/utils.d.ts +19 -0
|
@@ -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,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,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,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
|
+
}
|