oneentry 1.0.0 → 1.0.8
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/README.md +1653 -190
- package/dist/admins/adminsApi.d.ts +2 -2
- package/dist/admins/adminsInterfaces.d.ts +30 -2
- package/dist/attribute-set/AttributeSetApi.d.ts +3 -3
- package/dist/attribute-set/attributeSetInterfaces.d.ts +21 -3
- package/dist/base/utils.d.ts +32 -0
- package/dist/base/utils.js +32 -0
- package/dist/base/utils.js.map +1 -0
- package/dist/forms/formsApi.d.ts +26 -0
- package/dist/forms/formsApi.js +56 -0
- package/dist/forms/formsApi.js.map +1 -0
- package/dist/forms/formsInterfaces.d.ts +28 -0
- package/dist/forms/formsInterfaces.js +3 -0
- package/dist/forms/formsInterfaces.js.map +1 -0
- package/dist/formsData/formsDataApi.d.ts +41 -0
- package/dist/formsData/formsDataApi.js +71 -0
- package/dist/formsData/formsDataApi.js.map +1 -0
- package/dist/formsData/formsDataInterfaces.d.ts +25 -0
- package/dist/formsData/formsDataInterfaces.js +3 -0
- package/dist/formsData/formsDataInterfaces.js.map +1 -0
- package/dist/general-types/GeneralTypesApi.d.ts +2 -2
- package/dist/general-types/generalTypesInterfaces.d.ts +7 -2
- package/dist/index.d.ts +11 -7
- package/dist/index.js +14 -8
- package/dist/index.js.map +1 -1
- package/dist/locales/localesApi.d.ts +2 -2
- package/dist/locales/localesInterfaces.d.ts +13 -2
- package/dist/markers/markersApi.d.ts +4 -4
- package/dist/markers/markersApi.js +1 -1
- package/dist/markers/markersApi.js.map +1 -1
- package/dist/markers/markersInterfaces.d.ts +14 -4
- package/dist/menus/menusApi.d.ts +2 -2
- package/dist/menus/menusInterfaces.d.ts +16 -2
- package/dist/modules/modulesApi.d.ts +2 -2
- package/dist/modules/modulesInterfaces.d.ts +17 -2
- package/dist/pages/pagesApi.d.ts +21 -9
- package/dist/pages/pagesApi.js +27 -15
- package/dist/pages/pagesApi.js.map +1 -1
- package/dist/pages/pagesInterfaces.d.ts +26 -9
- package/dist/product-statuses/productStatusesApi.d.ts +5 -5
- package/dist/product-statuses/productStatusesInterfaces.d.ts +13 -5
- package/dist/products/productsApi.d.ts +22 -10
- package/dist/products/productsApi.js +18 -5
- package/dist/products/productsApi.js.map +1 -1
- package/dist/products/productsInterfaces.d.ts +30 -9
- package/dist/templates/templatesApi.d.ts +5 -5
- package/dist/templates/templatesInterfaces.d.ts +29 -5
- package/dist/templates-preview/templatesPreviewApi.d.ts +4 -4
- package/dist/templates-preview/templatesPreviewInterfaces.d.ts +25 -4
- package/package.json +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { ILocalizeInfos } from "../base/utils";
|
|
1
2
|
interface IProductApi {
|
|
2
|
-
getProducts(userQuery?: IProductsQuery): Promise<
|
|
3
|
-
getProductsEmptyPage(userQuery?: IProductsQuery): Promise<
|
|
4
|
-
getProductsPageById(id: number, userQuery?: IProductsQuery): Promise<
|
|
5
|
-
getProductsPageByUrl(url: string, userQuery?: IProductsQuery): Promise<
|
|
6
|
-
getRelatedProductsById(id: number, userQuery?: IProductsQuery): Promise<
|
|
7
|
-
getProductById(id: number): Promise<
|
|
8
|
-
filterProduct(data: Array<IFilterParams>, userQuery?: IProductsQuery): Promise<
|
|
9
|
-
searchProduct(name: string,
|
|
3
|
+
getProducts(userQuery?: IProductsQuery): Promise<Array<IProductsEntity>>;
|
|
4
|
+
getProductsEmptyPage(userQuery?: IProductsQuery): Promise<Array<IProductsEntity>>;
|
|
5
|
+
getProductsPageById(id: number, userQuery?: IProductsQuery): Promise<Array<IProductsEntity>>;
|
|
6
|
+
getProductsPageByUrl(url: string, userQuery?: IProductsQuery): Promise<Array<IProductsEntity>>;
|
|
7
|
+
getRelatedProductsById(id: number, userQuery?: IProductsQuery): Promise<IProductsEntity>;
|
|
8
|
+
getProductById(id: number, langCode: string): Promise<IProductsEntity>;
|
|
9
|
+
filterProduct(data: Array<IFilterParams>, userQuery?: IProductsQuery): Promise<Array<IProductsEntity>>;
|
|
10
|
+
searchProduct(name: string, langCode: string): Promise<Array<IProductsEntity>>;
|
|
10
11
|
getAttributesByProductId(id: number): Promise<any>;
|
|
11
12
|
}
|
|
12
13
|
interface IProduct {
|
|
@@ -40,4 +41,24 @@ interface IFilterParams {
|
|
|
40
41
|
conditionValue: number;
|
|
41
42
|
pageId?: number;
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
+
interface IProductsEntity {
|
|
45
|
+
id: number;
|
|
46
|
+
localizeInfos: ILocalizeInfos;
|
|
47
|
+
isVisible: boolean;
|
|
48
|
+
statusId: number;
|
|
49
|
+
relatedIds: number[];
|
|
50
|
+
productPages: {
|
|
51
|
+
id: number;
|
|
52
|
+
pageId: number;
|
|
53
|
+
productId: number;
|
|
54
|
+
}[];
|
|
55
|
+
attributeSetId: number;
|
|
56
|
+
version: number;
|
|
57
|
+
isSync: number | boolean;
|
|
58
|
+
price: number;
|
|
59
|
+
templateIdentifier: string;
|
|
60
|
+
shortDescTemplateIdentifier: string;
|
|
61
|
+
attributeValues: Record<string, any>;
|
|
62
|
+
position: number;
|
|
63
|
+
}
|
|
64
|
+
export { IFilterParams, IProductsQuery, IProduct, IProductApi, IProductsEntity };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import OneEntry from '../base/oneEntry';
|
|
2
|
-
import { ITemplatesApi } from './templatesInterfaces';
|
|
2
|
+
import { ITemplatesApi, ITemplateEntity } from './templatesInterfaces';
|
|
3
3
|
/**
|
|
4
4
|
* Controllers for working with template objects
|
|
5
5
|
*/
|
|
@@ -10,7 +10,7 @@ export default class TemplatesPreviewApi extends OneEntry implements ITemplatesA
|
|
|
10
10
|
*
|
|
11
11
|
* @returns Returns an array of product status objects
|
|
12
12
|
*/
|
|
13
|
-
getTemplates(): Promise<
|
|
13
|
+
getTemplates(): Promise<Array<ITemplateEntity>>;
|
|
14
14
|
/**
|
|
15
15
|
* Get all template objects grouped by types.
|
|
16
16
|
*
|
|
@@ -18,7 +18,7 @@ export default class TemplatesPreviewApi extends OneEntry implements ITemplatesA
|
|
|
18
18
|
*
|
|
19
19
|
* @returns Returns an object GroupedTemplatesObject, which contains an array of template objects TemplateEntity
|
|
20
20
|
*/
|
|
21
|
-
getAllTemplates(): Promise<
|
|
21
|
+
getAllTemplates(): Promise<Array<ITemplateEntity>>;
|
|
22
22
|
/**
|
|
23
23
|
* Get one template object by id.
|
|
24
24
|
*
|
|
@@ -26,7 +26,7 @@ export default class TemplatesPreviewApi extends OneEntry implements ITemplatesA
|
|
|
26
26
|
*
|
|
27
27
|
* @returns Returns a TemplateEntity object
|
|
28
28
|
*/
|
|
29
|
-
getTemplateById(id: number): Promise<
|
|
29
|
+
getTemplateById(id: number): Promise<ITemplateEntity>;
|
|
30
30
|
/**
|
|
31
31
|
* Get a single template object by marker.
|
|
32
32
|
*
|
|
@@ -34,5 +34,5 @@ export default class TemplatesPreviewApi extends OneEntry implements ITemplatesA
|
|
|
34
34
|
*
|
|
35
35
|
* @returns Returns a TemplateEntity object
|
|
36
36
|
*/
|
|
37
|
-
getTemplateByMarker(marker: string): Promise<
|
|
37
|
+
getTemplateByMarker(marker: string): Promise<ITemplateEntity>;
|
|
38
38
|
}
|
|
@@ -1,7 +1,31 @@
|
|
|
1
|
+
import { IGeneralTypesEntity } from "../general-types/generalTypesInterfaces";
|
|
2
|
+
import { ILocalizeInfos } from "../base/utils";
|
|
1
3
|
interface ITemplatesApi {
|
|
2
|
-
getTemplates(): Promise<
|
|
3
|
-
getAllTemplates(): Promise<
|
|
4
|
-
getTemplateById(id: number): Promise<
|
|
5
|
-
getTemplateByMarker(marker: string): Promise<
|
|
4
|
+
getTemplates(): Promise<Array<ITemplateEntity>>;
|
|
5
|
+
getAllTemplates(): Promise<Array<ITemplateEntity>>;
|
|
6
|
+
getTemplateById(id: number): Promise<ITemplateEntity>;
|
|
7
|
+
getTemplateByMarker(marker: string): Promise<ITemplateEntity>;
|
|
6
8
|
}
|
|
7
|
-
|
|
9
|
+
interface ITemplateEntity {
|
|
10
|
+
id: number;
|
|
11
|
+
updatedDate: string;
|
|
12
|
+
version: number;
|
|
13
|
+
identifier: string;
|
|
14
|
+
attributesSets: {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
};
|
|
17
|
+
attributeSetId: number;
|
|
18
|
+
generalType: IGeneralTypesEntity;
|
|
19
|
+
generalTypeId: number;
|
|
20
|
+
localizeInfos: ILocalizeInfos;
|
|
21
|
+
position: {
|
|
22
|
+
id: number;
|
|
23
|
+
position: number | string;
|
|
24
|
+
objectId: number;
|
|
25
|
+
objectType: string;
|
|
26
|
+
isLocked: boolean;
|
|
27
|
+
objectCategoryId: number;
|
|
28
|
+
};
|
|
29
|
+
positionId: number | string;
|
|
30
|
+
}
|
|
31
|
+
export { ITemplatesApi, ITemplateEntity };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import OneEntry from "../base/oneEntry";
|
|
2
|
-
import { ITemplatesPreview } from "./templatesPreviewInterfaces";
|
|
2
|
+
import { ITemplatesPreview, ITemplatesPreviewEntity } from "./templatesPreviewInterfaces";
|
|
3
3
|
/**
|
|
4
4
|
* Controllers for working with template objects for preview
|
|
5
5
|
*/
|
|
@@ -10,7 +10,7 @@ export default class PageApi extends OneEntry implements ITemplatesPreview {
|
|
|
10
10
|
*
|
|
11
11
|
* @returns Returns all TemplatePreviewsEntity template objects
|
|
12
12
|
*/
|
|
13
|
-
getTemplatesPreview(): Promise<
|
|
13
|
+
getTemplatesPreview(): Promise<Array<ITemplatesPreviewEntity>>;
|
|
14
14
|
/**
|
|
15
15
|
* Get one template object by id.
|
|
16
16
|
*
|
|
@@ -18,7 +18,7 @@ export default class PageApi extends OneEntry implements ITemplatesPreview {
|
|
|
18
18
|
*
|
|
19
19
|
* @returns Returns a TemplatePreviewsEntity object
|
|
20
20
|
*/
|
|
21
|
-
getTemplatesPreviewById(id: number): Promise<
|
|
21
|
+
getTemplatesPreviewById(id: number): Promise<ITemplatesPreviewEntity>;
|
|
22
22
|
/**
|
|
23
23
|
* Get one template object by marker.
|
|
24
24
|
*
|
|
@@ -26,5 +26,5 @@ export default class PageApi extends OneEntry implements ITemplatesPreview {
|
|
|
26
26
|
*
|
|
27
27
|
* @returns Returns a TemplatePreviewsEntity object
|
|
28
28
|
*/
|
|
29
|
-
getTemplatesPreviewByMarker(marker: string): Promise<
|
|
29
|
+
getTemplatesPreviewByMarker(marker: string): Promise<ITemplatesPreviewEntity>;
|
|
30
30
|
}
|
|
@@ -1,6 +1,27 @@
|
|
|
1
|
+
import { ILocalizeInfos } from "../base/utils";
|
|
1
2
|
interface ITemplatesPreview {
|
|
2
|
-
getTemplatesPreview(): Promise<
|
|
3
|
-
getTemplatesPreviewById(id: number): Promise<
|
|
4
|
-
getTemplatesPreviewByMarker(marker: string): Promise<
|
|
3
|
+
getTemplatesPreview(): Promise<Array<ITemplatesPreviewEntity>>;
|
|
4
|
+
getTemplatesPreviewById(id: number): Promise<ITemplatesPreviewEntity>;
|
|
5
|
+
getTemplatesPreviewByMarker(marker: string): Promise<ITemplatesPreviewEntity>;
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
+
interface ITemplatesPreviewEntity {
|
|
8
|
+
id: number;
|
|
9
|
+
updatedDate: string;
|
|
10
|
+
version: number;
|
|
11
|
+
identifier: string;
|
|
12
|
+
attributesSets: {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
attributeSetId: number;
|
|
16
|
+
localizeInfos: ILocalizeInfos;
|
|
17
|
+
position: {
|
|
18
|
+
id: number;
|
|
19
|
+
position: number | string;
|
|
20
|
+
objectId: number;
|
|
21
|
+
objectType: string;
|
|
22
|
+
isLocked: boolean;
|
|
23
|
+
objectCategoryId: number | null;
|
|
24
|
+
};
|
|
25
|
+
positionId: number | string;
|
|
26
|
+
}
|
|
27
|
+
export { ITemplatesPreview, ITemplatesPreviewEntity };
|